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)),
)| Hook | Default |
|---|---|
http | OkHttpTransport |
secureStore | KeystoreStorage, encrypted under a hardware-backed AndroidKeyStore key |
deviceKey | BiometricKey, invalidated when biometric enrolment changes |
passkey | CredentialManagerPasskeyProvider |
authSession | CustomTabsAuthSession, 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.