Documentation ¶
Index ¶
- type AiakosPV
- func (a *AiakosPV) GetPubKey() crypto.PubKey
- func (a *AiakosPV) ImportKey(keyID uint16, key []byte) error
- func (a *AiakosPV) OnStart() error
- func (a *AiakosPV) OnStop()
- func (a *AiakosPV) SignProposal(chainID string, proposal *types.Proposal) error
- func (a *AiakosPV) SignVote(chainID string, vote *types.Vote) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AiakosPV ¶
type AiakosPV struct { cmn.BaseService // contains filtered or unexported fields }
AiakosPV implements PrivValidator using Aiakos
func NewAiakosPV ¶
func NewAiakosPV(hsmURL string, signingKeyID uint16, authKeyID uint16, password string, logger log.Logger) (*AiakosPV, error)
NewAiakosPV returns a new instance of AiakosPV
func (*AiakosPV) GetPubKey ¶
GetPubKey returns the public key of the validator. Implements PrivValidator.
func (*AiakosPV) ImportKey ¶
ImportKey imports a Eddsa private key to the specified key slot on the HSM. This fails if the key slot already contains a key. This should be used for testing purposes only. Wrap and import keys in production.
func (*AiakosPV) SignProposal ¶
SignProposal signs a canonical representation of the proposal, along with the chainID. Implements PrivValidator.
Click to show internal directories.
Click to hide internal directories.