Skip to content

feat: implement EIP-712 typed structured data signing#68

Merged
dDevAhmed merged 1 commit intoDigiNodes:mainfrom
Mkalbani:feat/eip-712-typed-signing
Mar 29, 2026
Merged

feat: implement EIP-712 typed structured data signing#68
dDevAhmed merged 1 commit intoDigiNodes:mainfrom
Mkalbani:feat/eip-712-typed-signing

Conversation

@Mkalbani
Copy link
Copy Markdown
Contributor

closes #52

  • Add EIP712Verifier contract with domain separator
  • Implement ClaimSubmission typed data schema
  • Implement VerificationIntent typed data schema
  • Add signature verification with ECDSA recovery
  • Include nonce-based replay protection
  • Track used signatures to prevent reuse
  • Add helper functions for off-chain hash generation
  • Add comprehensive test suite covering:
    • Valid signature verification
    • Invalid signature rejection
    • Expired signature rejection
    • Replay attack prevention
    • Nonce increment verification
    • Hash generation consistency

- Add EIP712Verifier contract with domain separator
- Implement ClaimSubmission typed data schema
- Implement VerificationIntent typed data schema
- Add signature verification with ECDSA recovery
- Include nonce-based replay protection
- Track used signatures to prevent reuse
- Add helper functions for off-chain hash generation
- Add comprehensive test suite covering:
  - Valid signature verification
  - Invalid signature rejection
  - Expired signature rejection
  - Replay attack prevention
  - Nonce increment verification
  - Hash generation consistency
@dDevAhmed dDevAhmed merged commit 4c96a8c into DigiNodes:main Mar 29, 2026
0 of 3 checks passed
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.

Add EIP-712 Typed Data Signing

2 participants