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

Function sample_inner

nodedb-cluster/src/rpc_codec/auth_envelope.rs:151–155  ·  view source on GitHub ↗
(rpc_type: u8)

Source from the content-addressed store, hash-verified

149 use crate::rpc_codec::header::{HEADER_SIZE, write_frame};
150
151 fn sample_inner(rpc_type: u8) -> Vec<u8> {
152 let mut out = Vec::new();
153 write_frame(rpc_type, b"payload bytes", &mut out).unwrap();
154 out
155 }
156
157 #[test]
158 fn envelope_roundtrips() {

Callers 7

envelope_roundtripsFunction · 0.85
rejects_tampered_seqFunction · 0.85
rejects_tampered_innerFunction · 0.85
rejects_wrong_keyFunction · 0.85

Calls 1

write_frameFunction · 0.70

Tested by 7

envelope_roundtripsFunction · 0.68
rejects_tampered_seqFunction · 0.68
rejects_tampered_innerFunction · 0.68
rejects_wrong_keyFunction · 0.68