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
8e5b09ba3b47b99d9e44e389a3b81adcb5580aed Introduce Translator trait (sanket1729)
851120eba76101ab56177cdcbf4834b1c99bf230 Add impl_from_tree! (sanket1729)
c43129c4c1b61276f10de8a2dca0f7024e313ae5 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 8e5b09ba3b47b99d9e44e389a3b81adcb5580aed
apoelstra:
ACK 8e5b09ba3b47b99d9e44e389a3b81adcb5580aed
Tree-SHA512: 291ccbbb76a4768c83878728288db117ed2fc45608f911ac02d8e3ec0a2ef384c10e0e086a9debf76d324978f8a6f6812f737b276a86194b3d93a032c3bd6c7d
0 commit comments