Skip to content

Commit 4a880ba

Browse files
fix(sdk-core): use explicit undefined check for mpcv2PartyId
Falsy check `params.mpcv2PartyId ? ... : 0` treats party ID 0 as falsy, causing `getSignatureShareRoundOne` to receive `undefined` while the `Dsg` constructor receives `0` when `mpcv2PartyId` is not supplied. Replace with an explicit undefined check to ensure both callers receive the same value. Ticket: WAL-387
1 parent bf52935 commit 4a880ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/sdk-core/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ export class EcdsaMPCv2Utils extends BaseEcdsaUtils {
776776
const hashBuffer = hash.update(bufferContent).digest();
777777
const otherSigner = new DklsDsg.Dsg(
778778
userKeyShare,
779-
params.mpcv2PartyId ? params.mpcv2PartyId : 0,
779+
params.mpcv2PartyId !== undefined ? params.mpcv2PartyId : 0,
780780
derivationPath,
781781
hashBuffer
782782
);

0 commit comments

Comments
 (0)