-
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
Eots refactor 2 #33
Eots refactor 2 #33
Conversation
let btc_sk = pk | ||
.extract( | ||
&evidence.pub_rand, | ||
&evidence.canonical_app_hash, | ||
&evidence.canonical_finality_sig, | ||
&evidence.fork_app_hash, | ||
&evidence.fork_finality_sig, | ||
) | ||
.map_err(|err| ContractError::SecretKeyExtractionError(err.to_string()))?; |
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.
Hmm extract
is probably not suitable to be a function under the public key. Why not just keep it as is?
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.
Was thinking the same. What about calling it extract_secret_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.
sg
9d6666f
to
f67231e
Compare
#27 follow-up. Better encapsulation for types.