mock

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2018 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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