export function verify_blocks (pub: unknown, data: unknown): readonly boolean[] {
const blocks: unknown[] = isArray(data) ? data : [data]
const count: unknown = blocks.length
- if (typeof count !== 'number' || !count || count === Infinity || count === -Infinity) {
+ if (typeof count !== 'number' || count !== count || count === Infinity || count === -Infinity) {
throw new Nano25519TypeError('Invalid blocks length', { cause: data })
}
if (count < 1) {