Skip to content

cube-btc/cube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

826 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warning

The feds are after me and the Cube project. My business partner, Enzo Caruso, turned out to be a fed, and he took over the Telegram community channel from me. They will likely take down this repository soon because I refuse to bow.

Enzo Caruso

Cube Cube is a four-elemental, fire-sampled virtual execution environment for Bitcoin.

Installation

Ensure you have Rust installed. Clone the repository and navigate into the project directory:

git clone https://github.com/cube-btc/cube
cd cube

Generating a Secret Key

If you don't already have a secret key, you can optionally generate a new one by running:

cargo run gensec

This 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.

Usage

Run the program with the following command:

cargo run <resource-mode> <chain> <kind> <rpc-url> <rpc-user> <rpc-password> <syncinflight?>

Parameters:

  • <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:
    • signet
    • mainnet
  • <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.

Example:

cargo run pruned signet node http://127.0.0.1:38332 user password true

License

This project is licensed under the CC0 1.0 Universal License. See the LICENSE file for details.

About

Cube is a four-elemental, fire-sampled virtual execution environment for Bitcoin.

Resources

License

Stars

36 stars

Watchers

3 watching

Forks

Packages

 
 
 

Contributors

Languages