Skip to main content

Python SDK for Hexarch Deterministic Reproduction Proofs (DRP). Same input → same hash → same proof, anchored for independent verification.

Project description

hexarchproof-sdk (Python)

Python SDK for Hexarch Deterministic Reproduction Proofs (DRP).

Same input → same hash → same proof — anchored for independent verification.

Install

pip install hexarchproof-sdk

Usage

from hexarchproof import build_proof, verify_proof, sha256_hex_string, sha256_hex_json

hash_val = sha256_hex_string('my payload')
json_hash = sha256_hex_json({'b': 2, 'a': 1})

proof = build_proof(
    {'input': 'my deterministic payload'},
    {'type': 'hexarch.text-proof', 'version': '1'},
    {'output': 'my deterministic payload'},
)
# proof['schema_version'] == 'drp.v1'

result = verify_proof(
    proof,
    {'input': 'my deterministic payload'},
    {'type': 'hexarch.text-proof', 'version': '1'},
    {'output': 'my deterministic payload'},
)
# result.valid == True

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hexarchproof_sdk-0.0.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hexarchproof_sdk-0.0.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file hexarchproof_sdk-0.0.2.tar.gz.

File metadata

  • Download URL: hexarchproof_sdk-0.0.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for hexarchproof_sdk-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f16316a4950b55657b3c595ff25516d3d3a62faa8f5f0c74a750deae534d7845
MD5 0406bcf02c0867cc80fc92ab53a53e8a
BLAKE2b-256 21ff820de99a53cf881e700fab96ea199b96788e3791a506ed4d7113d602024d

See more details on using hashes here.

File details

Details for the file hexarchproof_sdk-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for hexarchproof_sdk-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8abf18a5d136661d676b7913122914e97c6fe20c40348db352a38c332361ed67
MD5 124ec0ad63f6d757fe2e5c7246d591b8
BLAKE2b-256 f252fe10acee8c4ccf367b709d10d1614561fdae05ca5e12159fb12fab1e83c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page