Skip to main content
Class
class AndroidCrossmintTEE : CrossmintTEE

Properties

PropertyTypeDescription
isHandshakeCompletedBooleanIndicates whether the handshake with the TEE service has been completed. Handshake must be completed before performing cryptographic operations.
isOTPRequiredStateFlow<Boolean>Observable state indicating whether the OTP prompt should be shown.

Functions

FunctionDescription
awaitReadyBlocks continuation until a successful TEE load has completed. This method must be called before any signing operations.
cancelOTPResets isOTPRequired to emit false
getWebView-
performHandshakePerforms the TEE handshake protocol. This is called automatically by load().
provideOTPProvides the OTP code from the user to the TEE flow.
signTransaction-

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>