Skip to main content
Interface
interface CrossmintTEE

Properties

isHandshakeCompleted

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

isOTPRequired

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

Functions

awaitReady

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

cancelOTP

abstract fun cancelOTP()
Resets isOTPRequired to emit false

performHandshake

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

provideOTP

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

signTransaction

abstract suspend fun signTransaction(messageBytes: String, keyType: String, encoding: String, otpAuth: String): Result<String, TEEError>