referrerpolicy=no-referrer-when-downgrade
sp_core::crypto_bytes

Type Alias 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]

Trait Implementations§

Source§

impl<const N: usize, SubTag> Debug for SignatureBytes<N, SubTag>
where Self: CryptoType,

Source§

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

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

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>,

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

impl<const N: usize, SubTag> Serialize for SignatureBytes<N, SubTag>
where Self: CryptoType,

Source§

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

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

impl<const N: usize, SubTag> Signature for SignatureBytes<N, SubTag>
where Self: CryptoType,