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 initializeSecrets(secretsFile: String, passphrase: String) async throws -> String
let secrets = "secrets.db"
let passphrase = "d3hxNyoiAP@Lm!D7Qpo_hghdpgyc_r39"

Task {
    do {
        let tssNodeID = try await initializeSecrets(secretsFile: secrets, passphrase: passphrase)
        print("TSS Node ID: \(tssNodeID)")
    } catch {
        print("Error: \(error)")
    }
}

Parameters

secretsFile
string
The complete file name, including its extension, for the new Secrets file.
passphrase
string
The passphrase for encrypting the Secrets file, with a minimum length of 16 characters.

Response

tssNodeID
string
The TSS Node ID associated with the Secrets file. For example, coboJTKRVEWHgmigeE8FB2FDpN6nadUwXkUdsRZbhyFAq8bDV.