gballet / multiproof-rs

A rust implementation of Alexey Akhunov's multiproof algorithm
Apache License 2.0
33 stars 8 forks source link

Keys are not truncated when parsing an Extension #27

Closed s1na closed 5 years ago

s1na commented 5 years ago

In make_multiproof I think the goal had been to truncate keys of keyvals when parsing an Extension, but the key is simply being cloned:

https://github.com/gballet/multiproof-rs/blob/269211ec3dee159bb46314390e6d8cbda40381e1/src/lib.rs#L492-L499

s1na commented 5 years ago

I think an Extension opcode also needs to be added to the instructions.