Skip to main content

Documentation Index

Fetch the complete documentation index at: https://cobo.com/developers/llms.txt

Use this file to discover all available pages before exploring further.

Try Cobo WaaS Skill in your AI coding assistant (Claude Code, Cursor, etc.). Describe your needs in natural language to auto-generate production-ready SDK code and debug faster 🚀
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.