Fix encoding

This commit is contained in:
Hsiao-Wei Wang 2020-09-25 15:05:10 +08:00
parent ad4ad2d8b4
commit b43f62de0e
No known key found for this signature in database
GPG Key ID: 95B070122902DEA4
1 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ def case01_sign():
# expect_exception(milagro_bls.Sign, ZERO_PRIVKEY_BYTES, message) # TODO: enable it when milagro is ready # expect_exception(milagro_bls.Sign, ZERO_PRIVKEY_BYTES, message) # TODO: enable it when milagro is ready
yield f'sign_case_zero_privkey', { yield f'sign_case_zero_privkey', {
'input': { 'input': {
'privkey': ZERO_PRIVKEY_BYTES, 'privkey': encode_hex(ZERO_PRIVKEY_BYTES),
'message': encode_hex(message), 'message': encode_hex(message),
}, },
'output': None 'output': None
@ -181,8 +181,8 @@ def case03_aggregate():
aggregate_sig = bls.Aggregate([Z2_SIGNATURE]) aggregate_sig = bls.Aggregate([Z2_SIGNATURE])
assert aggregate_sig == milagro_bls.Aggregate([Z2_SIGNATURE]) == Z2_SIGNATURE assert aggregate_sig == milagro_bls.Aggregate([Z2_SIGNATURE]) == Z2_SIGNATURE
yield f'aggregate_infinity_signature', { yield f'aggregate_infinity_signature', {
'input': [Z2_SIGNATURE], 'input': [encode_hex(Z2_SIGNATURE)],
'output': aggregate_sig, 'output': encode_hex(aggregate_sig),
} }