pub struct ECDSAVRF { /* private fields */ }Expand description
ECDSA-based VRF: proof = ECDSA sign, output = hash(proof)
Implementations§
Source§impl ECDSAVRF
impl ECDSAVRF
Sourcepub fn from_signing_key_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_signing_key_bytes(bytes: &[u8]) -> Result<Self>
Create from existing signing key bytes
Sourcepub fn verify(&self, data: &[u8], proof: &[u8]) -> Result<Vec<u8>>
pub fn verify(&self, data: &[u8], proof: &[u8]) -> Result<Vec<u8>>
Verify proof and return VRF output (hash of proof) if valid
Sourcepub fn public_key_bytes(&self) -> Vec<u8> ⓘ
pub fn public_key_bytes(&self) -> Vec<u8> ⓘ
Public key as bytes (sec1 compressed)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ECDSAVRF
impl RefUnwindSafe for ECDSAVRF
impl Send for ECDSAVRF
impl Sync for ECDSAVRF
impl Unpin for ECDSAVRF
impl UnsafeUnpin for ECDSAVRF
impl UnwindSafe for ECDSAVRF
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