You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creation of KeccakTranscript, which is completely separate from ShakeTranscript, both of which implement TranscriptCodec and are therefore usable in NISigmaProtocol.
- KeccakTranscript aims to approximate the test vectors of the Sage implementation.
Copy file name to clipboardExpand all lines: src/toolbox/sigma/transcript/trait.rs
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,13 @@
4
4
5
5
use group::Group;
6
6
7
+
pubtraitDuplexSpongeInterface{
8
+
fnnew(iv:&[u8]) -> Self;
9
+
10
+
fnabsorb(&mutself,input:&[u8]);
11
+
12
+
fnsqueeze(&mutself,length:usize) -> Vec<u8>;
13
+
}
7
14
/// A trait defining the behavior of a domain-separated transcript hashing, which is typically used for Sigma Protocols.
8
15
///
9
16
/// A domain-separated hashing transcript is a transcript, identified by a domain, which is incremented with successive messages ("absorb"). The transcript can then output a bit stream of any length, which is typically used to generate a challenge unique to the given transcript ("squeeze"). (See Sponge Construction).
0 commit comments