photon-sdk / photon-lib

A high level library for building bitcoin wallets with react native
https://docs.photonsdk.org
MIT License
53 stars 12 forks source link

2-of-2 Multisig Timelock decaying to single #28

Open xsats opened 3 years ago

xsats commented 3 years ago

Upon my first discovery of the photon-sdk, the keyserver architecture reminded me a bit of the way Blockstream Green's standard account functions.

One major difference between the two is Blockstream's CSV timelock, where utxos received in the wallet decay to a single sig after a year, permitting recovery of funds in the event of loss of user access to their wallet/device. I understand that this would mean that the keyserver would need to play a much more active role during wallet usage, since it would then be required to sign any transactions made inside the timelock period, but I am curious to know whether this is something that has been considered for Photon and hear more thoughts from others on whether this might be a beneficial additional possible wallet setup as part of this project.

moneyball commented 3 years ago

I agree this is a good feature and could fit the scope of Photon. The only question in my mind is the priority of this vs. other initiatives, such as:

  1. Providing native APIs for Kotlin/Android and Swift/iPhone
  2. Security audit/more eyeballs on the code to gain confidence in using it in production at scale
  3. Adding support for multi-sig wallet backup data (pubkeys)
  4. Adding support for LN wallet backup data