@@ -70,14 +70,6 @@ interface EddsaSigningParams {
7070export async function signMpcTransaction ( req : EnclavedApiSpecRouteRequest < 'v1.mpc.sign' , 'post' > ) {
7171 const { source, pub, coin, encryptedDataKey, shareType } = req . decoded ;
7272
73- if ( ! source || ! pub ) {
74- throw new Error ( 'Source and public key are required for MPC signing' ) ;
75- }
76-
77- if ( ! shareType ) {
78- throw new Error ( 'Share type is required for MPC signing' ) ;
79- }
80-
8173 const bitgo = req . bitgo ;
8274 const coinInstance = bitgo . coin ( coin ) ;
8375
@@ -147,9 +139,6 @@ async function handleEddsaSigning(
147139
148140 switch ( shareType . toLowerCase ( ) ) {
149141 case ShareType . Commitment : {
150- if ( ! txRequest ) {
151- throw new Error ( 'txRequest is required for commitment share generation' ) ;
152- }
153142 if ( ! bitgoGpgPubKey ) {
154143 throw new Error ( 'bitgoGpgPubKey is required for commitment share generation' ) ;
155144 }
@@ -166,9 +155,6 @@ async function handleEddsaSigning(
166155 } ;
167156 }
168157 case ShareType . R : {
169- if ( ! txRequest ) {
170- throw new Error ( 'txRequest is required for R share generation' ) ;
171- }
172158 if ( ! encryptedUserToBitgoRShare ) {
173159 throw new Error ( 'encryptedUserToBitgoRShare is required for R share generation' ) ;
174160 }
@@ -186,9 +172,6 @@ async function handleEddsaSigning(
186172 return await eddsaUtils . createRShareFromTxRequest ( rShareParams ) ;
187173 }
188174 case ShareType . G : {
189- if ( ! txRequest ) {
190- throw new Error ( 'txRequest is required for G share generation' ) ;
191- }
192175 if ( ! bitgoToUserRShare ) {
193176 throw new Error ( 'bitgoToUserRShare is required for G share generation' ) ;
194177 }
0 commit comments