3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
8 export default class TrustedClosingTransaction extends CommonBase {
9 constructor(_dummy: object, ptr: number) {
14 protected finalize() {
18 bindings.TrustedClosingTransaction_free(this.ptr);
21 public Uint8Array built_transaction() {
22 Uint8Array ret = bindings.TrustedClosingTransaction_built_transaction(this.ptr);
26 public Uint8Array get_sighash_all(Uint8Array funding_redeemscript, number channel_value_satoshis) {
27 Uint8Array ret = bindings.TrustedClosingTransaction_get_sighash_all(this.ptr, funding_redeemscript, channel_value_satoshis);
31 public Uint8Array sign(Uint8Array funding_key, Uint8Array funding_redeemscript, number channel_value_satoshis) {
32 Uint8Array ret = bindings.TrustedClosingTransaction_sign(this.ptr, funding_key, funding_redeemscript, channel_value_satoshis);