You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #426: Rework translate API to allow associated types to be translated
8e5b09b Introduce Translator trait (sanket1729)
851120e Add impl_from_tree! (sanket1729)
c43129c Misc rustfmt change (sanket1729)
Pull request description:
The Translate API currently does not support translating the hashes and timelocks. Ideally, we want to write an HTLC as `or( and( alice_key, older(timeout), and(bob_key, sha256(hash)))`.
But it is impossible to use placeholders for `hash`, and `timelock`. It is only possible for keys.
This is a significant API change, but I think it is for good. The diff is large, but reviewing `lib.rs` is the main diff, other diffs are just chasing compiler errors
ACKs for top commit:
tcharding:
ACK 8e5b09b
apoelstra:
ACK 8e5b09b
Tree-SHA512: 291ccbbb76a4768c83878728288db117ed2fc45608f911ac02d8e3ec0a2ef384c10e0e086a9debf76d324978f8a6f6812f737b276a86194b3d93a032c3bd6c7d
0 commit comments