Skip to main content

cbor_encode_to_base64

Function cbor_encode_to_base64 

Source
pub fn cbor_encode_to_base64(value: &impl Serialize) -> String
Expand description

Serializes a value as self-describing CBOR and returns its base64 (standard alphabet) encoding.

This is useful for encoding expr_path and witness trees in the IC-Certificate header format.