pub struct ProxyKeyPair {
pub sk: Scalar,
pub pk: Point,
}Expand description
Proxy key pair derived from delegation This type cannot be used to create new delegations (prevents redelegation chains)
Fields§
§sk: ScalarProxy’s derived secret key
pk: PointProxy’s derived public key
Implementations§
Source§impl ProxyKeyPair
impl ProxyKeyPair
Sourcepub fn sign(&self, message: &[u8]) -> Result<SchnorrSignature>
pub fn sign(&self, message: &[u8]) -> Result<SchnorrSignature>
Sourcepub fn public_key(&self) -> &Point
pub fn public_key(&self) -> &Point
Get a reference to the public key
Sourcepub fn secret_key(&self) -> &Scalar
pub fn secret_key(&self) -> &Scalar
Get a reference to the secret key
Trait Implementations§
Source§impl Clone for ProxyKeyPair
impl Clone for ProxyKeyPair
Source§fn clone(&self) -> ProxyKeyPair
fn clone(&self) -> ProxyKeyPair
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 ProxyKeyPair
impl Debug for ProxyKeyPair
Source§impl Display for ProxyKeyPair
impl Display for ProxyKeyPair
Source§impl From<&ProxyKeyPair> for Point
impl From<&ProxyKeyPair> for Point
Source§fn from(proxy: &ProxyKeyPair) -> Self
fn from(proxy: &ProxyKeyPair) -> Self
Converts to this type from the input type.
Source§impl Hash for ProxyKeyPair
impl Hash for ProxyKeyPair
Source§impl PartialEq for ProxyKeyPair
impl PartialEq for ProxyKeyPair
impl Eq for ProxyKeyPair
impl StructuralPartialEq for ProxyKeyPair
Auto Trait Implementations§
impl Freeze for ProxyKeyPair
impl RefUnwindSafe for ProxyKeyPair
impl Send for ProxyKeyPair
impl Sync for ProxyKeyPair
impl Unpin for ProxyKeyPair
impl UnwindSafe for ProxyKeyPair
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