whisper: logs fixed (typos)

This commit is contained in:
Vlad 2017-04-07 09:45:39 +02:00
parent f6766d364f
commit 42e136fb27
2 changed files with 3 additions and 3 deletions

View file

@ -423,7 +423,7 @@ func (args *WhisperFilterArgs) UnmarshalJSON(b []byte) (err error) {
case "asym": case "asym":
args.Symmetric = false args.Symmetric = false
default: default:
return errors.New("wrong type (sym/asym") return errors.New("wrong type (sym/asym)")
} }
args.Key = obj.Key args.Key = obj.Key
@ -464,7 +464,7 @@ type WhisperMessage struct {
Payload string `json:"payload"` Payload string `json:"payload"`
Padding string `json:"padding"` Padding string `json:"padding"`
Src string `json:"signedWith"` Src string `json:"signedWith"`
Dst string `json:"receipientPublicKey"` Dst string `json:"recipientPublicKey"`
Timestamp uint32 `json:"timestamp"` Timestamp uint32 `json:"timestamp"`
TTL uint32 `json:"ttl"` TTL uint32 `json:"ttl"`
PoW float64 `json:"pow"` PoW float64 `json:"pow"`

View file

@ -237,7 +237,7 @@ func (msg *SentMessage) Wrap(options *MessageParams) (envelope *Envelope, err er
} else if options.KeySym != nil { } else if options.KeySym != nil {
salt, nonce, err = msg.encryptSymmetric(options.KeySym) salt, nonce, err = msg.encryptSymmetric(options.KeySym)
} else { } else {
err = errors.New("unable to encrypt the message: neither symmetric nor assymmmetric key provided") err = errors.New("unable to encrypt the message: neither symmetric nor assymmetric key provided")
} }
if err != nil { if err != nil {