Skip to content
On this page

Function: liveDevices()

TypeScript
function liveDevices(records: readonly ParsedDeviceEvent[]): ParsedDeviceEvent[];

Defined in: live.ts:26 (opens in a new tab)

The bind records still live after revocations.

records MUST already be BIP-322-verified, both binds and revocations: a revocation's authority is the address's signature, so one that was not verified must not be passed in. A revocation retires every bind of its (address, device_id) whose signed created_at is not later than its signed revoked_at, whichever Nostr key carried either record and whichever relay served it. Relay replacement is not needed, so a lost device can be revoked from another device or the wallet, and a relay that missed the revocation cannot keep the device alive. A bind signed after the revocation stays live.

ParametersLink to this section

ParameterType
recordsreadonly ParsedDeviceEvent[]

ReturnsLink to this section

ParsedDeviceEvent[]