[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>
Tue, 2 Feb 2021 22:04:31 +0000 (17:04 -0500)
commitb2bf57eb820fbe8333a5ca14f832851b9f98245c
tree49ebf1a32707bdb808c9cca4c7d7046a3c2a3805
parentbec92d3eaa97dd9b06527716e128b0315b41eb72
[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