Commit Graph
6 Commits
Author SHA1 Message Date
conduition 1325ccc7db return type is not optional anymore 2026-06-27 01:15:28 +00:00
conduition 86e7f9d4ca add new test case for duplicate script leaves 2026-06-27 01:12:47 +00:00
conduition 98c0289805 bip360: simplify computing control blocks using explicit traversal paths
This refactors `compute_control_block` to improve performance, and make
the function simpler to read (to me at least).

The previous version walked the entire script tree searching for the
first matching instance of the leaf node.

The new version expects the caller to pass in an explicit `path`
parameter, which tells us exactly where the leaf node lives, with
left/right steps encoded as bits in an integer. We walk down the
tree straight to that leaf node, and build the control block as we go.

This might not be the best DX for a real-world API or library, but this
is just reference code, so we can accept poor usage ergonomics if it makes
the code clearer and more explicit.
2026-06-27 01:11:26 +00:00
conduition 6740c533e8 bip360: depth-zero script trees should be anyone-can-spend (#2198)
* bip360: depth zero trees should be anyone-can-spend

* bip360: update changelog and bump version to 0.12.0
2026-06-18 18:14:23 -07:00
conduitionandJon Atack da7cc678d5 Fix BIP32 links and consistency
Co-authored-by: Jon Atack <jon@atack.com>
2026-04-17 10:44:09 -06:00
conduition ab2ebe2c5d Corrections to BIP-0361 on rescue protocols 2026-04-17 15:22:59 +00:00