davidben / merkle-tree-certs

Other
9 stars 3 forks source link

Avoid floating points #66

Closed bwesterb closed 1 year ago

bwesterb commented 1 year ago

It's tempting to compute ceil(log_2(n))+1 using floating points. Even though I doubt we'll see batches of around 2^53 certs, it's better to stick to integers.