mirror of
https://github.com/logos-storage/logos-storage-proofs-circuits.git
synced 2026-01-02 13:33:07 +00:00
Storage proof circom circuit
See the README in the parent dir for the (draft) specification.
Organization of the circuit code
slot_main.circom- main component, generated by testssample_cells.circom- compute cell indices to sample, prove sampled cellssingle_cell.circom- prove a single cellextract_bits.circom- extract lower bits of the standard representation of a field elementbinary_compare.circom- compare numbers given in binary representation (the point is that they can be bigger than the field size!)misc.circom- miscellaneous helper funtionsposeidon2_hash.circom- compute Poseidon2 hash with sponge constructionposeidon2_sponge.circom- generic sponge constructionposeidon2_merkle.circom- compute Poseidon2 Merkle rootposeidon2_perm.circom- the Poseidon2 permutation