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
| Parameter | Type | Description |
|---|---|---|
provider | AnchorProvider | The Anchor provider to use for transactions. |
clusterOffset | number | The cluster offset to associate with the MXE. |
mxeProgramId | PublicKey | The public key to use as the MXE program ID. |
recoveryPeers | number[] | Array of 100 node offsets for recovery peers (0 for unused slots). |
keygenOffset | BN | The computation offset for the keygen computation. |
keyRecoveryInitOffset | BN | The computation offset for the key_recovery_init computation. |
mxeAuthority? | PublicKey | Optional authority for the MXE (defaults to provider.publicKey). |
Returns
Promise<string>
The transaction signature.