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(gateway-types): add transaction hash calculation for 0.7 L1_HANDLER transactions #1699

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

kkovaacs
Copy link
Contributor

Starknet 0.7 introduced L1_HANDLER transactions and added a nonce to these transactions. This means that the transaction hash calculation already uses the l1_handler prefix, but it still does not include a transaction version in the hash -- so effectively it's another legacy variant.

This change makes it possible to remove the non-verifiable block range for transaction hashes.

…LER transactions

Starknet 0.7 introduced L1_HANDLER transactions and added a nonce to
these transactions. This means that the transaction hash calculation
already uses the b"l1_handler" prefix, but it still does not include
a transaction version in the hash -- so effectively it's another
legacy variant.

This change makes it possible to remove the non-verifiable block range
for transaction hashes.
@kkovaacs kkovaacs requested a review from a team as a code owner January 25, 2024 16:13
Copy link
Member

@CHr15F0x CHr15F0x left a comment

Choose a reason for hiding this comment

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

🦾 !

@kkovaacs kkovaacs merged commit 49e8426 into main Jan 25, 2024
7 checks passed
@kkovaacs kkovaacs deleted the krisztian/verify-l1-handler-tx-hashes branch January 25, 2024 17:52
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.

3 participants