Skip to main content
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 🚀
The UCWPublic class allows you to retrieve the TSS Node ID and TSS key share groups without requiring a passphrase.
public init(secretsFile: String) throws
let secrets = "secrets.db"
var sdkInstance: UCWPublic?

do {
    sdkInstance = try UCWPublic(secretsFile: secrets)
} catch {
    print("Error: \(error)")
}

Parameters

secretsFile
string
The complete file name, including its extension, for the Secrets file that needs decryption. The Secrets file was generated by the Initialize Secrets operation and provides the necessary information that allows the UCWPublic class to retrieve the TSS Node ID and TSS key share groups.