Not switched on yet. Proof-gated links cannot be created or opened on inl.one today. The ZK Privacy Gateway pages describe the design.
Policy Types
A policy type is a named set of access rules a partner platform attaches to a gated link — one Circom circuit, one on-chain verifying key, one block in policies.yaml. The Soroban contract never changes when a new policy type is added.
🧩 Two-part process
Adding a new policy type splits into a one-time engineering step and a config-only step:
🛠️ Engineering (once per new circuit)
- Write the
.circomcircuit — only the policy constraint block differs between policy types; the Merkle membership proof and nullifier logic are identical across all circuits - Run the snarkjs trusted setup and export the verifying key (both Linux and Windows script versions are maintained)
- Add a vault method to the Go dispatch table — only needed if the new policy type requires a data source no existing method returns
- Register the verifying key on-chain via
set_verifying_key, called through Interlinked's admin API
⚙️ Configuration (every routine addition after that)
- Add a
PolicySchemaentry topolicies.yaml, specifying the circuit ID, VK ID, and the field order the generic Poseidon hasher uses - Add field definitions — supported types are
uint64,bool, andiso3166_alpha3(which converts codes like"ARE"to their ISO numeric form) - Add witness field mapping, tying vault fields to circuit inputs; the Merkle path and nullifier secret are added automatically and never appear here
Steps 5 through 7 require a Gateway restart, not a recompile. For most new policy types — a new jurisdiction rule, a new KYC variant, a new deal-term combination — steps 1, 2, and 4 are the only work that touches code or the chain at all.
🔧 What stays compiled
A small set of components stay in Go source because they are executable logic rather than data:
- The generic Poseidon hasher
- The vault method dispatch table (typed Go interface bindings)
- Field type converters (
iso3166_alpha3,bool,uint64) - The config loader and schema validator
Everything else — which policy types exist, which circuit and VK each uses, which fields get hashed, which vault method is called, how vault fields map to circuit inputs — lives entirely in policies.yaml.
❓ Open design question: multi-jurisdiction policies
The current circuit computes a single policy_hash from one jurisdiction/accreditation pair. Supporting investors who qualify across multiple jurisdictions is an open design question, with two candidate approaches under consideration:
- A Merkle set-membership proof over multiple valid jurisdictions
- Issuing a separate gated link per jurisdiction