Skip to main content
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.