-
Notifications
You must be signed in to change notification settings - Fork 27
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
CHIA-922: CHIA-938: Add signing and verification methods #616
Conversation
Pull Request Test Coverage Report for Build 9960878291Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Non-blocking comment - can you add some descriptions of what and why for this PR? |
@@ -242,8 +242,15 @@ impl SecretKey { | |||
#[classattr] | |||
pub const PRIVATE_KEY_SIZE: usize = 32; | |||
|
|||
pub fn sign_g2(&self, msg: &[u8]) -> crate::Signature { | |||
crate::sign(self, msg) | |||
pub fn sign(&self, msg: &[u8], final_pk: Option<PublicKey>) -> crate::Signature { |
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 understand the python interface has this optional public key, but do we ever actually use it? If not, it would be cleaner to just not have it
Adds
G1Element::verify
andSecretKey::sign
in Python as part of the wallet signer effort.