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