pub trait CheckpointSigner {
// Required methods
fn sign(&self, signing_input: &[u8]) -> Result<Vec<u8>, LedgerError>;
fn ledger_id(&self) -> &Did;
}Expand description
The injection seam for checkpoint signing (mirrors mac::audit::AuditSigner).
PLAN DECISION 8: the seam exists for key/policy injection, not
optionality. The production impl (service layer) wraps
hyprstream_crypto::cose_sign::sign_composite and is policy-aware
(Hybrid/Classical); tests supply a deterministic signer. hyprstream-crypto
is an unconditional dependency — a build that cannot sign checkpoints must not
exist.
Required Methods§
Sourcefn sign(&self, signing_input: &[u8]) -> Result<Vec<u8>, LedgerError>
fn sign(&self, signing_input: &[u8]) -> Result<Vec<u8>, LedgerError>
Sign the domain-separated signing input (see checkpoint_signing_input).