Skip to content

[enhancement]: prove older ledgers from a certified one with externalize ancestry #3

Closed

Description

@samjay8

Context

externalize_core::verify_ancestors proves a ledger older than a certified one by walking previousLedgerHash back through archived headers, but the CLI has no way to use it. Someone who holds a certified ledger today cannot prove a payment from last month without building a new certificate.

Scope

  • Add externalize ancestry --bundle <certified bundle> --headers <ledger-*.xdr.gz>... --ledger <seq>.
  • Certify the bundle's ledger as verify does, then walk back with verify_ancestors to the requested sequence.
  • Print the proven header hash and close time; support --json through externalize_core::report.

Out of scope: Proving transactions inside the older ledger (a follow-up once ancestry exists).

Done when

  • A test proves a ledger at least one checkpoint older than the fixture's, using archived headers.
  • A broken link in the chain (one edited header) is rejected with a clear error.
  • README command table lists ancestry.

Comment to be assigned before starting. Read CONTRIBUTING.md for the checks this repository runs.

Activity

  1. added
    enhancement
    complexity:medium
    Stellar Wave
    on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar Wavearea/clicomplexity:mediumenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions