Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitSerialization ¶
func InitSerialization()
InitSerialization initalizes the private codec encoder/decoder
Types ¶
type NodeClient ¶
type NodeClient struct { svc.BaseService // contains filtered or unexported fields }
NodeClient dials a node responds to signature requests using its privVal.
func NewNodeClient ¶
func NewNodeClient( address string, logger log.Logger, chainID string, privVal types.PrivValidator, dialer net.Dialer, ) *NodeClient
NewNodeClient return a NodeClient that will dial using the given dialer and respond to any signature requests over the connection using the given privVal.
If the connection is broken, the NodeClient will attempt to reconnect.
type PvGuard ¶
type PvGuard struct { PrivValidator types.PrivValidator // contains filtered or unexported fields }
PvGuard guards access to an underlying PrivValidator by using mutexes for each of the PrivValidator interface functions
func (*PvGuard) SignProposal ¶
SignProposal implementes types.PrivValidator
Click to show internal directories.
Click to hide internal directories.