Configure the TSS Node
Currently, you can configure the TSS Node in two methods:- Through the configuration file.
- Through command line arguments, for example,
./tss-node.sh start --ws-url=ws://ws.example.com/ws
.
-
Navigate to the
configs
directory. -
Copy and paste the file
cobo-tss-node-config.yaml.template
. -
Rename the copied file to
cobo-tss-node-config.yaml
. The directory structure will appear as follows: -
Edit the
cobo-tss-node-config.yaml
file:- Open the configuration file in a text editor.
- Review all configuration items in the file. Most items have reasonable default values, so you only need to modify specific items based on your actual needs. You can refer to Configuration items to understand the meaning of key configuration items.
- Modify necessary items according to your environment. For example:
- Set
env
toproduction
for production environment - Configure the
callback
section to set up the TSS Node Callback server - Adjust log configurations as needed
- Set
- Save changes and close the file.
Configuration items
Configuration Item | Description |
---|---|
env | The operating environment. Can be either development or production . For details, see Environments. |
db.path | The path to the database file. You should NEVER modify this file. |
callback | Configurations for the TSS Node callback servers. For details, see Configure TSS Node settings |
log.std.enable | Whether to output terminal log. |
log.std.level | Log level to output to the terminal. Can be one of: error , warn , info , or debug . |
log.file.enable | Whether to save the log file. |
log.file.level | Log level to export to the log file. |
log.file.filename | Path to the log file. |
log.file.maxsize | Maximum size of the log file. |
log.file.max_backups | Number of backups for each log file. |
metrics.job | Global tag for all metrics. Default value is “tss-node”. |
metrics.instance | Global tag to identify the instance number. Default value is 0. |
metrics.name_prefix | Prefix added to all metric names. |
metrics.influxdb.server_addr | The address of your InfluxDB server (e.g., http://example.com:8086). |
metrics.influxdb.database | The name of your InfluxDB database. |
metrics.influxdb.username | Username for InfluxDB authentication. |
metrics.influxdb.password | Password for InfluxDB authentication. |
TSS Node commands
init
info
info group
info group
command to query the information of the corresponding key share holder group.:
Item | Value | Description |
---|---|---|
Group ID | vnJShriEOIzBLaOUxUDs | Unique identifier of a key share holder group. |
Created Time | 2023-01-11 14:36:42.179778596 +0000 UTC | Creation time of the key share holder group. |
Root Extended Public Key | xpub661MyMwAq……Mcet8 | The root extended public key that corresponds to the key shares under the current group. |
ChainCode | 0x098a……9dd9 | The chain code corresponding to the root extended public key, in hexadecimal format. |
Share ID | 121637……483926 | The ID of the key share, in decimal format. |
Share Public Key | 0x0231adf……d2773 | The public key that corresponds to the key share. Default value: compressed public key in hexadecimal format. |
Type | 1 | Type: 1 represents ECDSA, and 2 represents EdDSA. |
Curve | secp256k1 | Supported signature algorithm. |
Threshold | 2 | The minimum number of key shares required for each transaction signing. |
Local Node ID | coboA1B2C3D4 | The Node ID of the locally stored TSS Node. |
Other Node IDs | [coboA1B2C3D4, coboA2B3C4D5] | The Node ID of the TSS Node managed by other parties. |
Participants: | 3 | The total number of key shares, Node IDs, and key share IDs. |
start
version
version
command to query the version of the TSS Node.
status
status
command to query the status of the TSS Node. An example output is as follows:
- Verify the successful installation of Docker Engine and ensure the client has the necessary permissions.
- Check the status of the SGX driver (applicable to an SGX-ready version).
- Confirm the existence of the built container image.
- Inspect containers for any errors.
- Monitor the currently running TSS Node container and display the latest five logs.
log
stop
Feel free to share your feedback to improve our documentation!