DecaneDocs
ReferenceNot yet
Reference

What's not in this version

0.1.0 ships the identity tier: nothing is stored on the device and nothing is asked for; every visit is a sign-in, after which the enclave provisions a fresh device share against the session alone.

✓

The identity tier’s security statement: a wallet is exactly as safe as the user’s identity-provider account plus Decane (the JWT signing key and the attested enclave). Anyone who can obtain a valid Decane session for the user can sign. There is no device-bound factor. Mitigations: a new-device email on every provision from an unseen device, a per-user freeze switch operated by Decane, and (follow-up) a fresh sign-in requirement for high-value operations.

Not yet, each already on the API so enabling it will not change your code:

  • The device tier (protection: .device, the default as in Expo), with biometric, Secure Enclave or PIN unlock.
  • Passkeys, for sign-in and unlock.
  • Redirect sign-in: connectWithGoogle, connectWithX, connectWithKingsChat.
  • Recovery files: rotateShares, exportPortableBackup, recoverWithFile.

Coming from the Expo SDK

  • Swift names: connectWithKingsChatToken, signEVMTransaction, transactionHistory(limit:), capabilities(); properties for the synchronous getters.
  • Callbacks are protocols on DecanePlatform; events are an AsyncStream rather than on(…).
  • No sendTransaction, balance helper or rpcUrls: sign here, broadcast with your own stack.
  • No authMethods: call the sign-in you want.
  • Cancelling a Swift Task stops waiting but not the core’s work, which its own timeouts bound.