Skip to main content

settled-sdk

Python SDK for Settled, a tamper-evident audit log built on RFC 6962 Merkle trees.

Installation

pip install settled-sdk

Usage

Connecting to a Settled server

from settled import SettledClient

client = SettledClient("localhost:50051")

# Append an entry
result = client.append(b"my audit event")

# Get the current Signed Tree Head
sth = client.get_sth()

# Verify inclusion
proof = client.inclusion_proof(result.leaf_index, sth.tree_size)

Verifying proofs independently

from settled import verify_inclusion, verify_consistency, verify_tree_head

# Verify that an entry is included in a tree
verify_inclusion(leaf_hash, leaf_index, tree_size, proof_hashes, root_hash)

# Verify consistency between two tree heads
verify_consistency(old_size, new_size, proof_hashes, old_root, new_root)

# Verify the signature on a Signed Tree Head
verify_tree_head(sth, public_key_bytes)

License

Elastic License 2.0

Metadata

Release files for settled-sdk 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for settled-sdk 0.2.0
File Size Uploaded
settled_sdk-0.2.0.tar.gz 18.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for settled-sdk 0.2.0
File Interpreter ABI Platform
settled_sdk-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 37.0 kB

Release files / settled_sdk-0.2.0.tar.gz

Download URL settled_sdk-0.2.0.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
347b44ee9138f3c0ff075f56d63f4c21497687e7807089f48878a7ba00b58fe9
BLAKE2b-256 checksum
How to use checksums
f63dfa8c70cffd856f7fe6a1ab1fef8429896604712cb717ca3a18307c2e2084
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Release files / settled_sdk-0.2.0-py3-none-any.whl

Download URL settled_sdk-0.2.0-py3-none-any.whl
Size 18.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
905f2597b5be2327a539851c0b1915e6f89a13573f1739779cf0c5468f6846b2
BLAKE2b-256 checksum
How to use checksums
717b6e90a7a931cb6d41853915ee3c708eada5135031f634a44bf7205a813488
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page