Use random private key for bunker connection
This commit is contained in:
@ -43,6 +43,10 @@ export class PrivateKeySigner implements EventSigner {
|
||||
this.#publicKey = getPublicKey(this.#privateKey);
|
||||
}
|
||||
|
||||
get privateKey() {
|
||||
return this.#privateKey;
|
||||
}
|
||||
|
||||
init(): Promise<void> {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
@ -67,6 +67,12 @@ export class Nip46Signer implements EventSigner {
|
||||
return [this.#relay];
|
||||
}
|
||||
|
||||
get privateKey() {
|
||||
if(this.#insideSigner instanceof PrivateKeySigner) {
|
||||
return this.#insideSigner.privateKey;
|
||||
}
|
||||
}
|
||||
|
||||
async init() {
|
||||
const isBunker = this.#proto === "bunker:";
|
||||
if (isBunker) {
|
||||
|
Reference in New Issue
Block a user