--- Log opened Sun Jun 15 00:00:14 2025 07:36 -!- Ademan [~Ademan@user/Ademan] has joined #bitcoin-rust 07:45 -!- Ademan [~Ademan@user/Ademan] has quit [Ping timeout: 260 seconds] 11:48 -!- darosior [~darosior@109.205.214.46] has quit [Ping timeout: 248 seconds] 13:52 -!- Ademan [~Ademan@user/Ademan] has joined #bitcoin-rust 15:07 < Ademan> Am I doing something stupid? `Xpriv::derive_priv(secp, &some_path_vec[prefix..])` doesn't seem to work. I get an error that P needs to be sized, and that [ChildNumber] is not sized. Slightly weird to me since the type of &some_path[prefix..] is &[ChildNumber] which *is* sized? Is some implicit deref going on? Either way it would be nice if we could pass a slice ref and it seems like we can't right 15:07 < Ademan> now? 15:07 < Ademan> s/Xpriv/some_xpriv/ 15:35 -!- BSaboia [~bsaboia@user/BSaboia] has quit [Quit: ZNC - https://znc.in] 15:36 -!- BSaboia [~bsaboia@user/BSaboia] has joined #bitcoin-rust 19:26 < Ademan> ok, minimal example, https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=1274629f002249a2a8d39052091ec2a9 seems like changing `derive_priv(secp, path: &P)` to `derive_priv(secp, path: P)` allows this to build everything still builds and tests, but I suppose it would move the path arg in some cases and probably break *some* code (but the fix I think should always be as simple as 19:27 < Ademan> adding a & ). This is on the edge of my rust understanding, so I'm not 100% certain this is a good idea, but it would at least enable some usage that doesn't seem possible right now? 19:27 < Ademan> *actually* it somewhat looks like the reference is already always required right now, so no existing call sites should be affected? 19:28 < Ademan> I'd have to look a bit closer but I'll open a draft PR, this might be ok, definitely needs a higher level rustacean than I to review it though --- Log closed Mon Jun 16 00:00:15 2025