Expand description
It represents an Nis1 asymmetric private/public encryption key.
The private half of this keypair.
The public half of this keypair.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Create a new Nis1 Keypair
with cryptographically random content.
Construct a Nis1 Keypair
from the bytes of a PublicKey
and PrivateKey
.
Construct a Nis1 Keypair
from a hex encoded private key string.
hex
: an S
representing the hex private key (String or &str).
A Result
whose okay value is an Nis1 Keypair
or whose error value
is an failure::Error
describing the error that occurred.
Construct a Nis1 Keypair
PrivateKey
type.
private_key
: representing the PrivateKey
type.
A Keypair
Signs a data bytes with a Nis1 Keypair
.
data
: an &[u8]
representing the data to sign.
A Signature
the signature hash.
Verify a Signature
on a data with this Nis1 Keypair public key.
Returns Ok
if the Signature
was a valid signature created by this Nis1 Keypair
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String
. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,