
Ensure you have Rust installed. Clone the repository and navigate into the project directory:
git clone https://github.com/cube-btc/cube
cd cubeIf you don't already have a secret key, you can optionally generate a new one by running:
cargo run gensecThis will generate a random secret key and print it as an nsec string, which you'll need when running the program.
Cube abides by the NIP-19 format for secret keys, which uses bech32-encoded nsec strings for private keys.
Run the program with the following command:
cargo run <resource-mode> <chain> <kind> <rpc-url> <rpc-user> <rpc-password> <syncinflight?><resource-mode>: Whether to run in pruned or archival mode. Supported values:pruned: For running in pruned mode.archival: For running in archival mode.
<chain>: The Bitcoin network to use. Supported values:signetmainnet
<kind>: The kind of operating entity. Supported values:node: For running a Cube node.engine: For the network operator.
<rpc-url>: The RPC URL of the Bitcoin node.<rpc-user>: The RPC username of the Bitcoin node.<rpc-password>: The RPC password of the Bitcoin node.<syncinflight?>: Whether to sync in-flight unconfirmed executions.true: For syncing in-flight executions.false: For syncing confirmed-executions-only.
cargo run pruned signet node http://127.0.0.1:38332 user password trueThis project is licensed under the CC0 1.0 Universal License. See the LICENSE file for details.