pub struct Verifier;Expand description
Ed25519 verifier for checking signatures
Implementations§
Source§impl Verifier
impl Verifier
Sourcepub fn verify_tool_def(def: &SignedToolDef) -> Result<(), SecurityError>
pub fn verify_tool_def(def: &SignedToolDef) -> Result<(), SecurityError>
Verify a signed tool definition
Sourcepub fn verify_invocation(
inv: &SignedInvocation,
public_key: &[u8; 32],
) -> Result<(), SecurityError>
pub fn verify_invocation( inv: &SignedInvocation, public_key: &[u8; 32], ) -> Result<(), SecurityError>
Verify a signed invocation with a known public key
Sourcepub fn verify_args_hash(inv: &SignedInvocation, args: &[u8]) -> bool
pub fn verify_args_hash(inv: &SignedInvocation, args: &[u8]) -> bool
Verify that the args hash matches the provided arguments
Auto Trait Implementations§
impl Freeze for Verifier
impl RefUnwindSafe for Verifier
impl Send for Verifier
impl Sync for Verifier
impl Unpin for Verifier
impl UnsafeUnpin for Verifier
impl UnwindSafe for Verifier
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