Open SirRujak opened 5 years ago
If I understand correctly the sign function in hypercore/crypto should be using the secret/private key to sign the data rather than the public key.
Currently using the public key rather than private key from what I can tell.
https://github.com/datrs/hypercore/blob/master/src/crypto/key_pair.rs#L15-L22
Bug Report
Your Environment
Expected Behavior
If I understand correctly the sign function in hypercore/crypto should be using the secret/private key to sign the data rather than the public key.
Current Behavior
Currently using the public key rather than private key from what I can tell.
Code Sample
https://github.com/datrs/hypercore/blob/master/src/crypto/key_pair.rs#L15-L22