@arcium-hq/clientFunctions
submitKeyRecoveryShare
submitKeyRecoveryShare(
provider,originalMxeProgramId,backupMxeProgramId,peerOffset,peerIndex,share,confirmOptions?):Promise<string>
Submit a re-encrypted key recovery share from a recovery peer. Recovery peers must decrypt shares using their x25519 private key and re-encrypt them for the backup MXE before submission.
Parameters
| Parameter | Type | Description |
|---|---|---|
provider | AnchorProvider | Anchor provider to use for transactions. |
originalMxeProgramId | PublicKey | Public key of the original MXE program being recovered. |
backupMxeProgramId | PublicKey | Public key of the backup MXE program. |
peerOffset | number | Offset of the recovery peer. |
peerIndex | number | Index of this peer in the recovery peers list. |
share | Uint8Array<ArrayBufferLike>[] | number[][] | Re-encrypted share: 5 field elements of 32 bytes each (160 bytes total). |
confirmOptions? | ConfirmOptions | Transaction confirmation options. |
Returns
Promise<string>
Transaction signature.