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

chore: make sign and verify EIP-712 compatible #4

Merged
merged 9 commits into from
Oct 28, 2024

Conversation

Darlington02
Copy link
Contributor

No description provided.

@JesseTheRobot JesseTheRobot self-requested a review October 22, 2024 13:44
Copy link
Member

@JesseTheRobot JesseTheRobot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Core logic looks sound, just some minor tweaks

src/__tests__/starknet.test.ts Outdated Show resolved Hide resolved
src/constants.ts Outdated Show resolved Hide resolved
src/signing/chains/StarknetSigner.ts Show resolved Hide resolved
src/signing/chains/StarknetSigner.ts Show resolved Hide resolved
src/signing/chains/StarknetSigner.ts Outdated Show resolved Hide resolved
src/signing/chains/StarknetSigner.ts Outdated Show resolved Hide resolved
src/signing/chains/StarknetSigner.ts Outdated Show resolved Hide resolved
@Darlington02
Copy link
Contributor Author

Hey @JesseTheRobot I've fixed the suggested changes. A little caveat though is the message/tx hash within the TypedData is broken down into an array of hex values as the concatenated value particularly for DataItems are longer than required and thus throws error.

@JesseTheRobot JesseTheRobot self-requested a review October 27, 2024 16:57
Copy link
Member

@JesseTheRobot JesseTheRobot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JesseTheRobot JesseTheRobot merged commit 458224b into Irys-xyz:master Oct 28, 2024
1 check failed
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.

2 participants