SilentShardNative

sealed class SilentShardNative

Swift-idiom @Throws adapter for the common SilentShard surface.

Common Kotlin returns Result<T> which Swift can't try. This class delegates every call to the common SilentShard.ECDSA / SilentShard.EdDSA singleton and unwraps Result into direct returns / throws via @Throws(Exception::class). Session factories wrap the returned DuoSession in a DuoSessionNative for the same reason at the session level.

Pure idiom translation — no logic of its own.

Inheritors

Types

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun createDuoSession(messageSigner: MessageSigner, cloudVerifyingKey: String, websocketConfig: WebsocketConfig, storageClient: StorageClient): DuoSessionNative
fun createDuoSession(messageSigner: MessageSigner, cloudVerifyingKey: String, storageClient: StorageClient, networkClient: NetworkClient, actionProvider: DuoNetworkActionProvider): DuoSessionNative
Link copied to clipboard
suspend fun deriveChildPublicKey(keyshare: ByteArray, derivationPath: String): ByteArray
Link copied to clipboard
suspend fun getKeyshareKeyId(keyshare: ByteArray): ByteArray
Link copied to clipboard
suspend fun getKeysharePublicKey(keyshare: ByteArray): ByteArray