Help understanding how to do Key Reuse with different thresholds #738
Replies: 1 comment 2 replies
-
In this case, I would use multiple Tapbranches. There is no problem in principle with key reuse across tapbranches (though I don't think that this library understands that -- our validation logic is very crufty and I've been struggling to organize it lately -- see #723). If there is a specific key (say,
But in the general case you describe, this might not be possible right now in Miniscript. (With the caveat that it should be possible with Taproot and I just don't know if this library is smart enough to understand that.) If Miniscript itself were smarter, you would be able to directly make the threshold value parameterized by timelocks. Given the popularity of these "decaying timelock" constructions this might be something that we should consider adding to the language.. |
Beta Was this translation helpful? Give feedback.
-
I know this syntax is incorrect, but I'm unsure about the best way to implement conditional logic branches.
What would be a syntax strategy for implementing 2 timelock threshold conditions like this?
Beta Was this translation helpful? Give feedback.
All reactions