Documentation ¶
Index ¶
- type Context
- func (n Context) Address() keys.Address
- func (n Context) PrivKey() keys.PrivateKey
- func (n Context) PrivVal() keys.PrivateKey
- func (n Context) PubKey() keys.PublicKey
- func (n Context) ValidatorAddress() keys.Address
- func (n Context) ValidatorBTCScriptAddress(params *chaincfg.Params) (keys.Address, error)
- func (n Context) ValidatorECDSAPrivateKey() *keys.PrivateKey
- func (n Context) ValidatorECDSAPubKey() keys.PublicKey
- func (n Context) ValidatorPubKey() keys.PublicKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { NodeName string // contains filtered or unexported fields }
Context holds key information about the running node. This is generally used to to access its address and perform signing functions
func NewNodeContext ¶
NewNodeContext returns a Context by reading from the specified configuration files. This function WILL exit if the private validator key files (priv_validator_state, and priv_validator_key) don't exist in the configured location
func (Context) PrivVal ¶
func (n Context) PrivVal() keys.PrivateKey
PrivVal returns the private validator file
func (Context) ValidatorAddress ¶
func (Context) ValidatorBTCScriptAddress ¶ added in v0.13.0
func (Context) ValidatorECDSAPrivateKey ¶ added in v0.13.0
func (n Context) ValidatorECDSAPrivateKey() *keys.PrivateKey
func (Context) ValidatorECDSAPubKey ¶ added in v0.12.0
func (Context) ValidatorPubKey ¶
Click to show internal directories.
Click to hide internal directories.