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
The passphrase used to encrypt the exported JSON data of TSS Nodes. Must be at least 16 characters long.
Response
The exported passphrase-encrypted JSON data of Secrets, which includes the TSS Node ID and all recovery key shares.