Skip to main content

Crate ic_auth_protocol_types

Crate ic_auth_protocol_types 

Source
Expand description

Passive authentication values. Valid shape never establishes authority.

Labels and claim fields are unauthenticated data. Canonical encoding belongs to Auth; transport, proof verification, host policy and persistence are separate.

Structs§

AudienceId
Claimed network/application context, compared later with protected enrollment.
AuthRole
Exact ASCII role spelling. This names a role but grants no permissions.
CanonicalId
Exactly 32 identity bytes; every byte pattern is permitted.
CertifiedProofMaterial
Owned certified proof; successful construction authenticates nothing.
Credential
Untrusted credential retaining the exact received signed claims bytes.
DelegatedRoleGrant
Syntactically valid labels whose counts, order and authority remain unchecked.
DelegationCertificate
Certificate commitment used as the portable credential’s key-binding identity.
DelegationLeaf
Issuer leaf committed by a root-signed chain-key batch.
IssuerDelegation
Common issuer authorization fields carried by a certificate and its root leaf.
PortableClaims
Unauthenticated schema-2 credential fields.
Principal
An opaque IC identity containing at most 29 significant bytes.
RoleError
A role is empty, over 64 bytes or contains a byte outside [a-z0-9_:-].
RootBatchHeader
Root batch header for the current ECDSA/secp256k1 signing profile.
RootDelegation
Owned root authorization material; duplicated certificate/leaf fields remain distinct.
RootSignatureMaterial
Submitted ECDSA/secp256k1 signature metadata, never a trusted key selection.
ScopeLabel
An immutable, unnormalized 1–64-byte scope label.

Enums§

CredentialProof
Claimed proof variant, checked against independently protected enrollment.
MerkleStep
One ordered sibling in the current root batch Merkle proof.
PortableMechanism
A claimed mechanism, never permission to select a verifier or enroll a key.
ScopeLabelError
A scope syntax failure; lengths and offsets count UTF-8 bytes.