Expand description
Shared cryptographic primitives for Kontor PoR (prepare_file, encode, Merkle). No dependency on nova-snark; suitable for WASM and CLI.
Re-exports§
pub use prepare::compute_file_id;pub use prepare::compute_object_id;pub use prepare::prepare_file;pub use prepare::reconstruct_file;pub use prepare::validate_and_encode;pub use prepare::EncodedFile;pub use types::FileMetadata;pub use types::PreparedFile;
Modules§
- config
- Shared configuration constants for prepare_file / encode / build_tree.
- erasure
- Reed-Solomon erasure coding for Kontor PoR (31-byte symbols, multi-codeword).
- error
- Error types for prepare_file / encode / build_tree.
- merkle
- Merkle tree construction for Kontor PoR (Poseidon, domain-tagged).
- poseidon
- Poseidon hash for Pallas scalar field, arity 2, Strength::Standard. Compatible with nova-snark’s Sponge API (same constants and permutation). Uses halo2curves::pasta::Fq so constants match Nova (same as kontor-crypto FieldElement).
- prepare
- prepare_file and reconstruct_file using core primitives.
- types
- Core types for prepare_file: FileMetadata and PreparedFile.
- utils
- Field conversion utilities for Pallas scalar (31-byte chunks).