Skip to content
docs

ExposureCode

ExposureCode = SealabilityCode | "imported-key" | ExposureReason | "no-probe" | "probe-failed"

Defined in: scan.ts:34

One fact of a report, as a code an app can translate and style:

  • a SealabilityCode: what the address type allows. Always first.
  • imported-key: no seed stands behind the key, so a seed-ownership proof cannot recover it.
  • an ExposureReason, one for each way the ledger knows the key was exposed: transaction, message and typed-data (this wallet signed one), dapp-session (a dApp connection handed out the public key), on-chain (a scan found a transaction of the key on the chain, signed by this wallet or by another copy of the key).
  • no-probe: unknown because no probe was given for this chain family, so the chain was not asked.
  • probe-failed: unknown because the probe was asked and could not tell (an RPC error, a network that did not answer).