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

CCIP-4710: Adding nil and length check on input value to Ed25519 verify call #400

Merged
merged 4 commits into from
Dec 20, 2024

Conversation

b-gopalswami
Copy link
Collaborator

Making sure public key is not nil and length is accurate before verifying it.

Comment on lines +50 to +55
if rmnNode.OffchainPublicKey == nil {
return fmt.Errorf("node %d has no offchain public key", rmnNode.ID)
}
if len(*rmnNode.OffchainPublicKey) != ed25519.PublicKeySize {
return fmt.Errorf("node %d has an invalid offchain public key", rmnNode.ID)
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These are the key changes. As OffchainPublicKey is required, test needs to be updated.

Copy link

Metric cl33-14 main
Coverage 76.5% 76.4%

@b-gopalswami b-gopalswami merged commit d015a11 into main Dec 20, 2024
17 checks passed
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