Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions validator/identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ def load_keypair(settings: Settings) -> Keypair:
raw = bytes.fromhex(private[2:] if private.startswith("0x") else private)
public = str(data.get("publicKey", "") or "")
crypto = (
KeypairType.SR25519
KeypairType.ED25519
if int(data.get("cryptoType", 1) or 1) == 0
else KeypairType.ED25519
else KeypairType.SR25519
)
return Keypair(
public_key=bytes.fromhex(public[2:] if public.startswith("0x") else public)
Expand Down
Loading