chia 0.1.14

Implementation of `clvm` for Chia Network's cryptocurrency
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import io

from chia_rs import Fullblock


def main():
    blob = open("block-1519806.bin", "rb").read()
    fb = Fullblock.from_bytes(blob)
    print(fb)
    assert bytes(fb) == blob
    prog = fb.generator()
    print()
    print("%s..." % prog.hex()[:80])


if __name__ == "__main__":
    main()