Skip to content

Commit

Permalink
Fix PK loading
Browse files Browse the repository at this point in the history
  • Loading branch information
mksh committed Sep 25, 2023
1 parent 9974db5 commit 1f22249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validators/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def load_validator_keys() -> ValidatorKeys | None:
if "data" in key_data:
for pk, sk in key_data["data"]["data"].items():
sk_bytes = Web3.to_bytes(hexstr=sk)
keys.append((HexStr(pk), BLSPrivkey(sk_bytes)))
keys.append((HexStr("0x{}".format(pk)), BLSPrivkey(sk_bytes)))
validator_keys = ValidatorKeys(dict(keys))
else:
logger.error("Failed to retrieve keys from Vault, response is: %r", key_data)
Expand Down

0 comments on commit 1f22249

Please sign in to comment.