Association Set Providers
An ASP is a wallet that registers a set on the Plaza program and publishes its roots. Anyone can be one.
An Association Set Provider (ASP) decides which deposits its set approves and publishes the result on chain. Registering is one transaction, signed by the ASP's own wallet.
The ASP account
register_asp creates an Asp account at the address derived from ["asp", authority]. One authority wallet runs one set. The account holds:
| Field | What it is |
|---|---|
authority | The wallet that may publish roots |
name | 1 to 96 bytes |
manifest_uri | Where the set's manifest is served, up to 512 bytes |
roots | The window of recent roots, oldest first |
The ASP account's address is the set's id everywhere else: in the API's routes, in a venue's accepted list and in a spend's receipt.
Publishing a root
publish_root takes the new root, the number of labels under it and manifest_hash, the SHA-256 of the manifest document published with that root. Only the authority can sign it. The program appends the root to the window and emits RootPublished; it doesn't see the leaves.
Holders need the leaves to build a proof. Before it builds a publish for a set other than the Open Set, the API fetches the manifest at the set's registered URI and refuses unless its leaves equal the leaves being published. The first time anyone asks for a root's leaves, the API fetches the manifest again, checks its SHA-256 against the manifest_hash on chain and that its leaves hash to the root, and serves those leaves from then on. The set's policy text reaches the API in the same step, so both appear after that first request. The holder rebuilds the root from the leaves before proving, so a wrong list fails in the holder's browser, not on chain.
The manifest
A manifest states what the set approves and, for each root, which labels it covers: name, policy, authority, root and leaves. Venues read the policy when deciding whether to accept the set, and holders when choosing one. The Open Set's current manifest, its leaf list shortened here:
{
"name": "Open Set",
"policy": "Admits deposits after a 30-second delay when their depositor is absent from the screening blocklist.",
"authority": "7T7dkQ2cQdHtFhFjXTonckPHwKYCjCuh75DLRrLtPazU",
"root": "4539167301599122206449797160771132811152393296785117966853069451915809902969",
"leaves": [
"3339404672193220511362337268179769911857044003614744538100481796177938801124",
"20981609201784542659926538977285048867101073238927570560659577384135097727928",
"…"
]
}The Open Set worker
Plaza's own ASP runs as a worker. For each new deposit it waits out the screening delay, checks the depositor against its blocklist, adds the label to its approved list if it passes, and publishes a new root. When a label leaves its list, it sends clear_roots ahead of publish_root in the same transaction. A label the check fails is rejected in the Open Set; a label still inside the delay is pending.
What an ASP cannot do
An ASP cannot move, freeze or see anyone's notes. Dropping a label stops new spends proving it in the set: at once when the ASP clears its window, otherwise when the roots that held it leave the window. See Dropping a label. The note itself stays spendable through other sets or ragequit.