github.com/lazyledger/lazyledger-core@v0.35.0-dev.0.20210613111200-4c651f053571/privval/doc.go (about) 1 /* 2 3 Package privval provides different implementations of the types.PrivValidator. 4 5 FilePV 6 7 FilePV is the simplest implementation and developer default. 8 It uses one file for the private key and another to store state. 9 10 SignerListenerEndpoint 11 12 SignerListenerEndpoint establishes a connection to an external process, 13 like a Key Management Server (KMS), using a socket. 14 SignerListenerEndpoint listens for the external KMS process to dial in. 15 SignerListenerEndpoint takes a listener, which determines the type of connection 16 (ie. encrypted over tcp, or unencrypted over unix). 17 18 SignerDialerEndpoint 19 20 SignerDialerEndpoint is a simple wrapper around a net.Conn. It's used by both IPCVal and TCPVal. 21 22 SignerClient 23 24 SignerClient handles remote validator connections that provide signing services. 25 In production, it's recommended to wrap it with RetrySignerClient to avoid 26 termination in case of temporary errors. 27 28 */ 29 package privval