feat(sdk-core): getUserAndBackupSession + createKeychains retrofit wiring - #9482
Merged
Marzooqa merged 1 commit intoAug 25, 2026
Merged
Conversation
Contributor
ralph-bitgo
Bot
force-pushed
the
WCI-1264-getUserAndBackupSession-createKeychains-retrofit
branch
from
August 12, 2026 08:49
800cab5 to
b1cb0e7
Compare
bitgo-ai-agent-dev
Bot
force-pushed
the
WCI-1264-getUserAndBackupSession-createKeychains-retrofit
branch
from
August 12, 2026 09:38
b1cb0e7 to
6c7bcfa
Compare
ralph-bitgo
Bot
force-pushed
the
WCI-1264-getUserAndBackupSession-createKeychains-retrofit
branch
from
August 12, 2026 09:38
6c7bcfa to
47cfe16
Compare
bitgo-ai-agent-dev
Bot
force-pushed
the
WCI-1261-EddsaRetrofitData-DKG-constructor
branch
from
August 12, 2026 10:53
cf3cb10 to
b5193dd
Compare
ralph-bitgo
Bot
force-pushed
the
WCI-1261-EddsaRetrofitData-DKG-constructor
branch
from
August 12, 2026 10:53
b5193dd to
fdf95f7
Compare
bitgo-ai-agent-dev
Bot
force-pushed
the
WCI-1261-EddsaRetrofitData-DKG-constructor
branch
from
August 13, 2026 06:27
fdf95f7 to
d219ede
Compare
ralph-bitgo
Bot
force-pushed
the
WCI-1261-EddsaRetrofitData-DKG-constructor
branch
from
August 13, 2026 06:27
d219ede to
ce90652
Compare
bitgo-ai-agent-dev
Bot
force-pushed
the
WCI-1261-EddsaRetrofitData-DKG-constructor
branch
from
August 13, 2026 07:24
58ebac8 to
8d67c7c
Compare
ralph-bitgo
Bot
force-pushed
the
WCI-1261-EddsaRetrofitData-DKG-constructor
branch
from
August 13, 2026 07:24
8d67c7c to
4055fe5
Compare
bitgo-ai-agent-dev
Bot
force-pushed
the
WCI-1261-EddsaRetrofitData-DKG-constructor
branch
from
August 13, 2026 10:16
20b67fd to
9ade6eb
Compare
ralph-bitgo
Bot
force-pushed
the
WCI-1261-EddsaRetrofitData-DKG-constructor
branch
from
August 13, 2026 10:16
9ade6eb to
61fb76a
Compare
bitgo-ai-agent-dev
Bot
force-pushed
the
WCI-1261-EddsaRetrofitData-DKG-constructor
branch
2 times, most recently
from
August 13, 2026 14:30
20a5005 to
6117b6d
Compare
bitgo-ai-agent-dev
Bot
force-pushed
the
WCI-1264-getUserAndBackupSession-createKeychains-retrofit
branch
from
August 13, 2026 14:33
47cfe16 to
5965a4c
Compare
ralph-bitgo
Bot
force-pushed
the
WCI-1264-getUserAndBackupSession-createKeychains-retrofit
branch
from
August 13, 2026 14:33
5965a4c to
007e0c8
Compare
Marzooqa
force-pushed
the
WCI-1261-EddsaRetrofitData-DKG-constructor
branch
2 times, most recently
from
August 14, 2026 08:03
502e157 to
06cf112
Compare
bitgo-ai-agent-dev
Bot
force-pushed
the
WCI-1264-getUserAndBackupSession-createKeychains-retrofit
branch
from
August 24, 2026 11:18
007e0c8 to
412c78a
Compare
ralph-bitgo
Bot
force-pushed
the
WCI-1264-getUserAndBackupSession-createKeychains-retrofit
branch
from
August 24, 2026 11:18
412c78a to
f83e35a
Compare
bitgo-ai-agent-dev
Bot
force-pushed
the
WCI-1264-getUserAndBackupSession-createKeychains-retrofit
branch
2 times, most recently
from
August 24, 2026 12:07
7cf80ae to
b3d7996
Compare
bitgo-ai-agent-dev
Bot
changed the base branch from
WCI-1261-EddsaRetrofitData-DKG-constructor
to
master
August 24, 2026 12:07
bitgo-ai-agent-dev
Bot
force-pushed
the
WCI-1264-getUserAndBackupSession-createKeychains-retrofit
branch
from
August 24, 2026 12:08
b3d7996 to
1e37492
Compare
ralph-bitgo
Bot
force-pushed
the
WCI-1264-getUserAndBackupSession-createKeychains-retrofit
branch
from
August 24, 2026 12:08
1e37492 to
b7da41b
Compare
Use MPCv1-derived retrofit data when creating EdDSA MPCv2 DKG sessions and include the wallet ID in round one requests so the server selects the retrofit flow. Ticket: WCI-1264
Marzooqa
force-pushed
the
WCI-1264-getUserAndBackupSession-createKeychains-retrofit
branch
from
August 25, 2026 07:13
b7da41b to
ea83766
Compare
Marzooqa
marked this pull request as ready for review
August 25, 2026 08:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
retrofit?: DecryptedRetrofitPayloadtoEddsaMPCv2Utils.createKeychains()paramsgetUserAndBackupSession(retrofit?)method that branches on the retrofit flag:EddsaRetrofitDatafrom MPCv1 key shares viagetMpcV2RetrofitDataFromMpcV1Keysand constructsDKGinstances with retrofit dataDKGinstances (existing behavior unchanged)new EddsaMPSDkg.DKG(...)calls increateKeychainswithgetUserAndBackupSessionsendKeyGenerationRound1/sendKeyGenerationRound1BySenderpayload types to allowwalletId?: stringwalletIdinto the R1 request body whenparams.retrofit?.walletIdis present, so server-sideisRound1RetrofitDKG()detection kicks ingetUserAndBackupSession(both paths) and forwalletIdpresence/absence in the captured R1 payloadWhy
walletIdin the R1 payload; without this wiring the server would treat every key-gen as a fresh creationecdsaMPCv2.ts(line 639getUserAndBackupSession, line 126-129walletIdspread)Test plan
EddsaMPCv2Utils.getUserAndBackupSession— returns plain DKG sessions when retrofit is undefinedEddsaMPCv2Utils.getUserAndBackupSession— returns retrofit-seeded DKG sessions when retrofit payload is suppliedEddsaMPCv2Utils.createKeychains with retrofit wiring—walletIdpresent in R1 payload when retrofit providedEddsaMPCv2Utils.createKeychains with retrofit wiring—walletIdabsent from R1 payload when no retrofitEddsaMPCv2Utilsunit tests continue to passStack
This PR is part 3 of 3 in a stacked series. Review and merge in order:
EddsaRetrofitDatatype +DKGretrofit constructor +getFirstMessagerouting (base:master)getMpcV2RetrofitDataFromMpcV1Keysfor EdDSA (base:WCI-1261-EddsaRetrofitData-DKG-constructor)getUserAndBackupSession+createKeychainsretrofit wiring (base:WCI-1261-EddsaRetrofitData-DKG-constructor) ← you are hereTicket: WCI-1264