bump version

This commit is contained in:
Jon Staab
2026-01-16 10:50:23 -08:00
parent 1947522620
commit 481a1fc5b7
14 changed files with 20 additions and 22 deletions
+2
View File
@@ -512,4 +512,6 @@ export class Nip46Signer implements ISigner {
this.getPubkey().then(pubkey => this.broker.signEvent(prep(template, pubkey))),
options,
)
cleanup = async () => this.broker.cleanup()
}
+5
View File
@@ -45,6 +45,7 @@ export interface ISigner {
nip04: EncryptionImplementation
nip44: EncryptionImplementation
getPubkey: () => Promise<string>
cleanup?: () => Promise<void>
}
export const decrypt = async (signer: ISigner, pubkey: string, message: string) =>
@@ -83,6 +84,10 @@ export class WrappedSigner extends Emitter implements ISigner {
decrypt: async (pubkey: string, message: string) =>
this.wrapMethod("nip44.decrypt", () => this.signer.nip44.decrypt(pubkey, message)),
}
async cleanup() {
await this.signer.cleanup?.()
}
}
export const signWithOptions = (