Documentation
¶
Index ¶
Constants ¶
const Bech32Format = "bech32"
Bech32Format defines the bech32 format for the pubkey converter
const HexFormat = "hex"
HexFormat defines the hex format for the pubkey converter
Variables ¶
This section is empty.
Functions ¶
func NewAccountCreator ¶
func NewAccountCreator() state.AccountFactory
NewAccountCreator creates an account creator
func NewPeerAccountCreator ¶
func NewPeerAccountCreator() state.AccountFactory
NewPeerAccountCreator creates a peer account creator
func NewPubkeyConverter ¶ added in v1.0.104
func NewPubkeyConverter(config config.PubkeyConfig) (state.PubkeyConverter, error)
NewPubkeyConverter will create a new pubkey converter based on the config provided
Types ¶
type AccountCreator ¶
type AccountCreator struct { }
AccountCreator has method to create a new account
func (*AccountCreator) CreateAccount ¶
func (ac *AccountCreator) CreateAccount(address []byte) (state.AccountHandler, error)
CreateAccount calls the new Account creator and returns the result
func (*AccountCreator) IsInterfaceNil ¶
func (ac *AccountCreator) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
type PeerAccountCreator ¶
type PeerAccountCreator struct { }
PeerAccountCreator has a method to create a new peer account
func (*PeerAccountCreator) CreateAccount ¶
func (pac *PeerAccountCreator) CreateAccount(address []byte) (state.AccountHandler, error)
CreateAccount calls the new Account creator and returns the result
func (*PeerAccountCreator) IsInterfaceNil ¶
func (pac *PeerAccountCreator) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface