(eventId: EventId)
| 250 | } |
| 251 | |
| 252 | export const getEventProofOfWork = (eventId: EventId): number => { |
| 253 | return getLeadingZeroBits(Buffer.from(eventId, 'hex')) |
| 254 | } |
| 255 | |
| 256 | export const getPubkeyProofOfWork = (pubkey: Pubkey): number => { |
| 257 | return getLeadingZeroBits(Buffer.from(pubkey, 'hex')) |
no test coverage detected