DecaneDocs
PlatformPlatform hooks
Platform

Platform hooks

DecaneWallet.create(context, config) installs the defaults below. Pass a DecanePlatform to replace any of them; leave a field null to keep its default.

kotlin
val wallet = DecaneWallet.create(
    context,
    config,
    DecanePlatform(http = MyTransport(sharedOkHttpClient)),
)
HookDefault
httpOkHttpTransport
secureStoreKeystoreStorage, encrypted under a hardware-backed AndroidKeyStore key
deviceKeyBiometricKey, invalidated when biometric enrolment changes
passkeyCredentialManagerPasskeyProvider
authSessionCustomTabsAuthSession, with the redirect activity

Attestation

Without a verifyAttestation hook, the Decane backend verifies the enclave’s quote against the pinned measurement. In production, forward the quote to your own backend:

kotlin
DecaneConfig(…, verifyAttestation = { quote -> myApi.verifyTeeQuote(quote) })

insecureSkipAttestation is for development only.