BitMEX / proof-of-reserves-liabilities

Other
30 stars 3 forks source link

reject duplicate addr or scripts, fix #7 #8

Closed shuckc closed 1 year ago

shuckc commented 1 year ago

As pointed out in #7 it was possible to insert a duplicate claim in the reserves file, and so long as it is spaced by at least chunk_size other addresses this would be double counted. Since we already have the whole proof structure in memory at the output of the YAML parser, we might as well reject duplicates.