use encode_hex

This commit is contained in:
Danny Ryan 2019-08-30 15:10:21 -06:00
parent 9a9dbcd95e
commit a0b9d22fad
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ def generate_validator_keypairs(N: int) -> List[Dict]:
) % CURVE_ORDER
keypairs.append({
'privkey': int_to_hex(privkey),
'pubkey': '0x' + privtopub(privkey).hex(),
'pubkey': encode_hex(privtopub(privkey)),
})
return keypairs