Skip to main content

Module core

Module core 

Source
Expand description

Core attestation types and canonical serialization.

Structs§

Attestation
Represents a 2-way key attestation between a primary identity and a device key.
CanonicalAttestationData
Data structure for canonicalizing standard attestations (link, extend).
Capability
A validated capability identifier.
Ed25519PublicKey
A 32-byte Ed25519 public key.
Ed25519Signature
A validated Ed25519 signature (64 bytes).
IdentityBundle
An identity bundle for stateless verification in CI/CD environments.
ResourceId
A validated resource identifier linking an attestation to its storage ref.
RoleParseError
Error returned when parsing an invalid role string.
SignatureLengthError
Error when constructing an Ed25519Signature from a byte slice of wrong length.
ThresholdPolicy
Policy for threshold signature operations (M-of-N).
VerifiedAttestation
An attestation that has passed signature verification.

Enums§

CapabilityError
Error type for capability parsing and validation.
Ed25519KeyError
Error type for Ed25519 public key construction.
Role
Role classification for organization members.
SignerType
The type of entity that produced a signature.

Constants§

MAX_ATTESTATION_JSON_SIZE
Maximum allowed size for a single attestation JSON input (64 KiB).
MAX_JSON_BATCH_SIZE
Maximum allowed size for JSON array inputs — chains, receipts, witness keys (1 MiB).

Functions§

canonicalize_attestation_data
Produce the canonical JSON bytes over which signatures are computed.