Type Alias moonbeam_runtime::Signature
source · pub type Signature = EthereumSignature;
Expand description
Alias to 512-bit hash when used in the context of a transaction signature on the chain.
Aliased Type§
struct Signature(/* private fields */);
Trait Implementations
source§impl From<CryptoBytes<sp_core::::ecdsa::Signature::{constant#0}, (SignatureTag, EcdsaTag)>> for EthereumSignature
impl From<CryptoBytes<sp_core::::ecdsa::Signature::{constant#0}, (SignatureTag, EcdsaTag)>> for EthereumSignature
source§fn from(
x: CryptoBytes<sp_core::::ecdsa::Signature::{constant#0}, (SignatureTag, EcdsaTag)>
) -> EthereumSignature
fn from( x: CryptoBytes<sp_core::::ecdsa::Signature::{constant#0}, (SignatureTag, EcdsaTag)> ) -> EthereumSignature
Converts to this type from the input type.
source§impl From<MultiSignature> for EthereumSignature
impl From<MultiSignature> for EthereumSignature
source§fn from(signature: MultiSignature) -> EthereumSignature
fn from(signature: MultiSignature) -> EthereumSignature
Converts to this type from the input type.
source§impl Serialize for EthereumSignature
impl Serialize for EthereumSignature
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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 EncodeLike for EthereumSignature
source§impl Verify for EthereumSignature
impl Verify for EthereumSignature
§type Signer = EthereumSigner
type Signer = EthereumSigner
Type of the signer.
impl StructuralPartialEq for EthereumSignature
source§impl Debug for EthereumSignature
impl Debug for EthereumSignature
source§impl Encode for EthereumSignature
impl Encode for EthereumSignature
source§fn size_hint(&self) -> usize
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,
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 using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>(
&self,
f: __CodecUsingEncodedCallback
) -> __CodecOutputReturn
fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>( &self, f: __CodecUsingEncodedCallback ) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl<'de> Deserialize<'de> for EthereumSignature
impl<'de> Deserialize<'de> for EthereumSignature
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<EthereumSignature, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<EthereumSignature, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Decode for EthereumSignature
impl Decode for EthereumSignature
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<EthereumSignature, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<EthereumSignature, 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,
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,
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>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
source§impl TypeInfo for EthereumSignature
impl TypeInfo for EthereumSignature
source§impl PartialEq for EthereumSignature
impl PartialEq for EthereumSignature
source§fn eq(&self, other: &EthereumSignature) -> bool
fn eq(&self, other: &EthereumSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for EthereumSignature
source§impl Clone for EthereumSignature
impl Clone for EthereumSignature
source§fn clone(&self) -> EthereumSignature
fn clone(&self) -> EthereumSignature
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more