Repository navigation
feat: add a KRS backup-provider option to safe creation - #10318
Draft
davidkaplanbitgo wants to merge 1 commit into
Draft
davidkaplanbitgo wants to merge 1 commit into
davidkaplanbitgo wants to merge 1 commit into
Conversation
Contributor
Contributor
|
|
davidkaplanbitgo
force-pushed
the
davidkaplan/wcn-3884-backup-key-provider-option
branch
from
December 4, 2026 17:45
de68b97 to
8c251d1
Compare
A safe's multisig backup roots can be held by a KRS provider instead of being
generated locally or supplied by the caller.
- CreateSafeOptions.backupKeyProvider ({ provider, slots }) is mutually
exclusive with multisigRoots. Slots default to both multisig slots and the
server rejects one the safe does not enable.
- initializeSafe sends externalBackupSlots plus backupKeyProvider.
- createSafeKeys generates no local backup for a provider-held slot and
registers the provider root last through keychains.createBackup, with bounded
5xx retries before the archive-on-failure path.
- Express generate and keys/generate accept and forward the option.
Ticket: WCN-3884
davidkaplanbitgo
force-pushed
the
davidkaplan/wcn-3884-backup-key-provider-option
branch
from
December 4, 2026 17:53
8c251d1 to
b1dce83
Compare
This branch has not been deployed
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.
Ticket: WCN-3884
Lets a safe be created with its multisig backup roots held by a KRS provider instead of generated locally (today) or supplied by the caller (BYOK).
What
CreateSafeOptions.backupKeyProvider: { provider: 'coincover'; slots?: MultisigRootKeyType[] }, mutually exclusive withmultisigRoots.slotsdefaults to both multisig slots: the wire contract needs a non-emptyexternalBackupSlotsalongsidebackupKeyProvider, and the enabled slots are only known after initialize, so the server's echo stays authoritative.initializeSafesendsexternalBackupSlots+backupKeyProvider.createSafeKeysgenerates no local backup for a provider-held slot and registers the provider root in the existing register-last phase viakeychains.createBackup({ provider, safeId }), with bounded 5xx retries (provider roots are scoped to provider + safe, so a retry cannot mint a second root) before the archive-on-failure path.POST …/safes/generateand…/safes/{safeId}/keys/generateaccept and forward the option.Review notes