Skip to content
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

Merged
merged 8 commits into from
Aug 6, 2024
Merged

Eots refactor 2 #33

merged 8 commits into from
Aug 6, 2024

Conversation

maurolacy
Copy link
Collaborator

#27 follow-up. Better encapsulation for types.

Comment on lines 277 to 285
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()))?;
Copy link
Member

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?

Copy link
Collaborator Author

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sg

@maurolacy maurolacy merged commit ba091f4 into main Aug 6, 2024
1 check passed
@maurolacy maurolacy deleted the eots-refactor-2 branch August 6, 2024 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants