bigbuffet-rw/app/soapbox/utils/nostr.ts

6 lines
165 B
TypeScript
Raw Normal View History

/** Check whether the given input is a valid Nostr hexidecimal pubkey. */
const isPubkey = (value: string) => /^[0-9a-f]{64}$/i.test(value);
export {
isPubkey,
};