MCPcopy Create free account
hub / github.com/cameri/nostream / getRelayPublicKey

Method getRelayPublicKey

src/app/static-mirroring-worker.ts:160–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158 }
159
160 private getRelayPublicKey(): string {
161 const relayPrivkey = getRelayPrivateKey(this.settings().info.relay_url)
162 return getPublicKey(relayPrivkey)
163 }
164
165 private canAcceptEvent(event: Event): boolean {
166 if (this.getRelayPublicKey() === event.pubkey) {

Callers 1

canAcceptEventMethod · 0.95

Calls 2

getRelayPrivateKeyFunction · 0.90
getPublicKeyFunction · 0.90

Tested by

no test coverage detected