Skip to main content

encode_chain

Function encode_chain 

pub fn encode_chain(chain: &[Rcan<MoqCapability>]) -> String
Expand description

Encodes a capability chain as a token, first link first.

The token is rcan1: and the lowercase, unpadded base32 of the postcard encoding of the links. A peer presents it as its session token, and a RcanVerifier reads it.