- public byte[] get_shutdown_pubkey() {
- byte[] ret = bindings.KeysInterface_get_shutdown_pubkey(this.ptr);
- return ret;
+ public ShutdownScript get_shutdown_scriptpubkey() {
+ long ret = bindings.KeysInterface_get_shutdown_scriptpubkey(this.ptr);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ ShutdownScript ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new ShutdownScript(null, ret); }
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;