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 ¶
Mock ed25510 key for mock keys client Simple ed25519 key structure for mock purposes with ripemd160 address
func (*Key) MonaxKeysJSON ¶
Returns JSON string compatible with that stored by monax-keys
type KeyClient ¶
type KeyClient struct {
// contains filtered or unexported fields
}
func NewKeyClient ¶
func NewKeyClient(privateAccounts ...*acm.PrivateAccount) *KeyClient
func (*KeyClient) GetAddressForKeyName ¶
func (*KeyClient) HealthCheck ¶
type PrivateKeyplainKeyJSON ¶
type PrivateKeyplainKeyJSON struct {
Plain []byte
}
Click to show internal directories.
Click to hide internal directories.