utxo-lib 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ export declare const chainCodesP2shP2wsh: readonly [10, 11];
|
|
18
18
|
export declare const chainCodesP2wsh: readonly [20, 21];
|
19
19
|
export declare const chainCodesP2tr: readonly [30, 31];
|
20
20
|
export declare const chainCodesP2trMusig2: readonly [40, 41];
|
21
|
-
export declare const chainCodes: (0 |
|
21
|
+
export declare const chainCodes: (0 | 1 | 31 | 20 | 10 | 11 | 21 | 30 | 40 | 41)[];
|
22
22
|
export declare type ChainCode = typeof chainCodes[number];
|
23
23
|
export declare function isChainCode(n: unknown): n is ChainCode;
|
24
24
|
/**
|
package/dist/src/noble_ecc.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ECPairAPI, ECPairInterface } from 'ecpair';
|
2
2
|
import { BIP32API, BIP32Interface } from 'bip32';
|
3
|
-
import { MuSig } from '@brandonblack/musig';
|
3
|
+
import { MuSig } from '@brandonblack/musig/lib';
|
4
4
|
declare const ecc: {
|
5
5
|
isPoint: (p: Uint8Array) => boolean;
|
6
6
|
isPrivate: (d: Uint8Array) => boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"noble_ecc.d.ts","sourceRoot":"","sources":["../../src/noble_ecc.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAiB,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAgB,cAAc,EAAE,MAAM,OAAO,CAAC;AAI/D,OAAO,EAAE,KAAK,EAAgB,MAAM,
|
1
|
+
{"version":3,"file":"noble_ecc.d.ts","sourceRoot":"","sources":["../../src/noble_ecc.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAiB,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAgB,cAAc,EAAE,MAAM,OAAO,CAAC;AAI/D,OAAO,EAAE,KAAK,EAAgB,MAAM,yBAAyB,CAAC;AAqC9D,QAAA,MAAM,GAAG;iBACM,UAAU,KAAG,OAAO;mBAClB,UAAU,KAAG,OAAO;sBACjB,UAAU,KAAG,OAAO;4BAEd,UAAU,SAAS,UAAU,KAAG;QAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;QAAC,WAAW,EAAE,UAAU,CAAA;KAAE,GAAG,IAAI;0BAOnF,UAAU,uCAAyB,UAAU,GAAG,IAAI;uBAGvD,UAAU,uCAAyB,UAAU;uBAI7C,UAAU,SAAS,UAAU,uCAAyB,UAAU,GAAG,IAAI;kBAG5E,UAAU,KAAK,UAAU,uCAAyB,UAAU,GAAG,IAAI;wBAO7D,UAAU,SAAS,UAAU,uCAAyB,UAAU,GAAG,IAAI;oBAG3E,UAAU,SAAS,UAAU,KAAG,UAAU,GAAG,IAAI;uBAS9C,UAAU,KAAG,UAAU;cAEhC,UAAU,KAAK,UAAU,iCAAmB,UAAU;qBAI/C,UAAU,KAAK,UAAU,MAAK,UAAU,KAA4B,UAAU;gBAInF,UAAU,KAAK,UAAU,aAAa,UAAU,mCAAqB,OAAO;uBAIrE,UAAU,KAAK,UAAU,aAAa,UAAU,KAAG,OAAO;CAG9E,CAAC;AAkEF,QAAA,MAAM,MAAM,EAAE,SAA8B,CAAC;AAC7C,QAAA,MAAM,KAAK,EAAE,QAA4B,CAAC;AAC1C,QAAA,MAAM,KAAK,EAAE,KAA4B,CAAC;AAE1C,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC"}
|
package/dist/src/noble_ecc.js
CHANGED
@@ -9,7 +9,7 @@ const bip32_1 = require("bip32");
|
|
9
9
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
10
10
|
// @ts-ignore base_crypto is exported as a subPath export, ignoring since compiler complains about importing like this
|
11
11
|
const baseCrypto = require("@brandonblack/musig/lib/base_crypto");
|
12
|
-
const
|
12
|
+
const lib_1 = require("@brandonblack/musig/lib");
|
13
13
|
necc.utils.sha256Sync = (...messages) => {
|
14
14
|
const sha256 = createHash('sha256');
|
15
15
|
for (const message of messages)
|
@@ -163,6 +163,6 @@ const ECPair = ecpair_1.ECPairFactory(ecc);
|
|
163
163
|
exports.ECPair = ECPair;
|
164
164
|
const bip32 = bip32_1.BIP32Factory(ecc);
|
165
165
|
exports.bip32 = bip32;
|
166
|
-
const musig =
|
166
|
+
const musig = lib_1.MuSigFactory(crypto);
|
167
167
|
exports.musig = musig;
|
168
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9ibGVfZWNjLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL25vYmxlX2VjYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwwQ0FBMEM7QUFDMUMsMENBQTBDO0FBQzFDLG1DQUFtRTtBQUNuRSx5Q0FBeUM7QUFDekMsaUNBQStEO0FBQy9ELDZEQUE2RDtBQUM3RCxzSEFBc0g7QUFDdEgsa0VBQWtFO0FBQ2xFLCtDQUEwRDtBQUUxRCxJQUFJLENBQUMsS0FBSyxDQUFDLFVBQVUsR0FBRyxDQUFDLEdBQUcsUUFBc0IsRUFBYyxFQUFFO0lBQ2hFLE1BQU0sTUFBTSxHQUFHLFVBQVUsQ0FBQyxRQUFRLENBQUMsQ0FBQztJQUNwQyxLQUFLLE1BQU0sT0FBTyxJQUFJLFFBQVE7UUFBRSxNQUFNLENBQUMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxDQUFDO0lBQ3ZELE9BQU8sTUFBTSxDQUFDLE1BQU0sRUFBRSxDQUFDO0FBQ3pCLENBQUMsQ0FBQztBQUVGLElBQUksQ0FBQyxLQUFLLENBQUMsY0FBYyxHQUFHLENBQUMsR0FBZSxFQUFFLEdBQUcsUUFBc0IsRUFBYyxFQUFFO0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lyQVBJLCBFQ1BhaXJJbnRlcmZhY2UsIGJpcDMyLCBCSVAzMkFQSSwgQklQMzJJbnRlcmZhY2UsIG11c2lnLCBNdVNpZyB9O1xuIl19
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "utxo-lib",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.7",
|
4
4
|
"description": "Client-side Bitcoin JavaScript library",
|
5
5
|
"main": "./dist/src/index.js",
|
6
6
|
"engines": {
|
@@ -47,7 +47,7 @@
|
|
47
47
|
],
|
48
48
|
"dependencies": {
|
49
49
|
"@bitgo/blake2b": "^3.2.1",
|
50
|
-
"@brandonblack/musig": "
|
50
|
+
"@brandonblack/musig": "^0.0.1-alpha.0",
|
51
51
|
"@noble/secp256k1": "1.6.3",
|
52
52
|
"bech32": "^2.0.0",
|
53
53
|
"bip174": "npm:@bitgo-forks/bip174@3.1.0-master.3",
|