Truncate digest bits (#50)

* apply a hash function before adding to transcript

* truncate shape_digest into 250 bits

* add missing file

* fix clippy

* cargo fmt
This commit is contained in:
Srinath Setty
2022-05-13 10:38:43 +05:30
committed by GitHub
parent 0d53db18e3
commit ccc6dc3a04
4 changed files with 45 additions and 14 deletions

View File

@@ -3,10 +3,10 @@
#![allow(clippy::type_complexity)]
#![deny(missing_docs)]
mod commitments;
pub mod bellperson;
mod circuit;
mod commitments;
mod constants;
pub mod errors;
pub mod gadgets;
pub mod pasta;
@@ -14,14 +14,13 @@ mod poseidon;
pub mod r1cs;
pub mod traits;
use std::marker::PhantomData;
use commitments::CompressedCommitment;
use errors::NovaError;
use merlin::Transcript;
use r1cs::{
R1CSGens, R1CSInstance, R1CSShape, R1CSWitness, RelaxedR1CSInstance, RelaxedR1CSWitness,
};
use std::marker::PhantomData;
use traits::{AppendToTranscriptTrait, ChallengeTrait, Group};
/// A SNARK that holds the proof of a step of an incremental computation