Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

VerifierTrait

Fully qualified path: snforge_std::signature::VerifierTrait

pub trait VerifierTrait<T, H, U>

Trait functions

verify

self - KeyPair used for verifying message_hash - input to verify bounded by the curve type (u256 for 256bit curves, felt252 for StarkCurve) signature - the signature components (usually r,s tuple) Returns a boolean representing the validity of the signature

Fully qualified path: snforge_std::signature::VerifierTrait::verify

fn verify<T, H, U, T, H, U>(self: T, message_hash: H, signature: U) -> bool