feat(passkey-crypto): add @bitgo/passkey-crypto package - #8596
Merged
Conversation
derranW26
force-pushed
the
WCN-186/passkey-crypto-package
branch
2 times, most recently
from
April 22, 2026 15:20
e57cafc to
8708c6e
Compare
derranW26
marked this pull request as ready for review
April 22, 2026 16:57
mohammadalfaiyazbitgo
requested changes
Apr 22, 2026
derranW26
force-pushed
the
WCN-186/passkey-crypto-package
branch
4 times, most recently
from
April 22, 2026 21:53
e993fc3 to
6a6ee30
Compare
derranW26
force-pushed
the
WCN-186/passkey-crypto-package
branch
from
April 23, 2026 19:37
6a6ee30 to
9ca1f7d
Compare
mohammadalfaiyazbitgo
approved these changes
Apr 23, 2026
Pure cryptographic primitives for WebAuthn PRF-based key derivation: - derivePassword: converts ArrayBuffer PRF result to hex walletPassphrase - deriveEnterpriseSalt: HMAC-SHA256 via SJCL matching retail implementation exactly TICKET: WCN-186
derranW26
force-pushed
the
WCN-186/passkey-crypto-package
branch
from
May 1, 2026 19:01
9ca1f7d to
727a8e1
Compare
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.
Summary
modules/passkey-crypto/package (@bitgo/passkey-crypto) as the cryptographic foundation for the passkey feature (Ticket 1 of 9)derivePassword(prfResult: ArrayBuffer): string— converts WebAuthn PRF output to a hexwalletPassphrasefor SJCL encryptionderiveEnterpriseSalt(baseSalt: string, enterpriseId: string): string— HMAC-SHA256 enterprise-scoped salt to prevent cross-enterprise key reuseTest plan
yarn unit-testinmodules/passkey-crypto/— 11 tests passing (known vectors for both functions)anytypesyarn buildin the module