Resolve the co-signer key for network, letting a caller substitute its own.
The override is the escape hatch for three situations, and the first is the
one that matters operationally:
A network rotated its emulator key and this SDK has not shipped the new
constant yet. Since Arkade.connect no longer asks the service which
key it signs with, a rotation is invisible here until the constant is
updated — covenants keep building against the retired key and fail only
when a claim is attempted. Passing the new key restores service without
waiting for a release, so a rotation is a config change rather than an
outage.
A private or self-hosted emulator, including on a network with no pinned
key at all (signet, testnet, a hand-built Network).
Tests and local stacks.
Supplying it means co-signing with a different service: every covenant built
from the returned key can be completed by whoever holds it and by no one
else, so it is a statement that you trust that operator in place of the
network's. Prefer defaultEmulatorPubkey unless that is deliberate.
A malformed override throws rather than being passed through — a typo here
would otherwise surface as an unspendable contract long after the fact.
Resolve the co-signer key for
network, letting a caller substitute its own.The override is the escape hatch for three situations, and the first is the one that matters operationally:
Arkade.connectno longer asks the service which key it signs with, a rotation is invisible here until the constant is updated — covenants keep building against the retired key and fail only when a claim is attempted. Passing the new key restores service without waiting for a release, so a rotation is a config change rather than an outage.Network).Supplying it means co-signing with a different service: every covenant built from the returned key can be completed by whoever holds it and by no one else, so it is a statement that you trust that operator in place of the network's. Prefer defaultEmulatorPubkey unless that is deliberate.
A malformed override throws rather than being passed through — a typo here would otherwise surface as an unspendable contract long after the fact.