Skip to main content

Crate crypto

Crate crypto 

Source
Expand description

Cryptographic signing for Heddle states.

Structs§

Ed25519Signer
Ed25519 signer.
P256Signer
P-256 (ECDSA) signer.
RsaSigner
RSA signer.

Enums§

PemKind
The wire format inferred from a PEM blob’s BEGIN line, or Raw* when the input is just hex/base64 seed bytes with no PEM wrapper. Each variant maps to exactly one Signer constructor.
SignatureStatus
Signature verification result.
SignerError
Error type for signer operations.
StateSignatureError
Error type for state signature operations.

Traits§

Signer
Trait for cryptographic signers.
StateSigningExt

Functions§

classify_pem
Classify a PEM/raw-key blob by its header (or shape, for unwrapped seed material). Pure function — no I/O, no allocation beyond what the input trim implies.
load_signer
Load a signer from a key file. When algorithm is None, the PEM header (or raw-seed shape) selects the backend via [pem_loader::load_signer_from_pem].
public_key_bytes
signature_bytes
state_signature_from_signer
verify_payload_signature
Verify a detached signature over an arbitrary payload. Used by non-state-signature flows (e.g. ReviewSignature) that already have a canonical byte payload built upstream.
verify_state_signature
Verify a state’s signature.
verify_state_signature_bytes