-
Notifications
You must be signed in to change notification settings - Fork 18
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
support fname signature verifications #173
base: main
Are you sure you want to change the base?
Conversation
8eb258f
to
6579151
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.
Nice
src/storage/store/engine.rs
Outdated
let proof = fname_transfer.proof.as_ref().unwrap(); | ||
// TODO: Verify the EIP-712 server signature | ||
|
||
match fname_transfer.verify_signature() { |
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.
We should also do the same thing here https://github.com/farcasterxyz/snapchain-v0/blob/f5f1aff56fc11f9fb8421e6eeab9277628e35998/src/storage/store/engine.rs#L853-L855 for username proof claim signatures (I just looked and looks like we never call verifyUserNameProofClaim
in hubs, this might be a bug?) and the eth verified addresses.
Could you also implement sol verified addresses (maybe in a separate PR? upto you) before moving on to the other validations?
src/core/message.rs
Outdated
)); | ||
} | ||
|
||
let json = json!({ |
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.
We should make this a const inside validations.ts
b8febe6
to
a6f8802
Compare
The existing test failing is correct for failing, this test has invalid parameters, but we should add helpers to streamline generating valid signed payloads for tests instead. |
No description provided.