SignerTrait
Fully qualified path: snforge_std::signature::SignerTrait
pub trait SignerTrait<T, H, U>
Trait functions
sign
Signs given message hash self
- KeyPair used for signing message_hash
- input to sign bounded by the curve type (u256 for 256bit curves, felt252 for StarkCurve) Returns the signature components (usually r,s tuple) or error
Fully qualified path: snforge_std::signature::SignerTrait::sign
fn sign(self: T, message_hash: H) -> Result<U, SignError>