mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-20 15:04:22 +00:00
proto: move keys to oneof (#4983)
This commit is contained in:
@@ -160,6 +160,7 @@ func (privkey testPriv) Bytes() []byte {
|
||||
}
|
||||
func (privkey testPriv) Sign(msg []byte) ([]byte, error) { return []byte{}, nil }
|
||||
func (privkey testPriv) Equals(other crypto.PrivKey) bool { return true }
|
||||
func (privkey testPriv) Type() string { return "testPriv" }
|
||||
|
||||
type testPub []byte
|
||||
|
||||
@@ -169,6 +170,8 @@ func (key testPub) Bytes() []byte {
|
||||
}
|
||||
func (key testPub) VerifyBytes(msg []byte, sig []byte) bool { return true }
|
||||
func (key testPub) Equals(other crypto.PubKey) bool { return true }
|
||||
func (key testPub) String() string { return "" }
|
||||
func (key testPub) Type() string { return "testPub" }
|
||||
|
||||
var (
|
||||
privAminoName = "registerTest/Priv"
|
||||
|
||||
Reference in New Issue
Block a user