Struct diem_sdk::crypto::ed25519::Ed25519PrivateKey[][src]

pub struct Ed25519PrivateKey(_);
Expand description

An Ed25519 private key

Implementations

The length of the Ed25519PrivateKey

Serialize an Ed25519PrivateKey.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Convenient method to create a MultiEd25519PrivateKey from a single Ed25519PrivateKey.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Produces the genesis private key.

The serialized length of the data

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

Serialize this value into the given Serde serializer. Read more

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.

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

Convert the valid crypto material to bytes.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

Generates a hash used only for tests.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

When trying to convert from bytes, we simply decode the string into bytes before checking if we can convert. Read more

A function to encode into hex-string after serializing.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more