Skip to main content
Class
class AndroidCrossmintTEE : CrossmintTEE

Properties

isHandshakeCompleted

open override val isHandshakeCompleted: Boolean
Indicates whether the handshake with the TEE service has been completed. Handshake must be completed before performing cryptographic operations.

isOTPRequired

open override val isOTPRequired: StateFlow<Boolean>
Observable state indicating whether the OTP prompt should be shown.

Functions

awaitReady

open suspend override fun awaitReady()
Blocks continuation until a successful TEE load has completed. This method must be called before any signing operations.

cancelOTP

open override fun cancelOTP()
Resets isOTPRequired to emit false

getWebView

fun getWebView(): WebView?

performHandshake

open suspend override fun performHandshake(): Result<Unit, TEEError>
Performs the TEE handshake protocol. This is called automatically by load().

provideOTP

open override fun provideOTP(code: String)
Provides the OTP code from the user to the TEE flow.

signTransaction

open suspend override fun signTransaction(messageBytes: String, keyType: String, encoding: String, otp: String): Result<String, TEEError>