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

Use lighter primitives.wasm for merkle trees by default #238

Merged
merged 2 commits into from
Apr 11, 2023

Conversation

spalladino
Copy link
Collaborator

Merkle trees only require access to pedersen hashes, which are available on the primitives.wasm, a smaller version of bb.wasm. This PR changes merkle tree initialization to pick up that library by default. Still, when creating them from an aztec node, which will require the full circuits.wasm (since it runs rollup circuits), we use the circuits wasm to avoid loading multiple wasms unnecessarily.

Fixes #180

@spalladino spalladino requested a review from PhilWindle April 11, 2023 17:19
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.

Use primitives.wasm where possible instead of aztec3-circuits.wasm
2 participants