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

Method append_without_static_label

utils/src/transcript.rs:74–81  ·  view source on GitHub ↗
(&mut self, label: &[u8], element: &S)

Source from the content-addressed store, hash-verified

72 }
73
74 fn append_without_static_label<S: CanonicalSerialize>(&mut self, label: &[u8], element: &S) {
75 let mut buff: Vec<u8> = vec![0; element.compressed_size()];
76 element
77 .serialize_compressed(&mut buff)
78 .expect("serialization failed");
79 self.merlin
80 .append_message_with_non_static_label(label, &buff);
81 }
82
83 fn append_message(&mut self, label: &'static [u8], bytes: &[u8]) {
84 self.merlin.append_message(label, bytes)

Callers

nothing calls this directly

Tested by

no test coverage detected