Skip to main content

Python SDK and offline verifier for the BitSeal cryptographic proof-of-existence service.

Project description

BitSeal Core SDK

BitSeal Logo

The Digital Integrity Standard

Official Website: https://bitseal.orygn.tech/

Website License Python


Overview

BitSeal is a cryptographic proof-of-existence service. It creates tamper-evident, timestamped proofs for files using BLAKE3 Merkle trees and Ed25519 digital signatures.

This repository (BitSeal-SDK) is the reference implementation of the protocol. It contains the full cryptographic pipeline: chunking, BLAKE3 Merkle tree construction, Ed25519 signing, and both online and fully-offline verification. Every seal produced by the web service at bitseal.orygn.tech can be verified end-to-end against the code in this repository without trusting the web service itself. The unified manifest format (merkle-blake3-64k-v1) guarantees that a web seal and a CLI seal of the same bytes yield the same root hash.

Trust Code, Not Corporations.
Developed by Orygn LLC.


Features

  • Ed25519 Signatures: High-performance, high-security Edwards-curve Digital Signature Algorithm.
  • Dual-Hashing Architecture:
    • BLAKE3: Blindingly fast local client-side verification.
    • SHA3-512: NIST-standardized (FIPS 202) secondary whole-file digest for cryptographic redundancy.
  • Merkle Tree Manifests: Tamper-evident data structures for seal logs.
  • Client-side hashing: Files never leave the device during the sealing process. Only the manifest is transmitted.

Installation

pip install -r requirements.txt

Audit & Verification

This code serves as the reference implementation for the BitSeal protocol.

1. Verify a Seal (Reference Script)

You can run the included script to verify any seal root hash generated by the Evidence Sealer:

# Online: look up the seal on the public ledger and verify its signature
python verify.py --root <ROOT_HASH>

# Offline: verify a downloaded manifest.json with no network access
python verify.py --manifest path/to/manifest.json

Offline mode reconstructs the 40-byte signed message (root_bytes || little-endian f64 timestamp) and runs an Ed25519 verify against the Authority public key. Supply --public-key to pin a specific PEM; otherwise the current key is fetched once from the well-known endpoint.

2. Python Integration

Developers can import the core logic to build independent custom verifiers:

from BitSealCore import BitSealLedger

# Initialize the public ledger reader
ledger = BitSealLedger()

# Verify a seal hash
result = ledger.verify_seal("c868c3e09...")

if result['valid']:
    print(f"✅ Authenticated: {result['timestamp_utc']}")
else:
    print(f"❌ Invalid: {result['error']}")

Verification Logic

The core verification process (BitSealCore.py) performs the following checks:

  1. Format Validation: Ensures the hash is a valid hex string of correct length.
  2. Ledger Lookup: Query the public ledger for the existence of the seal.
  3. Signature Verification: Cryptographically verify that the seal was signed by the BitSeal Authority Key (Ed25519 Public Key).
  4. Integrity Check: Recompute the hash of the manifest to ensure no data has been altered.

Legal & Compliance

BitSeal logic is designed to meet standards for digital chain of custody. For full legal documentation and the technical whitepaper, visit the Documentation Portal.


License

This SDK is available under the MIT License. © 2026 Orygn LLC. All Rights Reserved.

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

bitseal-0.3.2.tar.gz (32.1 kB view details)

Uploaded Source

Built Distribution

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

bitseal-0.3.2-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file bitseal-0.3.2.tar.gz.

File metadata

  • Download URL: bitseal-0.3.2.tar.gz
  • Upload date:
  • Size: 32.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for bitseal-0.3.2.tar.gz
Algorithm Hash digest
SHA256 4a3356777fffaebfe2f3351dad8cd354c0b61ada86d316f2ba3812f3b235f287
MD5 65b8f454da31e9ad45a13119aa5d7b57
BLAKE2b-256 27b3a57ed52b3aa3aa828fec9da01b16260fbce3d3d7b7a7b7ab1048c01bce26

See more details on using hashes here.

File details

Details for the file bitseal-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: bitseal-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for bitseal-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b9367ab548eb34727023a7fa7de380900049d6d305590f5d774eb49c55d6eba2
MD5 b6489571ad5daa0972a379562270c4dd
BLAKE2b-256 5c62e73092886951d311f86c6db099834d6c0136237cd17cb03769370bc600e1

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