Optional
clientWhether a client is connected (received a connect
request)
Whether the provider is listening for events
Protected
logInternal logger
Optional
onCallbacks
Optional
onOptional
onA method used to accept or reject connect
requests
Optional
onA method used to accept or reject nip04_decrypt
requests
Optional
onA method used to accept or reject nip04_encrypt
requests
Optional
onA method used to accept or reject nip44_decrypt
requests
Optional
onA method used to accept or reject nip44_encrypt
requests
Optional
onA method used to accept or reject sign_event
requests
Protected
publishA method that is called when an event needs to be published
Readonly
relaysRelays to communicate over
Protected
Optional
reqThe currently active REQ subscription
Optional
secretThe secret used to authorize clients to connect
Protected
seenA set of nostr requests that have been seen
The identity signer (provider's identity)
Protected
subscriptionThe active nostr subscription
The main signer for the actual signing operations
Static
poolA fallback pool to use if none is pass in when creating the provider
Static
publishA fallback method to use for publishMethod if none is passed in when creating the provider
Static
subscriptionA 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
Protected
handleCall this method with incoming events
Protected
handleHandle NIP-04 decryption
Protected
handleHandle NIP-04 encryption
Protected
handleHandle NIP-44 decryption
Protected
handleHandle NIP-44 encryption
Protected
handleHandle sign event request
Protected
sendSend an error response to the client
Protected
sendSend an encrypted message to the client
Protected
sendSend a response to the client
The client pubkey or request event
The id of the request
The result of the request
Start the provider
Optional
request: string | Event | NostrConnectURIAn inital connect
request to respond to or a NostrConnectURI
Stop the provider
Protected
updateUpdates the relay subscription to listen for request events
Wait for a client to connect
Optional
abort: AbortSignal
The connected client's public key