cryptoadvance / specter-diy

DIY airgapped hardware wallet that uses QR codes for communication with the host
MIT License
441 stars 73 forks source link

Implement scanning of animated QR code #47

Closed stepansnigirev closed 4 years ago

stepansnigirev commented 4 years ago

The problem: Multisig wallet descriptors and transactions are pretty large. It's hard to scan even 2 of 3 multisig transaction with more than one input.

The idea is to split QR code on software and animate it. We can put a part number in the beginning of the QR code for example. Such that if we see QR code of the form p2of5 <data> we know that we scanned 2nd of 5 QR codes. QRScanner class should be able to detect these animated QR codes and continue scanning until we got all the codes. Then it should combine them and send full data.