ConstClear all registrations.
Get all registered windowId strings.
Array of all registered window identifiers
Get identity metadata for a registered Window.
The Window reference to look up
Identity metadata, or undefined if not registered or no identity set
Look up the Window reference for a given windowId.
The window identifier to look up
The Window reference, or null if not found
Look up the windowId for a given Window reference.
The Window reference (typically from event.source)
The windowId string, or undefined if not registered
Register a window reference with a windowId and optional identity metadata.
The iframe's contentWindow reference
The unique identifier for this napplet window
Optionalidentity: { aggregateHash: string; dTag: string }Optional NIP-5D identity metadata (dTag and aggregateHash)
Unregister a window by its windowId, removing the mapping.
The window identifier to remove
Bidirectional registry mapping Window references to windowId strings. Optionally stores NIP-5D identity metadata (dTag and aggregateHash) per window.