Cache all the things

This commit is contained in:
2023-09-05 14:57:50 +01:00
parent 5521f685fc
commit b1459d0f49
49 changed files with 805 additions and 243 deletions

View File

@ -13,6 +13,7 @@ import {
PowMiner,
PrivateKeySigner,
RelaySettings,
SignerSupports,
TaggedNostrEvent,
u256,
UserMetadata,
@ -57,6 +58,10 @@ export class EventPublisher {
return new EventPublisher(signer, signer.getPubKey());
}
supports(t: SignerSupports) {
return this.#signer.supports.includes(t);
}
get pubKey() {
return this.#pubKey;
}