--- Day changed Sat Jan 18 2020 00:21 -!- afk11 [~afk11@gateway/tor-sasl/afk11] has quit [Ping timeout: 240 seconds] 00:24 -!- afk11 [~afk11@gateway/tor-sasl/afk11] has joined ##miniscript 01:59 -!- dr-orlovsky [~dr-orlovs@194.230.155.171] has joined ##miniscript 02:07 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has quit [Ping timeout: 245 seconds] 03:52 < dr-orlovsky> I have the following case for miniscript, and not sure how to use it in the right way: I have a Bitcoin script (and this is not P2(W)SH pubkeyScript, but can be P2(W)PK(H), Tapscript, witnessScript or redeemScript) of arbitrary complexity and need to extract all public keys (or their hashes) from it. Also, I do not have a witness stack or sigScript for it (i.e no corresponding signatures). What is the best ideomatic way of using rust 03:52 < dr-orlovsky> library for miniscript for this case? I assume I have to parse the script first with ` Miniscript::parse(&self.into_inner())` and then iterate over the AST finding some specific Terminal commands, but what would be a complete list of them? 06:20 -!- jonatack [~jon@134.19.179.147] has joined ##miniscript 06:36 -!- jonatack [~jon@134.19.179.147] has quit [Ping timeout: 265 seconds] 06:38 -!- jonatack [~jon@134.19.179.187] has joined ##miniscript 08:07 -!- jonatack [~jon@134.19.179.187] has quit [Ping timeout: 240 seconds] 08:30 < dr-orlovsky> I assume something like this? 08:30 < dr-orlovsky> if yes, should I refactor this logic into a generic `traverse` function in `Miniscript` type itself? 09:23 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has joined ##miniscript 11:45 < andytoshi> you should lift to a semantic policy first 11:45 < andytoshi> then there used to be a function to get all the public keys 11:46 < andytoshi> but i guess we dropped that .. i forget why .. probably because of API complexity related to pubkeyhashes 11:47 < andytoshi> it would indeed be welcome if someone PR'd to replace that functionality 13:34 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has quit [Ping timeout: 245 seconds] 14:23 -!- afk11 [~afk11@gateway/tor-sasl/afk11] has quit [Ping timeout: 240 seconds] 14:27 -!- afk11 [~afk11@gateway/tor-sasl/afk11] has joined ##miniscript 23:31 -!- harrigan_ [~harrigan@ptr-93-89-242-235.ip.airwire.ie] has joined ##miniscript 23:32 -!- harrigan [~harrigan@ptr-93-89-242-235.ip.airwire.ie] has quit [Read error: Connection reset by peer]