Skip to main content

Python SDK for the Settled tamper-evident audit log

Project description

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

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

settled_sdk-0.2.0.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

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

settled_sdk-0.2.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file settled_sdk-0.2.0.tar.gz.

File metadata

  • Download URL: settled_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for settled_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 347b44ee9138f3c0ff075f56d63f4c21497687e7807089f48878a7ba00b58fe9
MD5 d3ad6a8effd48487862b6707f10b822b
BLAKE2b-256 f63dfa8c70cffd856f7fe6a1ab1fef8429896604712cb717ca3a18307c2e2084

See more details on using hashes here.

File details

Details for the file settled_sdk-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: settled_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for settled_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 905f2597b5be2327a539851c0b1915e6f89a13573f1739779cf0c5468f6846b2
MD5 0162f1c17b9db32f4403223cea4c5955
BLAKE2b-256 717b6e90a7a931cb6d41853915ee3c708eada5135031f634a44bf7205a813488

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