(&mut self, label: &[u8], element: &S)
| 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) |
nothing calls this directly
no test coverage detected