pub struct AgentSigner { /* private fields */ }Implementations§
Source§impl AgentSigner
impl AgentSigner
pub fn generate() -> Self
pub fn from_seed(seed: [u8; 32]) -> Self
pub fn agent_id(&self) -> AgentId
pub fn verifying_key(&self) -> VerifyingKey
pub fn sign_event<P>(&self, event: Event<P>) -> Result<Envelope<P>>where
P: Serialize,
pub fn sign_request_jwt(&self, claims: &RequestJwtClaims) -> Result<String>
Auto Trait Implementations§
impl Freeze for AgentSigner
impl RefUnwindSafe for AgentSigner
impl Send for AgentSigner
impl Sync for AgentSigner
impl Unpin for AgentSigner
impl UnsafeUnpin for AgentSigner
impl UnwindSafe for AgentSigner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more