bitcoinjs-lib/ts_src/payments/index.ts

36 lines
796 B
TypeScript
Raw Normal View History

2019-03-03 15:07:49 +01:00
import { Network } from '../networks'; // eslint-disable-line
import { p2data as embed } from './embed';
import { p2ms } from './p2ms';
import { p2pk } from './p2pk';
import { p2pkh } from './p2pkh';
import { p2sh } from './p2sh';
import { p2wpkh } from './p2wpkh';
import { p2wsh } from './p2wsh';
2018-12-28 16:00:52 +01:00
export interface Payment {
2019-03-03 15:07:49 +01:00
network?: Network;
output?: Buffer;
data?: Array<Buffer>;
m?: number;
n?: number;
pubkeys?: Array<Buffer>;
input?: Buffer;
signatures?: Array<Buffer>;
pubkey?: Buffer;
signature?: Buffer;
address?: string;
hash?: Buffer;
redeem?: Payment;
witness?: Array<Buffer>;
2018-12-28 16:00:52 +01:00
}
export interface PaymentOpts {
2019-03-03 15:07:49 +01:00
validate?: boolean;
allowIncomplete?: boolean;
2018-12-28 16:00:52 +01:00
}
2019-03-03 15:07:49 +01:00
export { embed, p2ms, p2pk, p2pkh, p2sh, p2wpkh, p2wsh };
// TODO
// witness commitment