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

Added eip712 signature version to signed NFT attestation #210

Merged
merged 4 commits into from
Mar 23, 2022

Conversation

jot2re
Copy link
Collaborator

@jot2re jot2re commented Nov 26, 2021

This closes issue #201
Furthermore this PR contains quite a bit of refactoring, renaming, added tests, and cleaning up on the files I have to touch in the process.

In general I refactored things so we can use any kind of ASN encoded object in an EIP712 signature with only a couple of lines of code, this makes it easy to update and generalise to other cryptographic objects.

The main things is that we now have two versions of SignedNFTAttestation, one based on the the approach we had before (constructing an ASN object containing the signature), the other obviously uses the EIP712 approach and shows the usual EIP712 fields and a short hex field for the underlying NFTAttestation to be signed.

@jot2re
Copy link
Collaborator Author

jot2re commented Mar 23, 2022

Pushed the changes to main as they contain many refactoring. I ensured everything is backwards compatible, and validated that things work with attestation.id.

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.

Make NFTAttestation Request EIP712 MetaMask signing of NFTAttestation looks weird
1 participant