{"id":22072539,"url":"https://github.com/broxus/tycho","last_synced_at":"2025-04-07T05:09:19.008Z","repository":{"id":260551440,"uuid":"721612821","full_name":"broxus/tycho","owner":"broxus","description":"Reference implementation of Tycho protocol.","archived":false,"fork":false,"pushed_at":"2025-04-02T14:37:36.000Z","size":15667,"stargazers_count":35,"open_issues_count":34,"forks_count":3,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-02T14:49:44.327Z","etag":null,"topics":["blockchain","hamsternetwork","rust","tychoprotocol"],"latest_commit_sha":null,"homepage":"https://tychoprotocol.com/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/broxus.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"docs/contributing.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-21T12:23:20.000Z","updated_at":"2025-04-01T20:23:36.000Z","dependencies_parsed_at":"2024-11-01T01:18:25.702Z","dependency_job_id":"45cc1980-ca80-4122-a704-3390f08ec67b","html_url":"https://github.com/broxus/tycho","commit_stats":null,"previous_names":["broxus/tycho"],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broxus%2Ftycho","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broxus%2Ftycho/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broxus%2Ftycho/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broxus%2Ftycho/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/broxus","download_url":"https://codeload.github.com/broxus/tycho/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247595334,"owners_count":20963943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","hamsternetwork","rust","tychoprotocol"],"created_at":"2024-11-30T21:13:37.026Z","updated_at":"2025-04-07T05:09:18.985Z","avatar_url":"https://github.com/broxus.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Tycho\n\nReference implementation of Tycho protocol.\n\n## About\n\nTycho is a high-performance protocol designed for building L1/L2 TVM blockchain\nnetworks. By utilizing DAG (Directed Acyclic Graph) for consensus and TVM for\nparallel execution, Tycho works with high throughput and low latency.\n\n- **[Testnet Validators Guide](./docs/validator.md)**\n- **[CLI Reference](./docs/cli-reference.md)**\n\n## Development\n\n- Install Rust:\n  ```bash\n  curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh\n  ```\n- Install dependencies:\n  ```bash\n  sudo apt install build-essential git libssl-dev zlib1g-dev pkg-config clang jq\n  ```\n- Install tools:\n  ```bash\n  cargo install lychee cargo-shear cargo-nextest\n  ```\n- Test CI locally:\n  ```bash\n  just ci\n  ```\n\n## To run prebuilt tests\n\ncheck [this](docs/testing.md) guide.\n\n## Running a Local Network\n\n```bash\n# Generate zerostate config stub (with optional --force flag):\njust init_zerostate_config\n# Generate node config sub (with optional --force flag):\njust init_node_config\n# Generate a local network of 3 nodes (with optional --force flag):\njust gen_network 3\n\n# Start nodes in separate terminals or spawn them with `\u0026`:\njust node 1\njust node 2\njust node 3\n```\n\n\u003e [!NOTE]\n\u003e By default the `dev` profile is used. Use this env to specify a different\n\u003e profile:\n\u003e ```bash\n\u003e export TYCHO_BUILD_PROFILE=release\n\u003e ```\n\n## Prebuilt RocksDB\n\nBy default, we compile RocksDB (a C++ project) from source during the build.\nBy linking to a prebuilt copy of RocksDB this work can be avoided\nentirely. This is a huge win, especially if you clean the `./target` directory\nfrequently.\n\nTo use a prebuilt RocksDB, set the `ROCKSDB_LIB_DIR` environment variable to\na location containing `librocksdb.a`:\n\n```bash\nexport ROCKSDB_LIB_DIR=/usr/lib/\ncargo build -p tycho-cli\n```\n\nNote, that the system must provide a recent version of the library which,\ndepending on which operating system you're using, may require installing\npackages\nfrom a testing branch. Or you could build the RocksDB from source manually:\n\n```bash\n# Install dependencies\nsudo apt install clang lld libjemalloc-dev libgflags-dev libzstd-dev liblz4-dev\n\n# Clone the repo\ncd /path/to\ngit clone https://github.com/facebook/rocksdb.git\ncd rocksdb\ngit checkout v9.7.4\n\n# Build the library\nmkdir -p build \u0026\u0026 cd ./build\nexport CC=/usr/bin/clang\nexport CXX=/usr/bin/clang++\ncmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release \\\n  -DWITH_LZ4=ON -DWITH_ZSTD=ON -DWITH_JEMALLOC=ON ..\nmake -j16 rocksdb\n\n# Set env somewhere\nexport ROCKSDB_LIB_DIR=/path/to/rocksdb/build\n```\n\n## Contributing\n\nWe welcome contributions to the project! If you notice any issues or errors,\nfeel free to open an issue or submit a pull request.\n\n## License\n\nLicensed under either of\n\n* Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE)\n  or \u003chttps://www.apache.org/licenses/LICENSE-2.0\u003e)\n* MIT license ([LICENSE-MIT](LICENSE-MIT)\n  or \u003chttps://opensource.org/licenses/MIT\u003e)\n\nat your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbroxus%2Ftycho","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbroxus%2Ftycho","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbroxus%2Ftycho/lists"}