Skip to main content

encode_publication

Function encode_publication 

Source
pub fn encode_publication(
    sender: NodeId,
    template: &[&[u8]],
    committed: Prefix,
    metadata: &mut [u8],
    limits: WireLimits,
) -> Result<PrepareEncoding, WireError>
Expand description

Reframe an actor-owned PREPARE template without copying or hashing its body. The caller retains the original, already validated payload for publication.