[−][src]Struct starsig::VerificationKey
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]
fn into(self) -> CompressedRistretto
[src]
impl From<RistrettoPoint> for VerificationKey
[src]
fn from(p: RistrettoPoint) -> Self
[src]
impl From<CompressedRistretto> for VerificationKey
[src]
fn from(p: CompressedRistretto) -> Self
[src]
impl Clone for VerificationKey
[src]
fn clone(&self) -> VerificationKey
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for VerificationKey
[src]
impl Default for VerificationKey
[src]
fn default() -> VerificationKey
[src]
impl Eq for VerificationKey
[src]
impl PartialEq<VerificationKey> for VerificationKey
[src]
fn eq(&self, other: &VerificationKey) -> bool
[src]
fn ne(&self, other: &VerificationKey) -> bool
[src]
impl Debug for VerificationKey
[src]
impl StructuralPartialEq for VerificationKey
[src]
impl StructuralEq for VerificationKey
[src]
impl Serialize for VerificationKey
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for VerificationKey
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for VerificationKey
impl Sync for VerificationKey
impl Unpin for VerificationKey
impl UnwindSafe for VerificationKey
impl RefUnwindSafe for VerificationKey
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,
unsafe fn initialize(place: *mut T)
impl<T> Same<T> for T
type Output = T
Should always be Self