mock

package
v0.23.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key added in v0.19.0

type Key struct {
	Name       string
	Address    crypto.Address
	PublicKey  []byte
	PrivateKey []byte
}

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

func (key *Key) MonaxKeysJSON() string

Returns JSON string compatible with that stored by monax-keys

func (*Key) Sign added in v0.19.0

func (key *Key) Sign(message []byte) (crypto.Signature, error)

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) Generate added in v0.19.0

func (mkc *KeyClient) Generate(keyName string, curve crypto.CurveType) (crypto.Address, error)

func (*KeyClient) HealthCheck added in v0.19.0

func (mkc *KeyClient) HealthCheck() error

func (*KeyClient) Keys added in v0.19.0

func (mkc *KeyClient) Keys() []*Key

func (*KeyClient) NewKey added in v0.19.0

func (mkc *KeyClient) NewKey(name string) crypto.Address

func (*KeyClient) PublicKey added in v0.19.0

func (mkc *KeyClient) PublicKey(address crypto.Address) (crypto.PublicKey, error)

func (*KeyClient) Sign added in v0.19.0

func (mkc *KeyClient) Sign(signAddress crypto.Address, message []byte) (crypto.Signature, error)

type PrivateKeyplainKeyJSON added in v0.19.0

type PrivateKeyplainKeyJSON struct {
	Plain []byte
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL