cryptoadvance / specter-diy

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

Memory allocation problems with multiple wallets #260

Open stepansnigirev opened 1 year ago

stepansnigirev commented 1 year ago

Steps to reproduce:

Expected behaviour:

Solution:

Don't keep all wallets in RAM (only keep names), load them as they are needed. This will slow down PSBT parsing, but will work with any number of wallets. To speed up things maybe makes sense to off-load them to SDRAM instead of MCU internal RAM.