Arcium LogoArcium TS SDK Docs

initMxePart2

initMxePart2(provider, clusterOffset, mxeProgramId, recoveryPeers, keygenOffset, keyRecoveryInitOffset, mxeAuthority?): Promise<string>

Finishes MXE initialization (part 2). Reallocates recovery_cluster_acc to full size, initializes recovery_peers, and adds the keygen computation to the mempool.

Parameters

ParameterTypeDescription
providerAnchorProviderThe Anchor provider to use for transactions.
clusterOffsetnumberThe cluster offset to associate with the MXE.
mxeProgramIdPublicKeyThe public key to use as the MXE program ID.
recoveryPeersnumber[]Array of 100 node offsets for recovery peers (0 for unused slots).
keygenOffsetBNThe computation offset for the keygen computation.
keyRecoveryInitOffsetBNThe computation offset for the key_recovery_init computation.
mxeAuthority?PublicKeyOptional authority for the MXE (defaults to provider.publicKey).

Returns

Promise<string>

The transaction signature.

On this page