pub struct Signer { /* private fields */ }Expand description
Ed25519 signer for creating signatures
Implementations§
Source§impl Signer
impl Signer
Sourcepub fn public_key_bytes(&self) -> [u8; 32]
pub fn public_key_bytes(&self) -> [u8; 32]
Get the public key bytes
Sourcepub fn sign_tool_def(
&self,
tool_id: u32,
schema_hash: [u8; 32],
capabilities: u64,
) -> SignedToolDef
pub fn sign_tool_def( &self, tool_id: u32, schema_hash: [u8; 32], capabilities: u64, ) -> SignedToolDef
Sign a tool definition
Sourcepub fn sign_invocation(
&self,
tool_id: u32,
nonce: u64,
timestamp: u64,
args: &[u8],
) -> SignedInvocation
pub fn sign_invocation( &self, tool_id: u32, nonce: u64, timestamp: u64, args: &[u8], ) -> SignedInvocation
Sign an invocation
Auto Trait Implementations§
impl Freeze for Signer
impl RefUnwindSafe for Signer
impl Send for Signer
impl Sync for Signer
impl Unpin for Signer
impl UnsafeUnpin for Signer
impl UnwindSafe for Signer
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