Struct diem_crypto::multi_ed25519::MultiEd25519PrivateKey [−][src]
pub struct MultiEd25519PrivateKey { /* fields omitted */ }
Expand description
Vector of private keys in the multi-key Ed25519 structure along with the threshold.
Implementations
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Convenient method to create a MultiEd25519PrivateKey from a single Ed25519PrivateKey.
Performs the conversion.
Implementing From<&PrivateKey<…>> allows to derive a public key in a more elegant fashion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
We require public / private types to be coupled, i.e. their associated type is each other. Read more
Returns the associated public key
The associated verifying key type for this signing key.
The associated signature type for this signing key.
Signs an object that has an distinct domain-separation hasher and
that we know how to serialize. There is no pre-hashing into a
HashValue
to be done by the caller. Read more
Returns the associated verifying key
Deserialize an Ed25519PrivateKey. This method will also check for key and threshold validity.
type Error = CryptoMaterialError
type Error = CryptoMaterialError
The type returned in the event of a conversion error.
Generate key material from an RNG. This should generally not be used for production purposes even with a good source of randomness. When possible use hardware crypto to generate and store private keys. Read more
Generate a random key using the shared TEST_SEED