[−][src]Struct grin_keychain::Identifier
Methods
impl Identifier
[src]
impl Identifier
pub fn zero() -> Identifier
[src]
pub fn zero() -> Identifier
pub fn from_path(path: &ExtKeychainPath) -> Identifier
[src]
pub fn from_path(path: &ExtKeychainPath) -> Identifier
pub fn to_path(&self) -> ExtKeychainPath
[src]
pub fn to_path(&self) -> ExtKeychainPath
pub fn to_value_path(&self, value: u64) -> ValueExtKeychainPath
[src]
pub fn to_value_path(&self, value: u64) -> ValueExtKeychainPath
pub fn serialize_path(&self) -> [u8; 16]
[src]
pub fn serialize_path(&self) -> [u8; 16]
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]
pub fn from_serialized_path(len: u8, p: &[u8]) -> Identifier
restore from a serialized path
pub fn parent_path(&self) -> Identifier
[src]
pub fn parent_path(&self) -> Identifier
Return the parent path
pub fn from_bytes(bytes: &[u8]) -> Identifier
[src]
pub fn from_bytes(bytes: &[u8]) -> Identifier
pub fn to_bytes(&self) -> [u8; 17]
[src]
pub fn to_bytes(&self) -> [u8; 17]
pub fn from_pubkey(secp: &Secp256k1, pubkey: &PublicKey) -> Identifier
[src]
pub fn from_pubkey(secp: &Secp256k1, pubkey: &PublicKey) -> Identifier
pub fn from_secret_key(
secp: &Secp256k1,
key: &SecretKey
) -> Result<Identifier, Error>
[src]
pub fn from_secret_key(
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 from_hex(hex: &str) -> Result<Identifier, Error>
pub fn to_hex(&self) -> String
[src]
pub fn to_hex(&self) -> String
pub fn to_bip_32_string(&self) -> String
[src]
pub fn to_bip_32_string(&self) -> String
Trait Implementations
impl Ord for Identifier
[src]
impl Ord for Identifier
fn cmp(&self, other: &Identifier) -> Ordering
[src]
fn cmp(&self, other: &Identifier) -> Ordering
fn max(self, other: Self) -> Self
1.21.0[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]
fn min(self, other: Self) -> Self
1.21.0
[src]Compares and returns the minimum of two values. Read more
impl PartialEq<Identifier> for Identifier
[src]
impl PartialEq<Identifier> for Identifier
fn eq(&self, other: &Identifier) -> bool
[src]
fn eq(&self, other: &Identifier) -> bool
fn ne(&self, other: &Identifier) -> bool
[src]
fn ne(&self, other: &Identifier) -> bool
impl Clone for Identifier
[src]
impl Clone for Identifier
fn clone(&self) -> Identifier
[src]
fn clone(&self) -> Identifier
fn clone_from(&mut self, source: &Self)
1.0.0[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 Eq for Identifier
impl PartialOrd<Identifier> for Identifier
[src]
impl PartialOrd<Identifier> for Identifier
fn partial_cmp(&self, other: &Identifier) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Identifier) -> Option<Ordering>
fn lt(&self, other: &Identifier) -> bool
[src]
fn lt(&self, other: &Identifier) -> bool
fn le(&self, other: &Identifier) -> bool
[src]
fn le(&self, other: &Identifier) -> bool
fn gt(&self, other: &Identifier) -> bool
[src]
fn gt(&self, other: &Identifier) -> bool
fn ge(&self, other: &Identifier) -> bool
[src]
fn ge(&self, other: &Identifier) -> bool
impl AsRef<[u8]> for Identifier
[src]
impl AsRef<[u8]> for Identifier
impl Display for Identifier
[src]
impl Display for Identifier
impl Debug for Identifier
[src]
impl Debug for Identifier
impl Hash for Identifier
[src]
impl Hash for Identifier
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Serialize for Identifier
[src]
impl Serialize for Identifier
impl<'de> Deserialize<'de> for Identifier
[src]
impl<'de> Deserialize<'de> for Identifier
fn deserialize<D>(deserializer: D) -> Result<Identifier, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Identifier, D::Error> where
D: Deserializer<'de>,
Auto Trait Implementations
impl Send for Identifier
impl Send for Identifier
impl Sync for Identifier
impl Sync for Identifier
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
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]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
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]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
impl<T> DebugAny for T where
T: Any + Debug,
impl<T> DebugAny for T where
T: Any + Debug,
impl<T> CloneAny for T where
T: Clone + Any,
impl<T> CloneAny for T where
T: Clone + Any,
fn clone_any(&self) -> Box<dyn CloneAny + 'static>
fn clone_any(&self) -> Box<dyn CloneAny + 'static>
fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send> where
T: Send,
fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send> where
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync> where
T: Sync,
fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync> where
T: Sync,
fn clone_any_send_sync(&self) -> Box<dyn CloneAny + 'static + Sync + Send> where
T: Send + Sync,
fn clone_any_send_sync(&self) -> Box<dyn CloneAny + 'static + Sync + Send> where
T: Send + Sync,
impl<T> UnsafeAny for T where
T: Any,
impl<T> UnsafeAny for T where
T: Any,
impl<T> Erased for T
impl<T> Erased for T
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self