| Crates.io | commonware-reshare |
| lib.rs | commonware-reshare |
| version | 0.0.65 |
| created_at | 2025-10-31 01:59:15.54947+00 |
| updated_at | 2026-01-14 01:30:03.60922+00 |
| description | Reshare a threshold secret over an epoched log. |
| homepage | https://commonware.xyz |
| repository | https://github.com/commonwarexyz/monorepo/tree/main/examples/reshare |
| max_upload_size | |
| id | 1909268 |
| size | 253,519 |
Reshare a threshold secret over an epoched log.
To run this example, you must first install Rust and mprocs.
First, set up the network participants:
# Default configuration (4 active participants, 2 inactive participants)
cargo run --bin commonware-reshare setup
# With configuration:
cargo run --bin commonware-reshare setup [--num-peers <n>] [--num-bootstrappers <n>] [--datadir <path>] [--base-port <port>]
Then, run the mprocs command emitted by the setup procedure to start all participants simultaneously.
First, set up the network participants:
# Default configuration (4 active participants, 2 inactive participants)
cargo run --bin commonware-reshare setup --with-dkg
# With configuration:
cargo run --bin commonware-reshare setup --with-dkg [--num-peers <n>] [--num-bootstrappers <n>] [--datadir <path>] [--base-port <port>]
Then, run the first mprocs command emitted by the setup procedure to start all participants simultaneously, kicking off the initial DKG.
Once the DKG is complete amongst all participants, shut down the participants and run the second mprocs command emitted by the setup procedure
to start all participants again, this time with the distributed threshold secret established.
If you see an error like unable to append to journal: Runtime(BlobOpenFailed("engine-consensus", "00000000000000ee", Os { code: 24, kind: Uncategorized, message: "Too many open files" })),
you may need to increase the maximum number of open files. You can do this by running:
ulimit -n 65536
MacOS defaults to 256 open files, which is too low for the default settings (where 1 journal file is maintained per recent view).