pub trait Identity: Send + Sync {
// Required methods
fn sender(&self) -> Result<Principal, String>;
fn sign(&self, blob: &[u8]) -> Result<Signature, String>;
}Expand description
An Identity takes a request id and returns the Signature. It knows or represents the Principal of the sender.
Agents are assigned a single Identity object, but there can be multiple identities used.