Documentation
¶
Index ¶
- type AccountKey
- type HexAccountKey
- func (a HexAccountKey) HashAlgo() crypto.HashAlgorithm
- func (a HexAccountKey) Index() int
- func (a *HexAccountKey) PrivateKeyHex() string
- func (a HexAccountKey) SigAlgo() crypto.SignatureAlgorithm
- func (a *HexAccountKey) Signer() crypto.Signer
- func (a *HexAccountKey) ToConfig() config.AccountKey
- func (a HexAccountKey) Type() config.KeyType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountKey ¶
type AccountKey interface {
Type() config.KeyType
Index() int
SigAlgo() crypto.SignatureAlgorithm
HashAlgo() crypto.HashAlgorithm
Signer() crypto.Signer
ToConfig() config.AccountKey
}
func NewAccountKey ¶
func NewAccountKey(accountKeyConf config.AccountKey) (AccountKey, error)
type HexAccountKey ¶
type HexAccountKey struct {
// contains filtered or unexported fields
}
func NewHexAccountKeyFromPrivateKey ¶
func NewHexAccountKeyFromPrivateKey( index int, hashAlgo crypto.HashAlgorithm, privateKey crypto.PrivateKey, ) *HexAccountKey
func (HexAccountKey) HashAlgo ¶
func (a HexAccountKey) HashAlgo() crypto.HashAlgorithm
func (*HexAccountKey) PrivateKeyHex ¶
func (a *HexAccountKey) PrivateKeyHex() string
func (HexAccountKey) SigAlgo ¶
func (a HexAccountKey) SigAlgo() crypto.SignatureAlgorithm
func (*HexAccountKey) Signer ¶
func (a *HexAccountKey) Signer() crypto.Signer
func (*HexAccountKey) ToConfig ¶
func (a *HexAccountKey) ToConfig() config.AccountKey
Click to show internal directories.
Click to hide internal directories.