pub struct Keys { /* private fields */ }Expand description
Keys
Implementations§
source§impl Keys
impl Keys
sourcepub fn from_public_key(public_key: XOnlyPublicKey) -> Keys
pub fn from_public_key(public_key: XOnlyPublicKey) -> Keys
Initialize with public key only (no secret key).
sourcepub fn public_key(&self) -> XOnlyPublicKey
pub fn public_key(&self) -> XOnlyPublicKey
Get XOnlyPublicKey
sourcepub fn secret_key(&self) -> Result<SecretKey, Error>
pub fn secret_key(&self) -> Result<SecretKey, Error>
Get secret key
Trait Implementations§
source§impl FromMnemonic for Keys
impl FromMnemonic for Keys
source§impl GenerateMnemonic for Keys
impl GenerateMnemonic for Keys
source§impl PartialEq<Keys> for Keys
impl PartialEq<Keys> for Keys
impl Eq for Keys
impl StructuralEq for Keys
impl StructuralPartialEq for Keys
Auto Trait Implementations§
impl RefUnwindSafe for Keys
impl Send for Keys
impl Sync for Keys
impl Unpin for Keys
impl UnwindSafe for Keys
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.