Module signature
Expand description
Ed25519 plugin signature verification.
Enums§
- Signature
Mode - Signature mode controls how unsigned/unverified plugins are handled.
- Verification
Result - Result of verifying a plugin’s signature.
Functions§
- canonical_
manifest_ bytes - enforce_
signature_ policy - Check a manifest’s signature and enforce the configured signature mode.
Returns
Ok(VerificationResult)on success (or warning in permissive mode), orErr(PluginError)if the plugin should be rejected. - generate_
signing_ key - Generate a new Ed25519 key pair for plugin signing.
Returns
(pkcs8_der_bytes, public_key_hex). - public_
key_ hex - Get the hex-encoded public key from a PKCS#8 Ed25519 private key.
- sign_
manifest - Sign manifest bytes with an Ed25519 private key (PKCS#8 DER). Returns the base64url-encoded signature.
- verify_
manifest