SilentShardNative

sealed class SilentShardNative

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

Common Kotlin returns Result<T> which Swift can't try. This class delegates every call to SilentShard.ECDSA / SilentShard.EdDSA and unwraps Result into direct returns / throws via @Throws(Exception::class). Session factories wrap the returned TrioSession in a TrioSessionNative 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 createTrioSession(messageSigner: MessageSigner, cloudVerifyingKey: String, websocketConfig: WebsocketConfig, storageClient: StorageClient): TrioSessionNative
fun createTrioSession(messageSigner: MessageSigner, cloudVerifyingKey: String, storageClient: StorageClient, networkClient: NetworkClient, actionProvider: TrioNetworkActionProvider): TrioSessionNative
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