pub struct WhitelistSignature(/* private fields */);Expand description
A whitelist ring signature.
Implementations§
Source§impl WhitelistSignature
impl WhitelistSignature
Sourcepub fn from_slice(bytes: &[u8]) -> Result<Self, Error>
pub fn from_slice(bytes: &[u8]) -> Result<Self, Error>
Parse a whitelist ring signature from a byte slice.
Sourcepub fn new<C: Signing>(
secp: &Secp256k1<C>,
online_keys: &[PublicKey],
offline_keys: &[PublicKey],
whitelist_key: &PublicKey,
online_secret_key: &SecretKey,
summed_secret_key: &SecretKey,
key_index: usize,
) -> Result<WhitelistSignature, Error>
pub fn new<C: Signing>( secp: &Secp256k1<C>, online_keys: &[PublicKey], offline_keys: &[PublicKey], whitelist_key: &PublicKey, online_secret_key: &SecretKey, summed_secret_key: &SecretKey, key_index: usize, ) -> Result<WhitelistSignature, Error>
Create a new whitelist ring signature for the given PAK list and whitelist key.
Sourcepub fn verify<C: Verification>(
&self,
secp: &Secp256k1<C>,
online_keys: &[PublicKey],
offline_keys: &[PublicKey],
whitelist_key: &PublicKey,
) -> Result<(), Error>
pub fn verify<C: Verification>( &self, secp: &Secp256k1<C>, online_keys: &[PublicKey], offline_keys: &[PublicKey], whitelist_key: &PublicKey, ) -> Result<(), Error>
Verify the given whitelist signature against the PAK list and whitelist key.
Sourcepub fn as_ptr(&self) -> *const WhitelistSignature
pub fn as_ptr(&self) -> *const WhitelistSignature
Obtains a raw const pointer suitable for use with FFI functions
Sourcepub fn as_mut_ptr(&mut self) -> *mut WhitelistSignature
pub fn as_mut_ptr(&mut self) -> *mut WhitelistSignature
Obtains a raw mutable pointer suitable for use with FFI functions
Trait Implementations§
Source§impl CPtr for WhitelistSignature
impl CPtr for WhitelistSignature
Source§impl Clone for WhitelistSignature
impl Clone for WhitelistSignature
Source§fn clone(&self) -> WhitelistSignature
fn clone(&self) -> WhitelistSignature
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WhitelistSignature
Available on crate feature std only.
impl Debug for WhitelistSignature
Available on crate feature
std only.Source§impl<'de> Deserialize<'de> for WhitelistSignature
Available on crate features serde and std only.
impl<'de> Deserialize<'de> for WhitelistSignature
Available on crate features
serde and std only.Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for WhitelistSignature
Available on crate feature std only.
impl Display for WhitelistSignature
Available on crate feature
std only.Source§impl FromStr for WhitelistSignature
Available on crate feature std only.
impl FromStr for WhitelistSignature
Available on crate feature
std only.Source§impl Hash for WhitelistSignature
impl Hash for WhitelistSignature
Source§impl LowerHex for WhitelistSignature
Available on crate feature std only.
impl LowerHex for WhitelistSignature
Available on crate feature
std only.Source§impl PartialEq for WhitelistSignature
impl PartialEq for WhitelistSignature
Source§impl Serialize for WhitelistSignature
Available on crate features serde and std only.
impl Serialize for WhitelistSignature
Available on crate features
serde and std only.impl Eq for WhitelistSignature
impl StructuralPartialEq for WhitelistSignature
Auto Trait Implementations§
impl Freeze for WhitelistSignature
impl RefUnwindSafe for WhitelistSignature
impl Send for WhitelistSignature
impl Sync for WhitelistSignature
impl Unpin for WhitelistSignature
impl UnwindSafe for WhitelistSignature
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