hodlwave / proof-wallet

(Work In Progress) Proof Wallet is a fork of Glacier Protocol that adds PSBT, HDM, and sequential signing.
MIT License
17 stars 5 forks source link

Feature branch for BlockchainCommons UR library #5

Open hodlwave opened 3 years ago

hodlwave commented 3 years ago

It would be better user experience if the chunking and unchunking of large PSBT data was handled automatically via software instead of manually. Since proof-wallet requires the PSBT_IN_NON_WITNESS_UTXO field for each input, PSBTs can get very large. The Uniform Resources standard from Blockchain Commons should be suitable for this purpose.

Steps...

  1. Review the Foundation Devices foundation-ur-py implementation
  2. Create a feature branch and add foundation-ur-py as a submodule of proof-wallet
  3. Add a new proof-wallet CLI function that can scan a set of QR codes and save the data in a file
  4. Update the sign-psbt function to accept an optional --psbt-filepath argument, decode the binary psbt with URDecoder and encode the base64 psbt using UREncoder befroe writing the QR code files