-
Notifications
You must be signed in to change notification settings - Fork 8
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
staking: verifying staker's signature over slashing tx #56
Conversation
65e7eb6
to
958826b
Compare
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.
Looks good!
keys.sort_by(|a, b| { | ||
let a_serialized = a.serialize(); | ||
let b_serialized = b.serialize(); | ||
let a_serialized = a.to_bytes(); |
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.
whats difference in serialize and to_bytes?
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.
Well k256
's VerifyingKey
does not have serialize()
function but instead defines to_bytes()
Part of #7
This PR adds verifications on staker's signature over the slashing tx in BTC delegation requests. This includes:
handle_btc_delegation
(the version withfull-validation
feature)datagen
to use 1st FP's secret key for generating pub rand commit and finality sig