[−][src]Struct schnorr::keys::XPublicKey
Xpub represents an extended public key.
Fields
key: PublicKey
Methods
impl XPublicKey
[src]
pub fn derive_intermediate_key(
&self,
customize: impl FnOnce(&mut Transcript)
) -> XPublicKey
[src]
&self,
customize: impl FnOnce(&mut Transcript)
) -> XPublicKey
Returns a intermediate child pubkey. Users must provide customize, in order to separate sibling keys from one another through unique derivation paths.
pub fn derive_key(&self, customize: impl FnOnce(&mut Transcript)) -> PublicKey
[src]
Returns a leaf Xpub, which can safely be shared. Users must provide customize, in order to separate sibling keys from one another through unique derivation paths.
pub fn to_bytes(&self) -> [u8; 64]
[src]
Serializes this Xpub to a sequence of bytes.
pub fn from_bytes(bytes: &[u8]) -> Option<Self>
[src]
Decodes an Xpub from a 64-byte array, and fails if the provided array is not exactly 64 bytes, or if the compressed point fails to decompress.
Trait Implementations
impl Clone for XPublicKey
[src]
fn clone(&self) -> XPublicKey
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for XPublicKey
[src]
fn default() -> XPublicKey
[src]
Auto Trait Implementations
impl Send for XPublicKey
impl Sync for XPublicKey
impl Unpin for XPublicKey
impl UnwindSafe for XPublicKey
impl RefUnwindSafe for XPublicKey
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> FromCast<T> for T
fn from_cast(t: T) -> T
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
fn cast(self) -> U
impl<T> FromBits<T> for T
fn from_bits(t: T) -> T
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
U: FromBits<T>,
fn into_bits(self) -> U
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,