You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+8
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,8 @@ The resolution protocol adheres to the following three steps:
52
52
3.**Target Network Connection**:
53
53
The client uses the connection details from the TLD network to establish a direct connection with the **target network**. Once resolved, the connection details can be cached locally for future use, improving resolution efficiency for subsequent queries.
54
54
55
+
The implementation of the resolution protocol can be found in [dns_client](./dns_client/dns/resolver.js#L49-L61) and [dns_client_golang](./dns_client_golang/substrate/connect.go#L73-L94).
@@ -69,6 +71,8 @@ The registration protocol can be described as follows:
69
71
70
72
This protocol ensures that domains are registered on a **first-come, first-served** basis in a decentralized environment without relying on centralized registrars, incurring only the transaction fees for the registration process.
71
73
74
+
The implementation of the registration extrinsic can be found in the [tld-pallet](./polkadot-sdk-solochain-template/pallets/tld/src/lib.rs#L193-L220), and the implementation of the registration through the dns client can be found in [dns_client](./dns_client/dns/registry.js#L96-L120).
75
+
72
76
### Domain Transfer Protocol
73
77
74
78

@@ -87,6 +91,8 @@ The domain transfer protocol is as follows:
87
91
4.**Optional Cancellation by Initiator**:
88
92
If the initiator (BC1 Node) decides to cancel the transfer **before the recipient accepts**, it can submit a cancellation request to the TLD network. This step will remove the pending transfer and halt the process.
89
93
94
+
The implementation of the domain revocation extrinsic can be found in the [tld-pallet](./polkadot-sdk-solochain-template/pallets/tld/src/lib.rs#L269-L323).
@@ -105,6 +111,8 @@ The domain revocation protocol and its conditions are described as follows:
105
111
4.**Asset Removal on Root Network**:
106
112
If the root network detects a revoked domain, it initiates the removal of all associated asset references linked to the domain. This is done through an asset removal transaction to maintain data consistency across the architecture.
107
113
114
+
The implementation of the domain revocation extrinsic can be found in the [tld-pallet](./polkadot-sdk-solochain-template/pallets/tld/src/lib.rs#L247-L267).
115
+
108
116
## Testing
109
117
110
118
Each component has its own set of unit tests, and some contain guides for manual testing as well. The testing guides for each component can be found in the following files:
0 commit comments