@bitgo-beta/utxo-core 0.0.0-semantic-release-managed
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/LICENSE +191 -0
- package/README.md +6 -0
- package/dist/src/Output.d.ts +43 -0
- package/dist/src/Output.d.ts.map +1 -0
- package/dist/src/Output.js +60 -0
- package/dist/src/bip322/index.d.ts +5 -0
- package/dist/src/bip322/index.d.ts.map +1 -0
- package/dist/src/bip322/index.js +21 -0
- package/dist/src/bip322/toSign.d.ts +25 -0
- package/dist/src/bip322/toSign.d.ts.map +1 -0
- package/dist/src/bip322/toSign.js +126 -0
- package/dist/src/bip322/toSpend.d.ts +22 -0
- package/dist/src/bip322/toSpend.d.ts.map +1 -0
- package/dist/src/bip322/toSpend.js +72 -0
- package/dist/src/bip322/utils.d.ts +18 -0
- package/dist/src/bip322/utils.d.ts.map +1 -0
- package/dist/src/bip322/utils.js +115 -0
- package/dist/src/bip322/verify.d.ts +12 -0
- package/dist/src/bip322/verify.d.ts.map +1 -0
- package/dist/src/bip322/verify.js +115 -0
- package/dist/src/bip32utils.d.ts +16 -0
- package/dist/src/bip32utils.d.ts.map +1 -0
- package/dist/src/bip32utils.js +71 -0
- package/dist/src/bip65/index.d.ts +2 -0
- package/dist/src/bip65/index.d.ts.map +1 -0
- package/dist/src/bip65/index.js +18 -0
- package/dist/src/bip65/locktime.d.ts +8 -0
- package/dist/src/bip65/locktime.d.ts.map +1 -0
- package/dist/src/bip65/locktime.js +37 -0
- package/dist/src/descriptor/DescriptorMap.d.ts +9 -0
- package/dist/src/descriptor/DescriptorMap.d.ts.map +1 -0
- package/dist/src/descriptor/DescriptorMap.js +9 -0
- package/dist/src/descriptor/Output.d.ts +23 -0
- package/dist/src/descriptor/Output.d.ts.map +1 -0
- package/dist/src/descriptor/Output.js +41 -0
- package/dist/src/descriptor/VirtualSize.d.ts +23 -0
- package/dist/src/descriptor/VirtualSize.d.ts.map +1 -0
- package/dist/src/descriptor/VirtualSize.js +100 -0
- package/dist/src/descriptor/address.d.ts +5 -0
- package/dist/src/descriptor/address.d.ts.map +1 -0
- package/dist/src/descriptor/address.js +48 -0
- package/dist/src/descriptor/derive.d.ts +13 -0
- package/dist/src/descriptor/derive.d.ts.map +1 -0
- package/dist/src/descriptor/derive.js +45 -0
- package/dist/src/descriptor/fromFixedScriptWallet.d.ts +16 -0
- package/dist/src/descriptor/fromFixedScriptWallet.d.ts.map +1 -0
- package/dist/src/descriptor/fromFixedScriptWallet.js +88 -0
- package/dist/src/descriptor/index.d.ts +11 -0
- package/dist/src/descriptor/index.d.ts.map +1 -0
- package/dist/src/descriptor/index.js +27 -0
- package/dist/src/descriptor/parse/PatternMatcher.d.ts +14 -0
- package/dist/src/descriptor/parse/PatternMatcher.d.ts.map +1 -0
- package/dist/src/descriptor/parse/PatternMatcher.js +60 -0
- package/dist/src/descriptor/psbt/assertSatisfiable.d.ts +20 -0
- package/dist/src/descriptor/psbt/assertSatisfiable.d.ts.map +1 -0
- package/dist/src/descriptor/psbt/assertSatisfiable.js +74 -0
- package/dist/src/descriptor/psbt/createPsbt.d.ts +23 -0
- package/dist/src/descriptor/psbt/createPsbt.d.ts.map +1 -0
- package/dist/src/descriptor/psbt/createPsbt.js +107 -0
- package/dist/src/descriptor/psbt/findDescriptors.d.ts +26 -0
- package/dist/src/descriptor/psbt/findDescriptors.d.ts.map +1 -0
- package/dist/src/descriptor/psbt/findDescriptors.js +98 -0
- package/dist/src/descriptor/psbt/index.d.ts +7 -0
- package/dist/src/descriptor/psbt/index.d.ts.map +1 -0
- package/dist/src/descriptor/psbt/index.js +23 -0
- package/dist/src/descriptor/psbt/parse.d.ts +27 -0
- package/dist/src/descriptor/psbt/parse.d.ts.map +1 -0
- package/dist/src/descriptor/psbt/parse.js +87 -0
- package/dist/src/descriptor/psbt/sign.d.ts +26 -0
- package/dist/src/descriptor/psbt/sign.d.ts.map +1 -0
- package/dist/src/descriptor/psbt/sign.js +42 -0
- package/dist/src/descriptor/psbt/wrap.d.ts +12 -0
- package/dist/src/descriptor/psbt/wrap.d.ts.map +1 -0
- package/dist/src/descriptor/psbt/wrap.js +76 -0
- package/dist/src/dustThreshold.d.ts +4 -0
- package/dist/src/dustThreshold.d.ts.map +1 -0
- package/dist/src/dustThreshold.js +134 -0
- package/dist/src/index.d.ts +10 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +49 -0
- package/dist/src/paygo/attestation.d.ts +11 -0
- package/dist/src/paygo/attestation.d.ts.map +1 -0
- package/dist/src/paygo/attestation.js +58 -0
- package/dist/src/paygo/index.d.ts +3 -0
- package/dist/src/paygo/index.d.ts.map +1 -0
- package/dist/src/paygo/index.js +19 -0
- package/dist/src/paygo/parsePayGoAttestation.d.ts +16 -0
- package/dist/src/paygo/parsePayGoAttestation.d.ts.map +1 -0
- package/dist/src/paygo/parsePayGoAttestation.js +50 -0
- package/dist/src/paygo/psbt/Errors.d.ts +22 -0
- package/dist/src/paygo/psbt/Errors.d.ts.map +1 -0
- package/dist/src/paygo/psbt/Errors.js +44 -0
- package/dist/src/paygo/psbt/index.d.ts +2 -0
- package/dist/src/paygo/psbt/index.d.ts.map +1 -0
- package/dist/src/paygo/psbt/index.js +18 -0
- package/dist/src/paygo/psbt/payGoAddressProof.d.ts +29 -0
- package/dist/src/paygo/psbt/payGoAddressProof.d.ts.map +1 -0
- package/dist/src/paygo/psbt/payGoAddressProof.js +124 -0
- package/dist/src/testutil/descriptor/descriptors.d.ts +13 -0
- package/dist/src/testutil/descriptor/descriptors.d.ts.map +1 -0
- package/dist/src/testutil/descriptor/descriptors.js +162 -0
- package/dist/src/testutil/descriptor/index.d.ts +4 -0
- package/dist/src/testutil/descriptor/index.d.ts.map +1 -0
- package/dist/src/testutil/descriptor/index.js +20 -0
- package/dist/src/testutil/descriptor/mock.utils.d.ts +36 -0
- package/dist/src/testutil/descriptor/mock.utils.d.ts.map +1 -0
- package/dist/src/testutil/descriptor/mock.utils.js +92 -0
- package/dist/src/testutil/descriptor/psbt.utils.d.ts +4 -0
- package/dist/src/testutil/descriptor/psbt.utils.d.ts.map +1 -0
- package/dist/src/testutil/descriptor/psbt.utils.js +21 -0
- package/dist/src/testutil/fixtures.utils.d.ts +15 -0
- package/dist/src/testutil/fixtures.utils.d.ts.map +1 -0
- package/dist/src/testutil/fixtures.utils.js +127 -0
- package/dist/src/testutil/generatePayGoAttestationProof.utils.d.ts +12 -0
- package/dist/src/testutil/generatePayGoAttestationProof.utils.d.ts.map +1 -0
- package/dist/src/testutil/generatePayGoAttestationProof.utils.js +38 -0
- package/dist/src/testutil/index.d.ts +6 -0
- package/dist/src/testutil/index.d.ts.map +1 -0
- package/dist/src/testutil/index.js +22 -0
- package/dist/src/testutil/key.utils.d.ts +16 -0
- package/dist/src/testutil/key.utils.d.ts.map +1 -0
- package/dist/src/testutil/key.utils.js +59 -0
- package/dist/src/testutil/toPlainObject.utils.d.ts +11 -0
- package/dist/src/testutil/toPlainObject.utils.d.ts.map +1 -0
- package/dist/src/testutil/toPlainObject.utils.js +89 -0
- package/dist/src/testutil/trimMessagePrefix.d.ts +11 -0
- package/dist/src/testutil/trimMessagePrefix.d.ts.map +1 -0
- package/dist/src/testutil/trimMessagePrefix.js +60 -0
- package/dist/src/xOnlyPubkey.d.ts +2 -0
- package/dist/src/xOnlyPubkey.d.ts.map +1 -0
- package/dist/src/xOnlyPubkey.js +18 -0
- package/package.json +63 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.trimMessagePrefix = trimMessagePrefix;
|
|
37
|
+
const utxolib = __importStar(require("@bitgo-beta/utxo-lib"));
|
|
38
|
+
/** We receive a proof in the form:
|
|
39
|
+
* 0x18Bitcoin Signed Message:\n<varint_length><ENTROPY><ADDRESS><UUID>
|
|
40
|
+
* and when verifying our message we want to exclude the 0x18Bitcoin Signed Message:\n<varint_length>
|
|
41
|
+
* of the proof so that we are left with the entropy address and uuid as our message.
|
|
42
|
+
* This is what we are going to be verifying.
|
|
43
|
+
*
|
|
44
|
+
* @param proof
|
|
45
|
+
* @returns
|
|
46
|
+
*/
|
|
47
|
+
function trimMessagePrefix(proof) {
|
|
48
|
+
const prefix = '\u0018Bitcoin Signed Message:\n';
|
|
49
|
+
if (proof.toString().startsWith(prefix)) {
|
|
50
|
+
proof = proof.slice(Buffer.from(prefix).length);
|
|
51
|
+
utxolib.bufferutils.varuint.decode(proof, 0);
|
|
52
|
+
// Determines how many bytes were consumed during our last varuint.decode(Buffer, offset)
|
|
53
|
+
// So if varuint.decode(0xfd) then varuint.decode.bytes = 3
|
|
54
|
+
// varuint.decode(0xfe) then varuint.decode.bytes = 5, etc.
|
|
55
|
+
const varintBytesLength = utxolib.bufferutils.varuint.decode.bytes;
|
|
56
|
+
proof.slice(varintBytesLength);
|
|
57
|
+
}
|
|
58
|
+
return proof;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJpbU1lc3NhZ2VQcmVmaXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdGVzdHV0aWwvdHJpbU1lc3NhZ2VQcmVmaXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFXQSw4Q0FhQztBQXhCRCw4REFBZ0Q7QUFFaEQ7Ozs7Ozs7O0dBUUc7QUFDSCxTQUFnQixpQkFBaUIsQ0FBQyxLQUFhO0lBQzdDLE1BQU0sTUFBTSxHQUFHLGlDQUFpQyxDQUFDO0lBQ2pELElBQUksS0FBSyxDQUFDLFFBQVEsRUFBRSxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDO1FBQ3hDLEtBQUssR0FBRyxLQUFLLENBQUMsS0FBSyxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDaEQsT0FBTyxDQUFDLFdBQVcsQ0FBQyxPQUFPLENBQUMsTUFBTSxDQUFDLEtBQUssRUFBRSxDQUFDLENBQUMsQ0FBQztRQUM3Qyx5RkFBeUY7UUFDekYsMkRBQTJEO1FBQzNELDJEQUEyRDtRQUMzRCxNQUFNLGlCQUFpQixHQUFHLE9BQU8sQ0FBQyxXQUFXLENBQUMsT0FBTyxDQUFDLE1BQU0sQ0FBQyxLQUFLLENBQUM7UUFFbkUsS0FBSyxDQUFDLEtBQUssQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDO0lBQ2pDLENBQUM7SUFDRCxPQUFPLEtBQUssQ0FBQztBQUNmLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyB1dHhvbGliIGZyb20gJ0BiaXRnby1iZXRhL3V0eG8tbGliJztcblxuLyoqIFdlIHJlY2VpdmUgYSBwcm9vZiBpbiB0aGUgZm9ybTpcbiAqIDB4MThCaXRjb2luIFNpZ25lZCBNZXNzYWdlOlxcbjx2YXJpbnRfbGVuZ3RoPjxFTlRST1BZPjxBRERSRVNTPjxVVUlEPlxuICogYW5kIHdoZW4gdmVyaWZ5aW5nIG91ciBtZXNzYWdlIHdlIHdhbnQgdG8gZXhjbHVkZSB0aGUgMHgxOEJpdGNvaW4gU2lnbmVkIE1lc3NhZ2U6XFxuPHZhcmludF9sZW5ndGg+XG4gKiBvZiB0aGUgcHJvb2Ygc28gdGhhdCB3ZSBhcmUgbGVmdCB3aXRoIHRoZSBlbnRyb3B5IGFkZHJlc3MgYW5kIHV1aWQgYXMgb3VyIG1lc3NhZ2UuXG4gKiBUaGlzIGlzIHdoYXQgd2UgYXJlIGdvaW5nIHRvIGJlIHZlcmlmeWluZy5cbiAqXG4gKiBAcGFyYW0gcHJvb2ZcbiAqIEByZXR1cm5zXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiB0cmltTWVzc2FnZVByZWZpeChwcm9vZjogQnVmZmVyKTogQnVmZmVyIHtcbiAgY29uc3QgcHJlZml4ID0gJ1xcdTAwMThCaXRjb2luIFNpZ25lZCBNZXNzYWdlOlxcbic7XG4gIGlmIChwcm9vZi50b1N0cmluZygpLnN0YXJ0c1dpdGgocHJlZml4KSkge1xuICAgIHByb29mID0gcHJvb2Yuc2xpY2UoQnVmZmVyLmZyb20ocHJlZml4KS5sZW5ndGgpO1xuICAgIHV0eG9saWIuYnVmZmVydXRpbHMudmFydWludC5kZWNvZGUocHJvb2YsIDApO1xuICAgIC8vIERldGVybWluZXMgaG93IG1hbnkgYnl0ZXMgd2VyZSBjb25zdW1lZCBkdXJpbmcgb3VyIGxhc3QgdmFydWludC5kZWNvZGUoQnVmZmVyLCBvZmZzZXQpXG4gICAgLy8gU28gaWYgdmFydWludC5kZWNvZGUoMHhmZCkgdGhlbiB2YXJ1aW50LmRlY29kZS5ieXRlcyA9IDNcbiAgICAvLyB2YXJ1aW50LmRlY29kZSgweGZlKSB0aGVuIHZhcnVpbnQuZGVjb2RlLmJ5dGVzID0gNSwgZXRjLlxuICAgIGNvbnN0IHZhcmludEJ5dGVzTGVuZ3RoID0gdXR4b2xpYi5idWZmZXJ1dGlscy52YXJ1aW50LmRlY29kZS5ieXRlcztcblxuICAgIHByb29mLnNsaWNlKHZhcmludEJ5dGVzTGVuZ3RoKTtcbiAgfVxuICByZXR1cm4gcHJvb2Y7XG59XG4iXX0=
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xOnlyPubkey.d.ts","sourceRoot":"","sources":["../../src/xOnlyPubkey.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAclD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toXOnlyPublicKey = toXOnlyPublicKey;
|
|
4
|
+
function toXOnlyPublicKey(b) {
|
|
5
|
+
if (b.length === 33) {
|
|
6
|
+
if (b[0] === 0x02 || b[0] === 0x03) {
|
|
7
|
+
return b.subarray(1);
|
|
8
|
+
}
|
|
9
|
+
else {
|
|
10
|
+
throw new Error(`invalid pubkey leading byte ${b.subarray(0, 1).toString('hex')}`);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
if (b.length === 32) {
|
|
14
|
+
return b;
|
|
15
|
+
}
|
|
16
|
+
throw new Error(`invalid pubkey buffer length ${b.length}`);
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieE9ubHlQdWJrZXkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMveE9ubHlQdWJrZXkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw0Q0FjQztBQWRELFNBQWdCLGdCQUFnQixDQUFDLENBQVM7SUFDeEMsSUFBSSxDQUFDLENBQUMsTUFBTSxLQUFLLEVBQUUsRUFBRSxDQUFDO1FBQ3BCLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQyxLQUFLLElBQUksSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLEtBQUssSUFBSSxFQUFFLENBQUM7WUFDbkMsT0FBTyxDQUFDLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQ3ZCLENBQUM7YUFBTSxDQUFDO1lBQ04sTUFBTSxJQUFJLEtBQUssQ0FBQywrQkFBK0IsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsUUFBUSxDQUFDLEtBQUssQ0FBQyxFQUFFLENBQUMsQ0FBQztRQUNyRixDQUFDO0lBQ0gsQ0FBQztJQUVELElBQUksQ0FBQyxDQUFDLE1BQU0sS0FBSyxFQUFFLEVBQUUsQ0FBQztRQUNwQixPQUFPLENBQUMsQ0FBQztJQUNYLENBQUM7SUFFRCxNQUFNLElBQUksS0FBSyxDQUFDLGdDQUFnQyxDQUFDLENBQUMsTUFBTSxFQUFFLENBQUMsQ0FBQztBQUM5RCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIHRvWE9ubHlQdWJsaWNLZXkoYjogQnVmZmVyKTogQnVmZmVyIHtcbiAgaWYgKGIubGVuZ3RoID09PSAzMykge1xuICAgIGlmIChiWzBdID09PSAweDAyIHx8IGJbMF0gPT09IDB4MDMpIHtcbiAgICAgIHJldHVybiBiLnN1YmFycmF5KDEpO1xuICAgIH0gZWxzZSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoYGludmFsaWQgcHVia2V5IGxlYWRpbmcgYnl0ZSAke2Iuc3ViYXJyYXkoMCwgMSkudG9TdHJpbmcoJ2hleCcpfWApO1xuICAgIH1cbiAgfVxuXG4gIGlmIChiLmxlbmd0aCA9PT0gMzIpIHtcbiAgICByZXR1cm4gYjtcbiAgfVxuXG4gIHRocm93IG5ldyBFcnJvcihgaW52YWxpZCBwdWJrZXkgYnVmZmVyIGxlbmd0aCAke2IubGVuZ3RofWApO1xufVxuIl19
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bitgo-beta/utxo-core",
|
|
3
|
+
"version": "0.0.0-semantic-release-managed",
|
|
4
|
+
"description": "BitGo UTXO Core types",
|
|
5
|
+
"main": "./dist/src/index.js",
|
|
6
|
+
"types": "./dist/src/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist/src"
|
|
9
|
+
],
|
|
10
|
+
"exports": {
|
|
11
|
+
".": "./dist/src/index.js",
|
|
12
|
+
"./descriptor": "./dist/src/descriptor/index.js",
|
|
13
|
+
"./testutil": "./dist/src/testutil/index.js",
|
|
14
|
+
"./testutil/descriptor": "./dist/src/testutil/descriptor/index.js"
|
|
15
|
+
},
|
|
16
|
+
"browser": {
|
|
17
|
+
".": "./dist/src/index.js",
|
|
18
|
+
"./descriptor": "./dist/src/descriptor/index.js",
|
|
19
|
+
"./testutil": "./dist/src/testutil/index.js",
|
|
20
|
+
"./testutil/descriptor": "./dist/src/testutil/descriptor/index.js"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "yarn tsc --build --incremental --verbose .",
|
|
24
|
+
"fmt": "prettier --write .",
|
|
25
|
+
"check-fmt": "prettier --check .",
|
|
26
|
+
"clean": "rm -r ./dist",
|
|
27
|
+
"lint": "eslint --quiet .",
|
|
28
|
+
"prepare": "npm run build",
|
|
29
|
+
"test": "npm run unit-test",
|
|
30
|
+
"unit-test": "mocha --recursive \"test/**/*.ts\""
|
|
31
|
+
},
|
|
32
|
+
"author": "BitGo SDK Team <sdkteam@bitgo.com>",
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/BitGo/BitGoJS.git",
|
|
37
|
+
"directory": "modules/utxo-core"
|
|
38
|
+
},
|
|
39
|
+
"lint-staged": {
|
|
40
|
+
"*.{js,ts}": [
|
|
41
|
+
"yarn prettier --write",
|
|
42
|
+
"yarn eslint --fix"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"publishConfig": {
|
|
46
|
+
"access": "public"
|
|
47
|
+
},
|
|
48
|
+
"type": "commonjs",
|
|
49
|
+
"nyc": {
|
|
50
|
+
"extension": [
|
|
51
|
+
".ts"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@bitgo-beta/unspents": "0.0.0-semantic-release-managed",
|
|
56
|
+
"@bitgo-beta/utxo-lib": "0.0.0-semantic-release-managed",
|
|
57
|
+
"@bitgo/wasm-miniscript": "2.0.0-beta.7",
|
|
58
|
+
"bip174": "npm:@bitgo-forks/bip174@3.1.0-master.4",
|
|
59
|
+
"bitcoinjs-message": "npm:@bitgo-forks/bitcoinjs-message@1.0.0-master.3",
|
|
60
|
+
"fast-sha256": "^1.3.0"
|
|
61
|
+
},
|
|
62
|
+
"gitHead": "cf1b83546a50fba7d18cf9af363c5663dbec2059"
|
|
63
|
+
}
|