Documentation
¶
Overview ¶
Package agentkey handles the agent's Ed25519 identity key: generation, PEM persistence, JWKS publication, and JWT-Bearer assertion signing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWK ¶
type JWK struct {
Kty string `json:"kty"`
Crv string `json:"crv"`
X string `json:"x"`
Kid string `json:"kid"`
Use string `json:"use"`
Alg string `json:"alg"`
}
JWK is a single JSON Web Key for an Ed25519 public key (OKP).
type Key ¶
type Key struct {
Priv ed25519.PrivateKey
KID string
}
Key wraps an Ed25519 private key plus its key id.
func LoadOrGenerate ¶
LoadOrGenerate loads the key from path, or generates and persists a new one (PEM, 0600) using kid when the file does not exist. It reports whether a new key was created.
Click to show internal directories.
Click to hide internal directories.