pub fn encode<T: Serialize>(v: &T) -> Result<Vec<u8>>
Length-prefixed CBOR (u32 big-endian length, then the item). For a raw stream; Node::request already frames Envelope as CBOR through libp2p.
Node::request
Envelope