Documentation
¶
Overview ¶
Package signing holds the signature keys of grants and tokens: Ed25519, which a verifier still accepts while a move is under way, and ML-DSA-65.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Private ¶
type Private struct {
// contains filtered or unexported fields
}
Private signs.
func FromEd25519 ¶
func FromEd25519(k ed25519.PrivateKey) *Private
FromEd25519 wraps an Ed25519 key. A key whose public half does not match its seed is unusable: it signs nothing and has no public key.
func ParsePrivate ¶
ParsePrivate reads a PKCS#8 PEM block of an Ed25519 or ML-DSA-65 key. Text without a PEM block is the standard base64 of an Ed25519 private key or of its 32-byte seed.
type Public ¶
type Public struct {
// contains filtered or unexported fields
}
Public verifies. The zero value verifies nothing.
func FromEd25519Public ¶
FromEd25519Public wraps an Ed25519 public key.
func ParsePublic ¶
ParsePublic reads the standard base64 of a raw public key. The length tells the algorithm: 32 bytes is Ed25519 and 1952 bytes is ML-DSA-65.