Add some tests and an input duplicate checker

This commit is contained in:
junderw 2019-07-05 16:42:13 +09:00
parent 93e1661c6c
commit 8d52ce1668
No known key found for this signature in database
GPG key ID: B256185D3A971908
5 changed files with 228 additions and 36 deletions

3
types/psbt.d.ts vendored
View file

@ -7,13 +7,14 @@ import { Transaction } from './transaction';
export declare class Psbt extends PsbtBase {
static fromTransaction<T extends typeof PsbtBase>(this: T, txBuf: Buffer): InstanceType<T>;
static fromBuffer<T extends typeof PsbtBase>(this: T, buffer: Buffer): InstanceType<T>;
private __NON_WITNESS_UTXO_CACHE;
private __CACHE;
private __TX;
private __TX_BUF_CACHE?;
private __FEE_RATE?;
private __EXTRACTED_TX?;
private opts;
constructor(opts?: PsbtOptsOptional);
readonly inputCount: number;
setMaximumFeeRate(satoshiPerByte: number): void;
setVersion(version: number): this;
setLocktime(locktime: number): this;