Static addresses for parallel dynamic dispatch

Static addresses for parallel dynamic dispatch

TL;DR: We propose one addition to Kaspa’s output model: a static address that stays fixed while the output behind it is replaced, and that transactions can read without spending. This gives state what plain UTXO lacks - a fixed address, as in an account model - while preserving parallel validation, since transactions still declare everything they read and write upfront. Addresses can also be claimed below other addresses, forming a hierarchy.

The proposal requires a hard fork, which Kaspa needs anyway to fix its STARK verifier, and an address table in every node.

We illustrate two uses: a router and a name service with parallel registrations. The same primitive covers asset factories with unique asset IDs, NFT collections with capped supplies, one canonical market per asset pair, oracle reports keyed by feed and period as well as accounts.

Motivation

In November 2026, RISC Zero published a critical advisory. The fix required regenerated circuits and a new Groth16 verifying key. Every verifier had to switch, and proofs made with earlier releases no longer verify.

On Ethereum, this was a small operation. Applications call a router: an ordinary contract at a fixed address that forwards each proof to the verifier for its version. RISC Zero deployed a new verifier, added it to the router and emergency-stopped the old ones.

On Kaspa, it is harder (write-up). Every Groth16 covenant carries its own copy of the verifying key and must migrate independently. The native STARK verifier has its recursion circuit hard-coded in consensus, so replacing it requires a hard fork.

The direct fix is to let the STARK verifier take the circuit as an argument, which we assume below. But a larger problem remains: applications need a common place to find new keys and circuits, and Kaspa’s execution model doesn’t support a router today.

Rather than repairing one verifier at a time, let’s ask what prevents developers from building routers on Kaspa and use the same hard fork to introduce the missing primitive.

The missing primitive

A router is a fixed address whose content can change. On Ethereum, sequential execution allows any number of transactions to call the same contract. To preserve Kaspa’s parallel validation, a router needs both a fixed address and a way to be used without being spent. Ordinary outputs provide neither:

  • No fixed address. An output is identified by its outpoint, which changes whenever the output is spent and replaced. A covenant ID survives an update but identifies a lineage, not a unique output. Inter-covenant communication with dynamic dispatch gives covenants interfaces for calling each other, but no address to dispatch on. Callers must locate services by convention, for example through the leader of a known covenant ID.
  • No read without a spend. Every transaction consulting a router must co-spend its output. Readers therefore contend for it, allowing at most one per block, even when none wants to change it.

Two smaller fixes fall short. Replicating the router reduces contention but doesn’t eliminate it, and every update must sweep all copies. Reading by outpoint, as with Cardano’s reference inputs, removes contention but leaves the address problem: an update invalidates every reader in flight, affected or not. Nor can an outpoint name something that doesn’t exist yet.

We propose a primitive that solves both problems: an output can hold a static address, and a transaction can read the current output behind that address without spending it.

Static addresses

A static address remains fixed while the output behind it is replaced. It is distinct from a wallet address, which encodes a script public key.

We give it the form of an outpoint: a 32-byte ID and an index. Since a transaction has at most 1000 outputs, we reserve the largest index, MAX = 0xFFFFFFFF, for static addresses. No actual output sits at (id, MAX). Nodes instead resolve it to the output holding that address.

An output can acquire an address through a new optional field, independent of its covenant binding:

pub struct TransactionOutput {
    pub value: u64,
    pub script_public_key: ScriptPublicKey,
    pub covenant: Option<CovenantBinding>,
    pub address_binding: Option<AddressBinding>,
}

pub enum AddressBinding {
    /// Claim the address (H(outpoint || key), MAX),
    /// where `outpoint` is named by `authorizing_input`.
    Claim { authorizing_input: u16, key: Hash },

    /// Continue the address of the output spent
    /// by `authorizing_input`.
    Continue { authorizing_input: u16 },

    /// End the address of the output spent
    /// by `authorizing_input`.
    /// The carrying output gets no address.
    Discontinue { authorizing_input: u16 },
}

Claim creates an address from an outpoint and a 32-byte key chosen by the claimer:

(H(outpoint || key), MAX)

The outpoint is the one named by the authorizing input, and H is domain-separated, like the hashes for transaction IDs and covenant IDs.

If the input is a spend, the address can only be claimed once, since an outpoint can only be spent once. It is also known before the transaction exists, allowing outputs created together to refer to each other. One spend can authorize multiple claims with different keys. If the input is a read, the same rule creates an address below another address, as described in “Hierarchical addresses”.

A transaction spending an addressed output must explicitly carry its address forward with Continue or end it with Discontinue. The latter acts as a stamp and gives its carrying output no address. This prevents addresses from being lost accidentally, for example when a wallet selects an addressed output as an ordinary coin.

Nodes maintain an address table mapping each address to the outpoint of the output currently holding it. At most one output holds an address at any time. The output itself remains an ordinary UTXO, at an ordinary outpoint, spent at most once.

Reading and writing

The index of an input’s outpoint determines its behavior: (T, i) with i < MAX is a spend, as today, while (id, MAX) is a read. For a read, the node resolves the address and loads the corresponding output without removing it.

Spend Read
Removes the output yes no
May be named by multiple transactions in a block no yes
Runs the output’s script yes yes
Input value and covenant ID unchanged 0 and none
Can authorize covenant binding, Claim, Continue, Discontinue Claim

A write is an ordinary spend of the current output. With Continue, the table points to its successor; with Discontinue, the entry is removed. The output’s script determines who may do either.

Readers neither contend with each other nor block writers. All transactions in a block validate against the pre-block state, so readers see the same output even when a writer replaces it in that block. The change takes effect in subsequent blocks in consensus order. Writers contend as ordinary double spends.

In the following trace, the readers’ own spends are omitted:

T0   input (S, 0), output 0 with Claim
     A = (H((S, 0) || key), MAX) -> (T0, 0)

T1   input A
     reads (T0, 0), in a later block

T2   input A
     reads (T0, 0), in the same block as T1

T3   input (T0, 0), output 0 with Continue
     A -> (T3, 0), in the same block as T1

T4   input A
     reads (T3, 0), in a later block

Read inputs are exempt from DoubleSpendInSameBlock. Within a transaction, the existing duplicate-input rule remains: an address can be named at most once.

A read has value 0 and no covenant ID, so it contributes neither funds nor covenant inputs.

The referenced output’s script runs with the read input’s signature script, allowing it to control who may read and claim below it. The script distinguishes a read from a spend through OpOutpointIndex, which returns MAX for reads. A script that doesn’t make this distinction applies its spend conditions to reads as well.

For readers to follow updates, the data and script must reside directly in the script public key. Behind a script hash, readers would have to supply them, making every update break existing readers. Bare scripts are currently non-standard but consensus-valid. Admitting them into the mempool requires an ordinary node release, not a fork.

Unlike a spend, which names an exact output, a read follows an address through updates. The data it reads can determine whether a transaction is valid, but not what it does: its spends and outputs are already fixed. A reader requiring a particular version can pin it by comparing the resolved outpoint with the expected one.

Hierarchical addresses

An address claimed from a spend is unique but arbitrary. To locate entries by name, version or asset pair, applications would still need a directory - another shared output that every new entry must update.

We can avoid this without introducing another binding. When the authorizing input of a Claim reads an address parent = (id, MAX), the claimed address is:

(H(parent || key), MAX)

We call this parent / key, and refer to both the authorizing address and its holding output as the parent. Since real outpoints never use index MAX, claims below addresses are distinct from claims authorized by spends, barring hash collisions.

The key’s meaning is up to the parent: a number, an ID or the hash of something longer, whose preimage the parent’s script can check. Anyone knowing the parent and key can compute the address, even before it exists.

Two checks govern a claim:

  • The authorizing script decides whether the claim is allowed. For a read, the parent’s script inspects the outputs claiming below it and approves or rejects their keys and contents. A publicly readable parent must explicitly reject unwanted claims.
  • Consensus checks that the address is free. For a claim from a spend, this follows from the uniqueness of the spend. For a claim below a parent, it requires an additional lookup while loading the inputs.

Availability cannot be checked by a script alone, since a script sees only its own transaction. Claiming mirrors spending: a spend requires an output to be present, a claim requires an address to be absent. Two claims of the same address conflict like double spends: they cannot coexist in one block, and across parallel blocks consensus order decides.

Once claimed, a child is an ordinary static address. It can be read, written or used as a parent without involving its own parent. Unlike an address claimed from a spend, it can be claimed again after Discontinue.

A transaction can write to a parent and claim below it simultaneously, but it must also read the parent to authorize the claim.

The resulting hierarchy might look like this for a name service:

V                       a vendor that sells names
    alice               a name, stores its owner
        addr            a record
        shop            a subdomain
    bob                 another name

V / alice / shop is claimed below V / alice, which is claimed below V. Each name stands for its hash.

A parent controls claims directly below it, not the outputs that hold those addresses. Thus alice approves shop without involving V. Each child has its own script: it may stand independently or defer to its parent by requiring a read of the parent’s address, so that the parent’s script runs and decides. In the latter case, the parent acts like a program that owns it.

The hierarchy is purely logical. All addresses reside in one flat table, and parents keep no commitment to their children. Such a commitment would reintroduce contention by requiring every claim to update the parent.

Changes to the validity rules

Most changes extend existing consensus checks. The proposal requires a new transaction version and output field, four opcodes, an additional UTXO entry field, a special case in the signature hash, and the address table.

The central changes are simple: reads do not count as double spends, claims require free addresses, and competing claims conflict like double spends.

The full list of rule changes

A transaction in isolation

  • Address bindings and read inputs require a new transaction version, as covenant bindings did. Both the transaction ID and signature hash cover the binding.
  • TxDuplicateInputs remains unchanged. A transaction can name an address once and may also spend the output holding it.
  • At least one input must be a spend. Otherwise, a transaction consumes nothing and could be accepted repeatedly.
  • No two outputs may continue or discontinue the address of the same input, or claim the same address.

A block body in isolation

  • Read inputs are exempt from DoubleSpendInSameBlock.
  • No two transactions may claim the same address.
  • No transaction may read an address claimed in the same block, the counterpart of ChainedTransaction.

A transaction in UTXO context

  • Reads and claims resolve against the pre-block address table, independently of transaction order within the block.
  • Every read must resolve to an output. Otherwise, the transaction fails with MissingTxOutpoints.
  • Bindings are checked while loading inputs, before scripts run, according to the table below.
  • Spending an addressed output requires exactly one output that continues or discontinues its address.
  • Older transaction versions cannot spend addressed outputs, since they cannot carry bindings.
  • Every input’s script runs, including reads.
  • Read inputs have value 0 and no covenant ID. They cannot authorize covenant bindings and receive no storage mass credit, since they remove no UTXO.
Binding Authorizing input Address State check Table effect
Claim spend or read hash of outpoint and key address is free adds entry
Continue spend address of spent output spent output holds address moves entry
Discontinue spend none spent output holds address removes entry

Each UTXO entry stores the address its output holds, just as it stores the covenant ID.

Scripts

  • Existing introspection opcodes work on reads. OpOutpointTxId and OpOutpointIndex return the address. OpTxInputSpk returns the resolved output’s script public key. OpTxInputAmount returns 0, and OpInputCovenantId behaves as for an output without a covenant.
  • Four new opcodes are introduced. One returns an output’s address binding. Two enumerate outputs whose address binding names a given input, following OpAuthOutputCount and OpAuthOutputIdx, avoiding a scan of all outputs. The fourth returns the counterpart of the input’s named outpoint: for a spend, the address held by the spent output, if any; for a read, the resolved outpoint. Together, these allow scripts to enforce continuation, approve claims and pin reads.
  • Scripts can compute addresses themselves. H is a keyed BLAKE2b hash, as with covenant IDs, computable using OpBlake2bWithKey.
  • A read signature commits to the address rather than its current output. For inputs with index MAX, the signature hash omits the script public key, allowing signed reads to follow updates.
  • An output that is both read and spent in a transaction runs its script twice. The script must ensure that one payment cannot satisfy both executions, as with two inputs sharing a script today.

Across blocks

No new ordering mechanism is needed. Merged blocks are processed in consensus order. A transaction is not accepted if its claimed address is no longer free, its read no longer resolves, or a script fails against the newly resolved output, just as with a losing double spend.

Example: a router

A router is an output at a published address R. Its script public key carries verifier parameters - a verifying key or circuit - and determines who may replace them. Applications store R, read it, and extract the parameters through OpTxInputSpk. In the terminology of the dynamic dispatch post, the interface determines what can be asked, and the address determines whom to ask.

An update is a single write that all subsequent readers see. Applications following the address trust whoever may write to or discontinue it, whether a single signer, a multisig or another authorization rule. Anyone can operate a router, and applications choose which one to follow. Applications that prefer to approve updates themselves can pin the router’s outpoint. Their transactions then fail after an update until they accept the new one.

The operator can also maintain one address per verifier version, R / version. Adding a version is a claim; stopping one is a discontinue, equivalent to an emergency stop.

An application reading R follows the current parameters, so proofs for older parameters fail after an update. One reading R / version continues to work until that version is stopped.

For Groth16, nothing more is needed, since the verifying key already comes from the script. The STARK path has two additional requirements: the verifier must accept the circuit as an argument, and outputs must be able to carry it. A script public key currently accommodates about 10 KB, while a circuit is about 70 KB, requiring either a larger limit or several outputs.

Example: a name service without a registry

Hierarchical addresses are particularly useful when independent parties create state.

A conventional name service keeps a commitment to registered names in a registry covenant. Every registration updates it, so someone buying alice contends with someone buying bob.

Instead, we use a vendor V: an addressed output storing the price and payment recipient. A buyer reads it and claims V / name.

An Argent-like sketch (proposed syntax, none of it exists yet):

actor NameVendor owns VendorState {
    register(bytes name, PubKey buyer) {
        assert isRead();
        assert isCanonicalName(name);
        assert paymentTo(self.recipient) >= self.price;
        assert claimsOnly(hash(name), Name { name: name, owner: buyer });
    }
}

Since one read can authorize multiple claims, the vendor checks that the transaction claims exactly the requested name below it and nothing else. The key is the hash of the name alone, so two buyers of alice claim the same address.

The vendor works like a kiosk: selling a name doesn’t change it. Purchases of different names proceed independently, while competing purchases of the same name conflict only at that name’s address. The first in consensus order wins.

Resolving alice is a read of V / alice; transferring it is a write that changes the owner without changing the address.

Records and subdomains are children of the name. A subdomain that defers to alice requires authorization from the owner recorded there and follows transfers of the name. An independently owned subdomain stays with its buyer.

The same pattern covers asset factories with unique asset IDs, one canonical market per asset pair, and oracle reports keyed by feed and period.

An account can serve as a root, with independently managed capabilities as children. A parent can also restrict the keys it accepts: an NFT collection accepting only keys 0 through 9999 can cap its outstanding supply without maintaining a counter.

Shared outputs are still necessary for state that depends on everyone’s actions collectively, such as the next sequential number or a price derived from pooled reserves.

Points for discussion

  • Defaults. A script that allows public reads also allows claims below it unless it explicitly rejects them. We leave this to the script because holding an address is opt-in. Should claims instead require an explicit flag in the binding?
  • Mempool. Writing, discontinuing or claiming an address requires re-evaluating affected transactions that read or claim it.
  • The table. It must roll back with reorgs and be rebuilt during sync. Deriving it from the UTXO set simplifies both: each UTXO entry stores its address, so the UTXO commitment also covers the table. Claims additionally require efficient lookups of absent addresses.
  • Pricing. Reads load outputs and run scripts, so they should cost what ordinary inputs cost in compute mass. Addressed outputs pay ordinary storage mass, while claims also allocate address table entries and should incur an additional cost. How much?

Conclusion

Static addresses provide an account-style view of UTXO state for reads. The UTXO set remains the source of truth, every write remains a spend, and transactions still declare their dependencies upfront. Scripts can link to state at runtime without sacrificing parallel validation.

With this primitive, the next verifier advisory can be handled by a write to a router: directly for Groth16, and for STARK once its two additional requirements are met.

But routers are only the starting point. Hierarchical addresses allow applications to create uniquely identifiable state in parallel, without maintaining shared registries.

Let’s discuss whether this is the right primitive, what other applications it enables, and how best to settle the points above.

3 Likes

What about making an assumption of known leadership covenant ids into some fee maintained covenant requirement to include utxo namespace account interactions; one can be assumed true perhaps if it lasts over several pruning periods in attestation to the veracity of some scheme of requirements from the utxo set; so some word floats to mind about incidental utxo set evidence being an assumption of the network stability framing what I think; I mean it doesn’t necessarily sound terribly dangerous

The counting of it seems like meet for the ready transactions fee calculator system; I think it’s some geometric multiple cost additional of interlinked data, something like an incurrent presumption of containership for data charge