Crate ic_auth_types

Crate ic_auth_types 

Source

Structs§

ByteArray
Wrapper around [u8; N] to serialize and deserialize efficiently.
ByteArrayB64
Wrapper around [u8; N] to serialize and deserialize efficiently. If the serialization format is human readable (formats like JSON and YAML), it will be encoded in Base64URL. Otherwise, it will be serialized as a byte array.
ByteBuf
Wrapper around Vec<u8> to serialize and deserialize efficiently.
ByteBufB64
Wrapper around Vec<u8> to serialize and deserialize efficiently. If the serialization format is human readable (formats like JSON and YAML), it will be encoded in Base64URL. Otherwise, it will be serialized as a byte array.
Bytes
Wrapper around [u8] to serialize and deserialize efficiently.
BytesB64
Wrapper around borrowed/owned byte slice to serialize and deserialize efficiently. If the serialization format is human readable (formats like JSON and YAML), it will be encoded in Base64URL. Otherwise, it will be serialized as a byte array.
Delegation
A delegation from one key to another.
DelegationCompact
DelegationCompact is a compact representation of a Delegation. It is used to reduce the size of the delegation when it is serialized.
SignInResponse
SignedDelegation
SignedDelegation is a Delegation that has been signed by an Identity.
SignedDelegationCompact
SignedDelegationCompact is a compact representation of a SignedDelegation. It is used to reduce the size of the delegation when it is serialized.
Xid
Represents a unique identifier with 12 bytes. Based on the xid. See: https://github.com/rs/xid

Constants§

EMPTY_XID
A constant representing an empty XID (all zeros)
RAW_LEN
Length of the raw XID byte array

Functions§

canonical_cbor_into
Serializes an object as CBOR into a writer using RFC 8949 Deterministic Encoding.
canonical_cbor_into_vec
Serializes an object as CBOR into a new Vec using RFC 8949 Deterministic Encoding.
cbor_into
Serializes an object as CBOR into a writer
cbor_into_vec
Serializes an object as CBOR into a new Vec