[][src]Struct starsig::VerificationKey

pub struct VerificationKey { /* fields omitted */ }

Verification key (aka "pubkey") is a wrapper type around a Ristretto point that lets the verifier to check the signature.

Methods

impl VerificationKey[src]

pub fn from_secret(privkey: &Scalar) -> Self[src]

Constructs a VerificationKey from a private key.

pub fn from_secret_decompressed(privkey: &Scalar) -> RistrettoPoint[src]

Constructs a VerificationKey from a private key.

pub fn from_compressed(p: CompressedRistretto) -> Option<Self>[src]

Creates new key from a compressed form, remembers the compressed point.

pub fn into_point(self) -> CompressedRistretto[src]

Converts the Verification key to a compressed point

pub fn as_point(&self) -> &CompressedRistretto[src]

Returns a reference to the compressed ristretto point

pub fn as_bytes(&self) -> &[u8; 32][src]

Returns the view into byte representation of the verification key

pub fn to_bytes(&self) -> [u8; 32][src]

Returns the byte representation of the verification key

Trait Implementations

impl Into<CompressedRistretto> for VerificationKey[src]

impl From<RistrettoPoint> for VerificationKey[src]

impl From<CompressedRistretto> for VerificationKey[src]

impl Clone for VerificationKey[src]

impl Copy for VerificationKey[src]

impl Default for VerificationKey[src]

impl Eq for VerificationKey[src]

impl PartialEq<VerificationKey> for VerificationKey[src]

impl Debug for VerificationKey[src]

impl StructuralPartialEq for VerificationKey[src]

impl StructuralEq for VerificationKey[src]

impl Serialize for VerificationKey[src]

impl<'de> Deserialize<'de> for VerificationKey[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T> Same<T> for T

type Output = T

Should always be Self