Skip to main content
A vault’s normal spends are covenants, which the operator and the emulator cosign. Every vault also needs an exit path: the path its owners use to claim funds onchain if the operator is unavailable. The operator also requires one before it admits the vault’s outputs to a batch. This page shows which exit path each kind of vault uses. An exit path is a tapscript function. Bitcoin checks it after the output is unrolled (its virtual transactions are broadcast onchain) and the exit delay passes. older(serverExitDelay) gates the path. The client binds serverExitDelay to the operator’s delay, so it is not a constructor argument (CSV delays). The path body has a fixed order: an optional hash, an optional timelock, and then one checkSig or one checkMultisig. Give it a standalone name such as unilateral. A tapscript with the name of a covenant replaces that covenant’s cosigned path instead, and must contain emulator.

Fixed-party vaults: an N-of-N of the parties

For a fixed-party vault the author names every party key in that path, and the threshold equals the number of keys. The operator accepts only an N-of-N path, so the author cannot write a smaller threshold. The compiler does not add the keys for you. Name both party keys:
Escrow passes its own exit parameter to older instead of serverExitDelay. The savings vault names the owner:

Tokenized vaults

A tokenized vault cannot name every holder in one path. A standing exit for open membership, PULSE, is still research (compiler#91). No template on this tab ships it. A proof-of-concept prediction market writes the path this way:
contracts/src/market_vault.ark @ c0b063f
The Tokenized, Lending, and Automated Market Maker contracts use the same path.