You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.7 KiB

  1. # ADR 008: SocketPV
  2. Tendermint node's should support only two in-process PrivValidator
  3. implementations:
  4. - FilePV uses an unencrypted private key in a "priv_validator.json" file - no
  5. configuration required (just `tendermint init validator`).
  6. - TCPVal and IPCVal use TCP and Unix sockets respectively to send signing requests
  7. to another process - the user is responsible for starting that process themselves.
  8. Both TCPVal and IPCVal addresses can be provided via flags at the command line
  9. or in the configuration file; TCPVal addresses must be of the form
  10. `tcp://<ip_address>:<port>` and IPCVal addresses `unix:///path/to/file.sock` -
  11. doing so will cause Tendermint to ignore any private validator files.
  12. TCPVal will listen on the given address for incoming connections from an external
  13. private validator process. It will halt any operation until at least one external
  14. process successfully connected.
  15. The external priv_validator process will dial the address to connect to
  16. Tendermint, and then Tendermint will send requests on the ensuing connection to
  17. sign votes and proposals. Thus the external process initiates the connection,
  18. but the Tendermint process makes all requests. In a later stage we're going to
  19. support multiple validators for fault tolerance. To prevent double signing they
  20. need to be synced, which is deferred to an external solution (see #1185).
  21. Conversely, IPCVal will make an outbound connection to an existing socket opened
  22. by the external validator process.
  23. In addition, Tendermint will provide implementations that can be run in that
  24. external process. These include:
  25. - FilePV will encrypt the private key, and the user must enter password to
  26. decrypt key when process is started.
  27. - LedgerPV uses a Ledger Nano S to handle all signing.