6 namespace org { namespace ldk { namespace structs {
10 * Static channel fields used to build transactions given per-commitment fields, organized by
11 * broadcaster/countersignatory.
13 * This is derived from the holder/counterparty-organized ChannelTransactionParameters via the
14 * as_holder_broadcastable and as_counterparty_broadcastable functions.
16 public class DirectedChannelTransactionParameters : CommonBase {
17 internal DirectedChannelTransactionParameters(object _dummy, long ptr) : base(ptr) { }
18 ~DirectedChannelTransactionParameters() {
19 if (ptr != 0) { bindings.DirectedChannelTransactionParameters_free(ptr); }
23 * Get the channel pubkeys for the broadcaster
25 public ChannelPublicKeys broadcaster_pubkeys() {
26 long ret = bindings.DirectedChannelTransactionParameters_broadcaster_pubkeys(this.ptr);
28 if (ret >= 0 && ret <= 4096) { return null; }
29 org.ldk.structs.ChannelPublicKeys ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelPublicKeys(null, ret); }
30 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
35 * Get the channel pubkeys for the countersignatory
37 public ChannelPublicKeys countersignatory_pubkeys() {
38 long ret = bindings.DirectedChannelTransactionParameters_countersignatory_pubkeys(this.ptr);
40 if (ret >= 0 && ret <= 4096) { return null; }
41 org.ldk.structs.ChannelPublicKeys ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelPublicKeys(null, ret); }
42 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
47 * Get the contest delay applicable to the transactions.
48 * Note that the contest delay was selected by the countersignatory.
50 public short contest_delay() {
51 short ret = bindings.DirectedChannelTransactionParameters_contest_delay(this.ptr);
57 * Whether the channel is outbound from the broadcaster.
59 * The boolean representing the side that initiated the channel is
60 * an input to the commitment number obscure factor computation.
62 public bool is_outbound() {
63 bool ret = bindings.DirectedChannelTransactionParameters_is_outbound(this.ptr);
69 * The funding outpoint
71 public OutPoint funding_outpoint() {
72 long ret = bindings.DirectedChannelTransactionParameters_funding_outpoint(this.ptr);
74 if (ret >= 0 && ret <= 4096) { return null; }
75 org.ldk.structs.OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OutPoint(null, ret); }
76 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
81 * Whether to use anchors for this channel
83 public bool opt_anchors() {
84 bool ret = bindings.DirectedChannelTransactionParameters_opt_anchors(this.ptr);