prepare_membership_set
Builds a deterministic depth-6 membership-set tree from a public allow-list so anyone can recompute the same setRoot and verify set-membership claims; optionally returns a member inclusion path.
Instructions
Build the canonical depth-6 membership-set tree over a public allow-list (NIGHTGATE >= 0.16.0). Deterministic rule (digest each exact string, dedupe, sort ascending, pad by repeating the last member digest), so ANYONE recomputes the same setRoot from the published list alone: use the root to verify_predicate a setMembership claim. With value/valueDigest it additionally returns the member inclusion path (witness material, treat as sensitive); a non-member is a clean 400. Compute-only and synchronous.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | Optional member string to get the inclusion path for (pass this OR valueDigest) | |
| valueDigest | No | Optional member digest (64 hex) instead of the raw value | |
| allowedValues | Yes | The public allow-list (up to 64 distinct values) | |
| compiledArtifactRef | No | Contract artifact ref, defaults to 'attestation-vault-32'; 'attestation-vault' for a 16-slot vault |