You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> 💡 **Note**: If you plan to use the presign pool worker (see [Presign Pool Worker](#presign-pool-worker) section), you'll need the `event_initiator.key` file (or `event_initiator.key.age` if encrypted) to be available. The private key file is generated alongside the identity file.
172
+
171
173
---
172
174
173
175
## Configure Node Identities
@@ -274,6 +276,49 @@ mpcium start -n node2
274
276
275
277
---
276
278
279
+
## Presign Pool Worker
280
+
281
+
The presign pool worker automatically maintains a pool of presignatures for hot wallets, ensuring they're ready for immediate use.
282
+
283
+
### Setup
284
+
285
+
To enable the presign pool worker on a node:
286
+
287
+
1. **Copy the event initiator private key** to the node directory:
288
+
289
+
If you generated the initiator with encryption:
290
+
```bash
291
+
# Decrypt the key first
292
+
age --decrypt -o event_initiator.key event_initiator.key.age
293
+
```
294
+
295
+
Then copy it to the node directory:
296
+
```bash
297
+
cp event_initiator.key node0/
298
+
```
299
+
300
+
If you generated the initiator without encryption:
301
+
```bash
302
+
cp event_initiator.key node0/
303
+
```
304
+
305
+
2. **Start the node with the `--presign-pool-worker` flag**:
306
+
307
+
```bash
308
+
cd node0
309
+
mpcium start -n node0 --presign-pool-worker
310
+
```
311
+
312
+
> ⚠️ **Important**: Only one node in the cluster should run the presign pool worker. The node running this worker must have the `event_initiator.key` file in its working directory.
313
+
314
+
### How It Works
315
+
316
+
- The worker monitors hot wallet activity and automatically generates presignatures when needed
317
+
- It maintains a pool of presignatures between `MinPoolSize` (default: 5) and `MaxPoolSize` (default: 20)
318
+
- The worker subscribes to hot wallet events and proactively refills the presignature pool
319
+
320
+
---
321
+
277
322
## Production Deployment (High Security)
278
323
279
324
1. Use production-grade **NATS** and **Consul** clusters.
0 commit comments