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: Use tail public inputs as transaction hash (WIP) #11100

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

sirasistant
Copy link
Collaborator

@sirasistant sirasistant commented Jan 8, 2025

Implements #9269
Separates the role of the first nullifier and the transaction hash. The transaction hash is now the hash of the tail public inputs. The first nullifier is still used for note uniqueness and replayability protection

Copy link
Contributor

github-actions bot commented Jan 8, 2025

Changes to circuit sizes

Generated at commit: b3736ef3a8faa8b25c526e1f40ab5803cf8cc700, compared to commit: 90cd9d22b5da29ef0c989fb9a41f91b9401cc294

🧾 Summary (100% most significant diffs)

Program ACIR opcodes (+/-) % Circuit size (+/-) %
rollup_base_public +2,463 ❌ +0.29% +49,280 ❌ +1.31%
rollup_base_private +1,045 ❌ +0.19% +20,959 ❌ +0.94%

Full diff report 👇
Program ACIR opcodes (+/-) % Circuit size (+/-) %
rollup_base_public 851,876 (+2,463) +0.29% 3,798,282 (+49,280) +1.31%
rollup_base_private 558,138 (+1,045) +0.19% 2,243,700 (+20,959) +0.94%

@sirasistant sirasistant added e2e-all CI: Enables this CI job. network-all Run this CI job. labels Jan 9, 2025
@@ -290,7 +290,7 @@ export class PublicProcessor implements Traceable {
return [result, failed, returns];
}

@trackSpan('PublicProcessor.processTx', tx => ({ [Attributes.TX_HASH]: tx.tryGetTxHash()?.toString() }))
@trackSpan('PublicProcessor.processTx', tx => ({ [Attributes.TX_HASH]: tx.getTxHash()?.toString() }))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't need ? here anymore!

Copy link
Collaborator

@LeilaWang LeilaWang left a comment

Choose a reason for hiding this comment

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

Lovely! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e-all CI: Enables this CI job. network-all Run this CI job.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants