Skip to content

Commit ff6ecf8

Browse files
feat: eddsa recover txn signature
Ticket: WP-5166
1 parent 15c27bd commit ff6ecf8

File tree

16 files changed

+1676
-847
lines changed

16 files changed

+1676
-847
lines changed

masterBitgoExpress.json

Lines changed: 149 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,120 @@
66
"description": "BitGo Enclaved Express - Secure enclave for BitGo signing operations with mTLS"
77
},
88
"paths": {
9+
"/api/{coin}/wallet/{walletId}/accelerate": {
10+
"post": {
11+
"parameters": [
12+
{
13+
"name": "walletId",
14+
"in": "path",
15+
"required": true,
16+
"schema": {
17+
"type": "string"
18+
}
19+
},
20+
{
21+
"name": "coin",
22+
"in": "path",
23+
"required": true,
24+
"schema": {
25+
"type": "string"
26+
}
27+
}
28+
],
29+
"requestBody": {
30+
"content": {
31+
"application/json": {
32+
"schema": {
33+
"type": "object",
34+
"properties": {
35+
"pubkey": {
36+
"type": "string"
37+
},
38+
"source": {
39+
"type": "string",
40+
"enum": [
41+
"user",
42+
"backup"
43+
]
44+
},
45+
"cpfpTxIds": {
46+
"type": "array",
47+
"items": {
48+
"type": "string"
49+
}
50+
},
51+
"cpfpFeeRate": {
52+
"type": "number"
53+
},
54+
"maxFee": {
55+
"type": "number"
56+
},
57+
"rbfTxIds": {
58+
"type": "array",
59+
"items": {
60+
"type": "string"
61+
}
62+
},
63+
"feeMultiplier": {
64+
"type": "number"
65+
}
66+
},
67+
"required": [
68+
"pubkey",
69+
"source"
70+
]
71+
}
72+
}
73+
}
74+
},
75+
"responses": {
76+
"200": {
77+
"description": "OK",
78+
"content": {
79+
"application/json": {
80+
"schema": {
81+
"type": "object",
82+
"properties": {
83+
"txid": {
84+
"type": "string"
85+
},
86+
"tx": {
87+
"type": "string"
88+
}
89+
},
90+
"required": [
91+
"txid",
92+
"tx"
93+
]
94+
}
95+
}
96+
}
97+
},
98+
"500": {
99+
"description": "Internal Server Error",
100+
"content": {
101+
"application/json": {
102+
"schema": {
103+
"type": "object",
104+
"properties": {
105+
"error": {
106+
"type": "string"
107+
},
108+
"details": {
109+
"type": "string"
110+
}
111+
},
112+
"required": [
113+
"error",
114+
"details"
115+
]
116+
}
117+
}
118+
}
119+
}
120+
}
121+
}
122+
},
9123
"/api/{coin}/wallet/{walletId}/consolidate": {
10124
"post": {
11125
"parameters": [
@@ -142,9 +256,6 @@
142256
"backup"
143257
]
144258
},
145-
"walletPassphrase": {
146-
"type": "string"
147-
},
148259
"feeRate": {
149260
"type": "number"
150261
},
@@ -561,17 +672,42 @@
561672
"schema": {
562673
"type": "object",
563674
"properties": {
564-
"userPub": {
565-
"type": "string"
566-
},
567-
"backupPub": {
568-
"type": "string"
675+
"isTssRecovery": {
676+
"type": "boolean"
569677
},
570-
"bitgoPub": {
571-
"type": "string"
678+
"tssRecoveryParams": {
679+
"type": "object",
680+
"properties": {
681+
"commonKeychain": {
682+
"type": "string"
683+
}
684+
},
685+
"required": [
686+
"commonKeychain"
687+
]
572688
},
573-
"walletContractAddress": {
574-
"type": "string"
689+
"multiSigRecoveryParams": {
690+
"type": "object",
691+
"properties": {
692+
"backupPub": {
693+
"type": "string"
694+
},
695+
"bitgoPub": {
696+
"type": "string"
697+
},
698+
"userPub": {
699+
"type": "string"
700+
},
701+
"walletContractAddress": {
702+
"type": "string"
703+
}
704+
},
705+
"required": [
706+
"backupPub",
707+
"bitgoPub",
708+
"userPub",
709+
"walletContractAddress"
710+
]
575711
},
576712
"recoveryDestinationAddress": {
577713
"type": "string"
@@ -605,11 +741,7 @@
605741
}
606742
},
607743
"required": [
608-
"userPub",
609-
"backupPub",
610-
"walletContractAddress",
611-
"recoveryDestinationAddress",
612-
"apiKey"
744+
"recoveryDestinationAddress"
613745
]
614746
}
615747
}

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
"@api-ts/typed-express-router": "^1.1.13",
2828
"@bitgo/sdk-core": "^35.3.0",
2929
"@bitgo-beta/sdk-lib-mpc": "8.2.1-alpha.291",
30+
"@bitgo/sdk-coin-ada": "^4.11.5",
31+
"@bitgo/sdk-coin-dot": "^4.3.5",
32+
"@bitgo/sdk-coin-sui": "^5.15.5",
33+
"@bitgo/sdk-coin-near": "^2.7.0",
34+
"@bitgo/sdk-coin-sol": "^4.12.5",
3035
"bitgo": "^48.1.0",
3136
"@bitgo/abstract-utxo": "^9.21.4",
3237
"@bitgo/statics": "^54.6.0",
@@ -44,6 +49,9 @@
4449
"winston": "^3.11.0",
4550
"zod": "^3.25.48"
4651
},
52+
"resolutions": {
53+
"@bitgo/sdk-core": "^35.3.0"
54+
},
4755
"devDependencies": {
4856
"@api-ts/openapi-generator": "^5.7.0",
4957
"@types/body-parser": "^1.17.0",

0 commit comments

Comments
 (0)