rust-bitcoin / rust-miniscript

Support for Miniscript and Output Descriptors for rust-bitcoin
Creative Commons Zero v1.0 Universal
353 stars 139 forks source link

Wording in the docs, is it an estimation or calculation? #555

Closed matthiasdebernardini closed 1 year ago

matthiasdebernardini commented 1 year ago

https://docs.rs/miniscript/10.0.0/miniscript/#deriving-an-address-from-a-descriptor

In the docs, .max_satisfaction_weight() is described as resulting in an estimation "// Estimate the satisfaction cost."

Why is it an estimation and not a calculation? Is there some ambiguity that is impossible to account for?

apoelstra commented 1 year ago

Yes, several:

We are working on a "planning" system #481 which will let you specify which keys are actually available (and not available) which should allow you to get much tighter estimates.

matthiasdebernardini commented 1 year ago

Thank you very much!