-
Notifications
You must be signed in to change notification settings - Fork 679
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
Add vote for cli command #4934
Add vote for cli command #4934
Conversation
Signed-off-by: Jacinta Ferrant <[email protected]>
793c6d0
to
d05c20b
Compare
Signed-off-by: Jacinta Ferrant <[email protected]>
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.
This looks good to me, but I have a couple comments:
-
I think this should read the signing key from the config file like the signer binary does for running the signer.
-
This message format is fine, but I think it'd be better if it were a SIP-018 signing scheme.
… into feature/vote-for-sip-cli
Signed-off-by: Jacinta Ferrant <[email protected]>
I agree with both observations as it will make it consistent with generate stacking signature and remove the sha2 dependency. Done! |
Signed-off-by: Jacinta Ferrant <[email protected]>
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.
LGTM!
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Added two commands:
generate-vote: prints a vote signature across a SIP and vote value using the provided key
verify-vote: prints whether the message signature verifies against the provided info and public key
e.g. (Note PUBLIC_KEY, and SIGNATURE are in hexadecimal format)
stacks-signer generate-vote --sip 10 --vote yes -c [CONFIG_FILE]
stacks-signer verify-vote --sip 10 --vote yes -p [PUBLIC_KEY] -s [SIGNATURE]
QUESTION: There is mention of "How to Sign" Instructions being done as part of this PR. I assume this is in reference to "How to Vote" and would include the cli command documentation and then of course where you send your vote? not actually how to sign blocks?
Closes https://github.com/orgs/stacks-network/projects/63/views/32?pane=issue&itemId=68310304