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
Auto Trait Implementations
impl RefUnwindSafe for ValidatorSigner
impl Send for ValidatorSigner
impl Sync for ValidatorSigner
impl Unpin for ValidatorSigner
impl UnwindSafe for ValidatorSigner
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
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