junderw
6 years ago
No known key found for this signature in database
GPG Key ID: B256185D3A971908
4 changed files with
6 additions and
4 deletions
-
package-lock.json
-
package.json
-
src/psbt.js
-
ts_src/psbt.ts
|
|
@ -200,9 +200,9 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
"bip174": { |
|
|
|
"version": "0.0.11", |
|
|
|
"resolved": "https://registry.npmjs.org/bip174/-/bip174-0.0.11.tgz", |
|
|
|
"integrity": "sha512-/WuRQOwgT0cGKDrNROOhOHpdtXyeuBJMqEgsBUdlCeFRLXIA8g5pHzbFmVm/v+OcYdenHfwzW/hOEf1xJOI27Q==" |
|
|
|
"version": "0.0.12", |
|
|
|
"resolved": "https://registry.npmjs.org/bip174/-/bip174-0.0.12.tgz", |
|
|
|
"integrity": "sha512-rYVuFTSCROv8iI07BhEddap+iXiFz2aiYEUSQR8rqv7JKWbMO2QQqCJMvr2E0df8wu5ySysd/CupIP4eG4ukqQ==" |
|
|
|
}, |
|
|
|
"bip32": { |
|
|
|
"version": "2.0.3", |
|
|
|
|
|
@ -47,7 +47,7 @@ |
|
|
|
"dependencies": { |
|
|
|
"@types/node": "10.12.18", |
|
|
|
"bech32": "^1.1.2", |
|
|
|
"bip174": "0.0.11", |
|
|
|
"bip174": "0.0.12", |
|
|
|
"bip32": "^2.0.3", |
|
|
|
"bip66": "^1.1.0", |
|
|
|
"bitcoin-ops": "^1.4.0", |
|
|
|
|
|
@ -12,6 +12,7 @@ const varuint = require('varuint-bitcoin'); |
|
|
|
class Psbt extends bip174_1.Psbt { |
|
|
|
constructor(opts = {}) { |
|
|
|
super(); |
|
|
|
this.setVersion(2); |
|
|
|
this.opts = Object.assign({}, DEFAULT_OPTS, opts); |
|
|
|
// // 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.
|
|
|
|
|
|
@ -19,6 +19,7 @@ export class Psbt extends PsbtBase { |
|
|
|
private opts: PsbtOpts; |
|
|
|
constructor(opts: PsbtOptsOptional = {}) { |
|
|
|
super(); |
|
|
|
this.setVersion(2); |
|
|
|
this.opts = Object.assign({}, DEFAULT_OPTS, opts); |
|
|
|
// // 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.
|
|
|
|