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

Implements SNIP-12 #637

Draft
wants to merge 29 commits into
base: main
Choose a base branch
from
Draft

Implements SNIP-12 #637

wants to merge 29 commits into from

Conversation

thiagodeev
Copy link
Collaborator

@thiagodeev thiagodeev commented Oct 14, 2024

#636

  • create SNIP 12 types
  • NewTypedData()
    • revision 0
    • revision 1
  • GetMessageHash()
    • revision 0
    • revision 1
  • GetStructHash()
    • revision 0
    • revision 1
  • GetTypeHash()
    • revision 0
    • revision 1
  • UnmarshalJSON() for TypedData
    • revision 0
    • revision 1
  • implement Validate() method
    • validate types
    • validate domain
    • validate primary type
    • validate message
  • Implement the logic for both revisions 0 and 1
  • implement tests

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.

1 participant