Cache all the things
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user