MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / as_bytes

Method as_bytes

nodedb-cluster/src/rpc_codec/mac.rs:66–68  ·  view source on GitHub ↗

Raw bytes. Used for persistence only; callers must treat the return value as key material.

(&self)

Source from the content-addressed store, hash-verified

64 /// Raw bytes. Used for persistence only; callers must treat the
65 /// return value as key material.
66 pub fn as_bytes(&self) -> &[u8; MAC_LEN] {
67 &self.0
68 }
69
70 /// Whether this key is the all-zero sentinel. Insecure transports
71 /// skip replay-detection telemetry accordingly.

Callers 11

fnv1a_hashFunction · 0.45
partition_hashFunction · 0.45
array_vshard_for_nameFunction · 0.45
vshard_for_array_tileFunction · 0.45
encode_sort_key_stringFunction · 0.45
hex_decodeFunction · 0.45
addr_hashFunction · 0.45
close_on_version_errorFunction · 0.45
compute_hmacFunction · 0.45
verify_hmacFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected