Skip to content

Commit f8717e4

Browse files
committed
Merge #602: Document And/Or vectors contain 2 elements
47c8776 Document And/Or vectors contain 2 elements (Tobin C. Harding) Pull request description: It is not immediately obvious that the `Concrete::And` and `Or` vectors contain exactly 2 elements, add code comment to document it. ACKs for top commit: apoelstra: ACK 47c8776 Tree-SHA512: 477c1a3b36a4c5632f35433cbcb4bcafb4d005acdff6a82785ee7c175aa243ce87439c8c6d71859face17035fc75ba232d2b42854edc7194b9b99134168dac34
2 parents c42b1cb + 47c8776 commit f8717e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/policy/concrete.rs

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ const MAX_COMPILATION_LEAVES: usize = 1024;
3838
/// Concrete policy which corresponds directly to a miniscript structure,
3939
/// and whose disjunctions are annotated with satisfaction probabilities
4040
/// to assist the compiler.
41+
// Currently the vectors in And/Or are limited to two elements, this is a general miniscript thing
42+
// not specific to rust-miniscript. Eventually we would like to extend these to be n-ary, but first
43+
// we need to decide on a game plan for how to efficiently compile n-ary disjunctions
4144
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
4245
pub enum Policy<Pk: MiniscriptKey> {
4346
/// Unsatisfiable.

0 commit comments

Comments
 (0)