Skip to content

receipts: multi-issuer chain support (v0.2) #4

Description

@tomjwxf

Context

v0.1 assumes a single keypair per receipt chain. Real fleets want chains
signed by multiple attestors (e.g. one agent per signer, one HSM per team).

What's needed

  • `Receipt` already carries `pubkey` per-receipt, so the format supports
    multi-issuer. The missing piece is the `verify` pipeline.
  • `sb verify` should accept a trust-anchor set (`--trust-anchors` flag
    pointing at a JSON file of public keys + role labels).
  • Chain rules: every receipt must be signed by an attestor in the anchor
    set; `prev_hash` must chain regardless of issuer change.

Acceptance criteria

  • `--trust-anchors` flag
  • `verify_chain` handles mixed-issuer chains
  • Anchor-set schema documented
  • Tests covering: single-issuer, multi-issuer, chain with untrusted
    issuer, chain with revoked issuer

Release target

v0.2.

Activity

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions