Struct diem_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