You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Passkeys are cryptographic key pairs generated and stored on secure hardware. Typically this is your Mac's secure enclave, your Android phone's Titan M2 chip, or a security key plugged in via USB.
Registration ("sign up") creates a new key pair
Authentication ("sign in") uses that key pair to sign a message with the private key
This gist shows how to derive a Bitcoin address using bitcoinjs-lib.
Context
Turnkey doesn't support Bitcoin address derivation yet, but it does give raw public keys. This means Bitcoin addresses can be derived on the client side. This code sample is provided as courtesy and should not be considered authoritative or production ready.
Any address derivation logic is critical because sending cryptocurrency to an address derived incorrectly can lead to permanent loss of funds. At minimum, any address derivation logic should be tested to make sure funds land on the derived deposit address correctly and that funds can be transferred back out without issues.