Parameters
string
The passphrase-encrypted JSON data containing recovery key shares, created by the Export recovery key shares or Export Secrets operations.
string
The passphrase used to decrypt the JSON data of recovery key shares.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
let jsonRecoverySecrets = "{}" // exported jsonRecoverySecrets
let exportPassphrase = "wZdcycVuexvmgt7aMkaeA_2_ioCKrw!B"
do {
try recoverKey?.importRecoveryKeyShare(jsonRecoverySecrets: jsonRecoverySecrets, exportPassphrase: exportPassphrase)
} catch {
print("Error: \(error)")
}
const String jsonRecoverySecrets = "{}"; // exported jsonRecoverySecrets
const String exportPassphrase = "wZdcycVuexvmgt7aMkaeA_2_ioCKrw!B";
try {
await recoverKey?.importRecoveryKeyShare(
jsonRecoverySecrets: jsonRecoverySecrets,
exportPassphrase: exportPassphrase
);
} catch (error) {
print("Error: $error");
}
This operation imports and decrypts the JSON data of recovery key shares, created by the Export recovery key shares or Export Secrets operations. To meet the threshold requirement of the Threshold Signature Scheme (TSS) specified in your User-Controlled Wallets, you must call this operation the required number of times to import enough recovery key shares.
public func importRecoveryKeyShare(jsonRecoverySecrets: String, exportPassphrase: String) throws
Future<void> importRecoveryKeyShare(String jsonRecoverySecrets, String exportPassphrase) async
let jsonRecoverySecrets = "{}" // exported jsonRecoverySecrets
let exportPassphrase = "wZdcycVuexvmgt7aMkaeA_2_ioCKrw!B"
do {
try recoverKey?.importRecoveryKeyShare(jsonRecoverySecrets: jsonRecoverySecrets, exportPassphrase: exportPassphrase)
} catch {
print("Error: \(error)")
}
const String jsonRecoverySecrets = "{}"; // exported jsonRecoverySecrets
const String exportPassphrase = "wZdcycVuexvmgt7aMkaeA_2_ioCKrw!B";
try {
await recoverKey?.importRecoveryKeyShare(
jsonRecoverySecrets: jsonRecoverySecrets,
exportPassphrase: exportPassphrase
);
} catch (error) {
print("Error: $error");
}
Was this page helpful?