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

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<T, H, U, T, H, U>(self: T, message_hash: H) -> Result<U, SignError>