MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / change_bundle

Function change_bundle

libatomic/src/daemon/sandbox_wire.rs:338–344  ·  view source on GitHub ↗

Wrap already-produced change bytes without conversion or validation. The recipient must validate the payload and claimed identity before storing it.

(hash: &Hash, bytes: Vec<u8>)

Source from the content-addressed store, hash-verified

336/// Wrap already-produced change bytes without conversion or validation. The
337/// recipient must validate the payload and claimed identity before storing it.
338pub fn change_bundle(hash: &Hash, bytes: Vec<u8>) -> pb::ChangeBundle {
339 pb::ChangeBundle {
340 hash: Some(hash_proto(hash)),
341 schema: change_schema(&bytes).to_string(),
342 payload: bytes,
343 }
344}
345
346/// Unwrap an interchange envelope without converting its payload. Legacy v3
347/// and empty labels remain accepted, including schema-5 bytes sent by older

Calls 2

change_schemaFunction · 0.85
hash_protoFunction · 0.70