Skip to content
docs

bunkerPolicies

bunkerPolicies(ledger, options): Policies

Defined in: policies.ts:73

Policies that keep protected accounts sealed, composed over the app’s own.

For an account in the bunker, the only write allowed is a full sweep to a sealed address of the same wallet. Everything else would reveal the public key: message and typed-data signatures, approvals, partial sends, sends to anyone else.

For every account, protected or not, each confirmed write is recorded in the ledger before the kit signs it. That is how an address with nonce 0 is still known to be exposed after a login signature.

It uses the confirm hook, which the kit calls for every write, so it needs no change in the kit.

ExposureLedger

BunkerOptions

Policies