@shapeshiftoss/hdwallet-native 1.19.1 → 1.20.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/dist/adapter.d.ts +1 -1
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js.map +1 -1
- package/dist/binance.d.ts +1 -1
- package/dist/binance.d.ts.map +1 -1
- package/dist/binance.js +7 -2
- package/dist/binance.js.map +1 -1
- package/dist/binance.test.js +2 -32
- package/dist/binance.test.js.map +1 -1
- package/dist/bitcoin.d.ts +2 -2
- package/dist/bitcoin.d.ts.map +1 -1
- package/dist/bitcoin.js +14 -5
- package/dist/bitcoin.js.map +1 -1
- package/dist/bitcoin.test.js +6 -4
- package/dist/bitcoin.test.js.map +1 -1
- package/dist/cosmos.d.ts +1 -1
- package/dist/cosmos.d.ts.map +1 -1
- package/dist/cosmos.js +7 -2
- package/dist/cosmos.js.map +1 -1
- package/dist/cosmos.test.js +19 -17
- package/dist/cosmos.test.js.map +1 -1
- package/dist/crypto/CryptoHelper.d.ts.map +1 -1
- package/dist/crypto/CryptoHelper.js.map +1 -1
- package/dist/crypto/CryptoHelper.test.js +9 -11
- package/dist/crypto/CryptoHelper.test.js.map +1 -1
- package/dist/crypto/EncryptedWallet.d.ts +5 -5
- package/dist/crypto/EncryptedWallet.d.ts.map +1 -1
- package/dist/crypto/EncryptedWallet.js +9 -9
- package/dist/crypto/EncryptedWallet.js.map +1 -1
- package/dist/crypto/EncryptedWallet.test.js +1 -4
- package/dist/crypto/EncryptedWallet.test.js.map +1 -1
- package/dist/crypto/classes/cipherString.js.map +1 -1
- package/dist/crypto/classes/cipherString.test.js.map +1 -1
- package/dist/crypto/classes/encryptedObject.d.ts +1 -1
- package/dist/crypto/classes/encryptedObject.d.ts.map +1 -1
- package/dist/crypto/classes/encryptedObject.js +1 -1
- package/dist/crypto/classes/encryptedObject.js.map +1 -1
- package/dist/crypto/classes/encryptionType.d.ts.map +1 -1
- package/dist/crypto/classes/encryptionType.js +0 -1
- package/dist/crypto/classes/encryptionType.js.map +1 -1
- package/dist/crypto/classes/symmetricCryptoKey.test.js +0 -2
- package/dist/crypto/classes/symmetricCryptoKey.test.js.map +1 -1
- package/dist/crypto/engines/web-crypto.d.ts.map +1 -1
- package/dist/crypto/engines/web-crypto.js.map +1 -1
- package/dist/crypto/engines/web-crypto.test.js +1 -2
- package/dist/crypto/engines/web-crypto.test.js.map +1 -1
- package/dist/crypto/isolation/adapters/binance.d.ts.map +1 -1
- package/dist/crypto/isolation/adapters/binance.js +1 -1
- package/dist/crypto/isolation/adapters/binance.js.map +1 -1
- package/dist/crypto/isolation/adapters/bip32.d.ts +1 -1
- package/dist/crypto/isolation/adapters/bip32.d.ts.map +1 -1
- package/dist/crypto/isolation/adapters/bip32.js +1 -0
- package/dist/crypto/isolation/adapters/bip32.js.map +1 -1
- package/dist/crypto/isolation/adapters/bitcoin.d.ts +1 -1
- package/dist/crypto/isolation/adapters/bitcoin.d.ts.map +1 -1
- package/dist/crypto/isolation/adapters/bitcoin.js +10 -3
- package/dist/crypto/isolation/adapters/bitcoin.js.map +1 -1
- package/dist/crypto/isolation/adapters/cosmos.d.ts +4 -3
- package/dist/crypto/isolation/adapters/cosmos.d.ts.map +1 -1
- package/dist/crypto/isolation/adapters/cosmos.js.map +1 -1
- package/dist/crypto/isolation/adapters/cosmosDirect.d.ts +1 -1
- package/dist/crypto/isolation/adapters/cosmosDirect.d.ts.map +1 -1
- package/dist/crypto/isolation/adapters/cosmosDirect.js +2 -2
- package/dist/crypto/isolation/adapters/ethereum.d.ts.map +1 -1
- package/dist/crypto/isolation/adapters/ethereum.js +5 -1
- package/dist/crypto/isolation/adapters/ethereum.js.map +1 -1
- package/dist/crypto/isolation/adapters/fio.d.ts.map +1 -1
- package/dist/crypto/isolation/adapters/fio.js +5 -1
- package/dist/crypto/isolation/adapters/fio.js.map +1 -1
- package/dist/crypto/isolation/core/bip32/index.d.ts.map +1 -1
- package/dist/crypto/isolation/core/bip32/index.js +2 -2
- package/dist/crypto/isolation/core/bip32/index.js.map +1 -1
- package/dist/crypto/isolation/core/bip32/interfaces.d.ts +1 -1
- package/dist/crypto/isolation/core/bip32/interfaces.d.ts.map +1 -1
- package/dist/crypto/isolation/core/bip32/interfaces.js.map +1 -1
- package/dist/crypto/isolation/core/bip32/types.d.ts.map +1 -1
- package/dist/crypto/isolation/core/bip32/types.js.map +1 -1
- package/dist/crypto/isolation/core/bip39/interfaces.d.ts.map +1 -1
- package/dist/crypto/isolation/core/digest/algorithms.d.ts +1 -1
- package/dist/crypto/isolation/core/digest/algorithms.d.ts.map +1 -1
- package/dist/crypto/isolation/core/digest/algorithms.js +10 -7
- package/dist/crypto/isolation/core/digest/algorithms.js.map +1 -1
- package/dist/crypto/isolation/core/digest/index.test.js +7 -2
- package/dist/crypto/isolation/core/digest/index.test.js.map +1 -1
- package/dist/crypto/isolation/core/digest/types.d.ts +16 -16
- package/dist/crypto/isolation/core/digest/types.d.ts.map +1 -1
- package/dist/crypto/isolation/core/digest/types.js +11 -11
- package/dist/crypto/isolation/core/digest/types.js.map +1 -1
- package/dist/crypto/isolation/core/index.d.ts.map +1 -1
- package/dist/crypto/isolation/core/index.js.map +1 -1
- package/dist/crypto/isolation/core/secp256k1/interfaces.d.ts +1 -1
- package/dist/crypto/isolation/core/secp256k1/interfaces.d.ts.map +1 -1
- package/dist/crypto/isolation/core/secp256k1/types.d.ts +60 -60
- package/dist/crypto/isolation/core/secp256k1/types.d.ts.map +1 -1
- package/dist/crypto/isolation/core/secp256k1/types.js +142 -84
- package/dist/crypto/isolation/core/secp256k1/types.js.map +1 -1
- package/dist/crypto/isolation/engines/default/bip32.d.ts +18 -18
- package/dist/crypto/isolation/engines/default/bip32.d.ts.map +1 -1
- package/dist/crypto/isolation/engines/default/bip32.js +44 -41
- package/dist/crypto/isolation/engines/default/bip32.js.map +1 -1
- package/dist/crypto/isolation/engines/default/bip39.d.ts +2 -2
- package/dist/crypto/isolation/engines/default/bip39.d.ts.map +1 -1
- package/dist/crypto/isolation/engines/default/bip39.js +2 -3
- package/dist/crypto/isolation/engines/default/bip39.js.map +1 -1
- package/dist/crypto/isolation/engines/default/index.test.js +8 -2
- package/dist/crypto/isolation/engines/default/index.test.js.map +1 -1
- package/dist/crypto/isolation/engines/default/revocable.d.ts +2 -2
- package/dist/crypto/isolation/engines/default/revocable.d.ts.map +1 -1
- package/dist/crypto/isolation/engines/default/revocable.js +26 -15
- package/dist/crypto/isolation/engines/default/revocable.js.map +1 -1
- package/dist/crypto/isolation/engines/dummy/bip32.d.ts +7 -7
- package/dist/crypto/isolation/engines/dummy/bip32.d.ts.map +1 -1
- package/dist/crypto/isolation/engines/dummy/bip32.js +25 -26
- package/dist/crypto/isolation/engines/dummy/bip32.js.map +1 -1
- package/dist/crypto/isolation/engines/dummy/bip39.d.ts.map +1 -1
- package/dist/crypto/isolation/engines/dummy/bip39.js +8 -7
- package/dist/crypto/isolation/engines/dummy/bip39.js.map +1 -1
- package/dist/crypto/isolation/engines/dummy/index.test.js +21 -15
- package/dist/crypto/isolation/engines/dummy/index.test.js.map +1 -1
- package/dist/crypto/isolation/engines/dummy/types.d.ts.map +1 -1
- package/dist/crypto/isolation/types.d.ts +1 -1
- package/dist/crypto/isolation/types.d.ts.map +1 -1
- package/dist/crypto/isolation/types.js +22 -12
- package/dist/crypto/isolation/types.js.map +1 -1
- package/dist/ethereum.d.ts +2 -2
- package/dist/ethereum.d.ts.map +1 -1
- package/dist/ethereum.js +12 -3
- package/dist/ethereum.js.map +1 -1
- package/dist/ethereum.test.js +5 -6
- package/dist/ethereum.test.js.map +1 -1
- package/dist/fio.d.ts +2 -2
- package/dist/fio.d.ts.map +1 -1
- package/dist/fio.js +8 -1
- package/dist/fio.js.map +1 -1
- package/dist/fio.test.js +2 -2
- package/dist/fio.test.js.map +1 -1
- package/dist/kava.d.ts +2 -2
- package/dist/kava.d.ts.map +1 -1
- package/dist/kava.js +6 -2
- package/dist/kava.js.map +1 -1
- package/dist/kava.test.js.map +1 -1
- package/dist/native.d.ts +5 -5
- package/dist/native.d.ts.map +1 -1
- package/dist/native.js +19 -7
- package/dist/native.js.map +1 -1
- package/dist/native.test.js +0 -1
- package/dist/native.test.js.map +1 -1
- package/dist/networks.d.ts.map +1 -1
- package/dist/networks.js +13 -2
- package/dist/networks.js.map +1 -1
- package/dist/osmosis.d.ts +2 -3
- package/dist/osmosis.d.ts.map +1 -1
- package/dist/osmosis.js +7 -2
- package/dist/osmosis.js.map +1 -1
- package/dist/osmosis.test.js +19 -17
- package/dist/osmosis.test.js.map +1 -1
- package/dist/secret.d.ts +1 -1
- package/dist/secret.d.ts.map +1 -1
- package/dist/secret.js +7 -2
- package/dist/secret.js.map +1 -1
- package/dist/secret.test.js.map +1 -1
- package/dist/terra.d.ts +1 -1
- package/dist/terra.d.ts.map +1 -1
- package/dist/terra.js +6 -2
- package/dist/terra.js.map +1 -1
- package/dist/terra.test.js.map +1 -1
- package/dist/thorchain.d.ts +1 -1
- package/dist/thorchain.d.ts.map +1 -1
- package/dist/thorchain.js +6 -1
- package/dist/thorchain.js.map +1 -1
- package/dist/util.d.ts.map +1 -1
- package/dist/util.js +1 -4
- package/dist/util.js.map +1 -1
- package/dist/util.test.js +1 -1
- package/dist/util.test.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/crypto/isolation/core/digest/types.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/crypto/isolation/core/digest/types.ts"],"names":[],"mappings":";;;AAAA,uCAAkF;AAElF,uCAA4D;AAC5D,uCAAwC;AACxC,6CAAsE;AAEtE,gFAAgF;AAChF,kFAAkF;AAClF,gFAAgF;AAChF,2DAA2D;AAC3D,SAAS,iBAAiB,CACxB,MAAU;IAEV,OAAO,eAAI,CACT,iBAAiB,MAAM,aAAN,MAAM,cAAN,MAA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MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AAEzC,qBAAa,cAAe,SAAQ,KAAK;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/crypto/isolation/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AAEzC,qBAAa,cAAe,SAAQ,KAAK;gBAC3B,IAAI,EAAE,MAAM;CAGzB;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,IAAI,IAAI,CAAC;IACf,UAAU,CAAC,MAAM,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;CACtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/crypto/isolation/core/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAiC;AACjC,iDAAiC;AACjC,mDAAmC;AACnC,yDAAyC;AAEzC,MAAa,cAAe,SAAQ,KAAK;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/crypto/isolation/core/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAiC;AACjC,iDAAiC;AACjC,mDAAmC;AACnC,yDAAyC;AAEzC,MAAa,cAAe,SAAQ,KAAK;IACvC,YAAY,IAAY;QACtB,KAAK,CAAC,8BAA8B,IAAI,WAAW,CAAC,CAAC;IACvD,CAAC;CACF;AAJD,wCAIC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ByteArray, Uint32 } from "../../types";
|
|
2
|
-
import { CurvePoint, RecoverableSignature, Signature } from "./types";
|
|
3
2
|
import * as Digest from "../digest";
|
|
3
|
+
import { CurvePoint, RecoverableSignature, Signature } from "./types";
|
|
4
4
|
export interface ECDSAKey {
|
|
5
5
|
getPublicKey(): Promise<CurvePoint>;
|
|
6
6
|
ecdsaSign(digestAlgorithm: null, message: ByteArray<32>): Promise<NonNullable<Signature>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/crypto/isolation/core/secp256k1/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/crypto/isolation/core/secp256k1/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEtE,MAAM,WAAW,QAAQ;IACvB,YAAY,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;IASpC,SAAS,CAAC,eAAe,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC;IAC1F,SAAS,CACP,eAAe,EAAE,IAAI,EACrB,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC,EACtB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,CAAC;IAC/C,SAAS,CAAC,eAAe,EAAE,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC;IAC3G,SAAS,CACP,e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
|
1
1
|
import { Literal, Object as Obj, Static, Union } from "funtypes";
|
|
2
|
-
import * as Digest from "../digest";
|
|
3
2
|
import { BigEndianInteger } from "../../types";
|
|
3
|
+
import * as Digest from "../digest";
|
|
4
4
|
import { ECDSAKey } from "./interfaces";
|
|
5
|
-
declare const
|
|
5
|
+
declare const _fieldElementBase: import("funtypes").Constraint<import("funtypes").Intersect<[import("funtypes").InstanceOf<Uint8Array>, Obj<{
|
|
6
6
|
length: Literal<32>;
|
|
7
7
|
}, false>]>, Uint8Array & {
|
|
8
8
|
length: 32;
|
|
9
9
|
}, unknown>;
|
|
10
|
-
export declare type FieldElement = Static<typeof
|
|
11
|
-
declare const
|
|
10
|
+
export declare type FieldElement = Static<typeof _fieldElementBase>;
|
|
11
|
+
declare const _fieldElement: import("funtypes").Constraint<import("funtypes").Intersect<[import("funtypes").InstanceOf<Uint8Array>, Obj<{
|
|
12
12
|
length: Literal<32>;
|
|
13
13
|
}, false>]>, Uint8Array & {
|
|
14
14
|
length: 32;
|
|
@@ -22,37 +22,8 @@ declare const fieldElement: import("funtypes").Constraint<import("funtypes").Int
|
|
|
22
22
|
isHigh: <T_2 extends number>(x: BigEndianInteger<T_2>) => boolean;
|
|
23
23
|
isOdd: <T_3 extends number>(x: BigEndianInteger<T_3>) => boolean;
|
|
24
24
|
};
|
|
25
|
-
export declare const FieldElement: typeof
|
|
26
|
-
declare const
|
|
27
|
-
length: Literal<33>;
|
|
28
|
-
}, false>]>, Obj<{
|
|
29
|
-
0: Union<[Literal<2>, Literal<3>]>;
|
|
30
|
-
}, false>]>, Uint8Array & {
|
|
31
|
-
length: 33;
|
|
32
|
-
} & {
|
|
33
|
-
0: 2 | 3;
|
|
34
|
-
}, unknown>;
|
|
35
|
-
export declare type CompressedPoint = Static<typeof compressedPointBase>;
|
|
36
|
-
declare const compressedPoint: import("funtypes").Constraint<import("funtypes").Intersect<[import("funtypes").Intersect<[import("funtypes").InstanceOf<Uint8Array>, Obj<{
|
|
37
|
-
length: Literal<33>;
|
|
38
|
-
}, false>]>, Obj<{
|
|
39
|
-
0: Union<[Literal<2>, Literal<3>]>;
|
|
40
|
-
}, false>]>, Uint8Array & {
|
|
41
|
-
length: 33;
|
|
42
|
-
} & {
|
|
43
|
-
0: 2 | 3;
|
|
44
|
-
}, unknown> & (<T extends number | undefined = undefined>(length?: T | undefined) => T extends undefined ? import("funtypes").InstanceOf<Uint8Array> : unknown extends T ? import("funtypes").InstanceOf<Uint8Array> : import("funtypes").Intersect<[import("funtypes").InstanceOf<Uint8Array>, Obj<{
|
|
45
|
-
length: Literal<T>;
|
|
46
|
-
}, false>]>) & {
|
|
47
|
-
equal(lhs: Uint8Array, rhs: Uint8Array): boolean;
|
|
48
|
-
} & {
|
|
49
|
-
from: (p: CurvePoint) => CompressedPoint;
|
|
50
|
-
fromUncompressed: (p: UncompressedPoint) => CompressedPoint;
|
|
51
|
-
x: (p: CompressedPoint) => FieldElement;
|
|
52
|
-
yIsOdd: (p: CompressedPoint) => boolean;
|
|
53
|
-
};
|
|
54
|
-
export declare const CompressedPoint: typeof compressedPoint;
|
|
55
|
-
declare const uncompressedPointBase: import("funtypes").Constraint<import("funtypes").Constraint<import("funtypes").Intersect<[import("funtypes").Intersect<[import("funtypes").InstanceOf<Uint8Array>, Obj<{
|
|
25
|
+
export declare const FieldElement: typeof _fieldElement;
|
|
26
|
+
declare const _uncompressedPointBase: import("funtypes").Constraint<import("funtypes").Constraint<import("funtypes").Intersect<[import("funtypes").Intersect<[import("funtypes").InstanceOf<Uint8Array>, Obj<{
|
|
56
27
|
length: Literal<65>;
|
|
57
28
|
}, false>]>, Obj<{
|
|
58
29
|
0: Literal<4>;
|
|
@@ -65,8 +36,18 @@ declare const uncompressedPointBase: import("funtypes").Constraint<import("funty
|
|
|
65
36
|
} & {
|
|
66
37
|
0: 4;
|
|
67
38
|
}, unknown>;
|
|
68
|
-
export declare type UncompressedPoint = Static<typeof
|
|
69
|
-
declare const
|
|
39
|
+
export declare type UncompressedPoint = Static<typeof _uncompressedPointBase>;
|
|
40
|
+
declare const _compressedPointBase: import("funtypes").Constraint<import("funtypes").Intersect<[import("funtypes").Intersect<[import("funtypes").InstanceOf<Uint8Array>, Obj<{
|
|
41
|
+
length: Literal<33>;
|
|
42
|
+
}, false>]>, Obj<{
|
|
43
|
+
0: Union<[Literal<2>, Literal<3>]>;
|
|
44
|
+
}, false>]>, Uint8Array & {
|
|
45
|
+
length: 33;
|
|
46
|
+
} & {
|
|
47
|
+
0: 2 | 3;
|
|
48
|
+
}, unknown>;
|
|
49
|
+
export declare type CompressedPoint = Static<typeof _compressedPointBase>;
|
|
50
|
+
declare const _uncompressedPoint: import("funtypes").Constraint<import("funtypes").Constraint<import("funtypes").Intersect<[import("funtypes").Intersect<[import("funtypes").InstanceOf<Uint8Array>, Obj<{
|
|
70
51
|
length: Literal<65>;
|
|
71
52
|
}, false>]>, Obj<{
|
|
72
53
|
0: Literal<4>;
|
|
@@ -89,9 +70,28 @@ declare const uncompressedPoint: import("funtypes").Constraint<import("funtypes"
|
|
|
89
70
|
y: (p: UncompressedPoint) => FieldElement;
|
|
90
71
|
yIsOdd: (p: UncompressedPoint) => boolean;
|
|
91
72
|
};
|
|
92
|
-
export declare const UncompressedPoint: typeof
|
|
73
|
+
export declare const UncompressedPoint: typeof _uncompressedPoint;
|
|
74
|
+
declare const _compressedPoint: import("funtypes").Constraint<import("funtypes").Intersect<[import("funtypes").Intersect<[import("funtypes").InstanceOf<Uint8Array>, Obj<{
|
|
75
|
+
length: Literal<33>;
|
|
76
|
+
}, false>]>, Obj<{
|
|
77
|
+
0: Union<[Literal<2>, Literal<3>]>;
|
|
78
|
+
}, false>]>, Uint8Array & {
|
|
79
|
+
length: 33;
|
|
80
|
+
} & {
|
|
81
|
+
0: 2 | 3;
|
|
82
|
+
}, unknown> & (<T extends number | undefined = undefined>(length?: T | undefined) => T extends undefined ? import("funtypes").InstanceOf<Uint8Array> : unknown extends T ? import("funtypes").InstanceOf<Uint8Array> : import("funtypes").Intersect<[import("funtypes").InstanceOf<Uint8Array>, Obj<{
|
|
83
|
+
length: Literal<T>;
|
|
84
|
+
}, false>]>) & {
|
|
85
|
+
equal(lhs: Uint8Array, rhs: Uint8Array): boolean;
|
|
86
|
+
} & {
|
|
87
|
+
from: (p: CurvePoint) => CompressedPoint;
|
|
88
|
+
fromUncompressed: (p: UncompressedPoint) => CompressedPoint;
|
|
89
|
+
x: (p: CompressedPoint) => FieldElement;
|
|
90
|
+
yIsOdd: (p: CompressedPoint) => boolean;
|
|
91
|
+
};
|
|
92
|
+
export declare const CompressedPoint: typeof _compressedPoint;
|
|
93
93
|
export declare type CurvePoint = CompressedPoint | UncompressedPoint;
|
|
94
|
-
declare const
|
|
94
|
+
declare const _curvePoint: Union<[import("funtypes").Constraint<import("funtypes").Intersect<[import("funtypes").Intersect<[import("funtypes").InstanceOf<Uint8Array>, Obj<{
|
|
95
95
|
length: Literal<33>;
|
|
96
96
|
}, false>]>, Obj<{
|
|
97
97
|
0: Union<[Literal<2>, Literal<3>]>;
|
|
@@ -135,12 +135,12 @@ declare const curvePoint: Union<[import("funtypes").Constraint<import("funtypes"
|
|
|
135
135
|
yIsOdd: (p: CurvePoint) => boolean;
|
|
136
136
|
equal: (lhs: CurvePoint, rhs: CurvePoint) => boolean;
|
|
137
137
|
};
|
|
138
|
-
export declare const CurvePoint: typeof
|
|
139
|
-
declare const
|
|
140
|
-
export declare type RecoveryParam = Static<typeof
|
|
141
|
-
declare const
|
|
142
|
-
export declare const RecoveryParam: typeof
|
|
143
|
-
declare const
|
|
138
|
+
export declare const CurvePoint: typeof _curvePoint;
|
|
139
|
+
declare const _recoveryParamBase: Union<[Literal<0>, Literal<1>, Literal<2>, Literal<3>]>;
|
|
140
|
+
export declare type RecoveryParam = Static<typeof _recoveryParamBase>;
|
|
141
|
+
declare const _recoveryParam: Union<[Literal<0>, Literal<1>, Literal<2>, Literal<3>]>;
|
|
142
|
+
export declare const RecoveryParam: typeof _recoveryParam;
|
|
143
|
+
declare const _messageWithPreimageBase: import("funtypes").Intersect<[import("funtypes").Intersect<[import("funtypes").InstanceOf<Uint8Array>, Obj<{
|
|
144
144
|
length: Literal<32>;
|
|
145
145
|
}, false>]>, import("funtypes").Constraint<import("funtypes").Runtype<(Uint8Array & {
|
|
146
146
|
length: 20;
|
|
@@ -213,8 +213,8 @@ declare const messageWithPreimageBase: import("funtypes").Intersect<[import("fun
|
|
|
213
213
|
preimage: Uint8Array;
|
|
214
214
|
algorithm: "sha512";
|
|
215
215
|
}), unknown>]>;
|
|
216
|
-
export declare type MessageWithPreimage = Static<typeof
|
|
217
|
-
declare const
|
|
216
|
+
export declare type MessageWithPreimage = Static<typeof _messageWithPreimageBase>;
|
|
217
|
+
declare const _messageWithPreimage: import("funtypes").Intersect<[import("funtypes").Intersect<[import("funtypes").InstanceOf<Uint8Array>, Obj<{
|
|
218
218
|
length: Literal<32>;
|
|
219
219
|
}, false>]>, import("funtypes").Constraint<import("funtypes").Runtype<(Uint8Array & {
|
|
220
220
|
length: 20;
|
|
@@ -291,8 +291,8 @@ declare const messageWithPreimage: import("funtypes").Intersect<[import("funtype
|
|
|
291
291
|
}, false>]>) & {
|
|
292
292
|
equal(lhs: Uint8Array, rhs: Uint8Array): boolean;
|
|
293
293
|
};
|
|
294
|
-
export declare const MessageWithPreimage: typeof
|
|
295
|
-
declare const
|
|
294
|
+
export declare const MessageWithPreimage: typeof _messageWithPreimage;
|
|
295
|
+
declare const _messageBase: Union<[import("funtypes").Intersect<[import("funtypes").Intersect<[import("funtypes").InstanceOf<Uint8Array>, Obj<{
|
|
296
296
|
length: Literal<32>;
|
|
297
297
|
}, false>]>, import("funtypes").Constraint<import("funtypes").Runtype<(Uint8Array & {
|
|
298
298
|
length: 20;
|
|
@@ -369,8 +369,8 @@ declare const messageBase: Union<[import("funtypes").Intersect<[import("funtypes
|
|
|
369
369
|
}, false>]>) & {
|
|
370
370
|
equal(lhs: Uint8Array, rhs: Uint8Array): boolean;
|
|
371
371
|
}, import("funtypes").InstanceOf<Uint8Array>]>;
|
|
372
|
-
export declare type Message = Static<typeof
|
|
373
|
-
declare const
|
|
372
|
+
export declare type Message = Static<typeof _messageBase>;
|
|
373
|
+
declare const _message: Union<[import("funtypes").Intersect<[import("funtypes").Intersect<[import("funtypes").InstanceOf<Uint8Array>, Obj<{
|
|
374
374
|
length: Literal<32>;
|
|
375
375
|
}, false>]>, import("funtypes").Constraint<import("funtypes").Runtype<(Uint8Array & {
|
|
376
376
|
length: 20;
|
|
@@ -451,16 +451,16 @@ declare const message: Union<[import("funtypes").Intersect<[import("funtypes").I
|
|
|
451
451
|
}, false>]>) & {
|
|
452
452
|
equal(lhs: Uint8Array, rhs: Uint8Array): boolean;
|
|
453
453
|
};
|
|
454
|
-
export declare const Message: typeof
|
|
455
|
-
declare const
|
|
454
|
+
export declare const Message: typeof _message;
|
|
455
|
+
declare const _signatureBase: import("funtypes").Constraint<import("funtypes").Constraint<import("funtypes").Intersect<[import("funtypes").InstanceOf<Uint8Array>, Obj<{
|
|
456
456
|
length: Literal<64>;
|
|
457
457
|
}, false>]>, Uint8Array & {
|
|
458
458
|
length: 64;
|
|
459
459
|
}, unknown>, Uint8Array & {
|
|
460
460
|
length: 64;
|
|
461
461
|
}, unknown>;
|
|
462
|
-
export declare type Signature = Static<typeof
|
|
463
|
-
declare const
|
|
462
|
+
export declare type Signature = Static<typeof _signatureBase>;
|
|
463
|
+
declare const _signature: import("funtypes").Constraint<import("funtypes").Constraint<import("funtypes").Intersect<[import("funtypes").InstanceOf<Uint8Array>, Obj<{
|
|
464
464
|
length: Literal<64>;
|
|
465
465
|
}, false>]>, Uint8Array & {
|
|
466
466
|
length: 64;
|
|
@@ -479,8 +479,8 @@ declare const signature: import("funtypes").Constraint<import("funtypes").Constr
|
|
|
479
479
|
signCanonically: (x: ECDSAKey, digestAlgorithm: Digest.AlgorithmName<32> | null, message: Uint8Array, counter?: number | undefined) => Promise<Signature>;
|
|
480
480
|
verify: (x: Signature, digestAlgorithm: Digest.AlgorithmName<32> | null, message: Uint8Array, publicKey: CurvePoint) => boolean;
|
|
481
481
|
};
|
|
482
|
-
export declare const Signature: typeof
|
|
483
|
-
declare const
|
|
482
|
+
export declare const Signature: typeof _signature;
|
|
483
|
+
declare const _recoverableSignatureBase: import("funtypes").Constraint<import("funtypes").Intersect<[import("funtypes").Intersect<[import("funtypes").InstanceOf<Uint8Array>, Obj<{
|
|
484
484
|
length: Literal<65>;
|
|
485
485
|
}, false>]>, Obj<{
|
|
486
486
|
64: Union<[Literal<0>, Literal<1>, Literal<2>, Literal<3>]>;
|
|
@@ -489,8 +489,8 @@ declare const recoverableSignatureBase: import("funtypes").Constraint<import("fu
|
|
|
489
489
|
} & {
|
|
490
490
|
64: 0 | 2 | 3 | 1;
|
|
491
491
|
}, unknown>;
|
|
492
|
-
export declare type RecoverableSignature = Static<typeof
|
|
493
|
-
declare const
|
|
492
|
+
export declare type RecoverableSignature = Static<typeof _recoverableSignatureBase>;
|
|
493
|
+
declare const _recoverableSignature: import("funtypes").Constraint<import("funtypes").Intersect<[import("funtypes").Intersect<[import("funtypes").InstanceOf<Uint8Array>, Obj<{
|
|
494
494
|
length: Literal<65>;
|
|
495
495
|
}, false>]>, Obj<{
|
|
496
496
|
64: Union<[Literal<0>, Literal<1>, Literal<2>, Literal<3>]>;
|
|
@@ -513,6 +513,6 @@ declare const recoverableSignature: import("funtypes").Constraint<import("funtyp
|
|
|
513
513
|
isLowS: (x: RecoverableSignature) => boolean;
|
|
514
514
|
verify: (x: RecoverableSignature, digestAlgorithm: Digest.AlgorithmName<32> | null, message: Uint8Array, publicKey: CurvePoint) => boolean;
|
|
515
515
|
};
|
|
516
|
-
export declare const RecoverableSignature: typeof
|
|
516
|
+
export declare const RecoverableSignature: typeof _recoverableSignature;
|
|
517
517
|
export {};
|
|
518
518
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/crypto/isolation/core/secp256k1/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjE,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/crypto/isolation/core/secp256k1/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjE,OAAO,EAAc,gBAAgB,EAAgD,MAAM,aAAa,CAAC;AACzG,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAuB,MAAM,cAAc,CAAC;AAI7D,QAAA,MAAM,iBAAiB;;;;WAGtB,CAAC;AACF,oBAAY,YAAY,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,QAAA,MAAM,aAAa;;;;;;;;;;;;;CAA0E,CAAC;AAC9F,eAAO,MAAM,YAAY,EAAE,OAAO,aAA6B,CAAC;AAEhE,QAAA,MAAM,sBAAsB;;;;;;;;;;;;WAkBzB,CAAC;AACJ,oBAAY,iBAAiB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,QAAA,MAAM,oBAAoB;;;;;;;;WAQtB,CAAC;AACL,oBAAY,eAAe,GAAG,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAmBlE,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;cAhBZ,UAAU,KAAG,iBAAiB;wBAGpB,eAAe,KAAG,iBAAiB;WAGhD,iBAAiB,KAAG,YAAY;WAGhC,iBAAiB,KAAG,YAAY;gBAG3B,iBAAiB,KAAG,OAAO;CAI4D,CAAC;AACtG,eAAO,MAAM,iBAAiB,EAAE,OAAO,kBAAuC,CAAC;AAoB/E,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;cA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aAWvB,oBAAoB,KAAG,SAAS;uBACtB,oBAAoB,KAAG,aAAa;4BAC/B,oBAAoB;qBAC3B,oBAAoB,KAAG,OAAO;yBAI1C,QAAQ,mBACM,OAAO,aAAa,CAAC,EAAE,CAAC,GAAG,IAAI,WACvC,UAAU,mCAElB,QAAQ,oBAAoB,CAAC;0BAkD3B,oBAAoB,mBACN,OAAO,aAAa,CAAC,EAAE,CAAC,GAAG,IAAI,WACvC,UAAU,KAClB,QAAQ,UAAU,CAAC;WAef,oBAAoB,KAAG,YAAY;WACnC,oBAAoB,KAAG,YAAY;gBAC9B,oBAAoB,KAAG,OAAO;gBAC9B,oBAAoB,KAAG,OAAO;gBAErC,oBAAoB,mBACN,OAAO,aAAa,CAAC,EAAE,CAAC,GAAG,IAAI,WACvC,UAAU,aACR,UAAU,KACpB,OAAO;CAIuF,CAAC;AACpG,eAAO,MAAM,oBAAoB,EAAE,OAAO,qBAA6C,CAAC"}
|
|
@@ -28,39 +28,25 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.RecoverableSignature = exports.Signature = exports.Message = exports.MessageWithPreimage = exports.RecoveryParam = exports.CurvePoint = exports.
|
|
31
|
+
exports.RecoverableSignature = exports.Signature = exports.Message = exports.MessageWithPreimage = exports.RecoveryParam = exports.CurvePoint = exports.CompressedPoint = exports.UncompressedPoint = exports.FieldElement = void 0;
|
|
32
32
|
const core = __importStar(require("@shapeshiftoss/hdwallet-core"));
|
|
33
33
|
const funtypes_1 = require("funtypes");
|
|
34
34
|
const tinyecc = __importStar(require("tiny-secp256k1"));
|
|
35
|
-
const Digest = __importStar(require("../digest"));
|
|
36
35
|
const types_1 = require("../../types");
|
|
36
|
+
const Digest = __importStar(require("../digest"));
|
|
37
37
|
const ethers = Promise.resolve().then(() => __importStar(require("ethers")));
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
exports.FieldElement =
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
})).withConstraint(p => exports.FieldElement.test(p.slice(1)) || `expected ${p}.x to be within the order of the curve`, { name: "CompressedPoint.x" });
|
|
45
|
-
const compressedPointStatic = {
|
|
46
|
-
from: (p) => {
|
|
47
|
-
return (p.length === 33 ? p : exports.CompressedPoint.fromUncompressed(types_1.checkType(exports.UncompressedPoint, p)));
|
|
48
|
-
},
|
|
49
|
-
fromUncompressed: (p) => {
|
|
50
|
-
const out = new Uint8Array(33);
|
|
51
|
-
out[0] = (exports.UncompressedPoint.yIsOdd(p) ? 0x03 : 0x02);
|
|
52
|
-
out.set(exports.UncompressedPoint.x(p), 1);
|
|
53
|
-
exports.CompressedPoint.assert(out);
|
|
54
|
-
return out;
|
|
55
|
-
},
|
|
56
|
-
x: (p) => { return types_1.checkType(exports.FieldElement, p.slice(1)); },
|
|
57
|
-
yIsOdd: (p) => { return p[0] === 0x03; }
|
|
58
|
-
};
|
|
59
|
-
const compressedPoint = Object.assign(compressedPointBase, types_1.ByteArray, compressedPointStatic);
|
|
60
|
-
exports.CompressedPoint = compressedPoint;
|
|
61
|
-
const uncompressedPointBase = types_1.ByteArray(65).And(funtypes_1.Object({
|
|
38
|
+
const _fieldElementBase = types_1.BigEndianInteger(32).withConstraint((x) => tinyecc.isPrivate(types_1.safeBufferFrom(x)) || `expected ${x} to be within the order of the curve`, { name: "FieldElement" });
|
|
39
|
+
const _fieldElementStatic = {};
|
|
40
|
+
const _fieldElement = Object.assign(_fieldElementBase, types_1.BigEndianInteger, _fieldElementStatic);
|
|
41
|
+
exports.FieldElement = _fieldElement;
|
|
42
|
+
const _uncompressedPointBase = types_1.ByteArray(65)
|
|
43
|
+
.And(funtypes_1.Object({
|
|
62
44
|
0: funtypes_1.Literal(0x04),
|
|
63
|
-
}))
|
|
45
|
+
}))
|
|
46
|
+
.withConstraint((p) => exports.FieldElement.test(p.slice(1, 33)) || `expected ${p}.x to be within the order of the curve`, {
|
|
47
|
+
name: "UncompressedPoint.x",
|
|
48
|
+
})
|
|
49
|
+
.withConstraint((p) => {
|
|
64
50
|
if (!exports.FieldElement.test(p.slice(33, 65)))
|
|
65
51
|
return `expected ${p}.y to be within the order of the curve`;
|
|
66
52
|
const pBuf = Buffer.from(p);
|
|
@@ -68,47 +54,96 @@ const uncompressedPointBase = types_1.ByteArray(65).And(funtypes_1.Object({
|
|
|
68
54
|
return `expected ${p} to be on the curve`;
|
|
69
55
|
return true;
|
|
70
56
|
}, { name: "UncompressedPoint.y" });
|
|
71
|
-
const
|
|
57
|
+
const _compressedPointBase = types_1.ByteArray(33)
|
|
58
|
+
.And(funtypes_1.Object({
|
|
59
|
+
0: funtypes_1.Literal(0x02).Or(funtypes_1.Literal(0x03)),
|
|
60
|
+
}))
|
|
61
|
+
.withConstraint((p) => exports.FieldElement.test(p.slice(1)) || `expected ${p}.x to be within the order of the curve`, {
|
|
62
|
+
name: "CompressedPoint.x",
|
|
63
|
+
});
|
|
64
|
+
const _uncompressedPointStatic = {
|
|
72
65
|
from: (p) => {
|
|
73
|
-
return
|
|
66
|
+
return p.length === 65 ? p : exports.UncompressedPoint.fromCompressed(types_1.checkType(exports.CompressedPoint, p));
|
|
74
67
|
},
|
|
75
68
|
fromCompressed: (p) => {
|
|
76
69
|
return types_1.checkType(exports.UncompressedPoint, tinyecc.pointCompress(Buffer.from(p), false));
|
|
77
70
|
},
|
|
78
|
-
x: (p) => {
|
|
79
|
-
|
|
80
|
-
|
|
71
|
+
x: (p) => {
|
|
72
|
+
return types_1.checkType(exports.FieldElement, p.slice(1, 33));
|
|
73
|
+
},
|
|
74
|
+
y: (p) => {
|
|
75
|
+
return types_1.checkType(exports.FieldElement, p.slice(33, 65));
|
|
76
|
+
},
|
|
77
|
+
yIsOdd: (p) => {
|
|
78
|
+
return exports.FieldElement.isOdd(exports.UncompressedPoint.y(p));
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
const _uncompressedPoint = Object.assign(_uncompressedPointBase, types_1.ByteArray, _uncompressedPointStatic);
|
|
82
|
+
exports.UncompressedPoint = _uncompressedPoint;
|
|
83
|
+
const _compressedPointStatic = {
|
|
84
|
+
from: (p) => {
|
|
85
|
+
return p.length === 33 ? p : exports.CompressedPoint.fromUncompressed(types_1.checkType(exports.UncompressedPoint, p));
|
|
86
|
+
},
|
|
87
|
+
fromUncompressed: (p) => {
|
|
88
|
+
const out = new Uint8Array(33);
|
|
89
|
+
out[0] = exports.UncompressedPoint.yIsOdd(p) ? 0x03 : 0x02;
|
|
90
|
+
out.set(exports.UncompressedPoint.x(p), 1);
|
|
91
|
+
exports.CompressedPoint.assert(out);
|
|
92
|
+
return out;
|
|
93
|
+
},
|
|
94
|
+
x: (p) => {
|
|
95
|
+
return types_1.checkType(exports.FieldElement, p.slice(1));
|
|
96
|
+
},
|
|
97
|
+
yIsOdd: (p) => {
|
|
98
|
+
return p[0] === 0x03;
|
|
99
|
+
},
|
|
81
100
|
};
|
|
82
|
-
const
|
|
83
|
-
exports.
|
|
84
|
-
const
|
|
85
|
-
const
|
|
101
|
+
const _compressedPoint = Object.assign(_compressedPointBase, types_1.ByteArray, _compressedPointStatic);
|
|
102
|
+
exports.CompressedPoint = _compressedPoint;
|
|
103
|
+
const _curvePointBase = exports.CompressedPoint.Or(exports.UncompressedPoint);
|
|
104
|
+
const _curvePointStatic = {
|
|
86
105
|
x: (p) => (p[0] === 0x04 ? exports.UncompressedPoint.x(p) : exports.CompressedPoint.x(p)),
|
|
87
106
|
yIsOdd: (p) => (p[0] === 0x04 ? exports.UncompressedPoint.yIsOdd(p) : exports.CompressedPoint.yIsOdd(p)),
|
|
88
107
|
// Equivalent to CompressedPoint.equal(CompressedPoint.from(lhs), CompressedPoint.from(rhs)), but avoids allocations
|
|
89
108
|
equal: (lhs, rhs) => exports.CurvePoint.yIsOdd(lhs) === exports.CurvePoint.yIsOdd(rhs) && exports.FieldElement.equal(exports.CurvePoint.x(lhs), exports.CurvePoint.x(rhs)),
|
|
90
109
|
};
|
|
91
|
-
const
|
|
92
|
-
exports.CurvePoint =
|
|
93
|
-
const
|
|
94
|
-
const
|
|
95
|
-
const
|
|
96
|
-
exports.RecoveryParam =
|
|
97
|
-
const
|
|
98
|
-
const
|
|
99
|
-
const
|
|
100
|
-
exports.MessageWithPreimage =
|
|
101
|
-
const
|
|
102
|
-
const
|
|
103
|
-
const
|
|
104
|
-
exports.Message =
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
const _curvePoint = Object.assign(_curvePointBase, _curvePointStatic);
|
|
111
|
+
exports.CurvePoint = _curvePoint;
|
|
112
|
+
const _recoveryParamBase = funtypes_1.Union(funtypes_1.Literal(0), funtypes_1.Literal(1), funtypes_1.Literal(2), funtypes_1.Literal(3));
|
|
113
|
+
const _recoveryParamStatic = {};
|
|
114
|
+
const _recoveryParam = Object.assign(_recoveryParamBase, _recoveryParamStatic);
|
|
115
|
+
exports.RecoveryParam = _recoveryParam;
|
|
116
|
+
const _messageWithPreimageBase = types_1.ByteArray(32).And(Digest.Digest());
|
|
117
|
+
const _messageWithPreimageStatic = {};
|
|
118
|
+
const _messageWithPreimage = Object.assign(_messageWithPreimageBase, types_1.ByteArray, _messageWithPreimageStatic);
|
|
119
|
+
exports.MessageWithPreimage = _messageWithPreimage;
|
|
120
|
+
const _messageBase = exports.MessageWithPreimage.Or(types_1.ByteArray());
|
|
121
|
+
const _messageStatic = {};
|
|
122
|
+
const _message = Object.assign(_messageBase, types_1.ByteArray, _messageWithPreimageStatic, _messageStatic);
|
|
123
|
+
exports.Message = _message;
|
|
124
|
+
const _signatureBase = types_1.ByteArray(64)
|
|
125
|
+
.withConstraint((x) => exports.FieldElement.test(x.slice(0, 32)) || `expected ${x}.r to be within the order of the curve`, {
|
|
126
|
+
name: "Signature.r",
|
|
127
|
+
})
|
|
128
|
+
.withConstraint((x) => exports.FieldElement.test(x.slice(32, 64)) || `expected ${x}.s to be within the order of the curve`, {
|
|
129
|
+
name: "Signature.s",
|
|
130
|
+
});
|
|
131
|
+
const _signatureStatic = {
|
|
132
|
+
r: (x) => {
|
|
133
|
+
return types_1.checkType(exports.FieldElement, x.slice(0, 32));
|
|
134
|
+
},
|
|
135
|
+
s: (x) => {
|
|
136
|
+
return types_1.checkType(exports.FieldElement, x.slice(32, 64));
|
|
137
|
+
},
|
|
138
|
+
isLowR: (x) => {
|
|
139
|
+
return !exports.FieldElement.isHigh(exports.Signature.r(x));
|
|
140
|
+
},
|
|
141
|
+
isLowS: (x) => {
|
|
142
|
+
return !exports.FieldElement.isHigh(exports.Signature.s(x));
|
|
143
|
+
},
|
|
144
|
+
isCanonical: (x) => {
|
|
145
|
+
return exports.Signature.isLowR(x) && exports.Signature.isLowS(x);
|
|
146
|
+
},
|
|
112
147
|
signCanonically: (x, digestAlgorithm, message, counter) => __awaiter(void 0, void 0, void 0, function* () {
|
|
113
148
|
types_1.assertType(types_1.ByteArray(), message);
|
|
114
149
|
counter === undefined || types_1.Uint32.assert(counter);
|
|
@@ -116,10 +151,14 @@ const signatureStatic = {
|
|
|
116
151
|
const sig = yield (() => __awaiter(void 0, void 0, void 0, function* () {
|
|
117
152
|
if (digestAlgorithm === null) {
|
|
118
153
|
types_1.assertType(types_1.ByteArray(32), message);
|
|
119
|
-
return i === undefined
|
|
154
|
+
return i === undefined
|
|
155
|
+
? yield x.ecdsaSign(digestAlgorithm, message)
|
|
156
|
+
: yield x.ecdsaSign(digestAlgorithm, message, i);
|
|
120
157
|
}
|
|
121
158
|
else {
|
|
122
|
-
return i === undefined
|
|
159
|
+
return i === undefined
|
|
160
|
+
? yield x.ecdsaSign(digestAlgorithm, message)
|
|
161
|
+
: yield x.ecdsaSign(digestAlgorithm, message, i);
|
|
123
162
|
}
|
|
124
163
|
}))();
|
|
125
164
|
if (sig === undefined)
|
|
@@ -132,16 +171,22 @@ const signatureStatic = {
|
|
|
132
171
|
throw new Error(`Unable to generate canonical signature with public key ${x} over message ${message}; is your key implementation broken?`);
|
|
133
172
|
}),
|
|
134
173
|
verify: (x, digestAlgorithm, message, publicKey) => {
|
|
135
|
-
const msgOrDigest = digestAlgorithm === null
|
|
174
|
+
const msgOrDigest = digestAlgorithm === null
|
|
175
|
+
? types_1.checkType(types_1.ByteArray(32), message)
|
|
176
|
+
: Digest.Algorithms[digestAlgorithm](types_1.checkType(types_1.ByteArray(), message));
|
|
136
177
|
return tinyecc.verify(Buffer.from(msgOrDigest), Buffer.from(publicKey), Buffer.from(x));
|
|
137
178
|
},
|
|
138
179
|
};
|
|
139
|
-
const
|
|
140
|
-
exports.Signature =
|
|
141
|
-
const
|
|
180
|
+
const _signature = Object.assign(_signatureBase, types_1.ByteArray, _signatureStatic);
|
|
181
|
+
exports.Signature = _signature;
|
|
182
|
+
const _recoverableSignatureBase = types_1.ByteArray(65)
|
|
183
|
+
.And(funtypes_1.Object({
|
|
142
184
|
64: exports.RecoveryParam,
|
|
143
|
-
}))
|
|
144
|
-
|
|
185
|
+
}))
|
|
186
|
+
.withConstraint((x) => exports.Signature.test(x.slice(0, 64)) || `expected ${x}.sig to be a valid signature`, {
|
|
187
|
+
name: "Signature",
|
|
188
|
+
});
|
|
189
|
+
const _recoverableSignatureStatic = {
|
|
145
190
|
from: (x, recoveryParam) => {
|
|
146
191
|
return types_1.checkType(exports.RecoverableSignature, core.compatibleBufferConcat([x, new Uint8Array([recoveryParam])]));
|
|
147
192
|
},
|
|
@@ -157,28 +202,39 @@ const recoverableSignatureStatic = {
|
|
|
157
202
|
sig: (x) => types_1.checkType(exports.Signature, x.slice(0, 64)),
|
|
158
203
|
recoveryParam: (x) => types_1.checkType(exports.RecoveryParam, x[64]),
|
|
159
204
|
isLowRecoveryParam: (x) => [0, 1].includes(exports.RecoverableSignature.recoveryParam(x)),
|
|
160
|
-
isCanonical: (x) => exports.Signature.isCanonical(types_1.checkType(exports.Signature, exports.RecoverableSignature.sig(x))) &&
|
|
205
|
+
isCanonical: (x) => exports.Signature.isCanonical(types_1.checkType(exports.Signature, exports.RecoverableSignature.sig(x))) &&
|
|
206
|
+
exports.RecoverableSignature.isLowRecoveryParam(x),
|
|
161
207
|
signCanonically: (x, digestAlgorithm, message, counter) => __awaiter(void 0, void 0, void 0, function* () {
|
|
162
208
|
const publicKey = yield x.getPublicKey();
|
|
163
209
|
types_1.assertType(types_1.ByteArray(), message);
|
|
164
210
|
counter === undefined || types_1.Uint32.assert(counter);
|
|
211
|
+
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
165
212
|
const isIndexable = (x) => x !== null && ["object", "function"].includes(typeof x);
|
|
213
|
+
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
166
214
|
const isECDSARecoverableKey = (x) => isIndexable(x) && "ecdsaSignRecoverable" in x && typeof x.ecdsaSignRecoverable === "function";
|
|
167
|
-
const ecdsaSignRecoverable = isECDSARecoverableKey(x)
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
215
|
+
const ecdsaSignRecoverable = isECDSARecoverableKey(x)
|
|
216
|
+
? // eslint-disable-next-line @typescript-eslint/no-shadow
|
|
217
|
+
(digestAlgorithm, message, counter) => __awaiter(void 0, void 0, void 0, function* () {
|
|
218
|
+
if (digestAlgorithm === null) {
|
|
219
|
+
types_1.assertType(types_1.ByteArray(32), message);
|
|
220
|
+
return counter === undefined
|
|
221
|
+
? yield x.ecdsaSignRecoverable(digestAlgorithm, message)
|
|
222
|
+
: yield x.ecdsaSignRecoverable(digestAlgorithm, message, counter);
|
|
223
|
+
}
|
|
224
|
+
else {
|
|
225
|
+
return counter === undefined
|
|
226
|
+
? yield x.ecdsaSignRecoverable(digestAlgorithm, message)
|
|
227
|
+
: yield x.ecdsaSignRecoverable(digestAlgorithm, message, counter);
|
|
228
|
+
}
|
|
229
|
+
})
|
|
230
|
+
: // eslint-disable-next-line @typescript-eslint/no-shadow
|
|
231
|
+
(digestAlgorithm, message, counter) => __awaiter(void 0, void 0, void 0, function* () {
|
|
232
|
+
const sig = yield exports.Signature.signCanonically(x, digestAlgorithm, message, counter);
|
|
233
|
+
if (sig === undefined)
|
|
234
|
+
return undefined;
|
|
235
|
+
return yield exports.RecoverableSignature.fromSignature(sig, digestAlgorithm, message, publicKey);
|
|
236
|
+
});
|
|
237
|
+
// Technically, this may waste cycles; if Signature.signCanonically grinds the counter to find a canonical signature which then
|
|
182
238
|
// ends up to have a non-canonical recovery parameter, those values will all be re-ground. However, signatures can have
|
|
183
239
|
// non-canonical recovery parameters only with negligible probability, so optimization for that case would be silly.
|
|
184
240
|
for (let i = counter; i === undefined || i < (counter !== null && counter !== void 0 ? counter : 0) + 128; i = (i !== null && i !== void 0 ? i : -1) + 1) {
|
|
@@ -194,7 +250,9 @@ const recoverableSignatureStatic = {
|
|
|
194
250
|
}),
|
|
195
251
|
recoverPublicKey: (x, digestAlgorithm, message) => __awaiter(void 0, void 0, void 0, function* () {
|
|
196
252
|
// TODO: do this better
|
|
197
|
-
const msgOrDigest = digestAlgorithm === null
|
|
253
|
+
const msgOrDigest = digestAlgorithm === null
|
|
254
|
+
? types_1.checkType(types_1.ByteArray(32), message)
|
|
255
|
+
: Digest.Algorithms[digestAlgorithm](types_1.checkType(types_1.ByteArray(), message));
|
|
198
256
|
const sig = exports.RecoverableSignature.sig(x);
|
|
199
257
|
const recoveryParam = exports.RecoverableSignature.recoveryParam(x);
|
|
200
258
|
const ethSig = core.compatibleBufferConcat([sig, Buffer.from([recoveryParam])]);
|
|
@@ -209,6 +267,6 @@ const recoverableSignatureStatic = {
|
|
|
209
267
|
return exports.Signature.verify(exports.RecoverableSignature.sig(x), digestAlgorithm, message, publicKey);
|
|
210
268
|
},
|
|
211
269
|
};
|
|
212
|
-
const
|
|
213
|
-
exports.RecoverableSignature =
|
|
270
|
+
const _recoverableSignature = Object.assign(_recoverableSignatureBase, _recoverableSignatureStatic);
|
|
271
|
+
exports.RecoverableSignature = _recoverableSignature;
|
|
214
272
|
//# sourceMappingURL=types.js.map
|