The pubkey of the bunker that will be providing signatures
Optional
secretAn optional secret value provided to connect to the bunker
Optional
userThe pubkey of the user that events will be published as
Allows creating a new account on the remote server.
Optional
username: stringDesired username for the NIP-05
Optional
domain: stringDesired domain for the NIP-05
Optional
email: stringEmail address to associate with this account -- Remote servers may use this for recovery
The public key of the newly created account
Signs the given Nostr event.
The Nostr event to be signed.
A promise that resolves to the signature of the signed event.
This NDKSigner implements NIP-46, which allows remote signing of events. This class is meant to be used client-side, paired with the NDKNip46Backend or a NIP-46 backend (like Nostr-Connect)
Emits
authUrl -- Emitted when the user should take an action in certain URL. When a client receives this event, it should direct the user to go to that URL to authorize the application.
Example