Trait sui_types::crypto::Signer

pub trait Signer<Sig> {
    // Required method
    fn sign(&self, msg: &[u8]) -> Sig;
}
Expand description

Trait impl’d by a key/keypair that can create signatures.

Required Methods§

fn sign(&self, msg: &[u8]) -> Sig

Create a new signature over a message.

Implementors§

source§

impl Signer<Signature> for SuiKeyPair

source§

impl Signer<Signature> for Ed25519KeyPair

source§

impl Signer<Signature> for Secp256k1KeyPair

source§

impl Signer<Signature> for Secp256r1KeyPair

§

impl Signer<BLS12381Signature> for BLS12381KeyPair

§

impl Signer<BLS12381Signature> for BLS12381KeyPair

§

impl Signer<BLS12381Signature> for BLS12381PrivateKey

§

impl Signer<BLS12381Signature> for BLS12381PrivateKey

§

impl Signer<Ed25519Signature> for Ed25519KeyPair

§

impl Signer<Secp256k1Signature> for Secp256k1KeyPair

§

impl Signer<Secp256r1Signature> for Secp256r1KeyPair