From bde73b59fc89fad461fba55e7b3571d68a1bac98 Mon Sep 17 00:00:00 2001 From: protolambda Date: Mon, 1 Jul 2019 00:00:54 +0200 Subject: [PATCH] fix bls_verify_multiple --- test_libs/pyspec/eth2spec/utils/bls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test_libs/pyspec/eth2spec/utils/bls.py b/test_libs/pyspec/eth2spec/utils/bls.py index b68745866..ab2327f43 100644 --- a/test_libs/pyspec/eth2spec/utils/bls.py +++ b/test_libs/pyspec/eth2spec/utils/bls.py @@ -29,7 +29,8 @@ def bls_verify(pubkey, message_hash, signature, domain): @only_with_bls(alt_return=True) def bls_verify_multiple(pubkeys, message_hashes, signature, domain): - return bls.verify_multiple(pubkeys, message_hashes, signature, domain) + return bls.verify_multiple(pubkeys=pubkeys, message_hashes=message_hashes, + signature=signature, domain=int.from_bytes(domain, byteorder='little')) @only_with_bls(alt_return=STUB_PUBKEY)