Struct diem_sdk::types::validator_signer::ValidatorSigner[][src]

pub struct ValidatorSigner { /* fields omitted */ }
Expand description

ValidatorSigner associates an author with public and private keys with helpers for signing and validating. This struct can be used for all signing operations including block and network signing, respectively.

Implementations

Constructs a signature for message using private_key.

Returns the author associated with this signer.

Returns the public key associated with this signer.

Generate a random set of public and private keys and author information. This takes an optional seed, which it initializes to test_utils::TEST_SEED if passed None

For test only - makes signer with nicely looking account address that has specified integer as fist byte, and rest are zeroes

Trait Implementations

Formats the value using the given formatter. Read more

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.

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

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.

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