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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bitseal-0.3.1.tar.gz
  • Upload date:
  • Size: 28.5 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.1.tar.gz
Algorithm Hash digest
SHA256 b15ab097ce8963a039fb658a430c2f3d50f3b5cc645e1f8801d86fb2f18e07f4
MD5 19a8dbefd0aefdedd3ee3abe403b3d5c
BLAKE2b-256 79aaef0b1f175d23196223c32f9309c7754c8098602f9ded611b08c7cd14c664

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bitseal-0.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dcccc6771b895a5f75fd5ec95b9021d849f7fbb529635ba5bff9d45e4df2abc3
MD5 3ef6b6ba13977e80c1e0c826802b7a12
BLAKE2b-256 448d6f542253704d74f3dcc7ff133d32d56f670baf0934ba8685282a60221d04

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