2019-01-04 10:33:02 +01:00
|
|
|
/// <reference types="node" />
|
|
|
|
import { Network } from '../networks';
|
|
|
|
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';
|
|
|
|
export interface Payment {
|
2019-07-11 07:49:26 +02:00
|
|
|
name?: string;
|
2019-01-04 10:33:02 +01:00
|
|
|
network?: Network;
|
|
|
|
output?: Buffer;
|
2019-03-07 04:29:24 +01:00
|
|
|
data?: Buffer[];
|
2019-01-04 10:33:02 +01:00
|
|
|
m?: number;
|
|
|
|
n?: number;
|
2019-03-07 04:29:24 +01:00
|
|
|
pubkeys?: Buffer[];
|
2019-01-04 10:33:02 +01:00
|
|
|
input?: Buffer;
|
2019-03-07 04:29:24 +01:00
|
|
|
signatures?: Buffer[];
|
2019-01-04 10:33:02 +01:00
|
|
|
pubkey?: Buffer;
|
|
|
|
signature?: Buffer;
|
|
|
|
address?: string;
|
|
|
|
hash?: Buffer;
|
|
|
|
redeem?: Payment;
|
2019-03-07 04:29:24 +01:00
|
|
|
witness?: Buffer[];
|
2019-01-04 10:33:02 +01:00
|
|
|
}
|
2019-03-07 04:59:52 +01:00
|
|
|
export declare type PaymentFunction = () => Payment;
|
2019-01-04 10:33:02 +01:00
|
|
|
export interface PaymentOpts {
|
|
|
|
validate?: boolean;
|
|
|
|
allowIncomplete?: boolean;
|
|
|
|
}
|
2019-03-07 04:29:24 +01:00
|
|
|
export declare type StackElement = Buffer | number;
|
|
|
|
export declare type Stack = StackElement[];
|
2019-03-07 04:47:26 +01:00
|
|
|
export declare type StackFunction = () => Stack;
|
2019-01-04 10:33:02 +01:00
|
|
|
export { embed, p2ms, p2pk, p2pkh, p2sh, p2wpkh, p2wsh };
|