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

Method append_u64

merlin/src/transcript.rs:164–166  ·  view source on GitHub ↗

Convenience method for appending a `u64` 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. # Implementation Calls `append_message` with the 8-byte little-endian encoding of `x`.

(&mut self, label: &'static [u8], x: u64)

Source from the content-addressed store, hash-verified

162 /// Calls `append_message` with the 8-byte little-endian encoding
163 /// of `x`.
164 pub fn append_u64(&mut self, label: &'static [u8], x: u64) {
165 self.append_message(label, &encode_u64(x));
166 }
167
168 /// Deprecated. This function was renamed to
169 /// [`append_u64`](Transcript::append_u64).

Callers 1

commit_u64Method · 0.80

Calls 2

encode_u64Function · 0.85
append_messageMethod · 0.45

Tested by

no test coverage detected