Skip to main content

Authentication

EvoBin supports four sign-in methods behind a provider abstraction in packages/web/src/client/wallet/. The provider registry order is:

['extension', 'dashconnect', 'walletconnect', 'passkey']

Provider comparison​

ProviderIdentity sourceSigningPersisted session
Dash Platform ExtensionExtensionExtension signAndBroadcastdash_connection
DashConnectQR handoffdash-st: deep linkdash_connection + keyId
WalletConnectDerived from EVM signatureLocal derived Dash keydash_connection + keyId
PasskeyDerived from WebAuthn PRFLocal derived Dash keydash_connection + keyId

keyId lets the Security screen resolve the current session's recovery mnemonic without re-running a ceremony.

Extension​

The extension injects window.dashPlatformExtension. The connect contract is:

dashPlatformExtension.signer.connect()
// → { identities, currentIdentity, network? }

Signing uses signAndBroadcast(stateTransition). The extension may also inject window.dashPlatformSDK; EvoBin prefers it when present.

WalletConnect​

The EVM wallet signs a static SIWE message (only the EVM address varies). The signature is deterministic under RFC 6979, which makes the derived Dash wallet reproducible:

personal_sign → signature (r || s)
→ keccak256(r || s) → first 16 bytes
→ BIP39 12-word mnemonic
→ deriveDashWallet(mnemonic, network)

The mnemonic is cached in IndexedDB keyed by EVM address. Signing does not round-trip through WalletConnect; the derived Dash key signs locally.

Passkey​

A WebAuthn PRF result is the deterministic input:

PRF(salt) (32 B) → keccak256 → first 16 bytes
→ BIP39 12 words
→ deriveDashWallet(mnemonic, network, identityIndex)

Rules that matter:

  • Test prf.results.first, never prf.enabled.
  • The PRF salt is frozen. Changing it changes the wallet.
  • Passkey credential IDs are case-sensitive; the passkey store preserves them.
  • The identity index is peeked before a new one is consumed, so a returning user does not mint a new unfunded identity on every sign-in.
  • PRF requires CTAP2.1. The passkey button is production-domain only.

DashConnect​

DashConnect uses a QR dash-key: handoff and a dash-st: deep link. The payload contains the app ephemeral public key, the app-supplied key-exchange contract ID, and a label. The crypto is ECDH X-only → HKDF-SHA256 → AES-GCM.

The contract ID in the QR is app-supplied, not a protocol constant. The key-exchange contract is 7UaqHGBJBbRLJ4fUWS45cnud8PPUugJWoGTt1SKwHJ2P.

Session state​

The connect flow stores a ConnectionData object in localStorage['dash_connection']. The dashboard clears connections older than 24 hours. Settings live in localStorage['evobin_settings'].

Security notes​

  • EvoBin never receives a private key.
  • The Security screen shows the current session's recovery mnemonic only.
  • The passkey mnemonic cache is protected by the same-origin policy; it is not password-encrypted.
  • Multi-device passkey sync is the device's job, not EvoBin's.