micro-bitcoin / uBitcoin

Bitcoin library for microcontrollers. Supports Arduino, mbed, bare metal.
https://micro-bitcoin.github.io/
MIT License
166 stars 34 forks source link

Signing PSBT twice creates invalid PSBT #19

Open stepansnigirev opened 2 years ago

stepansnigirev commented 2 years ago

The reason is that signatures are added twice, so we get duplicated keys. It's a problem of implementation - metadata is using lists, not hashmaps. Makes sense to refactor using hashmaps.