[bindings] Don't export new functions with unexportable types
authorMatt Corallo <git@bluematt.me>
Mon, 4 Jan 2021 19:15:36 +0000 (14:15 -0500)
committerMatt Corallo <git@bluematt.me>
Mon, 4 Jan 2021 21:12:37 +0000 (16:12 -0500)
commit0eb5a74fef075a2e864e36e8a47e668c0386bddd
treebe8bea08993977fb84108d18e4df20732af3f5b6
parent51fe4e7d8750d8bf6c2a5d50f0121379cbe53e2b
[bindings] Don't export new functions with unexportable types

`CommitmentTransaction::new_with_auxiliary_htlc_data()` includes a
unbounded generic parameter which we can't concretize and it's of
limited immediate use for users in any case. We should eventually
add a non-generic version which uses `()` for the generic but that
can come later.

`CommitmentTransaction::htlcs()` returns a reference to a Vec,
which we cannot currently map. It should, however, be exposed to
users, so in the future we'll need to have a duplication function
which returns Vec of references or a cloned Vec.
lightning/src/ln/chan_utils.rs