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

support fname signature verifications #173

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CassOnMars
Copy link
Member

No description provided.

Copy link
Contributor

@sanjayprabhu sanjayprabhu left a comment

Choose a reason for hiding this comment

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

Nice

let proof = fname_transfer.proof.as_ref().unwrap();
// TODO: Verify the EIP-712 server signature

match fname_transfer.verify_signature() {
Copy link
Contributor

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?

));
}

let json = json!({
Copy link
Contributor

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

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