OptionalclientWhether a client is connected (received a connect request)
Whether the provider is listening for events
ProtectedlogInternal logger
OptionalonCallbacks
OptionalonOptionalonA method used to accept or reject connect requests
OptionalonA method used to accept or reject nip04_decrypt requests
OptionalonA method used to accept or reject nip04_encrypt requests
OptionalonA method used to accept or reject nip44_decrypt requests
OptionalonA method used to accept or reject nip44_encrypt requests
OptionalonA method used to accept or reject sign_event requests
ProtectedpublishA method that is called when an event needs to be published
ReadonlyrelaysRelays to communicate over
Protected OptionalreqThe currently active REQ subscription
OptionalsecretThe secret used to authorize clients to connect
ProtectedseenA set of nostr requests that have been seen
The identity signer (provider's identity)
ProtectedsubscriptionThe active nostr subscription
The main signer for the actual signing operations
StaticpoolA fallback pool to use if none is pass in when creating the provider
StaticpublishA fallback method to use for publishMethod if none is passed in when creating the provider
StaticsubscriptionA fallback method to use for subscriptionMethod if none is passed in when creating the provider
Get the connection string that clients can use to connect
ProtectedhandleCall this method with incoming events
ProtectedhandleHandle NIP-04 decryption
ProtectedhandleHandle NIP-04 encryption
ProtectedhandleHandle NIP-44 decryption
ProtectedhandleHandle NIP-44 encryption
ProtectedhandleHandle sign event request
ProtectedsendSend an error response to the client
ProtectedsendSend an encrypted message to the client
ProtectedsendSend a response to the client
The client pubkey or request event
The id of the request
The result of the request
Start the provider
Optionalrequest: string | Event | NostrConnectURIAn inital connect request to respond to or a NostrConnectURI
Stop the provider
ProtectedupdateUpdates the relay subscription to listen for request events
Wait for a client to connect
Optionalabort: AbortSignal
The connected client's public key