Documentation ¶
Index ¶
- type Key
- type KeyClient
- func (mkc *KeyClient) Generate(keyName string, curve crypto.CurveType) (crypto.Address, error)
- func (mkc *KeyClient) GetAddressForKeyName(keyName string) (crypto.Address, error)
- func (mkc *KeyClient) HealthCheck() error
- func (mkc *KeyClient) Keys() []*Key
- func (mkc *KeyClient) NewKey(name string) crypto.Address
- func (mkc *KeyClient) PublicKey(address crypto.Address) (crypto.PublicKey, error)
- func (mkc *KeyClient) Sign(signAddress crypto.Address, message []byte) (*crypto.Signature, error)
- type PrivateKeyplainKeyJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶ added in v0.19.0
Mock ed25510 key for mock keys client Simple ed25519 key structure for mock purposes with ripemd160 address
func (*Key) MonaxKeysJSON ¶ added in v0.19.0
Returns JSON string compatible with that stored by monax-keys
type KeyClient ¶ added in v0.19.0
type KeyClient struct {
// contains filtered or unexported fields
}
func NewKeyClient ¶ added in v0.19.0
func NewKeyClient(privateAccounts ...*acm.PrivateAccount) *KeyClient
func (*KeyClient) GetAddressForKeyName ¶ added in v0.24.0
func (*KeyClient) HealthCheck ¶ added in v0.19.0
type PrivateKeyplainKeyJSON ¶ added in v0.19.0
type PrivateKeyplainKeyJSON struct {
Plain []byte
}
Click to show internal directories.
Click to hide internal directories.