Just some ideas, TODO mostly.

This commit is contained in:
junderw 2019-07-02 15:35:23 +09:00
parent 4644e9d2eb
commit 354d67a31a
No known key found for this signature in database
GPG key ID: B256185D3A971908
2 changed files with 24 additions and 0 deletions
ts_src

View file

@ -9,8 +9,20 @@ import * as bscript from './script';
import { Transaction } from './transaction';
export class Psbt extends PsbtBase {
// protected __TX: Transaction;
constructor(public network?: Network) {
super();
// // TODO: figure out a way to use a Transaction Object instead of a Buffer
// // TODO: Caching, since .toBuffer() calls every time we get is lame.
// this.__TX = Transaction.fromBuffer(this.globalMap.unsignedTx!);
// delete this.globalMap.unsignedTx;
// Object.defineProperty(this.globalMap, 'unsignedTx', {
// enumerable: true,
// writable: false,
// get(): Buffer {
// return this.__TX.toBuffer();
// }
// });
}
canFinalize(inputIndex: number): boolean {