referrerpolicy=no-referrer-when-downgrade
substrate_test_runtime

Type Alias EcdsaBls381Pop

Source
pub type EcdsaBls381Pop = AppSignature;

Aliased Type§

struct EcdsaBls381Pop(/* private fields */);

Implementations

Source§

impl Signature

Source

pub fn into_inner( self, ) -> CryptoBytes<sp_core::::paired_crypto::ecdsa_bls381::Signature::{constant#0}, (SignatureTag, (PairedCryptoTag, EcdsaBls381Tag))>

Convert into wrapped generic signature type.

Trait Implementations

Source§

impl AppCrypto for Signature

Source§

const ID: KeyTypeId = sp_core::testing::ECDSA_BLS381

Identifier for application-specific key type.
Source§

const CRYPTO_ID: CryptoTypeId = super::CRYPTO_ID

Identifier of the crypto type of this application-specific key type.
Source§

type Public = Public

The corresponding public key type in this application scheme.
Source§

type Pair = Pair

The corresponding key pair type in this application scheme.
Source§

type Signature = Signature

The corresponding signature type in this application scheme.
Source§

impl AppSignature for Signature

Source§

type Generic = CryptoBytes<sp_core::::paired_crypto::ecdsa_bls381::Signature::{constant#0}, (SignatureTag, (PairedCryptoTag, EcdsaBls381Tag))>

The wrapped type which is just a plain instance of Signature.
Source§

impl AsMut<[u8]> for Signature

Source§

fn as_mut(&mut self) -> &mut [u8]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<CryptoBytes<sp_core::::paired_crypto::ecdsa_bls381::Signature::{constant#0}, (SignatureTag, (PairedCryptoTag, EcdsaBls381Tag))>> for Signature

Source§

fn as_mut( &mut self, ) -> &mut CryptoBytes<sp_core::::paired_crypto::ecdsa_bls381::Signature::{constant#0}, (SignatureTag, (PairedCryptoTag, EcdsaBls381Tag))>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsRef<[u8]> for Signature

Source§

fn as_ref(&self) -> &[u8]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<CryptoBytes<sp_core::::paired_crypto::ecdsa_bls381::Signature::{constant#0}, (SignatureTag, (PairedCryptoTag, EcdsaBls381Tag))>> for Signature

Source§

fn as_ref( &self, ) -> &CryptoBytes<sp_core::::paired_crypto::ecdsa_bls381::Signature::{constant#0}, (SignatureTag, (PairedCryptoTag, EcdsaBls381Tag))>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl ByteArray for Signature

Source§

const LEN: usize = 177usize

The “length” of the values of this type, which is always the same.
Source§

fn from_slice(data: &[u8]) -> Result<Self, ()>

A new instance from the given slice that should be Self::LEN bytes long.
Source§

fn to_raw_vec(&self) -> Vec<u8>

Return a Vec<u8> filled with raw data.
Source§

fn as_slice(&self) -> &[u8]

Return a slice filled with raw data.
Source§

impl Clone for Signature

Source§

fn clone(&self) -> Signature

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl CryptoType for Signature

Source§

type Pair = Pair

The pair key type of this crypto.
Source§

impl Debug for Signature

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Decode for Signature

Source§

fn decode<__CodecInputEdqy>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Signature, Error>
where __CodecInputEdqy: Input,

Attempt to deserialise the value from input.
§

fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self>, ) -> Result<DecodeFinished, Error>
where I: Input,

Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§

fn skip<I>(input: &mut I) -> Result<(), Error>
where I: Input,

Attempt to skip the encoded value from input. Read more
§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
Source§

impl Deref for Signature

Source§

type Target = [u8]

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<Signature as Deref>::Target

Dereferences the value.
Source§

impl Encode for Signature

Source§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
Source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
where __CodecOutputEdqy: Output + ?Sized,

Convert self to a slice and append it to the destination.
Source§

fn encode(&self) -> Vec<u8>

Convert self to an owned vector.
Source§

fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>( &self, f: __CodecUsingEncodedCallback, ) -> __CodecOutputReturn
where __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn,

Convert self to a slice and then invoke the given closure with it.
§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
Source§

impl From<CryptoBytes<sp_core::::paired_crypto::ecdsa_bls381::Signature::{constant#0}, (SignatureTag, (PairedCryptoTag, EcdsaBls381Tag))>> for Signature

Source§

fn from( inner: CryptoBytes<sp_core::::paired_crypto::ecdsa_bls381::Signature::{constant#0}, (SignatureTag, (PairedCryptoTag, EcdsaBls381Tag))>, ) -> Signature

Converts to this type from the input type.
Source§

impl Hash for Signature

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Signature

Source§

fn eq(&self, other: &Signature) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> TryFrom<&'a [u8]> for Signature

Source§

type Error = ()

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

fn try_from( data: &'a [u8], ) -> Result<Signature, <Signature as TryFrom<&'a [u8]>>::Error>

Performs the conversion.
Source§

impl TryFrom<Vec<u8>> for Signature

Source§

type Error = ()

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

fn try_from( data: Vec<u8>, ) -> Result<Signature, <Signature as TryFrom<Vec<u8>>>::Error>

Performs the conversion.
Source§

impl TypeInfo for Signature

Source§

type Identity = Signature

The type identifying for which type info is provided. Read more
Source§

fn type_info() -> Type

Returns the static type identifier for Self.
Source§

impl Wraps for Signature

Source§

type Inner = CryptoBytes<sp_core::::paired_crypto::ecdsa_bls381::Signature::{constant#0}, (SignatureTag, (PairedCryptoTag, EcdsaBls381Tag))>

The inner type it is wrapping.
Source§

fn as_inner_ref(&self) -> &Self::Inner

Get a reference to the inner type that is wrapped.
Source§

impl DecodeWithMemTracking for Signature

Source§

impl EncodeLike for Signature

Source§

impl Eq for Signature

Source§

impl Signature for Signature

Source§

impl StructuralPartialEq for Signature