pub struct HybridVerifyingKey {
pub ed25519_pk: [u8; 32],
pub ml_dsa_pk: Vec<u8>,
}Fields§
§ed25519_pk: [u8; 32]§ml_dsa_pk: Vec<u8>Implementations§
Source§impl HybridVerifyingKey
impl HybridVerifyingKey
Sourcepub fn verify(
&self,
message: &[u8],
signature: &HybridSignature,
) -> Result<(), HybridSignError>
pub fn verify( &self, message: &[u8], signature: &HybridSignature, ) -> Result<(), HybridSignError>
Both signatures must verify for the hybrid to be considered valid.
pub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn from_bytes(bytes: &[u8]) -> Result<Self, HybridSignError>
Trait Implementations§
Source§impl BorshDeserialize for HybridVerifyingKey
impl BorshDeserialize for HybridVerifyingKey
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for HybridVerifyingKey
impl BorshSerialize for HybridVerifyingKey
Source§impl Clone for HybridVerifyingKey
impl Clone for HybridVerifyingKey
Source§fn clone(&self) -> HybridVerifyingKey
fn clone(&self) -> HybridVerifyingKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HybridVerifyingKey
impl Debug for HybridVerifyingKey
impl Eq for HybridVerifyingKey
Source§impl PartialEq for HybridVerifyingKey
impl PartialEq for HybridVerifyingKey
Source§fn eq(&self, other: &HybridVerifyingKey) -> bool
fn eq(&self, other: &HybridVerifyingKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HybridVerifyingKey
Auto Trait Implementations§
impl Freeze for HybridVerifyingKey
impl RefUnwindSafe for HybridVerifyingKey
impl Send for HybridVerifyingKey
impl Sync for HybridVerifyingKey
impl Unpin for HybridVerifyingKey
impl UnsafeUnpin for HybridVerifyingKey
impl UnwindSafe for HybridVerifyingKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more