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

feat: snip-12 typed data parsing and hashing #686

Merged
merged 1 commit into from
Jan 2, 2025
Merged

Conversation

xJonathanLEI
Copy link
Owner

Resolves #671.

Adds a new type TypedData that's deserializable from JSON. Computing message hashes is supported with the .message_hash() function.

Test cases are generated with a patched fork of starknet.js with these 2 pending PRs picked:

@xJonathanLEI xJonathanLEI merged commit 549b639 into master Jan 2, 2025
27 checks passed
@xJonathanLEI xJonathanLEI deleted the dev/snip_12 branch January 2, 2025 11:42
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.

Implement SNIP-12 for typed message signing
1 participant