Skip to main content

SuiSignatureInner

Trait SuiSignatureInner 

Source
pub trait SuiSignatureInner:
    Sized
    + ToFromBytes
    + PartialEq
    + Eq
    + Hash {
    type Sig: Authenticator<PubKey = Self::PubKey>;
    type PubKey: VerifyingKey<Sig = Self::Sig> + SuiPublicKey;
    type KeyPair: KeypairTraits<PubKey = Self::PubKey, Sig = Self::Sig>;

    const LENGTH: usize = _;
    const SCHEME: SignatureScheme = <Self::PubKey>::SIGNATURE_SCHEME;

    // Provided methods
    fn get_verification_inputs(&self) -> SuiResult<(Self::Sig, Self::PubKey)> { ... }
    fn new(kp: &Self::KeyPair, message: &[u8]) -> Self { ... }
}

Provided Associated Constants§

Source

const LENGTH: usize = _

Source

const SCHEME: SignatureScheme = <Self::PubKey>::SIGNATURE_SCHEME

Required Associated Types§

Source

type Sig: Authenticator<PubKey = Self::PubKey>

Source

type PubKey: VerifyingKey<Sig = Self::Sig> + SuiPublicKey

Source

type KeyPair: KeypairTraits<PubKey = Self::PubKey, Sig = Self::Sig>

Provided Methods§

Source

fn get_verification_inputs(&self) -> SuiResult<(Self::Sig, Self::PubKey)>

Returns the deserialized signature and deserialized pubkey.

Source

fn new(kp: &Self::KeyPair, message: &[u8]) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl SuiSignatureInner for Ed25519SuiSignature

Source§

const LENGTH: usize

Source§

type Sig = Ed25519Signature

Source§

type PubKey = Ed25519PublicKey

Source§

type KeyPair = Ed25519KeyPair

Source§

impl SuiSignatureInner for MLDSA65SuiSignature

Source§

const LENGTH: usize

Source§

type Sig = MLDSA65Signature

Source§

type PubKey = MLDSA65PublicKey

Source§

type KeyPair = MLDSA65KeyPair

Source§

impl SuiSignatureInner for Secp256k1SuiSignature

Source§

const LENGTH: usize

Source§

type Sig = Secp256k1Signature

Source§

type PubKey = Secp256k1PublicKey

Source§

type KeyPair = Secp256k1KeyPair

Source§

impl SuiSignatureInner for Secp256r1SuiSignature

Source§

const LENGTH: usize

Source§

type Sig = Secp256r1Signature

Source§

type PubKey = Secp256r1PublicKey

Source§

type KeyPair = Secp256r1KeyPair