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>
Sourcepub fn sign_controller_challenge(&self, challenge: &str) -> Result<String>
pub fn sign_controller_challenge(&self, challenge: &str) -> Result<String>
Signs an Agent Delegation controller registration challenge (Section 4.3) over its exact UTF-8 bytes. Any other string is refused, so the signer never becomes an arbitrary-message signing oracle.
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