@bitgo/public-types 6.64.1 → 6.66.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/src/schema/mpcv2/signing/index.d.ts +1 -0
- package/dist/src/schema/mpcv2/signing/index.js +1 -0
- package/dist/src/schema/mpcv2/signing/index.js.map +1 -1
- package/dist/src/schema/mpcv2/signing/redpallasSigningRound.d.ts +73 -0
- package/dist/src/schema/mpcv2/signing/redpallasSigningRound.js +84 -0
- package/dist/src/schema/mpcv2/signing/redpallasSigningRound.js.map +1 -0
- package/dist/src/schema/transactions/coinSpecific.d.ts +1 -0
- package/dist/src/schema/transactions/coinSpecific.js +1 -0
- package/dist/src/schema/transactions/coinSpecific.js.map +1 -1
- package/dist/src/schema/transactions/sendTransactions.d.ts +1 -0
- package/package.json +1 -1
- package/src/schema/mpcv2/signing/index.ts +1 -0
- package/src/schema/mpcv2/signing/redpallasSigningRound.ts +137 -0
- package/src/schema/transactions/coinSpecific.ts +1 -0
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./mpcv2SigningState"), exports);
|
|
18
18
|
__exportStar(require("./signingRound"), exports);
|
|
19
19
|
__exportStar(require("./eddsaSigningRound"), exports);
|
|
20
|
+
__exportStar(require("./redpallasSigningRound"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/signing/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,iDAA+B;AAC/B,sDAAoC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/signing/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,iDAA+B;AAC/B,sDAAoC;AACpC,0DAAwC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
export declare const RedpallasMPCv2SignatureShareRound1Input: t.IntersectionC<[t.TypeC<{
|
|
3
|
+
type: t.UnionC<[t.LiteralC<"round1Input">, t.LiteralC<"round1Output">, t.LiteralC<"round2Input">, t.LiteralC<"round2Output">, t.LiteralC<"round3Input">, t.LiteralC<"round3Output">]>;
|
|
4
|
+
}>, t.TypeC<{
|
|
5
|
+
type: t.LiteralC<"round1Input">;
|
|
6
|
+
data: t.TypeC<{
|
|
7
|
+
msg1: t.TypeC<{
|
|
8
|
+
message: t.StringC;
|
|
9
|
+
signature: t.StringC;
|
|
10
|
+
}>;
|
|
11
|
+
}>;
|
|
12
|
+
}>]>;
|
|
13
|
+
export type RedpallasMPCv2SignatureShareRound1Input = t.TypeOf<typeof RedpallasMPCv2SignatureShareRound1Input>;
|
|
14
|
+
export declare const RedpallasMPCv2SignatureShareRound1Output: t.IntersectionC<[t.TypeC<{
|
|
15
|
+
type: t.UnionC<[t.LiteralC<"round1Input">, t.LiteralC<"round1Output">, t.LiteralC<"round2Input">, t.LiteralC<"round2Output">, t.LiteralC<"round3Input">, t.LiteralC<"round3Output">]>;
|
|
16
|
+
}>, t.TypeC<{
|
|
17
|
+
type: t.LiteralC<"round1Output">;
|
|
18
|
+
data: t.TypeC<{
|
|
19
|
+
msg1: t.TypeC<{
|
|
20
|
+
message: t.StringC;
|
|
21
|
+
signature: t.StringC;
|
|
22
|
+
}>;
|
|
23
|
+
}>;
|
|
24
|
+
}>]>;
|
|
25
|
+
export type RedpallasMPCv2SignatureShareRound1Output = t.TypeOf<typeof RedpallasMPCv2SignatureShareRound1Output>;
|
|
26
|
+
export declare const RedpallasMPCv2SignatureShareRound2Input: t.IntersectionC<[t.TypeC<{
|
|
27
|
+
type: t.UnionC<[t.LiteralC<"round1Input">, t.LiteralC<"round1Output">, t.LiteralC<"round2Input">, t.LiteralC<"round2Output">, t.LiteralC<"round3Input">, t.LiteralC<"round3Output">]>;
|
|
28
|
+
}>, t.TypeC<{
|
|
29
|
+
type: t.LiteralC<"round2Input">;
|
|
30
|
+
data: t.TypeC<{
|
|
31
|
+
msg2: t.TypeC<{
|
|
32
|
+
message: t.StringC;
|
|
33
|
+
signature: t.StringC;
|
|
34
|
+
}>;
|
|
35
|
+
}>;
|
|
36
|
+
}>]>;
|
|
37
|
+
export type RedpallasMPCv2SignatureShareRound2Input = t.TypeOf<typeof RedpallasMPCv2SignatureShareRound2Input>;
|
|
38
|
+
export declare const RedpallasMPCv2SignatureShareRound2Output: t.IntersectionC<[t.TypeC<{
|
|
39
|
+
type: t.UnionC<[t.LiteralC<"round1Input">, t.LiteralC<"round1Output">, t.LiteralC<"round2Input">, t.LiteralC<"round2Output">, t.LiteralC<"round3Input">, t.LiteralC<"round3Output">]>;
|
|
40
|
+
}>, t.TypeC<{
|
|
41
|
+
type: t.LiteralC<"round2Output">;
|
|
42
|
+
data: t.TypeC<{
|
|
43
|
+
msg2: t.TypeC<{
|
|
44
|
+
message: t.StringC;
|
|
45
|
+
signature: t.StringC;
|
|
46
|
+
}>;
|
|
47
|
+
}>;
|
|
48
|
+
}>]>;
|
|
49
|
+
export type RedpallasMPCv2SignatureShareRound2Output = t.TypeOf<typeof RedpallasMPCv2SignatureShareRound2Output>;
|
|
50
|
+
export declare const RedpallasMPCv2SignatureShareRound3Input: t.IntersectionC<[t.TypeC<{
|
|
51
|
+
type: t.UnionC<[t.LiteralC<"round1Input">, t.LiteralC<"round1Output">, t.LiteralC<"round2Input">, t.LiteralC<"round2Output">, t.LiteralC<"round3Input">, t.LiteralC<"round3Output">]>;
|
|
52
|
+
}>, t.TypeC<{
|
|
53
|
+
type: t.LiteralC<"round3Input">;
|
|
54
|
+
data: t.TypeC<{
|
|
55
|
+
msg3: t.TypeC<{
|
|
56
|
+
message: t.StringC;
|
|
57
|
+
signature: t.StringC;
|
|
58
|
+
}>;
|
|
59
|
+
}>;
|
|
60
|
+
}>]>;
|
|
61
|
+
export type RedpallasMPCv2SignatureShareRound3Input = t.TypeOf<typeof RedpallasMPCv2SignatureShareRound3Input>;
|
|
62
|
+
export declare const RedpallasMPCv2SignatureShareRound3Output: t.IntersectionC<[t.TypeC<{
|
|
63
|
+
type: t.UnionC<[t.LiteralC<"round1Input">, t.LiteralC<"round1Output">, t.LiteralC<"round2Input">, t.LiteralC<"round2Output">, t.LiteralC<"round3Input">, t.LiteralC<"round3Output">]>;
|
|
64
|
+
}>, t.TypeC<{
|
|
65
|
+
type: t.LiteralC<"round3Output">;
|
|
66
|
+
data: t.TypeC<{
|
|
67
|
+
msg3: t.TypeC<{
|
|
68
|
+
message: t.StringC;
|
|
69
|
+
signature: t.StringC;
|
|
70
|
+
}>;
|
|
71
|
+
}>;
|
|
72
|
+
}>]>;
|
|
73
|
+
export type RedpallasMPCv2SignatureShareRound3Output = t.TypeOf<typeof RedpallasMPCv2SignatureShareRound3Output>;
|
|
@@ -0,0 +1,84 @@
|
|
|
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 (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.RedpallasMPCv2SignatureShareRound3Output = exports.RedpallasMPCv2SignatureShareRound3Input = exports.RedpallasMPCv2SignatureShareRound2Output = exports.RedpallasMPCv2SignatureShareRound2Input = exports.RedpallasMPCv2SignatureShareRound1Output = exports.RedpallasMPCv2SignatureShareRound1Input = void 0;
|
|
27
|
+
const t = __importStar(require("io-ts"));
|
|
28
|
+
const common_1 = require("../common");
|
|
29
|
+
const signingRound_1 = require("./signingRound");
|
|
30
|
+
exports.RedpallasMPCv2SignatureShareRound1Input = t.intersection([
|
|
31
|
+
signingRound_1.MPCv2SignatureShareBase,
|
|
32
|
+
t.type({
|
|
33
|
+
type: t.literal("round1Input"),
|
|
34
|
+
data: t.type({
|
|
35
|
+
msg1: common_1.EddsaMPCv2SignedMessage,
|
|
36
|
+
}),
|
|
37
|
+
}, "RedpallasMPCv2SignatureShareRound1Input"),
|
|
38
|
+
]);
|
|
39
|
+
exports.RedpallasMPCv2SignatureShareRound1Output = t.intersection([
|
|
40
|
+
signingRound_1.MPCv2SignatureShareBase,
|
|
41
|
+
t.type({
|
|
42
|
+
type: t.literal("round1Output"),
|
|
43
|
+
data: t.type({
|
|
44
|
+
msg1: common_1.EddsaMPCv2SignedMessage,
|
|
45
|
+
}),
|
|
46
|
+
}, "RedpallasMPCv2SignatureShareRound1Output"),
|
|
47
|
+
]);
|
|
48
|
+
exports.RedpallasMPCv2SignatureShareRound2Input = t.intersection([
|
|
49
|
+
signingRound_1.MPCv2SignatureShareBase,
|
|
50
|
+
t.type({
|
|
51
|
+
type: t.literal("round2Input"),
|
|
52
|
+
data: t.type({
|
|
53
|
+
msg2: common_1.EddsaMPCv2SignedMessage,
|
|
54
|
+
}),
|
|
55
|
+
}, "RedpallasMPCv2SignatureShareRound2Input"),
|
|
56
|
+
]);
|
|
57
|
+
exports.RedpallasMPCv2SignatureShareRound2Output = t.intersection([
|
|
58
|
+
signingRound_1.MPCv2SignatureShareBase,
|
|
59
|
+
t.type({
|
|
60
|
+
type: t.literal("round2Output"),
|
|
61
|
+
data: t.type({
|
|
62
|
+
msg2: common_1.EddsaMPCv2SignedMessage,
|
|
63
|
+
}),
|
|
64
|
+
}, "RedpallasMPCv2SignatureShareRound2Output"),
|
|
65
|
+
]);
|
|
66
|
+
exports.RedpallasMPCv2SignatureShareRound3Input = t.intersection([
|
|
67
|
+
signingRound_1.MPCv2SignatureShareBase,
|
|
68
|
+
t.type({
|
|
69
|
+
type: t.literal("round3Input"),
|
|
70
|
+
data: t.type({
|
|
71
|
+
msg3: common_1.EddsaMPCv2SignedMessage,
|
|
72
|
+
}),
|
|
73
|
+
}, "RedpallasMPCv2SignatureShareRound3Input"),
|
|
74
|
+
]);
|
|
75
|
+
exports.RedpallasMPCv2SignatureShareRound3Output = t.intersection([
|
|
76
|
+
signingRound_1.MPCv2SignatureShareBase,
|
|
77
|
+
t.type({
|
|
78
|
+
type: t.literal("round3Output"),
|
|
79
|
+
data: t.type({
|
|
80
|
+
msg3: common_1.EddsaMPCv2SignedMessage,
|
|
81
|
+
}),
|
|
82
|
+
}, "RedpallasMPCv2SignatureShareRound3Output"),
|
|
83
|
+
]);
|
|
84
|
+
//# sourceMappingURL=redpallasSigningRound.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redpallasSigningRound.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/signing/redpallasSigningRound.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,sCAAoD;AACpD,iDAAyD;AAS5C,QAAA,uCAAuC,GAAG,CAAC,CAAC,YAAY,CAAC;IACpE,sC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AAE,gCAAuB;SAC9B,CAAC;KACH,EACD,yCAAyC,CAC1C;CACF,CAAC,CAAC;AAWU,QAAA,wCAAwC,GAAG,CAAC,CAAC,YAAY,CAAC;IACrE,sCAAuB;IACvB,CAAC,CAAC,IAAI,CACJ;QACE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;QAC/B,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,gCAAuB;SAC9B,CAAC;KACH,EACD,0CAA0C,CAC3C;CACF,CAAC,CAAC"}
|
|
@@ -32,6 +32,7 @@ export declare const CoinSpecificBuildParams: {
|
|
|
32
32
|
lockTime: number;
|
|
33
33
|
} | undefined;
|
|
34
34
|
}, unknown>, t.UndefinedC]>;
|
|
35
|
+
unifiedRecipientPreference: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
35
36
|
};
|
|
36
37
|
avaxp: {
|
|
37
38
|
locktime: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
|
@@ -67,6 +67,7 @@ exports.CoinSpecificBuildParams = {
|
|
|
67
67
|
limit: utils_1.optionalNumber,
|
|
68
68
|
bulk: utils_1.optionalBoolean,
|
|
69
69
|
bridgingParams: (0, utils_1.Optional)(exports.BridgingParams),
|
|
70
|
+
unifiedRecipientPreference: utils_1.optionalString,
|
|
70
71
|
},
|
|
71
72
|
avaxp: {
|
|
72
73
|
locktime: utils_1.optionalNumber,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coinSpecific.js","sourceRoot":"","sources":["../../../../src/schema/transactions/coinSpecific.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uCAQqB;AAErB,MAAM,eAAe,GAAG;IACtB,IAAI,EAAE,CAAC,CAAC,MAAM;IACd,KAAK,EAAE,sBAAc;IACrB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC;QACd,IAAI,EAAE,sBAAc;QACpB,KA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;QACxB,KAAK,EAAE,sBAAc;QACrB,IAAI,EAAE,uBAAe;QACrB,cAAc,EAAE,IAAA,gBAAQ,EAAC,sBAAc,CAAC;QACxC,0BAA0B,EAAE,sBAAc;KAC3C;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,sBAAc;QACxB,WAAW,EAAE,sBAAc;QAC3B,gBAAgB,EAAE,sBAAc;QAChC,QAAQ,EAAE,2BAAmB;KAC9B;IACD,GAAG,EAAE;QACH,GAAG,sBAAsB;QACzB,UAAU,EAAE,sBAAc;QAC1B,kBAAkB,EAAE,sBAAc;QAClC,KAAK,EAAE,sBAAc;QACrB,SAAS,EAAE,sBAAc;QACzB,cAAc,EAAE,sBAAc;QAC9B,KAAK,EAAE,uBAAe;QACtB,KAAK,EAAE,uBAAe;QACtB,KAAK,EAAE,uBAAe;QACtB,cAAc,EAAE,uBAAe;QAC/B,OAAO,EAAE,uBAAe;QACxB,cAAc,EAAE,uBAAe;KAChC;IACD,GAAG,EAAE;QACH,SAAS,EAAE,sBAAc;KAC1B;IACD,GAAG,EAAE;QACH,YAAY,EAAE,sBAAc;QAC5B,YAAY,EAAE,sBAAc;QAC5B,kBAAkB,EAAE,IAAA,gBAAQ,EAAC,0BAAkB,CAAC;KACjD;CACF,CAAC"}
|
|
@@ -477,6 +477,7 @@ export declare const TxSendBody: t.ExactC<t.IntersectionC<[t.PartialC<{
|
|
|
477
477
|
lockTime: number;
|
|
478
478
|
} | undefined;
|
|
479
479
|
}, unknown>, t.UndefinedC]>;
|
|
480
|
+
unifiedRecipientPreference: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
480
481
|
}>, t.PartialC<{
|
|
481
482
|
locktime: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
|
482
483
|
sourceChain: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
package/package.json
CHANGED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { EddsaMPCv2SignedMessage } from "../common";
|
|
3
|
+
import { MPCv2SignatureShareBase } from "./signingRound";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* RedPallas MPCv2 — User to BitGo round 1
|
|
7
|
+
*
|
|
8
|
+
* RedPallas DSG signing follows the same 3-round shape as EdDSA MPCv2 —
|
|
9
|
+
* one signed message per round — reusing the shared EdDSA MPCv2 GPG
|
|
10
|
+
* material and message envelope (`EddsaMPCv2SignedMessage`).
|
|
11
|
+
*/
|
|
12
|
+
export const RedpallasMPCv2SignatureShareRound1Input = t.intersection([
|
|
13
|
+
MPCv2SignatureShareBase,
|
|
14
|
+
t.type(
|
|
15
|
+
{
|
|
16
|
+
type: t.literal("round1Input"),
|
|
17
|
+
data: t.type({
|
|
18
|
+
msg1: EddsaMPCv2SignedMessage,
|
|
19
|
+
}),
|
|
20
|
+
},
|
|
21
|
+
"RedpallasMPCv2SignatureShareRound1Input",
|
|
22
|
+
),
|
|
23
|
+
]);
|
|
24
|
+
|
|
25
|
+
export type RedpallasMPCv2SignatureShareRound1Input = t.TypeOf<
|
|
26
|
+
typeof RedpallasMPCv2SignatureShareRound1Input
|
|
27
|
+
>;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* RedPallas MPCv2 — BitGo to User round 1
|
|
31
|
+
*
|
|
32
|
+
* BitGo returns its first signing message.
|
|
33
|
+
*/
|
|
34
|
+
export const RedpallasMPCv2SignatureShareRound1Output = t.intersection([
|
|
35
|
+
MPCv2SignatureShareBase,
|
|
36
|
+
t.type(
|
|
37
|
+
{
|
|
38
|
+
type: t.literal("round1Output"),
|
|
39
|
+
data: t.type({
|
|
40
|
+
msg1: EddsaMPCv2SignedMessage,
|
|
41
|
+
}),
|
|
42
|
+
},
|
|
43
|
+
"RedpallasMPCv2SignatureShareRound1Output",
|
|
44
|
+
),
|
|
45
|
+
]);
|
|
46
|
+
|
|
47
|
+
export type RedpallasMPCv2SignatureShareRound1Output = t.TypeOf<
|
|
48
|
+
typeof RedpallasMPCv2SignatureShareRound1Output
|
|
49
|
+
>;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* RedPallas MPCv2 — User to BitGo round 2
|
|
53
|
+
*
|
|
54
|
+
* User sends their second signing message.
|
|
55
|
+
*/
|
|
56
|
+
export const RedpallasMPCv2SignatureShareRound2Input = t.intersection([
|
|
57
|
+
MPCv2SignatureShareBase,
|
|
58
|
+
t.type(
|
|
59
|
+
{
|
|
60
|
+
type: t.literal("round2Input"),
|
|
61
|
+
data: t.type({
|
|
62
|
+
msg2: EddsaMPCv2SignedMessage,
|
|
63
|
+
}),
|
|
64
|
+
},
|
|
65
|
+
"RedpallasMPCv2SignatureShareRound2Input",
|
|
66
|
+
),
|
|
67
|
+
]);
|
|
68
|
+
|
|
69
|
+
export type RedpallasMPCv2SignatureShareRound2Input = t.TypeOf<
|
|
70
|
+
typeof RedpallasMPCv2SignatureShareRound2Input
|
|
71
|
+
>;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* RedPallas MPCv2 — BitGo to User round 2
|
|
75
|
+
*
|
|
76
|
+
* BitGo returns its second signing message.
|
|
77
|
+
*/
|
|
78
|
+
export const RedpallasMPCv2SignatureShareRound2Output = t.intersection([
|
|
79
|
+
MPCv2SignatureShareBase,
|
|
80
|
+
t.type(
|
|
81
|
+
{
|
|
82
|
+
type: t.literal("round2Output"),
|
|
83
|
+
data: t.type({
|
|
84
|
+
msg2: EddsaMPCv2SignedMessage,
|
|
85
|
+
}),
|
|
86
|
+
},
|
|
87
|
+
"RedpallasMPCv2SignatureShareRound2Output",
|
|
88
|
+
),
|
|
89
|
+
]);
|
|
90
|
+
|
|
91
|
+
export type RedpallasMPCv2SignatureShareRound2Output = t.TypeOf<
|
|
92
|
+
typeof RedpallasMPCv2SignatureShareRound2Output
|
|
93
|
+
>;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* RedPallas MPCv2 — User to BitGo round 3
|
|
97
|
+
*
|
|
98
|
+
* User sends their third signing message.
|
|
99
|
+
*/
|
|
100
|
+
export const RedpallasMPCv2SignatureShareRound3Input = t.intersection([
|
|
101
|
+
MPCv2SignatureShareBase,
|
|
102
|
+
t.type(
|
|
103
|
+
{
|
|
104
|
+
type: t.literal("round3Input"),
|
|
105
|
+
data: t.type({
|
|
106
|
+
msg3: EddsaMPCv2SignedMessage,
|
|
107
|
+
}),
|
|
108
|
+
},
|
|
109
|
+
"RedpallasMPCv2SignatureShareRound3Input",
|
|
110
|
+
),
|
|
111
|
+
]);
|
|
112
|
+
|
|
113
|
+
export type RedpallasMPCv2SignatureShareRound3Input = t.TypeOf<
|
|
114
|
+
typeof RedpallasMPCv2SignatureShareRound3Input
|
|
115
|
+
>;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* RedPallas MPCv2 — BitGo to User round 3
|
|
119
|
+
*
|
|
120
|
+
* BitGo returns its third signing message.
|
|
121
|
+
*/
|
|
122
|
+
export const RedpallasMPCv2SignatureShareRound3Output = t.intersection([
|
|
123
|
+
MPCv2SignatureShareBase,
|
|
124
|
+
t.type(
|
|
125
|
+
{
|
|
126
|
+
type: t.literal("round3Output"),
|
|
127
|
+
data: t.type({
|
|
128
|
+
msg3: EddsaMPCv2SignedMessage,
|
|
129
|
+
}),
|
|
130
|
+
},
|
|
131
|
+
"RedpallasMPCv2SignatureShareRound3Output",
|
|
132
|
+
),
|
|
133
|
+
]);
|
|
134
|
+
|
|
135
|
+
export type RedpallasMPCv2SignatureShareRound3Output = t.TypeOf<
|
|
136
|
+
typeof RedpallasMPCv2SignatureShareRound3Output
|
|
137
|
+
>;
|