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.