pub struct ECVRFProof {
pub gamma: RistrettoPoint,
pub c: Challenge,
pub s: RistrettoScalar,
}Fields§
§gamma: RistrettoPoint§c: Challenge§s: RistrettoScalarImplementations§
Source§impl ECVRFProof
impl ECVRFProof
Sourcepub fn gamma_bytes(&self) -> [u8; 32]
pub fn gamma_bytes(&self) -> [u8; 32]
Get the gamma component as compressed point bytes (32 bytes)
Sourcepub fn challenge_bytes(&self) -> [u8; 16]
pub fn challenge_bytes(&self) -> [u8; 16]
Get the challenge component as bytes (16 bytes)
Sourcepub fn scalar_bytes(&self) -> [u8; 32]
pub fn scalar_bytes(&self) -> [u8; 32]
Get the scalar component as bytes (32 bytes)
Sourcepub fn from_components(
gamma_bytes: &[u8; 32],
challenge_bytes: &[u8; 16],
scalar_bytes: &[u8; 32],
) -> Result<Self, FastCryptoError>
pub fn from_components( gamma_bytes: &[u8; 32], challenge_bytes: &[u8; 16], scalar_bytes: &[u8; 32], ) -> Result<Self, FastCryptoError>
Trait Implementations§
Source§impl Debug for ECVRFProof
impl Debug for ECVRFProof
Source§impl<'de> Deserialize<'de> for ECVRFProof
impl<'de> Deserialize<'de> for ECVRFProof
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 PartialEq for ECVRFProof
impl PartialEq for ECVRFProof
Source§impl Serialize for ECVRFProof
impl Serialize for ECVRFProof
Source§impl VRFProof<64> for ECVRFProof
impl VRFProof<64> for ECVRFProof
type PublicKey = ECVRFPublicKey
Source§fn verify(
&self,
alpha_string: &[u8],
public_key: &Self::PublicKey,
) -> Result<(), FastCryptoError>
fn verify( &self, alpha_string: &[u8], public_key: &Self::PublicKey, ) -> Result<(), FastCryptoError>
Verify the correctness of this proof.
Source§fn verify_output(
&self,
input: &[u8],
public_key: &Self::PublicKey,
output: &[u8; OUTPUT_SIZE],
) -> Result<(), FastCryptoError>
fn verify_output( &self, input: &[u8], public_key: &Self::PublicKey, output: &[u8; OUTPUT_SIZE], ) -> Result<(), FastCryptoError>
Verify the correctness of this proof and VRF output.
impl Eq for ECVRFProof
impl StructuralPartialEq for ECVRFProof
Auto Trait Implementations§
impl Freeze for ECVRFProof
impl RefUnwindSafe for ECVRFProof
impl Send for ECVRFProof
impl Sync for ECVRFProof
impl Unpin for ECVRFProof
impl UnwindSafe for ECVRFProof
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