Function: verifyDeviceRecords()
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
| Parameter | Type |
|---|---|
events | readonly NostrEvent[] |
address | string |
opts | VerifyDeviceRecordsOptions |
ReturnsLink to this section
Promise<ParsedDeviceEvent[]>