c-kzg-4844/min-bindings/python/tests.py

10 lines
194 B
Python
Raw Normal View History

2022-10-01 23:52:12 +00:00
import ckzg
import random
# Simple test of bytes_to_bls_field
bs = (329).to_bytes(32, "little")
2022-10-02 08:28:45 +00:00
assert 329 == ckzg.int_from_BLSFieldElement(ckzg.bytes_to_bls_field(bs))
2022-10-01 23:52:12 +00:00
print('Tests passed')