referrerpolicy=no-referrer-when-downgrade
bp_beefy

Type Alias EcdsaValidatorId

pub type EcdsaValidatorId = Public;
Expand description

Identity of a BEEFY authority using ECDSA as its crypto.

Aliased Type§

struct EcdsaValidatorId(/* private fields */);

Implementations

§

impl Public

pub fn into_inner( self, ) -> CryptoBytes<sp_core::::ecdsa::Public::{constant#0}, (PublicTag, EcdsaTag)>

Convert into wrapped generic public key type.

Trait Implementations

§

impl AppCrypto for Public

§

const ID: KeyTypeId = KEY_TYPE

Identifier for application-specific key type.
§

const CRYPTO_ID: CryptoTypeId = ecdsa::CRYPTO_ID

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

type Public = Public

The corresponding public key type in this application scheme.
§

type Pair = Pair

The corresponding key pair type in this application scheme.
§

type Signature = Signature

The corresponding signature type in this application scheme.
§

impl AppPublic for Public

§

type Generic = CryptoBytes<sp_core::::ecdsa::Public::{constant#0}, (PublicTag, EcdsaTag)>

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

impl AsMut<[u8]> for Public

§

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

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

impl AsMut<CryptoBytes<sp_core::::ecdsa::Public::{constant#0}, (PublicTag, EcdsaTag)>> for Public

§

fn as_mut( &mut self, ) -> &mut CryptoBytes<sp_core::::ecdsa::Public::{constant#0}, (PublicTag, EcdsaTag)>

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

impl AsRef<[u8]> for Public

§

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

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

impl AsRef<CryptoBytes<sp_core::::ecdsa::Public::{constant#0}, (PublicTag, EcdsaTag)>> for Public

§

fn as_ref( &self, ) -> &CryptoBytes<sp_core::::ecdsa::Public::{constant#0}, (PublicTag, EcdsaTag)>

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

impl AuthorityIdBound for Public

§

type BoundedSignature = Signature

Necessary bounds on the Signature associated with the AuthorityId
§

impl<MsgHash> BeefyAuthorityId<MsgHash> for Public
where MsgHash: Hash, <MsgHash as Hash>::Output: Into<[u8; 32]>,

§

fn verify( &self, signature: &<Public as RuntimeAppPublic>::Signature, msg: &[u8], ) -> bool

Verify a signature. Read more
§

impl ByteArray for Public

§

const LEN: usize = 33usize

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

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

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

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

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

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

Return a slice filled with raw data.
§

impl Clone for Public

§

fn clone(&self) -> Public

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
§

impl CryptoType for Public

§

type Pair = Pair

The pair key type of this crypto.
§

impl Debug for Public

§

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

Formats the value using the given formatter. Read more
§

impl Decode for Public

§

fn decode<__CodecInputEdqy>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Public, 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
§

impl Derive for Public

§

fn derive<Iter>(&self, path: Iter) -> Option<Public>
where Iter: Iterator<Item = DeriveJunction>,

Derive a child key from a series of given junctions. Read more
§

impl<'de> Deserialize<'de> for Public

§

fn deserialize<D>( deserializer: D, ) -> Result<Public, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Display for Public

§

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

Formats the value using the given formatter. Read more
§

impl Encode for Public

§

fn size_hint(&self) -> usize

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

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.
§

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

Convert self to an owned vector.
§

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
§

impl From<CryptoBytes<sp_core::::ecdsa::Public::{constant#0}, (PublicTag, EcdsaTag)>> for Public

§

fn from( inner: CryptoBytes<sp_core::::ecdsa::Public::{constant#0}, (PublicTag, EcdsaTag)>, ) -> Public

Converts to this type from the input type.
§

impl From<Keyring<Public>> for Public

§

fn from(k: Keyring<Public>) -> Public

Converts to this type from the input type.
§

impl Hash for Public

§

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
§

impl MaxEncodedLen for Public

§

fn max_encoded_len() -> usize

Upper bound, in bytes, of the maximum encoded size of this item.
§

impl Ord for Public

§

fn cmp(&self, other: &Public) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
§

impl PartialEq for Public

§

fn eq(&self, other: &Public) -> 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.
§

impl PartialOrd for Public

§

fn partial_cmp(&self, other: &Public) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
§

impl Serialize for Public

§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

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

§

type Error = ()

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

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

Performs the conversion.
§

impl TypeInfo for Public

§

type Identity = Public

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

fn type_info() -> Type

Returns the static type identifier for Self.
§

impl Wraps for Public

§

type Inner = CryptoBytes<sp_core::::ecdsa::Public::{constant#0}, (PublicTag, EcdsaTag)>

The inner type it is wrapping.
§

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

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

impl DecodeWithMemTracking for Public

§

impl EncodeLike for Public

§

impl Eq for Public

§

impl Public for Public

§

impl StructuralPartialEq for Public