nostr-websocket-utils v0.3.0
nostr-websocket-utils / countLeadingZeroBits
countLeadingZeroBits(hex): number
hex
number
Calculates the number of leading zero bits in a hex string
string
Hex string to check
Number of leading zero bits
nips/nip-13.ts:16