@bitcoinerlab/descriptors-scure 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/index.d.ts +12 -0
- package/index.js +17 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# @bitcoinerlab/descriptors-scure
|
|
2
|
+
|
|
3
|
+
Scure-ready package for `@bitcoinerlab/descriptors-core`.
|
|
4
|
+
|
|
5
|
+
For scure/noble users this is the simplest install path:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @bitcoinerlab/descriptors-scure
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
It bundles the scure/noble family dependencies and exposes pre-bound helpers
|
|
12
|
+
such as `Output`, `expand`, `btc`, `HDKey` and `secp256k1`, while still
|
|
13
|
+
exporting `DescriptorsFactory` for advanced flows.
|
|
14
|
+
|
|
15
|
+
Most users can import directly from the package:
|
|
16
|
+
|
|
17
|
+
```javascript
|
|
18
|
+
import { Output, btc, signers } from '@bitcoinerlab/descriptors-scure';
|
|
19
|
+
```
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from '@bitcoinerlab/descriptors-core';
|
|
2
|
+
export declare const btc: typeof import('@scure/btc-signer');
|
|
3
|
+
export declare const HDKey: typeof import('@scure/bip32').HDKey;
|
|
4
|
+
export declare const secp256k1: typeof import('@noble/curves/secp256k1.js').secp256k1;
|
|
5
|
+
|
|
6
|
+
type Bound = ReturnType<typeof import('@bitcoinerlab/descriptors-core').DescriptorsFactory>;
|
|
7
|
+
|
|
8
|
+
export declare const Output: Bound['Output'];
|
|
9
|
+
export declare const parseKeyExpression: Bound['parseKeyExpression'];
|
|
10
|
+
export declare const expand: Bound['expand'];
|
|
11
|
+
export declare const ECPair: Bound['ECPair'];
|
|
12
|
+
export declare const BIP32: Bound['BIP32'];
|
package/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const core = require('@bitcoinerlab/descriptors-core');
|
|
4
|
+
const { createScureLib } = require('@bitcoinerlab/descriptors-core/scure');
|
|
5
|
+
const btc = require('@scure/btc-signer');
|
|
6
|
+
const { HDKey } = require('@scure/bip32');
|
|
7
|
+
const { secp256k1 } = require('@noble/curves/secp256k1.js');
|
|
8
|
+
|
|
9
|
+
const bound = core.DescriptorsFactory(createScureLib());
|
|
10
|
+
|
|
11
|
+
module.exports = {
|
|
12
|
+
...core,
|
|
13
|
+
...bound,
|
|
14
|
+
btc,
|
|
15
|
+
HDKey,
|
|
16
|
+
secp256k1
|
|
17
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bitcoinerlab/descriptors-scure",
|
|
3
|
+
"version": "3.1.0",
|
|
4
|
+
"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, bundled for the scure/noble family of libraries.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://github.com/bitcoinerlab/descriptors",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/bitcoinerlab/descriptors.git"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"bitcoin",
|
|
13
|
+
"descriptors",
|
|
14
|
+
"miniscript",
|
|
15
|
+
"psbt",
|
|
16
|
+
"scure",
|
|
17
|
+
"noble",
|
|
18
|
+
"btc-signer",
|
|
19
|
+
"bip32"
|
|
20
|
+
],
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"@ledgerhq/ledger-bitcoin": "^0.3.0"
|
|
23
|
+
},
|
|
24
|
+
"peerDependenciesMeta": {
|
|
25
|
+
"@ledgerhq/ledger-bitcoin": {
|
|
26
|
+
"optional": true
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"main": "./index.js",
|
|
30
|
+
"types": "./index.d.ts",
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"types": "./index.d.ts",
|
|
34
|
+
"default": "./index.js"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"index.js",
|
|
39
|
+
"index.d.ts",
|
|
40
|
+
"README.md"
|
|
41
|
+
],
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@bitcoinerlab/descriptors-core": "^3.1.0",
|
|
44
|
+
"@noble/curves": "^2.0.1",
|
|
45
|
+
"@scure/base": "^2.0.0",
|
|
46
|
+
"@scure/bip32": "^2.0.1",
|
|
47
|
+
"@scure/btc-signer": "^2.0.1"
|
|
48
|
+
}
|
|
49
|
+
}
|