DuoSessionNative

Wrapper around DuoSession providing asynchronous APIs.

Mirrors the Kotlin-facing DuoSession surface for Swift / Objective-C consumers. All methods unwrap Result into direct returns / throws.

Constructors

Link copied to clipboard
constructor(session: DuoSession)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun delete(keyId: String)
Link copied to clipboard
suspend fun export(keyId: String, otherEncryptedKeyshare: ByteArray, hostEncryptionKey: ByteArray, otherDecryptionKey: ByteArray): ByteArray
Link copied to clipboard
suspend fun import(keysharePrivateKey: ByteArray, rootChainCode: String): String
Link copied to clipboard
suspend fun keygen(): String
Link copied to clipboard
suspend fun reconcile(keyId: String): ByteArray
Link copied to clipboard
suspend fun refresh(keyId: String): ByteArray
Link copied to clipboard
suspend fun sign(keyId: String, message: String, derivationPath: String = "m"): ByteArray
Link copied to clipboard
suspend fun verifyBackup(keyId: String, backupData: ByteArray, rsaPublicKey: ByteArray, label: String = ""): Boolean