Skip to main content
A Secrets file contains all essential information about the TSS Node, including TSS Node ID and key shares.
public func exportSecrets(exportPassphrase: String) throws -> String
let exportPassphrase = "wZdcycVuexvmgt7aMkaeA_2_ioCKrw!B"

do {
    if let jsonRecoverySecrets = try sdkInstance?.exportSecrets(exportPassphrase: exportPassphrase) {
        print("\(jsonRecoverySecrets)\n")
    } else {
        print("Failed to export Secrets")
    }
} catch {
    print("Error: \(error)")
}

Parameters

exportPassphrase
string
The passphrase used to encrypt the exported JSON data of TSS Nodes. Must be at least 16 characters long.

Response

jsonRecoverySecrets
string
The exported passphrase-encrypted JSON data of Secrets, which includes the TSS Node ID and all recovery key shares.