bear_omegaMember
Posts: 2 · Reputation: 80
#1Aug 4, 2022, 07:07 AM
Hey everyone, I could really use some help with a project I’m diving into. It’s my first time posting here so I hope this is the right place to ask. I did throw this question on Reddit too, but honestly, I think I might get better insights here since it’s a bit technical.
What I’m trying to achieve is setting up a 2-of-2 multisig wallet using Sparrow Wallet and Seedsigner that transitions to a 1-of-2 multisig wallet after a specific date. Basically, I want either key to be able to sign transactions after a certain point in time.
Here’s the plan:
Before July 5th, 2037 (which is the unix timestamp 2130393600), both the RED and GREEN keys need to sign off on a transaction. After that date, either of the keys can sign alone.
I got some help from ChatGPT to generate this miniscript:
wsh(thresh(1, and(and(pk([REDfp/48h/0h/0h/2h]xpubRED.../0/*), pk([GREENfp/48h/0h/0h/2h]xpubGREEN/0/*)), after(2130393600)), pk([REDfp/48h/0h/0h/2h]xpubRED.../0/*), pk([GREENfp/48h/0h/0h/2h]xpubGREEN.../0/*)))
I think the miniscript looks solid.
The hitch is that I can’t seem to get Sparrow Wallet to generate the wallet with this miniscript. I’m using version 2.1.2. After I put the script into "Edit wallet output descriptor" and hit "OK", it seems to accept it since I’m not getting any error messages. But when I check, the wallet doesn’t reflect the policy I laid out above.
The main settings page keeps defaulting back to "wsh(sort...".