Skip to main content

Stateless verification for Bitcoin handles using the Spaces protocol

Project description

libveritas

Python bindings for libveritas — stateless verification for Bitcoin handles using the Spaces protocol.

Installation

pip install libveritas

Usage

from libveritas import Anchors, Veritas, QueryContext, Message

# Load trust anchors
anchors = Anchors.from_json(anchors_json_string)
veritas = Veritas(anchors)

print(f"Anchors: {veritas.oldest_anchor()} .. {veritas.newest_anchor()}")

# Build query context (empty = verify all handles)
ctx = QueryContext()

# Verify a message
msg = Message(message_bytes)
result = veritas.verify_message(ctx, msg)

# Inspect verified zones
for zone in result.zones():
    print(f"{zone.handle()} -> {zone.sovereignty()}")

# Get certificates
for cert in result.certificates():
    print(f"{cert.subject} [{cert.cert_type}]")

Building from source

Requires Rust and maturin:

pip install maturin
cd python
maturin develop

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

libveritas-0.0.0.dev20260325002037-py3-none-win_amd64.whl (2.0 MB view details)

Uploaded Python 3Windows x86-64

libveritas-0.0.0.dev20260325002037-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

libveritas-0.0.0.dev20260325002037-py3-none-macosx_11_0_arm64.whl (2.1 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file libveritas-0.0.0.dev20260325002037-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for libveritas-0.0.0.dev20260325002037-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e988ce8d1be53dbdab21e99e6e3b55527d60809f034e470498303866b6c93e77
MD5 f80fb6ba5801d96e0e74212c5c36578d
BLAKE2b-256 e9b6569c1e6ffc107f1c4fe91c2c1517a2f7af1d2d710bd4905adde6f644d5dc

See more details on using hashes here.

File details

Details for the file libveritas-0.0.0.dev20260325002037-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for libveritas-0.0.0.dev20260325002037-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 65a86409edbff1439d2e453d7c227647a65131d65f49099a62d6c0e0158b12da
MD5 b71d56f7940e3633b250a95fc33affe4
BLAKE2b-256 f949dac5bb5aa052ab2e4749f1526d1beac4eea0ed89571a41de0890422ebd7e

See more details on using hashes here.

File details

Details for the file libveritas-0.0.0.dev20260325002037-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for libveritas-0.0.0.dev20260325002037-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a101764b386f486cb55900e3f93230d3f54ae2d4f36f3c37e9c840d7cbe09483
MD5 ba42a096facf2f72a994cf9d2d5a0744
BLAKE2b-256 bb83993977d5fb727e0dc98ca4d7297612ace4b0be39aa2b473f028263d4c66e

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