keyutil

package
v0.0.0-...-84d53aa Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: GPL-3.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddrKeyPair

type AddrKeyPair struct {
	Addr    common.Address
	PrivKey signature.PrivateKey
}

AddrKeyPair contains address and private key.

func NewAddrKeyPair

func NewAddrKeyPair(t *testing.T) *AddrKeyPair

NewAddrKeyPair creates a pair of address and private key.

func NewAddrKeyPairFromPrivKey

func NewAddrKeyPairFromPrivKey(t *testing.T, privKey signature.PrivateKey) *AddrKeyPair

NewAddrKeyPairFromPrivKey creates a pair from private key.

func (*AddrKeyPair) Address

func (pair *AddrKeyPair) Address() string

Address returns address.

func (*AddrKeyPair) PrivateKey

func (pair *AddrKeyPair) PrivateKey() string

PrivateKey returns private key.

func (*AddrKeyPair) String

func (pair *AddrKeyPair) String() string

String describes AddrKeyPair in string format.

type AddrKeyPairs

type AddrKeyPairs []*AddrKeyPair

AddrKeyPairs is a slice of AddrKeyPair structure.

func (AddrKeyPairs) FindPair

func (pairs AddrKeyPairs) FindPair(addr common.Address) *AddrKeyPair

FindPair finds AddrKeyPair of given address.

func (AddrKeyPairs) FindPrivKey

func (pairs AddrKeyPairs) FindPrivKey(addr common.Address) signature.PrivateKey

FindPrivKey finds private key of given address.

Jump to

Keyboard shortcuts

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