Type Alias sp_runtime::testing::sr25519::Signature

source ·
pub type Signature = CryptoBytes<sp_core::::sr25519::Signature::{constant#0}, (SignatureTag, Sr25519Tag)>;
Expand description

An Schnorrkel/Ristretto x25519 (“sr25519”) signature.

Aliased Type§

struct Signature(pub [u8; 64], _);

Fields§

§0: [u8; 64]

Trait Implementations§

source§

impl TryFrom<MultiSignature> for Signature

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(m: MultiSignature) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Verify for Signature

§

type Signer = CryptoBytes<sp_core::::sr25519::Public::{constant#0}, Sr25519PublicTag>

Type of the signer.
source§

fn verify<L: Lazy<[u8]>>(&self, msg: L, signer: &Public) -> bool

Verify a signature. Read more