Skip to main content

CursorSigner

Trait CursorSigner 

Source
pub trait CursorSigner: Send + Sync {
    // Required method
    fn tag(&self, msg: &[u8]) -> Vec<u8> ;
}
Expand description

Signs the cluster↔cursor binding. The concrete HMAC implementation (behind the build’s crypto provider) lives in the binary; this seam keeps the codec pure and lets tests inject a deterministic signer.

The tag MUST be a deterministic function of msg and a fleet-wide shared key, so an instance that did not create the cursor still verifies it.

Required Methods§

Source

fn tag(&self, msg: &[u8]) -> Vec<u8>

A tag authenticating msg. Same key + same msg ⇒ same tag, on every instance.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§