mosaicnetworks / babble

Distributed Consensus Middleware
MIT License
478 stars 95 forks source link

Force babble.initKey to error when no priv_key or wrong permissions #121

Closed arrivets closed 5 years ago

arrivets commented 5 years ago

The initKey function used to automatically generate a new key when a priv_key file was not found. We decided that it would be better to avoid this behaviour, and expect the user to generate a key before running Babble; like ssh. In fact we also took inspiration from ssh to check that the key file has user-only permissions.