-
Notifications
You must be signed in to change notification settings - Fork 231
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
[runtime-transaction] add secp256r1 to precompile signature details #3878
base: master
Are you sure you want to change the base?
[runtime-transaction] add secp256r1 to precompile signature details #3878
Conversation
431401b
to
1ea4e37
Compare
1ea4e37
to
3f503c6
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, just curious if we can avoid the dependency or not.
@@ -140,26 +150,31 @@ mod tests { | |||
Pubkey::new_unique(), | |||
solana_sdk::secp256k1_program::ID, | |||
solana_sdk::ed25519_program::ID, | |||
solana_secp256r1_program::ID, |
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.
Ahh bummer, is this ID not included in the SDK anywhere? Would avoid the dependency.
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.
Or maybe solana-sdk-ids
?
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.
Maybe worth adding the ID to sdk in this PR.
Problem
The secp256r1 precompile (#3152) was added, but the logic in some of the crates in the monorepo such as
runtime-transaction
does not yet account for the new precompile.Summary of Changes
Added a secp256r1 signatures field to the main types in the
runtime-transaction
.The actual costs for the new precompile has to be added to the
cost-model
crate, but I will do it on a follow-up.Fixes #