Repository navigation
feat: verify CoinCover safe roots at creation and mint - #10319
Draft
davidkaplanbitgo wants to merge 1 commit into
Draft
davidkaplanbitgo wants to merge 1 commit into
davidkaplanbitgo wants to merge 1 commit into
Conversation
- Keychain carries the provider's signedPayload and signature alongside provider and keyId. - createSafeKeys verifies every provider-held backup root before the triplets are assembled; a bad proof archives the safe and throws, so it never finalizes. - The onchain createWallet path re-verifies the root and checks the minted backup child is its soft derivation at the wallet path before returning the wallet. Stacked on the verifier (WCN-4832) and the provider option (WCN-3884). Ticket: WCN-4946
Contributor
Contributor
|
|
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-4946
The SDK must not take wallet-platform's word that a safe backup root came from CoinCover.
What
Keychaincarries the provider'ssignedPayloadandsignaturealongsideproviderandkeyId(WP-7 returns them in the key JSON).createSafeKeysverifies every provider-held backup root before the triplets are assembled. A bad proof archives the safe and throws, so it never reaches finalize.createWalletpath re-verifies the root's proof and checks the minted backup child is the soft derivation of that root at the wallet path before returning the wallet. TSS mint is untouched.Stacked — do not merge before its prerequisites
This PR is written against two branches that are not on master yet:
davidkaplan/wcn-4832-coincover-root-proof-verifier) —./coincoverRootProof, andcoinCoverAttestationPublicKeysinenvironments.tsdavidkaplan/wcn-3884-backup-key-provider-option) —CreateSafeOptions.backupKeyProvider, and theproviderBackupregistration branch this verification sits behindConsequently CI is expected to fail on this branch until both land. Merge order: #10317 → #10318 → this. After they merge, rebase this branch on master and the diff is the five files shown.
Review notes
provider,keyId,signedPayloadandsignatureflat on the key; if WP nests them underproviderMetadatathis fails loudly with "missing its pub, key id, signed payload or signature" rather than skipping the check.