@bitgo/public-types 6.77.0 → 6.77.1
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.
|
@@ -49,21 +49,16 @@ export declare const MPCv2DeriveRound3Response: t.TypeC<{
|
|
|
49
49
|
commonKeychain: import("io-ts-types").NonEmptyStringC;
|
|
50
50
|
}>;
|
|
51
51
|
export type MPCv2DeriveRound3Response = t.TypeOf<typeof MPCv2DeriveRound3Response>;
|
|
52
|
-
export declare const EddsaMPCv2DeriveRound1Request: t.
|
|
52
|
+
export declare const EddsaMPCv2DeriveRound1Request: t.TypeC<{
|
|
53
53
|
userGpgPublicKey: import("io-ts-types").NonEmptyStringC;
|
|
54
54
|
backupGpgPublicKey: import("io-ts-types").NonEmptyStringC;
|
|
55
55
|
userMsg1: t.TypeC<{
|
|
56
56
|
message: t.StringC;
|
|
57
57
|
signature: t.StringC;
|
|
58
58
|
}>;
|
|
59
|
-
backupMsg1: t.TypeC<{
|
|
60
|
-
message: t.StringC;
|
|
61
|
-
signature: t.StringC;
|
|
62
|
-
}>;
|
|
63
|
-
}>, t.TypeC<{
|
|
64
59
|
parentKeyId: import("io-ts-types").NonEmptyStringC;
|
|
65
60
|
derivationIndex: t.BrandC<t.NumberC, DerivationIndexBrand>;
|
|
66
|
-
}
|
|
61
|
+
}>;
|
|
67
62
|
export type EddsaMPCv2DeriveRound1Request = t.TypeOf<typeof EddsaMPCv2DeriveRound1Request>;
|
|
68
63
|
export declare const EddsaMPCv2DeriveRound1Response: t.TypeC<{
|
|
69
64
|
sessionId: import("io-ts-types").NonEmptyStringC;
|
|
@@ -27,7 +27,6 @@ exports.EddsaMPCv2DeriveRound2Response = exports.EddsaMPCv2DeriveRound2Request =
|
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const io_ts_types_1 = require("io-ts-types");
|
|
29
29
|
const common_1 = require("../common");
|
|
30
|
-
const keygenRound_1 = require("../keyGen/keygenRound");
|
|
31
30
|
const DerivationIndex = t.brand(t.number, (index) => Number.isSafeInteger(index) && index >= 0, "DerivationIndex");
|
|
32
31
|
exports.MPCv2DeriveRound1Request = t.type({
|
|
33
32
|
userGpgPublicKey: io_ts_types_1.NonEmptyString,
|
|
@@ -54,13 +53,13 @@ exports.MPCv2DeriveRound3Response = t.type({
|
|
|
54
53
|
sessionId: io_ts_types_1.NonEmptyString,
|
|
55
54
|
commonKeychain: io_ts_types_1.NonEmptyString,
|
|
56
55
|
});
|
|
57
|
-
exports.EddsaMPCv2DeriveRound1Request = t.
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
56
|
+
exports.EddsaMPCv2DeriveRound1Request = t.type({
|
|
57
|
+
userGpgPublicKey: io_ts_types_1.NonEmptyString,
|
|
58
|
+
backupGpgPublicKey: io_ts_types_1.NonEmptyString,
|
|
59
|
+
userMsg1: common_1.EddsaMPCv2SignedMessage,
|
|
60
|
+
parentKeyId: io_ts_types_1.NonEmptyString,
|
|
61
|
+
derivationIndex: DerivationIndex,
|
|
62
|
+
}, "EddsaMPCv2DeriveRound1Request");
|
|
64
63
|
exports.EddsaMPCv2DeriveRound1Response = t.type({
|
|
65
64
|
sessionId: io_ts_types_1.NonEmptyString,
|
|
66
65
|
bitgoMsg1: common_1.EddsaMPCv2SignedMessage,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deriveRound.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/derive/deriveRound.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA6C;AAC7C,sCAA2E;
|
|
1
|
+
{"version":3,"file":"deriveRound.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/derive/deriveRound.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA6C;AAC7C,sCAA2E;AAM3E,MAAM,eAAe,GAA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;IACzB,SAAS,EAAE,gCAAuB;CACnC,CAAC,CAAC;AAMU,QAAA,6BAA6B,GAAG,CAAC,CAAC,IAAI,CAAC;IAClD,SAAS,EAAE,4BAAc;IACzB,QAAQ,EAAE,gCAAuB;CAClC,CAAC,CAAC;AAMU,QAAA,8BAA8B,GAAG,CAAC,CAAC,IAAI,CAAC;IACnD,SAAS,EAAE,4BAAc;IACzB,oBAAoB,EAAE,4BAAc;IACpC,SAAS,EAAE,gCAAuB;CACnC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
2
|
import { NonEmptyString } from "io-ts-types";
|
|
3
3
|
import { MPCv2BroadcastMessage, EddsaMPCv2SignedMessage } from "../common";
|
|
4
|
-
import { EddsaMPCv2KeyGenRound1Request } from "../keyGen/keygenRound";
|
|
5
4
|
|
|
6
5
|
interface DerivationIndexBrand {
|
|
7
6
|
readonly DerivationIndex: unique symbol;
|
|
@@ -72,14 +71,14 @@ export type MPCv2DeriveRound3Response = t.TypeOf<
|
|
|
72
71
|
typeof MPCv2DeriveRound3Response
|
|
73
72
|
>;
|
|
74
73
|
|
|
75
|
-
export const EddsaMPCv2DeriveRound1Request = t.
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
74
|
+
export const EddsaMPCv2DeriveRound1Request = t.type(
|
|
75
|
+
{
|
|
76
|
+
userGpgPublicKey: NonEmptyString,
|
|
77
|
+
backupGpgPublicKey: NonEmptyString,
|
|
78
|
+
userMsg1: EddsaMPCv2SignedMessage,
|
|
79
|
+
parentKeyId: NonEmptyString,
|
|
80
|
+
derivationIndex: DerivationIndex,
|
|
81
|
+
},
|
|
83
82
|
"EddsaMPCv2DeriveRound1Request",
|
|
84
83
|
);
|
|
85
84
|
|