Skip to content

Add shared-registry bulk ACDC issuance - #1786

Open
KeaxD wants to merge 1 commit into
WebOfTrust:mainfrom
KeaxD:bulk-issu
Open

KeaxD wants to merge 1 commit into
WebOfTrust:mainfrom
KeaxD:bulk-issu

Conversation

@KeaxD

@KeaxD KeaxD commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

This PR adds shared-registry bulk issuance for private ACDCs.

It implements deterministic credential-copy generation, blinded aggregate commitments, persisted TEL issuance and revocation, issuer KEL anchoring, IPEX delivery, and independent verification using existing Keripy registry infrastructure.

Changes

Bulk derivation and commitments

Adds keri.acdc.bulking with:

  • BulkDeriver for deterministic UUID and blinding-factor derivation.
  • Exactly 16 raw bytes of shared salt, matching Keripy’s Salt_128.
  • Lowercase hexadecimal derivation indices without leading zeroes.
  • k and k/j UUID paths.
  • A distinct k. path for each copy’s blinding factor.
  • makeCommitment for producing the ordered blinded-member list and aggregate B.
  • verifyMembership for validating membership against B.
  • vetSharedList for full ACDC, TEL, KEL, and membership verification.

The commitment uses Blake3-256 over concatenated qb64 text.

Registry issuance

Extends the existing registry facade:

  • Registry.blindAggregate() issues or updates a state whose target is aggregate B.
  • Registrar.issueBulk() exposes that operation through the registrar.
  • The same aggregate represents the entire set, so revocation changes the state of every copy.

Existing individual ACDC issuance remains unchanged

Verification

vetSharedList verifies that:

  • The presented ACDC is structurally valid.
  • Its issuer controls the shared registry.
  • Its rd references that registry.
  • Its blinded SAID occurs in the supplied member list.
  • The member list recomputes the aggregate committed by the TEL.
  • TEL events are correctly ordered and non-duplicitous.
  • Registry inception and updates are anchored in the issuer’s authoritative KEL.

It reuses regeventing.vetBinds and returns the actual registry state with binding="bulk". A revoked state remains cryptographically valid evidence; application policy decides whether to reject it.

IPEX integration

IPEX Grant processing recognizes the experimental bulkMembershipProof attribute:

{
  "blinding": "<selected copy blinding factor>",
  "members": ["<blinded member>", "..."]
}

When present, the handler validates the selected ACDC through vetSharedList. Normal non-bulk IPEX behavior is unchanged.

Scope

This is a first experimental shared-registry implementation. Following PRs will come to complete the implementation.

@SmithSamuelM

Copy link
Copy Markdown
Collaborator

Shared registry bulk issuance is not the type needed for SEDI. What SEDI needs is independent registry bulk issuance. So supporting both is OK, but only the latter is required. FYI. Daniel Hardman submitted pull requests for both types.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants