-
Notifications
You must be signed in to change notification settings - Fork 13
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
Example Contract to write EIP712 credentials on chain #32
Example Contract to write EIP712 credentials on chain #32
Comments
From what I'm seeing it looks like we can't produce a valid eip 712 signature without a domain seperator https://eips.ethereum.org/EIPS/eip-712#definition-of-typed-structured-data-%F0%9D%95%8A . It seems like it would still be a valid VC but not a valid Unfortunately it doesn't look like we can build the VC without providing types to |
After further investigation we have determined that there are some differences between didkits eip712 signature and ethers/solidity. If types are not provided to the VC gneration didkit will sign an empty hash Because of this we've decided to keep the types as part of the signature. https://github.com/digitalmnt/passport-vc-verification/tree/main can still act as an example of verifying a EIP712 signed VC |
I have created this script https://github.com/nutrina/passport-vc-verification/blob/test_eip712/utils/didkitVerify.ts This works for credentials generated using: https://github.com/nutrina/passport-vc-verification/blob/test_eip712/utils/didkitSign.ts But this does not work for credentials generated with Passport (When run on my local). |
We have limited ourselves to validating the credentials with ethers, will create a SC for validation at a later point |
After the migration to compose db all VCs will be signed with an EIP712 signature type. This ticket is meant to create a solidity smart contract that verifies stamps EIP712 signed stamps
The text was updated successfully, but these errors were encountered: