referrerpolicy=no-referrer-when-downgrade
bp_bridge_hub_cumulus

Type Alias AccountSigner

Source
pub type AccountSigner = MultiSigner;
Expand description

Public key of the chain account that may be used to verify signatures.

Aliased Type§

enum AccountSigner {
    Ed25519(CryptoBytes<32, (PublicTag, Ed25519Tag)>),
    Sr25519(CryptoBytes<32, Sr25519PublicTag>),
    Ecdsa(CryptoBytes<33, (PublicTag, EcdsaTag)>),
}

Variants§

§

Ed25519(CryptoBytes<32, (PublicTag, Ed25519Tag)>)

An Ed25519 identity.

§

Sr25519(CryptoBytes<32, Sr25519PublicTag>)

An Sr25519 identity.

§

Ecdsa(CryptoBytes<33, (PublicTag, EcdsaTag)>)

An SECP256k1/ECDSA identity (actually, the Blake2 hash of the compressed pub key).

Trait Implementations

§

impl AsRef<[u8]> for MultiSigner

§

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

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

impl Clone for MultiSigner

§

fn clone(&self) -> MultiSigner

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 Debug for MultiSigner

§

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

Formats the value using the given formatter. Read more
§

impl Decode for MultiSigner

§

fn decode<__CodecInputEdqy>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<MultiSigner, 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<'de> Deserialize<'de> for MultiSigner

§

fn deserialize<__D>( __deserializer: __D, ) -> Result<MultiSigner, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

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

impl Display for MultiSigner

§

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

Formats the value using the given formatter. Read more
§

impl Encode for MultiSigner

§

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<R, F>(&self, f: F) -> R
where F: FnOnce(&[u8]) -> R,

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 MultiSigner

§

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

Converts to this type from the input type.
§

impl From<CryptoBytes<sp_core::::ed25519::Public::{constant#0}, (PublicTag, Ed25519Tag)>> for MultiSigner

§

fn from( x: CryptoBytes<sp_core::::ed25519::Public::{constant#0}, (PublicTag, Ed25519Tag)>, ) -> MultiSigner

Converts to this type from the input type.
§

impl FromEntropy for MultiSigner

§

fn from_entropy(input: &mut impl Input) -> Result<MultiSigner, Error>

Create a random value of Self given a stream of random bytes on input. May only fail if input has an error.
§

impl IdentifyAccount for MultiSigner

§

type AccountId = AccountId32

The account ID that this can be transformed into.
§

fn into_account(self) -> AccountId32

Transform into an account.
§

impl Ord for MultiSigner

§

fn cmp(&self, other: &MultiSigner) -> 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 MultiSigner

§

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

§

fn partial_cmp(&self, other: &MultiSigner) -> 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 MultiSigner

§

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 TypeInfo for MultiSigner

§

type Identity = MultiSigner

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

fn type_info() -> Type

Returns the static type identifier for Self.
§

impl<T> UncheckedFrom<T> for MultiSigner
where T: Into<H256>,

NOTE: This implementations is required by SimpleAddressDeterminer, we convert the hash into some AccountId, it’s fine to use any scheme.

§

fn unchecked_from(x: T) -> MultiSigner

Convert from an instance of T to Self. This is not guaranteed to be whatever counts as a valid instance of T and it’s up to the caller to ensure that it makes sense.
§

impl DecodeWithMemTracking for MultiSigner

§

impl EncodeLike for MultiSigner

§

impl Eq for MultiSigner

§

impl StructuralPartialEq for MultiSigner