{"id":31744990,"url":"https://github.com/dotbithq/das-lock","last_synced_at":"2025-10-09T12:28:35.656Z","repository":{"id":244172552,"uuid":"441427522","full_name":"dotbitHQ/das-lock","owner":"dotbitHQ","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-12T20:14:21.000Z","size":2833,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-12T21:24:03.391Z","etag":null,"topics":["c","contract","iterable"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dotbitHQ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2021-12-24T09:45:51.000Z","updated_at":"2025-04-12T20:14:25.000Z","dependencies_parsed_at":"2024-06-13T08:44:06.358Z","dependency_job_id":"b71933b0-2c60-4a6e-9e4d-8bdb56138df8","html_url":"https://github.com/dotbitHQ/das-lock","commit_stats":null,"previous_names":["dotbithq/das-lock"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dotbitHQ/das-lock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotbitHQ%2Fdas-lock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotbitHQ%2Fdas-lock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotbitHQ%2Fdas-lock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotbitHQ%2Fdas-lock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotbitHQ","download_url":"https://codeload.github.com/dotbitHQ/das-lock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotbitHQ%2Fdas-lock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001445,"owners_count":26083078,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["c","contract","iterable"],"created_at":"2025-10-09T12:28:19.917Z","updated_at":"2025-10-09T12:28:35.650Z","avatar_url":"https://github.com/dotbitHQ.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DAS LOCK\n\nA dispatch contract and some dynamic libraries.\n\n## Overview\nThis project is a Rust and C hybrid project that targets the `riscv64-unknown-linux-gnu` platform. It uses Rust for the contract entry (`dispatch`) and C for dynamic libraries (`ckb_sign`, `tron_sign`, etc). The Makefile handles the build process, enabling development through both native and Docker environments. The project also depends on the Nervos Network CKB blockchain protocol and several cryptography libraries.\n\n## Dependencies\n* Docker: [dotbitteam/ckb-dev-all-in-one](https://hub.docker.com/r/dotbitteam/ckb-dev-all-in-one)\n* Rust Toolchain: Targeting riscv64imac-unknown-none-elf\n* C Toolchain: Targeting riscv64-unknown-linux-gnu\n* ckb-binary-patcher: [ckb/ckb-binary-patcher](https://github.com/nervosnetwork/ckb-binary-patcher)\n* libecc: [dotbitteam/libecc](https://github.com/dotbitHQ/libecc-riscv-optimized)\n* secp256k1\n\n\n## Features\n* Build for multiple net types (default is `testnet2`)\n* Optimize and strip binaries\n* Debug and Release build types\n* Control build flags via environment variables\n* Docker environment for isolated building\n* Compile contracts and dynamic libraries with security features\n\n\n## Build Instructions\n1. Clone the repository:\n    ```shell\n    git clone https://github.com/dotbitHQ/das-lock\n   ```\n2. Initialize environment and submodules:\n    ```shell\n    make init-build-env\n    ```\n3. Pull the Docker image:\n    ```shell\n    make pull-docker-image\n    ```\n4. Build all contracts and libraries:\n    ```shell\n    make debug-all-via-docker # or make all-via-docker\n    ```\n5. Copy the generated binaries to the other directory:\n    ```shell\n    cp -r build/debugs/* /path/to/other/directory\n    ```\n\n## Configuration\nThe `Makefile` supports the following environment variables:\n\n* `NET_TYPE`: The type of blockchain network, default is `testnet2`.\n    ```shell\n    make debug-all-via-docker NET_TYPE=mainnet\n    ```\n* `CFLAGS`: Flags for the C compiler.\n\n## License\n[License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotbithq%2Fdas-lock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotbithq%2Fdas-lock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotbithq%2Fdas-lock/lists"}