Skip to content

append only database with signed merkle tree and checkpoint anchoring - #2193

Draft
asmogo wants to merge 9 commits into
cashubtc:mainfrom
asmogo:feat/append-only
Draft

append only database with signed merkle tree and checkpoint anchoring #2193
asmogo wants to merge 9 commits into
cashubtc:mainfrom
asmogo:feat/append-only

Conversation

@asmogo

@asmogo asmogo commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Description


Notes to the reviewers


Suggested CHANGELOG Updates

CHANGED

ADDED

REMOVED

FIXED


Checklist

  • I followed the code style guidelines
  • I ran just quick-check before committing
  • If the Wallet API was modified (added/removed/changed), I have reflected those changes in the FFI bindings (crates/cdk-ffi)

@github-project-automation github-project-automation Bot moved this to Backlog in CDK Jul 3, 2026
@asmogo asmogo changed the title append only database with signed merkel tree and checkpoint anchoring append only database with signed merkle tree and checkpoint anchoring Jul 3, 2026
asmogo added 9 commits July 3, 2026 14:47
Adapt the transparency-log audit HTTP methods to main's HTTP client
refactor, which returns HttpError from the raw transport. The
transport_http_get helper maps it to cdk_common::Error.
@asmogo
asmogo force-pushed the feat/append-only branch from 9acb8b3 to de9e333 Compare July 3, 2026 13:10
payload BLOB NOT NULL, -- canonical JSON of the new field values (see below)
leaf_hash BLOB NOT NULL, -- RFC 6962 leaf hash, precomputed at insert time
created_time BIGINT NOT NULL,
leaf_index BIGINT -- zero-based Merkle tree position; NULL until the

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid serializing entries, I think it would be best to produce the Merkle tree every few minutes (or even seconds). As long as the beginning/end of the snapshot is clear enough, I think that would be best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants