pub type Public = CryptoBytes<PUBLIC_KEY_SERIALIZED_SIZE, Sr25519PublicTag>;
Expand description
An Schnorrkel/Ristretto x25519 (“sr25519”) public key.
Aliased Type§
struct Public(pub [u8; 32], _);
Fields§
§0: [u8; 32]
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Public
impl<'de> Deserialize<'de> for Public
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 VrfCrypto for Public
impl VrfCrypto for Public
§type VrfInput = VrfTranscript
type VrfInput = VrfTranscript
VRF input.
§type VrfPreOutput = VrfPreOutput
type VrfPreOutput = VrfPreOutput
VRF pre-output.
§type VrfSignData = VrfSignData
type VrfSignData = VrfSignData
VRF signing data.
§type VrfSignature = VrfSignature
type VrfSignature = VrfSignature
VRF signature.
source§impl VrfPublic for Public
impl VrfPublic for Public
source§fn vrf_verify(
&self,
data: &Self::VrfSignData,
signature: &Self::VrfSignature,
) -> bool
fn vrf_verify( &self, data: &Self::VrfSignData, signature: &Self::VrfSignature, ) -> bool
Verify input data signature.
impl Public for Public
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.