MCPcopy Create free account
hub / github.com/docknetwork/crypto / challenge_bytes

Method challenge_bytes

merlin/src/transcript.rs:184–186  ·  view source on GitHub ↗

Fill the supplied buffer with the verifier's challenge bytes. The `label` parameter is metadata about the challenge, and is also appended to the transcript. See the [Transcript Protocols](https://merlin.cool/use/protocol.html) section of the Merlin website for details on labels.

(&mut self, label: &'static [u8], dest: &mut [u8])

Source from the content-addressed store, hash-verified

182 /// Protocols](https://merlin.cool/use/protocol.html) section of
183 /// the Merlin website for details on labels.
184 pub fn challenge_bytes(&mut self, label: &'static [u8], dest: &mut [u8]) {
185 self.challenge_bytes_with_non_static_label(label, dest)
186 }
187
188 pub fn challenge_bytes_with_non_static_label(&mut self, label: &[u8], dest: &mut [u8]) {
189 let data_len = encode_usize_as_u32(dest.len());

Callers 6

newMethod · 0.45
verifyMethod · 0.45
newMethod · 0.45
verifyMethod · 0.45
equivalence_simpleFunction · 0.45
equivalence_complexFunction · 0.45

Calls 5

encode_usize_as_u32Function · 0.85
meta_adMethod · 0.80
prfMethod · 0.80
lenMethod · 0.45

Tested by 2

equivalence_simpleFunction · 0.36
equivalence_complexFunction · 0.36