Skip to content

Commit dffefda

Browse files
committed
refactor(sdk-lib-mpc): remove deriveUnhardenedMps
All callers (sdk-coin-sol, sdk-core address verification) have been migrated to Eddsa.deriveUnhardened (BIP32-Ed25519). Remove the function, its export, and the tests that depended on it. The DSG cross-check test is retained but now verifies against Eddsa.deriveUnhardened. Ticket: WCI-644
1 parent fb8274f commit dffefda

4 files changed

Lines changed: 0 additions & 183 deletions

File tree

modules/sdk-core/test/unit/bitgo/utils/tss/addressVerification.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -184,24 +184,6 @@ describe('verifyEddsaTssWalletAddress', function () {
184184
result.should.be.false();
185185
});
186186
});
187-
188-
describe('legacy Silence Labs formula', function () {
189-
it('rejects an address derived with the old Silence Labs single-HMAC formula', async function () {
190-
const verifyEddsaTssWalletAddress = getVerifyEddsaTssWalletAddress();
191-
// The Silence Labs and BIP32-Ed25519 formulas produce different addresses for the same keychain.
192-
// Addresses derived with the old formula no longer verify against the current derivation.
193-
const { deriveUnhardenedMps: deriveSL } = await import('@bitgo/sdk-lib-mpc');
194-
const silenceLabsAddress = deriveSL(TEST_KEYCHAIN, 'm/0').slice(0, 64);
195-
196-
const result = await verifyEddsaTssWalletAddress(
197-
{ address: silenceLabsAddress, keychains, index: 0 },
198-
isValidAddress,
199-
getAddressFromPublicKey
200-
);
201-
202-
result.should.be.false();
203-
});
204-
});
205187
});
206188

207189
describe('verifyMPCWalletAddress - ECDSA (secp256k1)', function () {

modules/sdk-lib-mpc/src/tss/eddsa-mps/derive.ts

Lines changed: 0 additions & 45 deletions
This file was deleted.

modules/sdk-lib-mpc/src/tss/eddsa-mps/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ export * as EddsaMPSDsg from './dsg';
33
export * as MPSUtil from './util';
44
export * as MPSTypes from './types';
55
export * as MPSComms from './commsLayer';
6-
export { deriveUnhardenedMps } from './derive';

modules/sdk-lib-mpc/test/unit/tss/eddsa/derive.ts

Lines changed: 0 additions & 119 deletions
This file was deleted.

0 commit comments

Comments
 (0)