The serial number database holds unused serial numbers. The token database holds used tokens. The token server turns serial numbers into tokens, removing the serial number from the Serial Number DB. The nym server spends tokens in order to create and extend the life time of nyms, storing the spent token in the Spent Token Database.
Access to these databases is currently inside utilities which access them. This is Bad, we need accessor libraries. These should be created in frtoken. Currently utilities which access these live in frtoken/test, the servers have their own directories.
The token library is accessible both remotely and locally, the serial number library is only used locally.
(NB: "xxx" is either "local" or "remote")
Understanding database configuration.parameter | value |
---|---|
@zkfr_SpentTokenDB_Xxx@ | /freedom/etc/db/spenttokendb.xxx.conf |
@zkfr_SpentTokenDB_Server@ | pkdb.test.freedom.net:51136 |
@zkfr_SpentTokenDB_AuthKey@ | --- |
parameter | value |
---|---|
@zkfr_SerialNumberDB_Local@ | /freedom/etc/db/serialnumberdb.local.conf |