--- Log opened Sun Oct 03 00:00:25 2021 08:14 < darosior> I think it should rather be Lightning to adapt to Miniscript than the opposite. FWIW i had a draft proposal last year and it's a topic i proposed to be discussed during the lndev meetup 14:34 < darosior> sipa: so the descriptor parsing code currently doesn't cache pubkeys. But we need a SigningProvider with filled pubkeys to infer a descriptor. Does that seem reasonable to you to always cache public keys at parsing time if under P2WSH context? 14:39 <@sipa> hmm, we don't? 14:39 <@sipa> achow101 probably knows better 14:41 < darosior> We only cache privkeys at parsing time AFAICT 14:57 <@sipa> i don't see any issue with caching pubkeys 15:22 < achow101> darosior: the parent xpub will be cached which allows for quick derivation of child pubkeys 15:23 < achow101> if hardened derivation is in use, then child pubkeys will be cached 15:23 < darosior> Yeah but for infering Miniscript descriptors i need a keyid -> pubkey mapping to get pubkeys from keyhashes 15:25 < darosior> How is it done currently, say for the pkh() descriptor? 15:26 < achow101> we re-derive (using the cache) and get the pubkeys into a SigningProvider 15:26 < achow101> then use that with InferDescriptor 15:30 < darosior> Thanks, i'll see if i can use the same logic for inferring ms descriptors --- Log closed Mon Oct 04 00:00:26 2021