diff --git a/vendor/github.com/skycoin/dmsg/cipher/cipher.go b/vendor/github.com/skycoin/dmsg/cipher/cipher.go index 064b1c9e99..9d8a897000 100644 --- a/vendor/github.com/skycoin/dmsg/cipher/cipher.go +++ b/vendor/github.com/skycoin/dmsg/cipher/cipher.go @@ -3,7 +3,6 @@ package cipher import ( - "bytes" "fmt" "strings" @@ -73,10 +72,6 @@ func (pk PubKey) MarshalText() ([]byte, error) { // UnmarshalText implements encoding.TextUnmarshaler. func (pk *PubKey) UnmarshalText(data []byte) error { - if bytes.Count(data, []byte{48}) == len(data) { - return nil - } - dPK, err := cipher.PubKeyFromHex(string(data)) if err == nil { *pk = PubKey(dPK)