Expand description
SignaturePlugin trait — the Rust-side counterpart of the
asymmetric signature v0 wire protocol.
The signature interface has three object types: a signer (holds the secret key), a verifier (holds the public key), and a keypair generator. A single plugin implements all three.
Plugin authors implement this trait on a state type that represents
the signer/verifier context, then apply
#[plugin_interface(name = "signature", version = 0)] to the impl
block.
The FFI surface splits symbols into cfmp_sig_signer_*,
cfmp_sig_verifier_*, and cfmp_sig_keypair_generate. The trait
methods map to these symbols.
See crates/confium-core/src/ffi/signature.rs for the loader-side
wire types.
Structs§
- Signature
Keypair - A keypair generation result.
Traits§
- Signature
Plugin - Trait implemented by signature plugins. The type
Selfserves as both the signer and verifier state — the plugin dispatches internally based on which entry points are called.