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

Method append

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

Source from the content-addressed store, hash-verified

64
65impl Transcript for MerlinTranscript {
66 fn append<S: CanonicalSerialize>(&mut self, label: &'static [u8], element: &S) {
67 let mut buff: Vec<u8> = vec![0; element.compressed_size()];
68 element
69 .serialize_compressed(&mut buff)
70 .expect("serialization failed");
71 self.merlin.append_message(label, &buff);
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()];

Callers 15

transcriptFunction · 0.80
extendMethod · 0.80
par_extendMethod · 0.80
doubleMethod · 0.80
legogroth16_aggregationFunction · 0.80
groth16_aggregationFunction · 0.80
prove_commitment_wFunction · 0.80
verify_aggregate_proofFunction · 0.80

Calls 1

append_messageMethod · 0.45

Tested by 15

transcriptFunction · 0.64
legogroth16_aggregationFunction · 0.64
groth16_aggregationFunction · 0.64
point_additionFunction · 0.64
scalar_multFunction · 0.64
product_committed_valuesFunction · 0.64