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.0.tar.gz (26.6 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.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bitseal-0.3.0.tar.gz
  • Upload date:
  • Size: 26.6 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.0.tar.gz
Algorithm Hash digest
SHA256 79d69706ee277f5858bfcc2063c846097e08e4d890156b3fc12006f72a716b8c
MD5 bcbba17c0909d4fe1ccd4ee809816b37
BLAKE2b-256 ba06c436867b515303bcc5593b7a90d6d094d906282e2b1bebf18ba7bd00bef1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bitseal-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 19.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 454db19e51b670f4e360d96f75a120a74c967e5fef0d036156ebdc1854ebde58
MD5 d4d0efffd358220a2e603f36312de52a
BLAKE2b-256 a29339840b8243bc4be69f23903b82aabdcd1b9d07f1109c6f20504311e8f329

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