forked from bcoin-org/bcoin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.js
99 lines (85 loc) · 1.74 KB
/
types.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
'use strict';
/**
* One of {@link module:constants.inv}.
* @typedef {Number|String} InvType
* @global
*/
/**
* An output script type.
* @see {module:constants.scriptTypes}
* May sometimes be a string if specified.
* @typedef {Number|String} ScriptType
* @global
*/
/**
* A subset of {@link ScriptType}, including
* pubkeyhash, scripthash, witnesspubkeyhash,
* and witnessscripthash. This value
* specifically refers to the address prefix.
* It is a network-agnostic way of representing
* prefixes. May sometimes be a string if
* specified.
* @typedef {Number|String} AddressType
* @global
*/
/**
* A bitfield containing locktime flags.
* @typedef {Number} LockFlags
* @global
*/
/**
* Base58 string.
* @typedef {String} Base58String
* @global
*/
/**
* Bech32 string.
* @typedef {String} Bech32String
* @global
*/
/**
* Serialized address.
* @typedef {Base58String|Bech32String} AddressString
* @global
*/
/**
* Buffer or hex-string hash.
* @typedef {Buffer|String} Hash
* @global
*/
/**
* Signature hash type. One of `all`, `single`, `none`, or
* one of {@link constants.hashType}.
* @typedef {String|Number} SighashType
* @global
*/
/**
* A satoshi amount. This is technically a
* JS double float, but it is regularly
* enforced to be less than 53 bits and
* less than MAX_MONEY in various
* functions.
* @typedef {Number} Amount
* @global
*/
/**
* Rate of satoshis per kB.
* @typedef {Amount} Rate
* @global
*/
/**
* A big number (bn.js)
* @typedef {Object} BN
* @global
*/
/**
* A bitfield containing script verify flags.
* @typedef {Number} VerifyFlags
* @global
*/
/**
* One of `main`, `testnet`, `regtest`, `simnet`.
* @typedef {String} NetworkType
* @see {module:network.types}
* @global
*/