confium-examples 0.5.0

Runnable example binaries demonstrating Confium threshold cryptography
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env python3
"""Verify a transparency inclusion proof in Python."""

import json
from confium.transparency import verify_inclusion_with_head

with open("proof.json") as f:
    proof = f.read()
with open("head.json") as f:
    head = f.read()

ok = verify_inclusion_with_head(proof, head)
print(f"✅ In log: {ok}")