--- Day changed Fri Nov 27 2020 03:40 -!- shesek [~shesek@unaffiliated/shesek] has quit [Remote host closed the connection] 03:51 -!- sipa [~pw@gateway/tor-sasl/sipa1024] has quit [Remote host closed the connection] 03:52 -!- sipa [~pw@gateway/tor-sasl/sipa1024] has joined ##miniscript 05:43 -!- shesek [~shesek@164.90.217.137] has joined ##miniscript 05:43 -!- shesek [~shesek@164.90.217.137] has quit [Changing host] 05:43 -!- shesek [~shesek@unaffiliated/shesek] has joined ##miniscript 08:27 < andytoshi> nice!! 08:46 < andytoshi> lol justinmoon i think we're gonna wind up with different sorts in rust-miniscript, rust-bitcoin and rust-secp 08:46 < andytoshi> because there's opposition to using this weird sort-by-serialization in rust-bitcoin, but we need it in rust-miniscript for sortedmulti compat 10:09 -!- shesek [~shesek@unaffiliated/shesek] has quit [Ping timeout: 264 seconds] 11:43 < jeremyrubin> yo yo yo 11:44 < jeremyrubin> hope everyone has had a nice thanksgiving :) 11:45 < jeremyrubin> I was hacking on better support for CTV in Miniscript over the holiday and had some conceptual design questions I wanted to put out before I get too far down the rabbit hole 11:46 < jeremyrubin> So now that Miniscript/Policy does more thorough timing analysis, and OP_CTV has a fixed-but-unknown locktime/sequence requirement, I wanted to see what people think about some of the diff ways of making it compatible/analyzable 11:48 < jeremyrubin> To describe the issue more exactly: 11:49 < jeremyrubin> Previously, I had introduced (in my own fork/branch) CTV patches which add a Policy::TxTemplate(Hash) which compiles to Miniscript::TxTemplate(Hash) which compiles to CTV DROP which extracts to Miniscript::TxTemplate(Hash) and to Semantic::TxTemplate(Hash) with appropriate type signatures throughout 11:50 < jeremyrubin> However, the script representation CTV DROP is incompatible with analyzing H for locktime/sequence constraints 11:51 < jeremyrubin> This gives a few options: 11:52 < jeremyrubin> 1) Disallow CTV + Any Older/After clause. This is "simple", but not a neccessary restriction as if the Older/After clauses are compatible with the CTV Hash it is still spendable. 11:53 < jeremyrubin> 2) Embed Metadata in the script. E.g., the simplest form would be