arnaucube
arnaucube/sonobePublic Self-hosted repository
sonobe/src/transcript/mod.rs
src/transcript/mod.rsRaw
 1use ark_ff::PrimeField;
 2use ark_std::fmt::Debug;
 3
 4pub mod poseidon;
 5
 6pub trait Transcript<F: PrimeField> {
 7    type TranscriptConfig: Debug;
 8
 9    fn new(config: &Self::TranscriptConfig) -> Self;
10    fn absorb(&mut self, v: &F);
11    fn absorb_vec(&mut self, v: &[F]);
12    fn get_challenge(&mut self) -> F;
13    fn get_challenges(&mut self, n: usize) -> Vec<F>;
14}