-
Notifications
You must be signed in to change notification settings - Fork 59
fix(solana): sig verification #872
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #872 +/- ##
=======================================
Coverage 99.90% 99.90%
=======================================
Files 26 26
Lines 1084 1084
=======================================
Hits 1083 1083
Misses 1 1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
cernicc
left a comment
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.
Good job 👍
.github/workflows/foundry.yml
Outdated
|
|
||
| - uses: srdtrk/natlint@main | ||
| -- TODO: update original repo | ||
| - uses: vaporif/natlint@drop-forge-fmt |
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.
I suggest we solve this todo before merging.
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.
@vaporif you didn't make a PR to natlint?
|
|
||
| // Compile-time verification that discriminator length matches the shared constant | ||
| const _: () = assert!( | ||
| SignatureVerification::DISCRIMINATOR.len() == solana_ibc_constants::ANCHOR_DISCRIMINATOR_LEN |
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.
I like the compile time check for the discriminator length. One question. When can the lengths be different?
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.
potentially anchor allows setting custom discriminators (non 8 bytes).
it's not widely used feature but still better to have this as safeguard
.github/workflows/foundry.yml
Outdated
|
|
||
| - uses: srdtrk/natlint@main | ||
| -- TODO: update original repo | ||
| - uses: vaporif/natlint@drop-forge-fmt |
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.
@vaporif you didn't make a PR to natlint?
Description
closes: #XXXX
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
godoccomments.Files changedin the GitHub PR explorer.SonarCloud Reportin the comment section below once CI passes.