MCPcopy Create free account
hub / github.com/block/buzz / storageKey

Function storageKey

desktop/src/features/channels/unreadRootIdStore.ts:4–4  ·  view source on GitHub ↗
(pubkey: string)

Source from the content-addressed store, hash-verified

2// tolerant of malformed or unavailable localStorage.
3export function makeRootIdStore(prefix: string, maxEntries = 1000) {
4 const storageKey = (pubkey: string) => `${prefix}:${pubkey}`;
5 return {
6 read(pubkey: string): Set<string> {
7 try {

Callers 2

readFunction · 0.70
writeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected