[−][src]Struct grin_keychain::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]
secp: &Secp256k1,
key: &SecretKey
) -> Result<Identifier, Error>
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 PartialEq<Identifier> for Identifier
[src]
fn eq(&self, other: &Identifier) -> bool
[src]
fn ne(&self, other: &Identifier) -> bool
[src]
impl AsRef<[u8]> for Identifier
[src]
impl Ord for Identifier
[src]
fn cmp(&self, other: &Identifier) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl Clone for Identifier
[src]
fn clone(&self) -> Identifier
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for Identifier
[src]
impl PartialOrd<Identifier> for Identifier
[src]
fn partial_cmp(&self, other: &Identifier) -> Option<Ordering>
[src]
fn lt(&self, other: &Identifier) -> bool
[src]
fn le(&self, other: &Identifier) -> bool
[src]
fn gt(&self, other: &Identifier) -> bool
[src]
fn ge(&self, other: &Identifier) -> bool
[src]
impl Display for Identifier
[src]
impl Hash for Identifier
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for Identifier
[src]
impl Serialize for Identifier
[src]
impl<'de> Deserialize<'de> for Identifier
[src]
fn deserialize<D>(deserializer: D) -> Result<Identifier, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Send for Identifier
impl Sync for Identifier
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
fn clone_any(&self) -> Box<dyn CloneAny + 'static>
fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send> where
T: Send,
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync> where
T: Sync,
T: Sync,
fn clone_any_send_sync(&self) -> Box<dyn CloneAny + 'static + Sync + Send> where
T: Send + Sync,
T: Send + Sync,
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<T> Erased for T
impl<T> Same for T
type Output = T
Should always be Self