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

Method is_zero

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

Whether this key is the all-zero sentinel. Insecure transports skip replay-detection telemetry accordingly.

(&self)

Source from the content-addressed store, hash-verified

70 /// Whether this key is the all-zero sentinel. Insecure transports
71 /// skip replay-detection telemetry accordingly.
72 pub fn is_zero(&self) -> bool {
73 self.0 == [0u8; MAC_LEN]
74 }
75}
76
77/// Redacted `Debug` — never print key bytes.

Callers 6

wait_forMethod · 0.80
validateMethod · 0.80
joinFunction · 0.80
fmtMethod · 0.80
shutdown_allMethod · 0.80
collectMethod · 0.80

Calls

no outgoing calls

Tested by 1

collectMethod · 0.64