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

Method append_message

merlin/src/transcript.rs:101–103  ·  view source on GitHub ↗

Append a prover's `message` to the transcript. The `label` parameter is metadata about the message, 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], message: &[u8])

Source from the content-addressed store, hash-verified

99 /// Protocols](https://merlin.cool/use/protocol.html) section of
100 /// the Merlin website for details on labels.
101 pub fn append_message(&mut self, label: &'static [u8], message: &[u8]) {
102 self.append_message_with_non_static_label(label, message)
103 }
104
105 pub fn append_message_with_non_static_label(&mut self, label: &[u8], message: &[u8]) {
106 let data_len = encode_usize_as_u32(message.len());

Callers 13

_verifyMethod · 0.45
newMethod · 0.45
challengeMethod · 0.45
newMethod · 0.45
verifyMethod · 0.45
newMethod · 0.45
commit_bytesMethod · 0.45
append_u64Method · 0.45
equivalence_simpleFunction · 0.45
equivalence_complexFunction · 0.45
add_to_transcriptFunction · 0.45

Calls 5

encode_usize_as_u32Function · 0.85
meta_adMethod · 0.80
adMethod · 0.80
lenMethod · 0.45

Tested by 3

equivalence_simpleFunction · 0.36
equivalence_complexFunction · 0.36