mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-19 22:08:30 +00:00
Merge remote-tracking branch 'origin/master' into spec-v0.12
This commit is contained in:
@@ -190,7 +190,7 @@ impl Keystore {
|
||||
|
||||
let keypair = keypair_from_secret(plain_text.as_bytes())?;
|
||||
// Verify that the derived `PublicKey` matches `self`.
|
||||
if keypair.pk.as_hex_string()[2..].to_string() != self.json.pubkey {
|
||||
if keypair.pk.as_hex_string()[2..] != self.json.pubkey {
|
||||
return Err(Error::PublicKeyMismatch);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user