Skip to main content

encode_profile

Function encode_profile 

Source
pub fn encode_profile(profile: &AuthorizationProfile) -> Result<Vec<u8>, String>
Expand description

Encodes an authorization profile in the canonical version 1 format.

Owners and viewers are emitted in the normalized order exposed by the profile. An error is returned if either count cannot be represented by the format’s big-endian u32 count.