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":
args.Symmetric = false
default:
return errors.New("wrong type (sym/asym")
return errors.New("wrong type (sym/asym)")
}
args.Key = obj.Key
@ -464,7 +464,7 @@ type WhisperMessage struct {
Payload string `json:"payload"`
Padding string `json:"padding"`
Src string `json:"signedWith"`
Dst string `json:"receipientPublicKey"`
Dst string `json:"recipientPublicKey"`
Timestamp uint32 `json:"timestamp"`
TTL uint32 `json:"ttl"`
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 {
salt, nonce, err = msg.encryptSymmetric(options.KeySym)
} 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 {