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
Hare sig #795
Conversation
gavraz
commented
Apr 8, 2019
- Added new signer verifier
- Removed pub key from hare proto
- Fully replaced hare sig with public extraction
signing/signer.go
Outdated
if len(buff) < 32 { | ||
return nil, errors.New("buffer too small") | ||
} | ||
return &EdSigner{privKey: buff, pubKey: buff[:32]}, nil |
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.
Ask @barakshani if there is any way to validate that the private key matches the public key
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 am not sure what is the context here, but if you hold the private key, you can always recompute the public key from it
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 sign and verify.
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.
@barakshani 's solution is more elegant and efficient