Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Package = amino.RegisterPackage(amino.NewPackage( "github.com/tendermint/classic/crypto/mock", "tm", amino.GetCallersDirname(), ).WithDependencies().WithTypes( PubKeyMock{}, "PubKeyMock", PrivKeyMock{}, "PrivKeyMock", ))
Functions ¶
This section is empty.
Types ¶
type PrivKeyMock ¶
type PrivKeyMock []byte
PrivKeyMock implements crypto.PrivKey.
func GenPrivKey ¶
func GenPrivKey() PrivKeyMock
func (PrivKeyMock) Bytes ¶
func (privKey PrivKeyMock) Bytes() []byte
Bytes marshals the privkey using amino encoding w/ type information.
func (PrivKeyMock) PubKey ¶
func (privKey PrivKeyMock) PubKey() crypto.PubKey
type PubKeyMock ¶
type PubKeyMock []byte
func (PubKeyMock) Address ¶
func (pubKey PubKeyMock) Address() crypto.Address
Returns address w/ pubkey as suffix (for debugging).
func (PubKeyMock) Bytes ¶
func (pubKey PubKeyMock) Bytes() []byte
Bytes marshals the PubKey using amino encoding.
func (PubKeyMock) String ¶
func (pubKey PubKeyMock) String() string
func (PubKeyMock) VerifyBytes ¶
func (pubKey PubKeyMock) VerifyBytes(msg []byte, sig []byte) bool
Click to show internal directories.
Click to hide internal directories.