Type Alias sp_core::crypto_bytes::SignatureBytes
source · pub type SignatureBytes<const N: usize, SubTag> = CryptoBytes<N, (SignatureTag, SubTag)>;
Expand description
Generic encoded signature.
Aliased Type§
struct SignatureBytes<const N: usize, SubTag>(pub [u8; N], _);
Fields§
§0: [u8; N]
Implementations
source§impl<T> CryptoBytes<32, T>
impl<T> CryptoBytes<32, T>
source§impl<T> CryptoBytes<64, T>
impl<T> CryptoBytes<64, T>
source§impl<const N: usize, T> CryptoBytes<N, T>
impl<const N: usize, T> CryptoBytes<N, T>
source§impl CryptoBytes<SIGNATURE_SERIALIZED_SIZE, (SignatureTag, EcdsaTag)>
impl CryptoBytes<SIGNATURE_SERIALIZED_SIZE, (SignatureTag, EcdsaTag)>
Trait Implementations§
source§impl<const N: usize, SubTag> Debug for SignatureBytes<N, SubTag>where
Self: CryptoType,
impl<const N: usize, SubTag> Debug for SignatureBytes<N, SubTag>where
Self: CryptoType,
source§impl<'de, const N: usize, SubTag> Deserialize<'de> for SignatureBytes<N, SubTag>where
Self: CryptoType,
impl<'de, const N: usize, SubTag> Deserialize<'de> for SignatureBytes<N, SubTag>where
Self: CryptoType,
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<const N: usize, SubTag> Serialize for SignatureBytes<N, SubTag>where
Self: CryptoType,
impl<const N: usize, SubTag> Serialize for SignatureBytes<N, SubTag>where
Self: CryptoType,
impl<const N: usize, SubTag> Signature for SignatureBytes<N, SubTag>where
Self: CryptoType,
source§impl<const N: usize, T> ByteArray for CryptoBytes<N, T>
impl<const N: usize, T> ByteArray for CryptoBytes<N, T>
source§impl<const N: usize, T> Clone for CryptoBytes<N, T>
impl<const N: usize, T> Clone for CryptoBytes<N, T>
source§impl<const N: usize, T> Decode for CryptoBytes<N, T>
impl<const N: usize, T> Decode for CryptoBytes<N, T>
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
source§fn decode_into<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
dst_: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>
fn decode_into<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, dst_: &mut MaybeUninit<Self>, ) -> Result<DecodeFinished, Error>
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
source§impl<const N: usize, T> Default for CryptoBytes<N, T>
impl<const N: usize, T> Default for CryptoBytes<N, T>
source§impl<const N: usize, T> Deref for CryptoBytes<N, T>
impl<const N: usize, T> Deref for CryptoBytes<N, T>
source§impl<const N: usize, T> Encode for CryptoBytes<N, T>
impl<const N: usize, T> Encode for CryptoBytes<N, T>
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: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl<const N: usize, T> FromEntropy for CryptoBytes<N, T>
impl<const N: usize, T> FromEntropy for CryptoBytes<N, T>
source§impl<const N: usize, T> Hash for CryptoBytes<N, T>
impl<const N: usize, T> Hash for CryptoBytes<N, T>
source§impl<const N: usize, T> MaxEncodedLen for CryptoBytes<N, T>
impl<const N: usize, T> MaxEncodedLen for CryptoBytes<N, T>
source§fn max_encoded_len() -> usize
fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.
source§impl<const N: usize, T> Ord for CryptoBytes<N, T>
impl<const N: usize, T> Ord for CryptoBytes<N, T>
source§impl<const N: usize, T> PartialEq for CryptoBytes<N, T>
impl<const N: usize, T> PartialEq for CryptoBytes<N, T>
source§impl<const N: usize, T> PartialOrd for CryptoBytes<N, T>
impl<const N: usize, T> PartialOrd for CryptoBytes<N, T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<const N: usize, T> PassBy for CryptoBytes<N, T>
impl<const N: usize, T> PassBy for CryptoBytes<N, T>
source§impl<const N: usize, T> PassByInner for CryptoBytes<N, T>
impl<const N: usize, T> PassByInner for CryptoBytes<N, T>
source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Consumes
self
and returns the inner type.source§fn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Construct
Self
from the given inner
.source§impl<const N: usize, T> TypeInfo for CryptoBytes<N, T>
impl<const N: usize, T> TypeInfo for CryptoBytes<N, T>
source§impl<const N: usize, T> UncheckedFrom<[u8; N]> for CryptoBytes<N, T>
impl<const N: usize, T> UncheckedFrom<[u8; N]> for CryptoBytes<N, T>
source§fn unchecked_from(data: [u8; N]) -> Self
fn unchecked_from(data: [u8; N]) -> Self
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.source§impl<T> UncheckedFrom<H256> for CryptoBytes<32, T>
impl<T> UncheckedFrom<H256> for CryptoBytes<32, T>
source§fn unchecked_from(x: H256) -> Self
fn unchecked_from(x: H256) -> Self
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.