pub fn encode(
c: &Compact,
held: &[Catalog],
revisions: &[&Contract],
) -> Result<Vec<u8>, EncodeError>Expand description
Writes a descriptor’s compact form (core §3.3, “The layout” and
“Writing”), with the catalogs its owner holds and the revisions it
implements: the entries ordered by index (an index twice in the order
given), each list’s items by resource, every bit of one capability
alike. Its minor, profiles, each reason, meta but its zid,
and a capability no listed revision gates on are left out.
§Errors
Why the descriptor has no compact form.