Skip to content

docs: steer verification toward validate_with_commitment - #28

Open
peetzweg wants to merge 1 commit into
mainfrom
docs/validate-with-commitment-guidance
Open

docs: steer verification toward validate_with_commitment#28
peetzweg wants to merge 1 commit into
mainfrom
docs/validate-with-commitment-guidance

Conversation

@peetzweg

@peetzweg peetzweg commented Jul 7, 2026

Copy link
Copy Markdown
Member

Documentation-only change incorporating feedback from the verifiable crate maintainer.

Why: The docs treated validate (rebuild-from-member-list) as the primary verification path and left validate_with_commitment as a commented-out alternative. Rebuilding the ring commitment is the expensive part of verification and grows with ring size, so users should reuse a commitment rather than recompute it per proof.

How: Reframe the README (both the root docs and the published package README) to recommend validate_with_commitment, state the commitment-computation cost plainly, and document that the finalized commitment can be fetched directly from a pallet-members chain via a plain storage query — Members.Root(collectionId, ringIndex).root on the source chain, MembersSubscriber.RingRoots on the consumer chain — with a warning not to use the intermediate accumulator field.

No code changes.

Guide users toward validate_with_commitment as the recommended verification
path and state plainly that computing the ring commitment is non-trivial and
grows with ring size, so it should be reused rather than rebuilt per proof.

Also document that the finalized commitment can be fetched directly from a
pallet-members chain (Members.Root(..).root on the source chain,
MembersSubscriber.RingRoots on the consumer chain) via a plain storage query,
and warn against using the intermediate accumulator field.

Incorporates feedback from the verifiable crate maintainer.
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.

1 participant