1 |
|
2 | import { Network } from '../networks';
|
3 | import { Taptree } from '../types';
|
4 | import { p2data as embed } from './embed';
|
5 | import { p2ms } from './p2ms';
|
6 | import { p2pk } from './p2pk';
|
7 | import { p2pkh } from './p2pkh';
|
8 | import { p2sh } from './p2sh';
|
9 | import { p2wpkh } from './p2wpkh';
|
10 | import { p2wsh } from './p2wsh';
|
11 | import { p2tr } from './p2tr';
|
12 | export interface Payment {
|
13 | name?: string;
|
14 | network?: Network;
|
15 | output?: Buffer;
|
16 | data?: Buffer[];
|
17 | m?: number;
|
18 | n?: number;
|
19 | pubkeys?: Buffer[];
|
20 | input?: Buffer;
|
21 | signatures?: Buffer[];
|
22 | internalPubkey?: Buffer;
|
23 | pubkey?: Buffer;
|
24 | signature?: Buffer;
|
25 | address?: string;
|
26 | hash?: Buffer;
|
27 | redeem?: Payment;
|
28 | redeemVersion?: number;
|
29 | scriptTree?: Taptree;
|
30 | witness?: Buffer[];
|
31 | }
|
32 | export type PaymentCreator = (a: Payment, opts?: PaymentOpts) => Payment;
|
33 | export type PaymentFunction = () => Payment;
|
34 | export interface PaymentOpts {
|
35 | validate?: boolean;
|
36 | allowIncomplete?: boolean;
|
37 | }
|
38 | export type StackElement = Buffer | number;
|
39 | export type Stack = StackElement[];
|
40 | export type StackFunction = () => Stack;
|
41 | export { embed, p2ms, p2pk, p2pkh, p2sh, p2wpkh, p2wsh, p2tr };
|