G2Basic to G2ProofOfPossession for private_to_public_key bls test generator

Co-Authored-By: Carl Beekhuizen <carl@ethereum.org>
This commit is contained in:
Danny Ryan 2020-01-22 11:32:25 -07:00 committed by GitHub
parent f012844493
commit dd9325d9fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ def case02_message_hash_G2_compressed():
def case03_private_to_public_key():
pubkeys = [bls.G2Basic.PrivToPub(privkey) for privkey in PRIVKEYS]
pubkeys = [bls. G2ProofOfPossession.PrivToPub(privkey) for privkey in PRIVKEYS]
pubkeys_serial = ['0x' + pubkey.hex() for pubkey in pubkeys]
for privkey, pubkey_serial in zip(PRIVKEYS, pubkeys_serial):
yield f'priv_to_pub_{int_to_hex(privkey)}', {