Files
nostr-tools/nip13.test.ts
Alex Gleason 718032022c just format
2023-08-31 13:42:15 -05:00

8 lines
243 B
TypeScript

import { getPow } from './nip13.ts'
test('identifies proof-of-work difficulty', async () => {
const id = '000006d8c378af1779d2feebc7603a125d99eca0ccf1085959b307f64e5dd358'
const difficulty = getPow(id)
expect(difficulty).toEqual(21)
})