Arcium LogoArcium TS SDK Docs

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

ParameterTypeDescription
providerAnchorProviderAnchor provider to use for transactions.
originalMxeProgramIdPublicKeyPublic key of the original MXE program being recovered.
backupMxeProgramIdPublicKeyPublic key of the backup MXE program.
peerOffsetnumberOffset of the recovery peer.
peerIndexnumberIndex of this peer in the recovery peers list.
shareUint8Array<ArrayBufferLike>[] | number[][]Re-encrypted share: 5 field elements of 32 bytes each (160 bytes total).
confirmOptions?ConfirmOptionsTransaction confirmation options.

Returns

Promise<string>

Transaction signature.

On this page