X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FClosingSigned.java;fp=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FClosingSigned.java;h=4fe37bd1a1d0ad5f9175eaf81590d8377300cd50;hb=17113550a5fefab21f39f27fbfe02646b8db53ae;hp=a42c3e506fc0e64f1052ef88559b0aab01aba51d;hpb=d69a40d071871d3c0e4160744202c6e85941a4cc;p=ldk-java diff --git a/src/main/java/org/ldk/structs/ClosingSigned.java b/src/main/java/org/ldk/structs/ClosingSigned.java index a42c3e50..4fe37bd1 100644 --- a/src/main/java/org/ldk/structs/ClosingSigned.java +++ b/src/main/java/org/ldk/structs/ClosingSigned.java @@ -5,6 +5,10 @@ import org.ldk.enums.*; import org.ldk.util.*; import java.util.Arrays; + +/** + * A closing_signed message to be sent or received from a peer + */ @SuppressWarnings("unchecked") // We correctly assign various generic arrays public class ClosingSigned extends CommonBase { ClosingSigned(Object _dummy, long ptr) { super(ptr); } @@ -14,33 +18,54 @@ public class ClosingSigned extends CommonBase { if (ptr != 0) { bindings.ClosingSigned_free(ptr); } } + /** + * The channel ID + */ public byte[] get_channel_id() { byte[] ret = bindings.ClosingSigned_get_channel_id(this.ptr); return ret; } + /** + * The channel ID + */ public void set_channel_id(byte[] val) { bindings.ClosingSigned_set_channel_id(this.ptr, val); } + /** + * The proposed total fee for the closing transaction + */ public long get_fee_satoshis() { long ret = bindings.ClosingSigned_get_fee_satoshis(this.ptr); return ret; } + /** + * The proposed total fee for the closing transaction + */ public void set_fee_satoshis(long val) { bindings.ClosingSigned_set_fee_satoshis(this.ptr, val); } + /** + * A signature on the closing transaction + */ public byte[] get_signature() { byte[] ret = bindings.ClosingSigned_get_signature(this.ptr); return ret; } + /** + * A signature on the closing transaction + */ public void set_signature(byte[] val) { bindings.ClosingSigned_set_signature(this.ptr, val); } + /** + * Constructs a new ClosingSigned given each field + */ public static ClosingSigned constructor_new(byte[] channel_id_arg, long fee_satoshis_arg, byte[] signature_arg) { long ret = bindings.ClosingSigned_new(channel_id_arg, fee_satoshis_arg, signature_arg); ClosingSigned ret_hu_conv = new ClosingSigned(null, ret); @@ -48,6 +73,9 @@ public class ClosingSigned extends CommonBase { return ret_hu_conv; } + /** + * Creates a copy of the ClosingSigned + */ public ClosingSigned clone() { long ret = bindings.ClosingSigned_clone(this.ptr); ClosingSigned ret_hu_conv = new ClosingSigned(null, ret); @@ -55,11 +83,17 @@ public class ClosingSigned extends CommonBase { return ret_hu_conv; } + /** + * Serialize the ClosingSigned object into a byte array which can be read by ClosingSigned_read + */ public byte[] write() { byte[] ret = bindings.ClosingSigned_write(this.ptr); return ret; } + /** + * Read a ClosingSigned from a byte array, created by ClosingSigned_write + */ public static Result_ClosingSignedDecodeErrorZ constructor_read(byte[] ser) { long ret = bindings.ClosingSigned_read(ser); Result_ClosingSignedDecodeErrorZ ret_hu_conv = Result_ClosingSignedDecodeErrorZ.constr_from_ptr(ret);