Implements

Constructors

Properties

auths: Set<string> = ...
handleAuth: ((url: string) => Promise<void>) = defaultHandleAuth
isConnected: boolean = false

Whether the signer is connected to the remote signer

log: Debugger = ...
nip04?: {
    decrypt: ((pubkey: string, ciphertext: string) => string | Promise<string>);
    encrypt: ((pubkey: string, plaintext: string) => string | Promise<string>);
}
nip44?: {
    decrypt: ((pubkey: string, ciphertext: string) => string | Promise<string>);
    encrypt: ((pubkey: string, plaintext: string) => string | Promise<string>);
}
pubkey?: string

The users pubkey

relays: string[]

Relays to communicate over

remote?: string

The remote signer pubkey

requests: Map<string, Deferred<any>> = ...
signer: SimpleSigner

The local client signer

verifyEvent: ((event: Event) => event is VerifiedEvent) = verifyEvent

Accessors

Methods

  • Request to create an account on the remote signer

    Parameters

    • username: string
    • domain: string
    • Optionalemail: string
    • Optionalpermissions: string[]

    Returns Promise<string>

  • Returns {
        client: string;
        pubkey: undefined | string;
        relays: string[];
        remote: undefined | string;
    }

    • client: string
    • pubkey: undefined | string
    • relays: string[]
    • remote: undefined | string