prepare_membership_set
Builds a deterministic membership-set tree from a public allow-list, returning a setRoot for verifying setMembership claims and optional inclusion paths for specific members.
Instructions
Build the canonical depth-6 membership-set tree over a public allow-list. 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"allowedValues": "<allowedValues>"
},
"name": "prepare_membership_set"
}
}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 |