-
Notifications
You must be signed in to change notification settings - Fork 0
PublicLedger
A key concept of most crypto-currencies is to have the ledger with all values and transactions public and visible for everyone. All the data is stored redundantly on multiple computer nodes around the world. The public ledger of ThankToken is composed of the following data:
-
core data with ThankTokens and their transactions
-
identity directory with the identities
-
ThankMessages that are only transient for communication to the nodes of the ledger
This public ledger data of ThankToken is partitioned by version, algorithm, currency, age, and location. Therefore, you can contribute a node e.g. only for your region that you want to support. This massively reduces the size of the data you need to process and makes the system more scaleable.
A node that only wants to participate for data from the region 9F2C4M
(Frankfurt, Germany), for tokens of version v002
or higher with the algorithm c22519
or s256k1
that have been created after 31th of January 2020 would use to following configuration:
{
"location":{"val":"9F2C4M"},
"version":{"min":"v2"},
"algorithm":{"list":["c25519","s256k1"]}
"timestamp":{"min":"20200131"}
}
The API of the ThankToken nodes has the following scheme:
https://«hostname»/«http-verb»/«version»/«algorithm»/«location»/«entity»/«details»
Segment | Description | Example |
---|---|---|
«hostname» |
DNS name or IP of the server |
|
«http-verb» |
|
|
«version» |
The ThankVersion |
|
«algorithm» |
The ThankAlgorithm |
|
«location» |
The path of the ThankLocation, typically |
|
«entity» |
The requested object type. |
|
«detail» |
The further API path |
|
https://«hostname»/GET/«version»/«algorithm»/«location»/token/«currency»/«timestamp»/«object»
Segment | Description | Example |
---|---|---|
«currency» |
The requested currency. |
|
«timestamp» |
The creation timestamp from the token header in the form |
|
This documentation is licensed under the Creative Commons License (Attribution-ShareAlike 4.0 International).