Official implementation of the YeeCo Branch Chain (Layer 2)
YeeCo is a permissionless, secure, high performance and scalable public blockchain platform powered by full sharding technology on PoW consensus.
Yeebranch is designed as layer 2 of YeeCo.
Layer | Name | Consensus | Transaction types |
---|---|---|---|
1 | Yeeroot chain |
|
|
2 | Yeebranch chain | Optional
|
|
- Rust
curl https://sh.rustup.rs -sSf | sh
- Openssl
- Rust nightly
rustup toolchain add nightly
- rust nightly wasm
rustup target add wasm32-unknown-unknown rustup target add wasm32-unknown-unknown --toolchain nightly
- wasm-gc
cargo install wasm-gc
- Rust components: clippy rls docs src rustfmt
rustup component list # list all the components installed rustup component add <name> # install component
Yeebranch runs a light node of yeeroot chain internally, so it needs the following resources of the yeeroot chain:
-
Runtime WASM
After you build yeeroot project, You will get the
Runtime WASM
on<yeeroot_project_base_dir>/runtime/wasm/target/wasm32-unknown-unknown/release/yee_runtime_wasm.compact.wasm
-
Chain spec
Run
build-spec
to export chain spec file:$ yee build-spec --dev > root_chain_sepc.json
$ cd <project_base_dir>/runtime/wasm
$ sh build.sh
$ cd <project_base_dir>
$ WASM_CODE_PATH=<yeeroot_project_base_dir>/runtime/wasm/target/wasm32-unknown-unknown/release/yee_runtime_wasm.compact.wasm cargo build
-
Deploy yeeroot chain sepc
$ mkdir -p <yeebranch_run_base_path>/conf $ cp root_chain_sepc.json <yeebranch_run_base_path>/conf
<yeebranch_run_base_path> is:
~/Library/Application\ Support/YeeBranch/
or the one you specify by./yee-branch --base-path=<yeebranch_run_base_path>
, -
Start the node
$ ./yee-branch --base-path=<yeebranch_run_base_path> --dev --alice
Feel free to dive in! Open an issue.