export

suspend fun export(keyId: String): Result<ByteArray>

Reconstructs the full private key from the parties' shares — the way to move a key out of MPC, or to back it up.

The result is the raw private key — treat it with the same care as any private key and encrypt it at rest. Bring it back under MPC later with import.

Return

the reconstructed raw private-key bytes.

Parameters

keyId

the hex-encoded keyId to export; the SDK reads the share from its StorageClient.

See also

to bring a private key back under MPC.