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

KeyPairTrait

Fully qualified path: snforge_std::signature::KeyPairTrait

pub trait KeyPairTrait<SK, PK>

Trait functions

generate

Generates the private and public keys using the built-in random generator

Fully qualified path: snforge_std::signature::KeyPairTrait::generate

fn generate<SK, PK, SK, PK>() -> KeyPair<SK, PK>

from_secret_key

Derives the KeyPair (secret_key + public_key) using secret_key

Fully qualified path: snforge_std::signature::KeyPairTrait::from_secret_key

fn from_secret_key<SK, PK, SK, PK>(secret_key: SK) -> KeyPair<SK, PK>