[][src]Struct grin_keychain::Identifier

pub struct Identifier(_);

Methods

impl Identifier[src]

pub fn zero() -> Identifier[src]

pub fn from_path(path: &ExtKeychainPath) -> Identifier[src]

pub fn to_path(&self) -> ExtKeychainPath[src]

pub fn to_value_path(&self, value: u64) -> ValueExtKeychainPath[src]

pub fn serialize_path(&self) -> [u8; 16][src]

output the path itself, for insertion into bulletproof recovery processes can grind through possiblities to find the correct length if required

pub fn from_serialized_path(len: u8, p: &[u8]) -> Identifier[src]

restore from a serialized path

pub fn parent_path(&self) -> Identifier[src]

Return the parent path

pub fn from_bytes(bytes: &[u8]) -> Identifier[src]

pub fn to_bytes(&self) -> [u8; 17][src]

pub fn from_pubkey(secp: &Secp256k1, pubkey: &PublicKey) -> Identifier[src]

pub fn from_secret_key(
    secp: &Secp256k1,
    key: &SecretKey
) -> Result<Identifier, Error>
[src]

Return the identifier of the secret key which is the blake2b (10 byte) digest of the PublicKey corresponding to the secret key provided.

pub fn from_hex(hex: &str) -> Result<Identifier, Error>[src]

pub fn to_hex(&self) -> String[src]

pub fn to_bip_32_string(&self) -> String[src]

Trait Implementations

impl AsRef<[u8]> for Identifier[src]

impl Clone for Identifier[src]

impl Eq for Identifier[src]

impl Ord for Identifier[src]

impl PartialEq<Identifier> for Identifier[src]

impl PartialOrd<Identifier> for Identifier[src]

impl Display for Identifier[src]

impl Debug for Identifier[src]

impl Hash for Identifier[src]

impl Serialize for Identifier[src]

impl<'de> Deserialize<'de> for Identifier[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> UnsafeAny for T where
    T: Any

impl<T> Erased for T

impl<T> Same<T> for T

type Output = T

Should always be Self