Backend of DAS registration service. You can use this repo to build your own DAS registration website, just like https://da.systems do
- Ubuntu 18.04 or newer
- MYSQL >= 8.0
- Redis >= 5.0 (for cache)
- GO version >= 1.15.0
- CKB Node
- CKB Indexer
- das-database
- das-pay
# get the code
git clone https://github.com/DeAccountSystems/das-register.git
# edit config/config.yaml before init mysql database
mysql -uroot -p
> source das-register/tables/das_register_db.sql;
> quit;
# compile and run
cd das-register
make register
./das_register --config=conf/config.yaml
You need to run das-pay before you can run this service
- Use register API get the
order ID
- The server
das-pay
is monitoring the balance change of the receiving address on chain, and wait for user to pay with theorder ID
attached to the payment Das-pay
will notify thedas-register
to start the registration process after the user's payment is completed- Wait for
das-register
to complete the entire registration process
+---------+ +----------------+ +-----------+
| user | | das_register | | das pay |
+----+----+ +-------+--------+ +-----+-----+
| | |
| | |
+----- Get order id ---------->+ |
| | |
| | |
+<---- Return order id --------+ |
| | |
| | |
Pay for the order | |
on chain | |
| | Update the order status
| | |
| | |
| Continue the registration |
| | |
| | |
| | |
+ + +
Das-register
will use user's das balance to set reverse record via API reverse declare
More APIs see API.md