-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
With a limited amount of memory in a ledger device, we cannot have more than some small number of inputs. In testing, a Nano S will only allow us to have 14 UTXOS in a transaction.
To support more UTXOs (an arbitrary number, so we're only limited by mass limit), use Merkle Trees.
Reference: https://www.youtube.com/watch?v=n6nEPaE7KZ8
Change in sign_tx APDU:
- First APDU will receive the version, output length, input length and merkle root
- For {0...input_length}: ask the client to give provide the input along with the merkle proof. Verify the merkle proof to legitimize the input.
- Request approval from user to continue with signing
- After all inputs are verified this way, For {0..input_length}: ask the client to give provide the input along with the merkle proof. This time, sign them then ask for the next input.
Metadata
Metadata
Assignees
Labels
No labels