[−][src]Struct keynesis::key::ed25519_hd::SecretKey
Implementations
impl SecretKey
[src]
pub const SIZE: usize
[src]
pub fn new<Rng>(rng: &mut Rng) -> Self where
Rng: RngCore + CryptoRng,
[src]
Rng: RngCore + CryptoRng,
generate a new SecretKey
with the given random number generator
pub fn is_3rd_highest_bit_clear(&self) -> bool
[src]
pub fn public_key(&self) -> PublicKey
[src]
get the PublicKey
associated to this key
Unlike the SecretKey
, the PublicKey
can be safely
publicly shared. The key can then be used to verify any
Signature
generated with this SecretKey
and the original
message.
pub fn chain(&self) -> &ChainCode
[src]
pub fn key(&self) -> &SecretKey
[src]
pub fn into_key(self) -> SecretKey
[src]
pub fn leak_to_hex(&self) -> String
[src]
pub fn exchange(&self, public_key: &PublicKey) -> SharedSecret
[src]
generate a shared secret between the owner of the given public key and ourselves.
pub fn sign<T: AsRef<[u8]>>(&self, msg: T) -> Signature
[src]
create a Signature
for the given message with this SecretKey
.
The Signature
can then be verified against the associated PublicKey
and the original message.
pub fn derive<P>(&self, path: P) -> Self where
P: AsRef<[u8]>,
[src]
P: AsRef<[u8]>,
Trait Implementations
impl Clone for SecretKey
[src]
impl Debug for SecretKey
[src]
impl Eq for SecretKey
[src]
impl FromStr for SecretKey
[src]
type Err = SecretKeyError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for SecretKey
[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,
impl PartialEq<SecretKey> for SecretKey
[src]
impl StructuralEq for SecretKey
[src]
impl StructuralPartialEq for SecretKey
[src]
impl<'a> TryFrom<&'a [u8]> for SecretKey
[src]
type Error = SecretKeyError
The type returned in the event of a conversion error.
fn try_from(bytes: &'a [u8]) -> Result<Self, Self::Error>
[src]
impl TryFrom<[u8; 96]> for SecretKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for SecretKey
impl Send for SecretKey
impl Sync for SecretKey
impl Unpin for SecretKey
impl UnwindSafe for SecretKey
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,