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

Construct a new MultiEd25519PrivateKey.

Serialize a MultiEd25519PrivateKey.

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.

Implementing From<&PrivateKey<…>> allows to derive a public key in a more elegant fashion.

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 and threshold 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

Performs the conversion.

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.