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

2
src/constants.rs Normal file
View File

@@ -0,0 +1,2 @@
pub(crate) const NUM_CHALLENGE_BITS: usize = 128;
pub(crate) const NUM_HASH_BITS: usize = 250;