tmkms icon indicating copy to clipboard operation
tmkms copied to clipboard

Multi-tentant config example

Open zmanian opened this issue 6 years ago • 1 comments

Provide example of a config file with using multiple chain instances on the same kms host.

zmanian avatar Apr 21 '19 18:04 zmanian

Here is my config:

[[chain]]
id = "gaia-13003"
key_format = { type = "bech32", account_key_prefix = "cosmospub", consensus_key_prefix = "cosmosvalconspub" }

[[validator]]
addr = "tcp://127.0.0.1:26659" # or "unix:///path/to/socket"
chain_id = "gaia-13003"
reconnect = true # true is the default
secret_key = "/data/test.key"

[[chain]]
id = "kava-testnet-2000"
key_format = { type = "bech32", account_key_prefix = "kavapub", consensus_key_prefix = "kavavalconspub" }

[[validator]]
addr = "tcp://kava-test.ping.pub:26659" # or "unix:///path/to/socket"
chain_id = "kava-testnet-2000"
secret_key = "/data/test.key"

[[chain]]
id = "remote2"
key_format = { type = "bech32", account_key_prefix = "cosmospub", consensus_key_prefix = "cosmosvalconspub" }

[[validator]]
addr = "tcp://47.102.125.104:26659" # or "unix:///path/to/socket"
chain_id = "remote2"
#reconnect = true # true is the default
secret_key = "/data/test.key"

[[providers.yubihsm]]
adapter = { type = "usb" }
auth = { key = 4, password = "kms-validator-password-1y58g2z0dln2j86gsfmx7fcfwhys8uwyg" }
keys = [{chain_ids = ["gaia-13003","remote2"], key = 2},{chain_ids = ["kava-testnet-2000"], key = 11}]

liangping avatar Aug 02 '19 01:08 liangping