Skip to content
On this page

Function: verifyDeviceRecords()

TypeScript
function verifyDeviceRecords(
   events: readonly NostrEvent[], 
   address: string, 
opts: VerifyDeviceRecordsOptions): Promise<ParsedDeviceEvent[]>;

Defined in: verify.ts:33 (opens in a new tab)

The device records among events that count for address: binds and revocations alike, each with a valid Nostr event, a statement that names address itself, and a BIP-322 signature by address over that statement. A record filed under the address's slot that names another address is dropped.

ParametersLink to this section

ParameterType
eventsreadonly NostrEvent[]
addressstring
optsVerifyDeviceRecordsOptions

ReturnsLink to this section

Promise<ParsedDeviceEvent[]>