2020-08-19 19:26:48 +00:00
|
|
|
package node
|
|
|
|
|
|
|
|
type Config struct {
|
|
|
|
EthPrivateKey string `toml:"ethPrivateKey"`
|
|
|
|
ListenAddress string `toml:"listenAddress"`
|
|
|
|
ListenPort string `toml:"listenPort"`
|
|
|
|
BootstrapAddress string `toml:"bootstrapAddress"`
|
|
|
|
RendezvousString string `toml:"rendezvousString"`
|
|
|
|
PubSub PubSubConfig `toml:"pubSub"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type PubSubConfig struct {
|
|
|
|
ProtocolID string `toml:"protocolID"`
|
|
|
|
}
|
|
|
|
|
2020-10-20 18:58:24 +00:00
|
|
|
type EthereumConfig struct {
|
2020-08-19 19:26:48 +00:00
|
|
|
PrivateKey string `toml:"privateKey"`
|
|
|
|
GatewayAddress string `toml:"gatewayAddress"`
|
|
|
|
}
|