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

Pass the nodeID downstream of acp118 verifier #3606

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

tsachiherman
Copy link
Contributor

Why this should be merged

Adding the previously verified source of a message allow us to cross-validate the application level signature.

How this works

Add the nodeID to the verifier interface and pass it along.

How this was tested

Unit test was updated to validate the correctness of the code.

Need to be documented in RELEASES.md?

No.

@tsachiherman tsachiherman self-assigned this Dec 17, 2024
network/p2p/acp118/handler.go Outdated Show resolved Hide resolved
network/p2p/acp118/handler_test.go Outdated Show resolved Hide resolved
network/p2p/acp118/handler_test.go Outdated Show resolved Hide resolved
network/p2p/acp118/handler_test.go Outdated Show resolved Hide resolved
network/p2p/acp118/handler_test.go Outdated Show resolved Hide resolved
verifier: &testVerifier{},
name: "signature signed",
cacher: &cache.Empty[ids.ID, []byte]{},
verifierErrs: nil,
Copy link
Contributor

Choose a reason for hiding this comment

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

This line can be deleted entirely iirc because the zero value of a slice is safe to use

@@ -10,7 +10,7 @@ require (
github.com/DataDog/zstd v1.5.2
github.com/NYTimes/gziphandler v1.1.1
github.com/antithesishq/antithesis-sdk-go v0.3.8
github.com/ava-labs/coreth v0.13.9-rc.2-encapsulate-signer
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a corresponding PR to coreth for this change? Wondering what this diff is for

Copy link
Contributor Author

Choose a reason for hiding this comment

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

quite minimal. I can't really create a final version until this one is merged since I'd need to tag it.. but these are the expected changes : ava-labs/coreth#710

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