mock

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockKey added in v0.16.1

type MockKey struct {
	Address    []byte
	PrivateKey [ed25519.PrivateKeySize]byte
	PublicKey  []byte
}

Simple ed25519 key structure for mock purposes with ripemd160 address

func (*MockKey) Sign added in v0.16.1

func (mockKey *MockKey) Sign(message []byte) ([]byte, error)

type MockKeyClient

type MockKeyClient struct {
	// contains filtered or unexported fields
}

func NewMockKeyClient

func NewMockKeyClient() *MockKeyClient

func (*MockKeyClient) NewKey

func (mock *MockKeyClient) NewKey() (address []byte)

func (*MockKeyClient) PublicKey

func (mock *MockKeyClient) PublicKey(address []byte) (publicKey []byte, err error)

func (*MockKeyClient) Sign

func (mock *MockKeyClient) Sign(signBytesString string, signAddress []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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