Documentation
¶
Overview ¶
Package attest signs and verifies compliance-evidence digests. It is stdlib-only (ed25519, ECDSA P-256, or ML-DSA (FIPS 204), PKCS#8 keys), adding authenticity on top of the integrity digest the evidence document already carries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fingerprint ¶
Fingerprint is a short sha256 of the signing public key, for trust display.
Types ¶
type Signature ¶
type Signature struct {
Alg string `json:"alg"`
Value string `json:"value"`
PublicKey string `json:"publicKey"`
}
Signature is a detached signature over an evidence digest, carrying the public key (SPKI DER) so it is self-verifying against a trusted fingerprint.
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
Signer holds a parsed private key and its algorithm.
func LoadSigner ¶
LoadSigner reads a PKCS#8 PEM private key (ed25519, ECDSA P-256, or ML-DSA).
Click to show internal directories.
Click to hide internal directories.