Closed robdefeo closed 4 years ago
- remove
crypto/cipher/nacl
- [x] remove all references to
crypto/cipher/nacl
- [x] remove
NACL byte = 0x2a
fromcrypto/cipher/cipher.go
- [x] remove all references to
ciper.NACL
With the key exchange interface #497 and implementations in secp256k1 #501 , ed25519 #504, and sr25519 #505 and fix #528 it is now possible to the ECHD keys exchange for these key types and generate a shared secret which can be used with secretbox.
Is your feature request related to a problem? Please describe.
crypto/cipher/nacl
usesSecretBox
which is for symmetric encryption, this means that the implementation is incorrect it should of usedBox
.nacl.Box
does not supported25519
andsr25519
onlyx25519
so can not be used.Describe the solution you'd like
Currently nacl is not used in to send any messages so it can safely be removed.
crypto/cipher/nacl
crypto/cipher/nacl
NACL byte = 0x2a
fromcrypto/cipher/cipher.go
ciper.NACL