NEWWhitepaper v0.2 is out

Developers

Python SDKPlanned

Create bounties and read verdicts from Python.

Planned interface

This is not published yet. It shows the shape we are building toward, and names may change before launch.

Install

shell
pip install huygena

Create a bounty

python
import os
from huygena import Huygena

hg = Huygena(api_key=os.environ["HUYGENA_API_KEY"])

bounty = hg.bounties.create(
    paper="doi:<doi>",
    claims=["table_2", "figure_3b"],
    asset="USDG",
)

cert = bounty.wait()          # returns when both nodes agree
for claim in cert.verdicts:
    print(claim.id, claim.paper, claim.rerun, claim.verdict)

Read a certificate

python
cert = hg.certificates.get("<certificate-id>")
ok = cert.verify()            # hashes, attestation, on-chain record
print(ok.summary())