Skip to content

fix(sdk-core): use decrypt/encrypt in createOfflineKeyGenRound1Share#9248

Merged
biwwy0 merged 1 commit into
masterfrom
wci-1023-fix-decryptasync-encryptasync
Jul 14, 2026
Merged

fix(sdk-core): use decrypt/encrypt in createOfflineKeyGenRound1Share#9248
biwwy0 merged 1 commit into
masterfrom
wci-1023-fix-decryptasync-encryptasync

Conversation

@Marzooqa

Copy link
Copy Markdown
Contributor

What

Replace two non-existent method calls in createOfflineKeyGenRound1Share (modules/sdk-core/src/bitgo/utils/tss/eddsa/eddsaMPCv2.ts):

  • this.bitgo.decryptAsync(...)await this.bitgo.decrypt(...)
  • this.bitgo.encryptAsync(...)await this.bitgo.encrypt(...)

Also removes the isV2Envelope branch — decrypt handles both envelope versions and already returns Promise<string>.

Why

PR #9187 merged these non-existent methods to master, causing TS2339 build failures in @bitgo/sdk-core and every downstream package. This unblocks all PRs currently failing CI with:

error TS2339: Property 'decryptAsync' does not exist on type 'BitGoBase'
error TS2339: Property 'encryptAsync' does not exist on type 'BitGoBase'

Test plan

  • TypeScript build passes locally for @bitgo/sdk-core
  • Existing unit tests unaffected

Ticket: WCI-1023

@Marzooqa Marzooqa requested review from a team as code owners July 14, 2026 09:37
@linear-code

linear-code Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

WCI-1023

BitGoBase.decrypt and .encrypt already return Promise<string>; the
Async variants do not exist and caused a TS2339 build failure on master
for every package depending on sdk-core.

Ticket: WCI-1023
@Marzooqa Marzooqa force-pushed the wci-1023-fix-decryptasync-encryptasync branch from 13650ce to 8a49c2d Compare July 14, 2026 09:38
@Marzooqa Marzooqa changed the title fix(sdk-core): replace decryptAsync/encryptAsync with decrypt/encrypt in createOfflineKeyGenRound1Share fix(sdk-core): use decrypt/encrypt in createOfflineKeyGenRound1Share Jul 14, 2026
@biwwy0

biwwy0 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

@biwwy0 biwwy0 merged commit f025382 into master Jul 14, 2026
22 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants