UNPKG

2 kBJavaScriptView Raw
1/**
2 * bsv
3 * ===
4 *
5 * entry.js is the entry point for a the js bundlers.
6 * Webpack and microbundlers, both start use this file as
7 * the entry point to bundle the entire library.
8 */
9import aes from 'aes'
10import bnjs from 'bn.js'
11import bs58 from 'bs58'
12
13import elliptic from 'bitcoin-elliptic'
14import hashjs from 'hash.js'
15import pbkdf2 from 'pbkdf2'
16
17// version string.
18import pkgInfo from './package.json'
19
20// Dependencies, subject to change.
21const deps = {
22 aes,
23 bnjs,
24 bs58,
25 elliptic,
26 hashjs,
27 pbkdf2,
28 Buffer
29}
30
31export { deps }
32const version = pkgInfo.version
33export { version }
34
35// Main bitcoin library - bitcoin protocols, standards, cryptography, and
36// utilities.
37export * from './lib/address'
38export * from './lib/bip-32'
39export * from './lib/bip-39'
40export * from './lib/bip-39-words'
41export * from './lib/bn'
42export * from './lib/br'
43export * from './lib/bsm'
44export * from './lib/bw'
45export * from './lib/base-58'
46export * from './lib/base-58-check'
47export * from './lib/block'
48export * from './lib/block-header'
49export * from './lib/constants'
50export * from './lib/ecdsa'
51export * from './lib/hash'
52export * from './lib/interp'
53export * from './lib/key-pair'
54export * from './lib/op-code'
55export * from './lib/point'
56export * from './lib/priv-key'
57export * from './lib/pub-key'
58export * from './lib/random'
59export * from './lib/script'
60export * from './lib/sig'
61export * from './lib/sig-operations'
62export * from './lib/struct'
63export * from './lib/tx'
64export * from './lib/tx-builder'
65export * from './lib/tx-in'
66export * from './lib/tx-out'
67export * from './lib/tx-out-map'
68export * from './lib/tx-verifier'
69export * from './lib/var-int'
70export * from './lib/workers'
71export * from './lib/workers-result'
72export * from './lib/cmp'
73
74// Encryption tools. Some bitcoin standards use Aes encryption, so that's why
75// these are available.
76export * from './lib/ach'
77export * from './lib/aes'
78export * from './lib/aescbc'
79export * from './lib/cbc'
80export * from './lib/ecies'