- public void set_countersignatory_htlc_key(TxCreationKeys this_ptr, byte[] val) {
- bindings.TxCreationKeys_set_countersignatory_htlc_key(this_ptr.ptr & ~1, val);
- this.ptrs_to.add(this_ptr);
+ /**
+ * Broadcaster's Payment Key (which isn't allowed to be spent from for some delay)
+ */
+ public void set_broadcaster_delayed_payment_key(byte[] val) {
+ bindings.TxCreationKeys_set_broadcaster_delayed_payment_key(this.ptr, val);
+ }
+
+ /**
+ * Constructs a new TxCreationKeys given each field
+ */
+ public static TxCreationKeys of(byte[] per_commitment_point_arg, byte[] revocation_key_arg, byte[] broadcaster_htlc_key_arg, byte[] countersignatory_htlc_key_arg, byte[] broadcaster_delayed_payment_key_arg) {
+ long ret = bindings.TxCreationKeys_new(per_commitment_point_arg, revocation_key_arg, broadcaster_htlc_key_arg, countersignatory_htlc_key_arg, broadcaster_delayed_payment_key_arg);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ TxCreationKeys ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new TxCreationKeys(null, ret); }
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Creates a copy of the TxCreationKeys
+ */
+ public TxCreationKeys clone() {
+ long ret = bindings.TxCreationKeys_clone(this.ptr);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ TxCreationKeys ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new TxCreationKeys(null, ret); }
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;