Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
174 lines (174 loc) · 7.12 KB
/
Copy pathpackage.json
File metadata and controls
174 lines (174 loc) · 7.12 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
{
"name": "@bitcoinerlab/descriptors-core",
"description": "This library parses and creates Bitcoin Miniscript Descriptors and generates Partially Signed Bitcoin Transactions (PSBTs). It provides PSBT finalizers and signers for single-signature, BIP32 and Hardware Wallets, with explicit backend wiring for advanced use cases.",
"homepage": "https://github.com/bitcoinerlab/descriptors",
"version": "3.2.0",
"author": "Jose-Luis Landabaso",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/bitcoinerlab/descriptors.git"
},
"keywords": [
"bitcoin",
"descriptors",
"miniscript",
"psbt",
"bitcoinjs",
"scure",
"noble"
],
"bugs": {
"url": "https://github.com/bitcoinerlab/descriptors/issues"
},
"engines": {
"node": ">=20.19.0"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./bitcoinjs": {
"types": "./dist/bitcoinjs.d.ts",
"default": "./dist/bitcoinjs.js"
},
"./ledger": {
"types": "./dist/ledger/index.d.ts",
"default": "./dist/ledger/index.js"
},
"./bitbox": {
"types": "./dist/bitbox/index.d.ts",
"default": "./dist/bitbox/index.js"
},
"./scure": {
"types": "./dist/scure.d.ts",
"default": "./dist/scure.js"
}
},
"prettier": "@bitcoinerlab/configs/prettierConfig.json",
"eslintConfig": {
"extends": "./node_modules/@bitcoinerlab/configs/eslintConfig"
},
"jest": {
"preset": "@bitcoinerlab/configs",
"transform": {
"^.+node_modules/(?:@noble|@scure|micro-packed)/.+\\.js$": "<rootDir>/jest-esm-transform.cjs"
},
"transformIgnorePatterns": [
"/node_modules/(?!(@bitcoinerlab/secp256k1|@noble|@scure|micro-packed)/)"
]
},
"scripts": {
"webdocs": "typedoc --options ./webtypedoc.json && node ./scripts/postprocess-docs.js ./webdocs",
"docs": "typedoc --options ./typedoc.json && node ./scripts/postprocess-docs.js ./docs",
"build:src": "tsc --project ./node_modules/@bitcoinerlab/configs/tsconfig.src.json",
"build:packages": "tsc --project ./packages/descriptors/tsconfig.json && tsc --project ./packages/descriptors-scure/tsconfig.json",
"build:fixtures": "node test/tools/generateBitcoinCoreFixtures.js -i test/fixtures/descriptor_tests.cpp | npx prettier --parser typescript > test/fixtures/bitcoinCore.ts",
"build:test": "npm run build:fixtures && tsc --project ./node_modules/@bitcoinerlab/configs/tsconfig.test.json --resolveJsonModule",
"build": "npm run build:src && npm run build:packages && npm run build:test",
"lint": "./node_modules/@bitcoinerlab/configs/scripts/lint.sh",
"format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\" \"packages/*/src/**/*.ts\"",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"packages/*/src/**/*.ts\"",
"ensureTester": "./node_modules/@bitcoinerlab/configs/scripts/ensureTester.sh",
"test:integration:soft": "npm run ensureTester && node test/integration/standardOutputs.js && echo \"\n\n\" && node test/integration/miniscript.js && echo \"\n\n\" && node test/integration/sortedmulti.js && echo \"\n\n\" && node test/integration/taproot.js && echo \"\n\n\" && node test/integration/scure.js",
"test:integration:ledger": "npm run ensureTester && node test/integration/ledgerTaproot.js && echo \"\n\n\" && node test/integration/ledger.js",
"test:integration:bitbox": "npm run ensureTester && node --experimental-wasm-modules test/integration/bitbox.js",
"test:unit": "jest",
"test:unit:scure": "cross-env BITCOIN_LIB=scure jest",
"test:scure-adapter": "node test/scureAdapter.js",
"test:integration:soft:scure": "cross-env BITCOIN_LIB=scure bash -c 'npm run test:integration:soft'",
"test:integration:ledger:scure": "cross-env BITCOIN_LIB=scure bash -c 'npm run ensureTester && node test/integration/ledgerTaproot.js && echo \"\" && echo \"\" && node test/integration/ledger.js'",
"test:integration:bitbox:scure": "cross-env BITCOIN_LIB=scure bash -c 'npm run test:integration:bitbox'",
"test:matrix": "npm run test:unit && npm run test:unit:scure && npm run test:scure-adapter && npm run test:integration:soft && npm run test:integration:soft:scure",
"test": "npm run lint && npm run build && npm run test:matrix",
"test:ledger": "npm run lint && npm run build && echo \"\n\n\" && npm run test:integration:ledger:scure && echo \"\n\n\" && npm run test:integration:ledger",
"test:bitbox": "npm run lint && npm run build && npm run test:integration:bitbox:scure && echo \"\n\n\" && npm run test:integration:bitbox",
"publish:check": "npm whoami && node ./scripts/check-publish-versions.js",
"publish:all": "npm run publish:check && npm publish --access public && (cd ./packages/descriptors && npm publish --access public) && (cd ./packages/descriptors-scure && npm publish --access public)",
"prepublishOnly": "rm -rf dist/ && npm run test && echo \"\n\n\" && npm run test:integration:ledger:scure && echo \"\n\n\" && npm run test:integration:ledger && echo \"\n\n\" && npm run test:integration:bitbox:scure && echo \"\n\n\" && npm run test:integration:bitbox"
},
"files": [
"dist",
"HARDWARE_WALLETS.md"
],
"peerDependencies": {
"@ledgerhq/ledger-bitcoin": "^0.3.1",
"@noble/curves": "^2.0.1",
"@noble/hashes": "^2.0.1",
"@scure/base": "^2.0.0",
"@scure/bip32": "^2.0.1",
"@scure/btc-signer": "^2.0.1",
"bip32": "^5.0.1",
"bitcoinjs-lib": "^7.0.1",
"ecpair": "^3.0.1"
},
"peerDependenciesMeta": {
"@ledgerhq/ledger-bitcoin": {
"optional": true
},
"bitcoinjs-lib": {
"optional": true
},
"bip32": {
"optional": true
},
"ecpair": {
"optional": true
},
"@noble/hashes": {
"optional": true
},
"@scure/btc-signer": {
"optional": true
},
"@scure/base": {
"optional": true
},
"@scure/bip32": {
"optional": true
},
"@noble/curves": {
"optional": true
}
},
"devDependencies": {
"@babel/core": "^7.29.7",
"@babel/preset-env": "^7.29.7",
"@bitcoinerlab/configs": "^2.0.0",
"@bitcoinerlab/miniscript-policies": "^1.1.0",
"@bitcoinerlab/secp256k1": "^2.0.0",
"@ledgerhq/hw-transport-node-hid": "^6.33.5",
"@ledgerhq/hw-transport-webhid": "^6.36.0",
"@ledgerhq/hw-transport-webusb": "^6.35.0",
"@ledgerhq/ledger-bitcoin": "^0.3.1",
"@noble/curves": "^2.4.0",
"@noble/hashes": "^2.4.0",
"@scure/base": "^2.3.0",
"@scure/bip32": "^2.3.0",
"@scure/bip39": "^2.3.0",
"@scure/btc-signer": "^2.3.0",
"@types/lodash.memoize": "^4.1.9",
"babel-jest": "^30.5.0",
"bip32": "^5.0.1",
"bip39": "^3.1.0",
"bip65": "^1.0.3",
"bip68": "^1.0.4",
"bitbox-api": "^0.13.0",
"bitcoinjs-lib": "^7.0.1",
"cross-env": "^10.1.0",
"ecpair": "^3.0.2",
"jest": "^30.5.0",
"regtest-client": "^0.2.1",
"ws": "^8.21.3",
"yargs": "^17.7.3"
},
"dependencies": {
"@bitcoinerlab/miniscript": "^2.0.0",
"lodash.memoize": "^4.1.2",
"uint8array-tools": "^0.0.9",
"varuint-bitcoin": "^2.0.0"
}
}