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 🚀
public func importRecoveryKeyShare(jsonRecoverySecrets: String, exportPassphrase: String) throws
let jsonRecoverySecrets = "{}" // exported jsonRecoverySecrets
let exportPassphrase = "wZdcycVuexvmgt7aMkaeA_2_ioCKrw!B"

do {
    try recoverKey?.importRecoveryKeyShare(jsonRecoverySecrets: jsonRecoverySecrets, exportPassphrase: exportPassphrase)
} catch {
    print("Error: \(error)")
}

Parameters

jsonRecoverySecrets
string
The passphrase-encrypted JSON data containing recovery key shares, created by the Export recovery key shares or Export Secrets operations.
exportPassphrase
string
The passphrase used to decrypt the JSON data of recovery key shares.