Skip to content

Commit 10ea069

Browse files
Merge branch 'main' into 2786-e2e-test-foreign-provider-path-auth-substitution
2 parents 706ab7d + 52b0c01 commit 10ea069

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

docs/node-migration-guide.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,15 @@ export BACKUP_ENCRYPTION_KEY=$(cat $MPC_HOME_DIR/backup_encryption_key.hex)
149149

150150
Copy this key and set it as the `BACKUP_ENCRYPTION_KEY` environment variable for the backup-cli when running `get-keyshares`.
151151

152+
**TEE (TDX/dstack) nodes:** `$MPC_HOME_DIR` (`/data`) is inside the CVM's encrypted disk, so you cannot read the auto-generated `backup_encryption_key.hex`. Provide the key yourself instead: set it in the `[mpc_node_config.secrets]` block of the node's `user-config.toml` (see [Prepare MPC Node Configuration](https://github.com/near/mpc/blob/main/docs/running-an-mpc-node-in-tdx-external-guide.md#prepare-mpc-node-configuration) in the operator guide) and keep a copy outside the CVM:
153+
154+
```toml
155+
[mpc_node_config.secrets]
156+
backup_encryption_key_hex = "<your 32-byte hex key>"
157+
```
158+
159+
This is the key you pass to the backup-cli — if the node is already deployed, it is the value you set in `backup_encryption_key_hex` at deploy time. The node reads it from the config on every start, so you can add or change it on a running node via `update-user-config` + restart.
160+
152161

153162

154163
**Note on key differences:**
@@ -167,10 +176,12 @@ Now backup the keyshares from your currently running node.
167176
### Obtain Node Information
168177

169178
You'll need:
170-
- **MPC node address**: The host where your node is running (e.g., `node.example.com`)
171-
- **MPC node P2P public key**: The Ed25519 public key used for P2P communication (found in your node's startup logs or configuration)
179+
- **MPC node address**: The host where your node is running (e.g., `node.example.com`). Available from the contract — your participant entry's `url` in the `state` view.
180+
- **MPC node P2P public key**: The Ed25519 public key used for P2P communication. Available from the contract (your participant's `tls_public_key` in `state` / `get_tee_accounts`), or from the node's public-data endpoint:
172181

173-
Both those values can be found on the contract.
182+
```bash
183+
export P2P_KEY=$(curl -s http://<IP>:8080/public_data | jq -r ".near_p2p_public_key")
184+
```
174185

175186
### Get Contract State
176187

0 commit comments

Comments
 (0)