Type Alias sp_core::crypto_bytes::PublicBytes

source ·
pub type PublicBytes<const N: usize, SubTag> = CryptoBytes<N, (PublicTag, SubTag)>;
Expand description

Generic encoded public key.

Aliased Type§

struct PublicBytes<const N: usize, SubTag>(pub [u8; N], _);

Fields§

§0: [u8; N]

Trait Implementations§

source§

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

source§

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

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

impl<const N: usize, SubTag> Derive for PublicBytes<N, SubTag>
where Self: CryptoType,

source§

fn derive<Iter: Iterator<Item = DeriveJunction>>( &self, _path: Iter ) -> Option<Self>

Derive a child key from a series of given junctions. Read more
source§

impl<'de, const N: usize, SubTag> Deserialize<'de> for PublicBytes<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> Display for PublicBytes<N, SubTag>
where Self: CryptoType,

source§

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

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

impl<const N: usize, SubTag> FromStr for PublicBytes<N, SubTag>
where Self: CryptoType,

§

type Err = PublicError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl<const N: usize, SubTag> Serialize for PublicBytes<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> Public for PublicBytes<N, SubTag>
where Self: CryptoType,