exportFullPrivateKey

suspend fun exportFullPrivateKey(roomUuid: RoomUUID, secretShare: Ed25519SecretShare, toExportID: String): String?

Exports a full Ed25519 private key.

Combines secret shares to export the full private key to a single party. Requires threshold number of parties to participate.

Returns a base58 encoded extended private key (Spriv) extracted from the secret shares. Note that unlike ECDSA or BIP340, there's no standardization for the extended public key format for Ed25519, so 'S' stands for 'Sodot', and this is a somewhat custom derivation scheme adapted for Ed25519.

Return

The party being exported to will receive a string containing the full spriv, while the rest will receive a null

Parameters

roomUuid

The UUID of the export room

secretShare

The secret share of the party participating in the export

toExportID

The exportID of the party that will receive the private key