· 6 years ago · Mar 22, 2019, 10:08 AM
1# Example KMS configuration file
2#
3# Copy this to 'tmkms.toml' and edit for your own purposes
4
5# Information about Tendermint blockchain networks this KMS services
6#
7# - id: The chain ID for this chain
8# - key_format: How this chain handles serialization. Type may be "bech32" or "hex"
9# - state_file (optional): path to where the state of the last signing operation is persisted
10# - state_hook (optional): user-specified command to run on startup to obtain the current height
11# of this chain. The command should output JSON which looks like the following:
12# {"latest_block_height": "347290"}
13[[chain]]
14id = "gaia-13002"
15key_format = { type = "bech32", account_key_prefix = "cosmospub", consensus_key_prefix = "cosmosvalconspub" }
16state_file = "/home/gaia/.kms/cosmoshub_priv_validator_state.json"
17# state_hook = { cmd = ["/path/to/block/height_script", "--example-arg", "cosmoshub"] }
18
19# Validator configuration
20[[validator]]
21addr = "tcp://peerid@127.0.0.1:26658"
22# or addr = "unix:///path/to/socket"
23chain_id = "gaia-13002"
24reconnect = true # true is the default
25secret_key = "/home/gaia/.kms/ledger-gaia.key"
26
27# Provider configuration
28#[[providers.softsign]]
29#chain_ids = ["cosmoshub-1"]
30#path = "path/to/signing.key"
31
32#[[providers.yubihsm]]
33#adapter = { type = "usb" }
34#auth = { key = 1, password = "password" } # Default YubiHSM admin credentials. Change ASAP!
35#keys = [{ chain_ids = ["cosmoshub-1"], key = 1 }]
36#serial_number = "0123456789" # identify serial number of a specific YubiHSM to connect to
37
38[[providers.ledgertm]]
39chain_ids = ["gaia-13002"]