Struct diem_crypto::ed25519::Ed25519PrivateKey [−][src]
pub struct Ed25519PrivateKey(_);
Expand description
An Ed25519 private key
Implementations
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Convenient method to create a MultiEd25519PrivateKey from a single Ed25519PrivateKey.
Performs the conversion.
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 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