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
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| settled_sdk-0.2.0.tar.gz | 18.1 kB | Without provenance | Details for settled_sdk-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| settled_sdk-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for settled_sdk-0.2.0-py3-none-any.whl |
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
|
Security for settled-sdk 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.