-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: remove unused asymmetric encode/decode functions #1183
Conversation
b38c350
to
ab982da
Compare
Codecov Report
@@ Coverage Diff @@
## develop #1183 +/- ##
===========================================
+ Coverage 65.84% 66.09% +0.25%
===========================================
Files 55 55
Lines 2755 2743 -12
Branches 36 36
===========================================
- Hits 1814 1813 -1
+ Misses 933 922 -11
Partials 8 8
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is helpful to have in the SDK. Not sure if anyone is and how much they are using it but it gives a useful wrapper for asymmetric encryption.
example case: https://github.com/mradkov/secure-data-exchange
I propose to keep it here. Its obvious that anyone can use it with the underlying |
Were these functions requested to implement by you? Do you know according to what it is implemented? tweetnacl have a reference to https://github.com/whs/tweetnacl-sealed-box that does the same, but a bit more size-efficient, why don't use this instead of our implementation? I'm not sure what our implementation is audited/well-written, at least the package I don't like to have this also because other parts of SDK are not compatible with it. It can't be used in aepp, because aepp-wallet connection support only signing. In your case would be more secure to use exactly I'm not sure why are you using Simple wrappers won't help to implement crypto-stuff with confidence, better to use crypto libraries directly. The best that we can propose now is a function converting address to byte array. |
ab982da
to
12e4855
Compare
12e4855
to
a807607
Compare
@davidyuk can you rebase this PR so we can merge it? |
a807607
to
51def34
Compare
tweennacl
andEd25519
keypair #466 without any reasoningnacl.box
/nacl.box.open
can be used directly instead