Core utility functions for key management and account access
publicKey
: The public key for the generated pairprivateKey
: The private key (handle with care)null
if no key pair exists.
account
: The user’s account (WebAuthn-based or local), or null
if no account existsgetCryptoKeyAccount()
first to check if a user is already connected
null
- always check before using the results
generateKeyPair()
or getKeypair()
, handle private keys securely