Skip to main content

serialize

Function serialize 

Source
pub fn serialize(obj: &Object) -> Result<Vec<u8>, MkitError>
Expand description

Serialize an Object to its canonical byte form. Allocates fresh each call; the result is fully owned.

Returns MkitError::OversizePayload if any length-prefixed field exceeds the wire-format u32 cap, and MkitError::InvalidIdentity if the object carries a structurally invalid Identity.