Arcium LogoArcium TS SDK Docs

submitKeyRecoveryShare

submitKeyRecoveryShare(provider, originalMxeProgramId, backupMxeProgramId, nodeOffset, peerIndex, share): Promise<string>

Submits 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
providerAnchorProviderThe Anchor provider to use for transactions.
originalMxeProgramIdPublicKeyThe public key of the original MXE program being recovered.
backupMxeProgramIdPublicKeyThe public key of the backup MXE program.
nodeOffsetnumberThe ARX node offset of the recovery peer.
peerIndexnumberThe index of this peer in the recovery peers list.
shareUint8Array<ArrayBufferLike>[] | number[][]The re-encrypted share: 5 field elements of 32 bytes each (160 bytes total).

Returns

Promise<string>

The transaction signature.

On this page