pub struct ECVRFKeyPair {
pub pk: ECVRFPublicKey,
pub sk: ECVRFPrivateKey,
}Fields§
§pk: ECVRFPublicKey§sk: ECVRFPrivateKeyImplementations§
Source§impl ECVRFKeyPair
impl ECVRFKeyPair
pub fn public_key(&self) -> RistrettoPoint
Trait Implementations§
Source§impl Debug for ECVRFKeyPair
impl Debug for ECVRFKeyPair
Source§impl<'de> Deserialize<'de> for ECVRFKeyPair
impl<'de> Deserialize<'de> for ECVRFKeyPair
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 From<ECVRFPrivateKey> for ECVRFKeyPair
impl From<ECVRFPrivateKey> for ECVRFKeyPair
Source§fn from(sk: ECVRFPrivateKey) -> Self
fn from(sk: ECVRFPrivateKey) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ECVRFKeyPair
impl PartialEq for ECVRFKeyPair
Source§impl Serialize for ECVRFKeyPair
impl Serialize for ECVRFKeyPair
Source§impl VRFKeyPair<64> for ECVRFKeyPair
impl VRFKeyPair<64> for ECVRFKeyPair
type Proof = ECVRFProof
type PrivateKey = ECVRFPrivateKey
type PublicKey = ECVRFPublicKey
Source§fn generate<R: AllowedRng>(rng: &mut R) -> Self
fn generate<R: AllowedRng>(rng: &mut R) -> Self
Generate a new keypair using the given RNG.
Source§fn prove(&self, alpha_string: &[u8]) -> ECVRFProof
fn prove(&self, alpha_string: &[u8]) -> ECVRFProof
Generate a proof for the given input.
impl Eq for ECVRFKeyPair
impl StructuralPartialEq for ECVRFKeyPair
impl ZeroizeOnDrop for ECVRFKeyPair
Auto Trait Implementations§
impl Freeze for ECVRFKeyPair
impl RefUnwindSafe for ECVRFKeyPair
impl Send for ECVRFKeyPair
impl Sync for ECVRFKeyPair
impl Unpin for ECVRFKeyPair
impl UnwindSafe for ECVRFKeyPair
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