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) 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.
Click to show internal directories.
Click to hide internal directories.