{"id":31744996,"url":"https://github.com/dotbithq/das-register","last_synced_at":"2025-10-09T12:28:38.909Z","repository":{"id":40636648,"uuid":"451708409","full_name":"dotbitHQ/das-register","owner":"dotbitHQ","description":"The server of registering a .bit","archived":false,"fork":false,"pushed_at":"2025-05-03T06:47:48.000Z","size":9043,"stargazers_count":10,"open_issues_count":0,"forks_count":7,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-05-03T07:38:42.511Z","etag":null,"topics":["docker","golang","iterable","registration","server"],"latest_commit_sha":null,"homepage":"https://app.did.id","language":"Go","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":"2022-01-25T02:31:11.000Z","updated_at":"2025-05-03T06:47:52.000Z","dependencies_parsed_at":"2023-02-19T06:30:52.808Z","dependency_job_id":"eeee69f0-9702-4e84-aded-4519abf0af63","html_url":"https://github.com/dotbitHQ/das-register","commit_stats":{"total_commits":771,"total_committers":6,"mean_commits":128.5,"dds":0.3761348897535668,"last_synced_commit":"a56174045435d1ee8e01ddbf888630dc612848f9"},"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"purl":"pkg:github/dotbitHQ/das-register","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotbitHQ%2Fdas-register","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotbitHQ%2Fdas-register/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotbitHQ%2Fdas-register/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotbitHQ%2Fdas-register/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotbitHQ","download_url":"https://codeload.github.com/dotbitHQ/das-register/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotbitHQ%2Fdas-register/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":["docker","golang","iterable","registration","server"],"created_at":"2025-10-09T12:28:20.874Z","updated_at":"2025-10-09T12:28:38.904Z","avatar_url":"https://github.com/dotbitHQ.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"* [Prerequisites](#prerequisites)\n* [Install \u0026amp; Run](#install--run)\n     * [Source Compile](#source-compile)\n     * [Docker](#docker)\n* [Usage](#usage)\n     * [Register](#register)\n     * [Set Reverse Record](#set-reverse-record)\n     * [Others](#others)\n* [Documents](#documents)\n\n# das-register\n\nBackend of DAS registration service. You can use this repo to build your own DAS registration website (as like https://d.id/bit)\n\n## Prerequisites\n\n* Ubuntu 18.04 or newer\n* MYSQL \u003e= 8.0\n* Redis \u003e= 5.0 (for cache)\n* Elasticsearch \u003e= 7.17 (for Recommended account)\n* GO version \u003e= 1.21.3\n* [ckb-node](https://github.com/nervosnetwork/ckb) (Must be synced to latest height and add `Indexer` module to ckb.toml)\n* [das-database](https://github.com/dotbitHQ/das-database)\n* [unipay](https://github.com/dotbitHQ/unipay) (Payment service used for registered accounts)\n* If the version of the dependency package is too low, please install `gcc-multilib` (apt install gcc-multilib)\n* Machine configuration: 4c8g200G\n\n## Install \u0026 Run\n\n### Source Compile\n```bash\n# get the code\ngit clone https://github.com/dotbitHQ/das-register.git\n\n# edit config/config.yaml before init mysql database\nmysql -uroot -p\n\u003e source das-register/tables/das_register_db.sql;\n\u003e quit;\n\n# compile and run\ncd das-register\nmake register\n./das_register --config=config/config.yaml\n```\n\n### Docker\n* docker \u003e= 20.10\n* docker-compose \u003e= 2.2.2\n\n```bash\nsudo curl -L \"https://github.com/docker/compose/releases/download/v2.2.2/docker-compose-$(uname -s)-$(uname -m)\" -o /usr/local/bin/docker-compose\nsudo chmod +x /usr/local/bin/docker-compose\nsudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose\ndocker-compose up -d\n```\n\n_if you already have a mysql installed, just run_\n```bash\ndocker run -dp 8119-8120:8119-8120 -v $PWD/config/config.yaml:/app/config/config.yaml --name das-register-server admindid/das-register:latest\n```\n\n## Usage\n* You need to run [unipay](https://github.com/dotbitHQ/unipay) before you can run this service\n* You need to run [das-database](https://github.com/dotbitHQ/das-database) before you can run this service\n### Register\n* Use [register API](https://github.com/dotbitHQ/das-register/blob/main/API.md#account-order-register) get the `order ID`\n* The server `unipay` is monitoring the balance change of the receiving address on chain, and wait for user to pay with the `order ID` attached to the payment\n* `unipay` will notify the `das-register` to start the registration process after the user's payment is completed\n* Wait for `das-register` to complete the entire registration process\n\n```\n   +---------+                 +----------------+        +-----------+        +-----------+\n   |   user  |                 |  das_register  |        |  unipay  |         |das-database|\n   +----|----+                 +-------|--------+        +-----|-----+        +-----|-----+\n        |                              |                       |                    |\n        |                              |                       |                    |\n        +----- Get order id ----------\u003e+                       |                    |\n        |                              |                       |                    |\n        |                              |                       |                    |\n        +\u003c---- Return order id --------+                       |                    |\n        |                              |                       |                    |\n        |                              |                       |                    |\nPay for the order                      |                       |                    |\n      on chain                         |                       |                    |\n        |                              |            Update the order status   Parse block data\n        |                              |                       |                    |\n        |                              |                       |                    |\n        |                  Continue the registration           |                    |\n        |                              |                       |                    |\n        |                              |                       |                    |\n        |                              |                       |                    |\n        +                              +                       +                    +\n\n```\n\n### Set Reverse Record\nReverse APIs see  [reverse svr](https://github.com/dotbitHQ/reverse-svr/blob/main/API.md)\n\n### Others\nMore APIs see [API.md](https://github.com/dotbitHQ/das-register/blob/main/API.md)\n\n## Documents\n* [What is DAS](https://github.com/dotbitHQ/did-contracts/blob/docs/docs/en/design/Overview-of-DAS.md)\n* [What is a DAS transaction on CKB](https://github.com/dotbitHQ/did-contracts/blob/docs/docs/en/developer/Transaction-Structure.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotbithq%2Fdas-register","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotbithq%2Fdas-register","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotbithq%2Fdas-register/lists"}