(&mut self, label: &'static [u8], element: &S)
| 64 | |
| 65 | impl 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()]; |