frontier_template_runtime

Type Alias 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 */);

Implementations

Source§

impl EthereumSignature

Source

pub fn new( s: CryptoBytes<sp_core::::ecdsa::Signature::{constant#0}, (SignatureTag, EcdsaTag)>, ) -> EthereumSignature

Trait Implementations

Source§

impl Clone for EthereumSignature

Source§

fn clone(&self) -> EthereumSignature

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

Source§

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

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

impl Decode for EthereumSignature

Source§

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,

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<'de> Deserialize<'de> for EthereumSignature

Source§

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 Encode for EthereumSignature

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<MultiSignature> for EthereumSignature

Source§

fn from(signature: MultiSignature) -> EthereumSignature

Converts to this type from the input type.
Source§

impl MaxEncodedLen for EthereumSignature

Source§

fn max_encoded_len() -> usize

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

impl PartialEq for EthereumSignature

Source§

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

Source§

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

impl TypeInfo for EthereumSignature

Source§

type Identity = EthereumSignature

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 Verify for EthereumSignature

Source§

type Signer = EthereumSigner

Type of the signer.
Source§

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

Verify a signature. Read more
Source§

impl DecodeWithMemTracking for EthereumSignature

Source§

impl EncodeLike for EthereumSignature

Source§

impl Eq for EthereumSignature

Source§

impl StructuralPartialEq for EthereumSignature