mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 12:51:22 +00:00
committed by
Anton Kaliaev
parent
7e3de2027e
commit
3e1baf68f8
@ -58,7 +58,7 @@ func (tm2pb) Validator(val *Validator) abci.Validator {
|
||||
}
|
||||
|
||||
// XXX: panics on nil or unknown pubkey type
|
||||
// TODO: add cases when new pubkey types are added to go-crypto
|
||||
// TODO: add cases when new pubkey types are added to crypto
|
||||
func (tm2pb) PubKey(pubKey crypto.PubKey) abci.PubKey {
|
||||
switch pk := pubKey.(type) {
|
||||
case crypto.PubKeyEd25519:
|
||||
@ -153,7 +153,7 @@ var PB2TM = pb2tm{}
|
||||
type pb2tm struct{}
|
||||
|
||||
func (pb2tm) PubKey(pubKey abci.PubKey) (crypto.PubKey, error) {
|
||||
// TODO: define these in go-crypto and use them
|
||||
// TODO: define these in crypto and use them
|
||||
sizeEd := 32
|
||||
sizeSecp := 33
|
||||
switch pubKey.Type {
|
||||
|
Reference in New Issue
Block a user