We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1861205 commit fc45446Copy full SHA for fc45446
1 file changed
stakewise_cli/commands/sync_web3signer_keys.py
@@ -50,7 +50,8 @@ def sync_web3signer_keys(db_url: str, output_dir: str, decryption_key_env: str)
50
private_keys: List[str] = []
51
for key_record in keys_records:
52
key = decoder.decrypt(data=key_record["private_key"], nonce=key_record["nonce"])
53
- private_keys.append(Web3.toHex(int(key)))
+ hex = Web3.toHex(int(key))
54
+ private_keys.append(f"0x{hex[2:].zfill(64)}") # pad missing leading zeros
55
56
if not exists(output_dir):
57
mkdir(output_dir)
0 commit comments