Skip to content

Conversation

@varun-doshi
Copy link
Contributor

Essentially the solution proposed in #7
Changes

let packed_leaves = poseidon_sponge::<PackedF, _, _, _>

to:

let packed_leaves = poseidon_sponge::<PackedF, _, MERGE_COMPRESSION_WIDTH, HASH_LEN>

This does not close #15 yet as I still get the following build error:

warning: build failed, waiting for other jobs to finish...
error: target is not supported, for more information see: https://docs.rs/getrandom/#unsupported-targets
   --> /Users/varundoshi/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.2.16/src/lib.rs:351:9
    |
351 | /         compile_error!("target is not supported, for more information see: \
352 | |                         https://docs.rs/getrandom/#unsupported-targets");
    | |________________________________________________________________________^

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `imp`
   --> /Users/varundoshi/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.2.16/src/lib.rs:402:9
    |
402 |         imp::getrandom_inner(dest)?;
    |         ^^^ use of unresolved module or unlinked crate `imp`
    |
    = help: if you wanted to use a crate named `imp`, use `cargo add imp` to add it to your `Cargo.toml`

For more information about this error, try `rustc --explain E0433`.
error: could not compile `getrandom` (lib) due to 2 previous errors

This seems to be an issue with the ring crate being used.

@tcoratger tcoratger merged commit 3f1117f into leanEthereum:main Nov 27, 2025
2 checks passed
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.

simd: apply packing for tree leaves #5 breaks Ream's zkVM compatibility with SP1/Risc0

2 participants