Merge pull request #295 from sigp/validator-updates

Persisting (random) Validator Keys
This commit is contained in:
Age Manning
2019-03-25 14:40:11 +11:00
committed by GitHub
10 changed files with 274 additions and 47 deletions

View File

@@ -14,4 +14,8 @@ impl Keypair {
let pk = PublicKey::from_secret_key(&sk);
Keypair { sk, pk }
}
pub fn identifier(&self) -> String {
self.pk.concatenated_hex_id()
}
}