- // Skipped CommitmentSigned_set_htlc_signatures
- // Skipped CommitmentSigned_new
- // Skipped CommitmentSigned_write
- public CommitmentSigned(byte[] ser) {
- super(bindings.CommitmentSigned_read(ser));
+ public void set_htlc_signatures(byte[][] val) {
+ bindings.CommitmentSigned_set_htlc_signatures(this.ptr, val);
+ }
+
+ public static CommitmentSigned constructor_new(byte[] channel_id_arg, byte[] signature_arg, byte[][] htlc_signatures_arg) {
+ long ret = bindings.CommitmentSigned_new(channel_id_arg, signature_arg, htlc_signatures_arg);
+ CommitmentSigned ret_hu_conv = new CommitmentSigned(null, ret);
+ return ret_hu_conv;
+ }
+
+ public byte[] write(CommitmentSigned obj) {
+ byte[] ret = bindings.CommitmentSigned_write(obj == null ? 0 : obj.ptr & ~1);
+ this.ptrs_to.add(obj);
+ return ret;
+ }
+
+ public static CommitmentSigned constructor_read(byte[] ser) {
+ long ret = bindings.CommitmentSigned_read(ser);
+ CommitmentSigned ret_hu_conv = new CommitmentSigned(null, ret);
+ return ret_hu_conv;