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

StorageCircuit - Error when key doesn't exist #17

Closed
zemse opened this issue Jul 22, 2023 · 1 comment
Closed

StorageCircuit - Error when key doesn't exist #17

zemse opened this issue Jul 22, 2023 · 1 comment

Comments

@zemse
Copy link

zemse commented Jul 22, 2023

While generating storage proof for a non-existent account at a particular block height or on a non-existent/null storage slot on an account, the verification fails:

End:     Create proof ..............................................................69.599s
thread '<unnamed>' panicked at 'assertion failed: {\n
    let mut transcript_read =\n
        PoseidonTranscript::<NativeLoader,\n
                &[u8]>::from_spec(&proof[..], POSEIDON_SPEC.clone());\n
    VerificationStrategy::<_,\n
            V>::finalize(verify_proof::<_, V, _, _,\n
                    _>(params.verifier_params(), pk.get_vk(),\n
                AccumulatorStrategy::new(params.verifier_params()),\n
                &[instances.as_slice()], &mut transcript_read).unwrap())\n
}', /Users/sohamzemse/Workspace/cloned-repos/axiom-snark-verifier/snark-verifier-sdk/src/halo2.rs:125:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Expected behavior: it should still generate proof for the non-existent slots since they would have an implied value of 0.

@jonathanpwang
Copy link
Contributor

fixed in #24

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

No branches or pull requests

2 participants