mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-26 01:03:40 +00:00
Implement block producer for validator client
This commit is contained in:
7
validator_client/src/signer.rs
Normal file
7
validator_client/src/signer.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
use types::Signature;
|
||||
|
||||
/// Signs message using an internally-maintained private key.
|
||||
pub trait Signer {
|
||||
fn sign_block_proposal(&self, message: &[u8], domain: u64) -> Option<Signature>;
|
||||
fn sign_randao_reveal(&self, message: &[u8], domain: u64) -> Option<Signature>;
|
||||
}
|
||||
Reference in New Issue
Block a user