From 9f6af6f812453f7ba30822606bb2a04ba8872ccb Mon Sep 17 00:00:00 2001 From: Eli Date: Tue, 1 May 2018 23:17:17 -0700 Subject: whisper: Golint fixes in whisper packages (#16637) --- whisper/whisperv5/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'whisper/whisperv5/api.go') diff --git a/whisper/whisperv5/api.go b/whisper/whisperv5/api.go index 9fb22aa75..c56d13949 100644 --- a/whisper/whisperv5/api.go +++ b/whisper/whisperv5/api.go @@ -89,7 +89,7 @@ func (api *PublicWhisperAPI) SetMaxMessageSize(ctx context.Context, size uint32) return true, api.w.SetMaxMessageSize(size) } -// SetMinPow sets the minimum PoW for a message before it is accepted. +// SetMinPoW sets the minimum PoW for a message before it is accepted. func (api *PublicWhisperAPI) SetMinPoW(ctx context.Context, pow float64) (bool, error) { return true, api.w.SetMinimumPoW(pow) } @@ -142,7 +142,7 @@ func (api *PublicWhisperAPI) GetPublicKey(ctx context.Context, id string) (hexut return crypto.FromECDSAPub(&key.PublicKey), nil } -// GetPublicKey returns the private key associated with the given key. The key is the hex +// GetPrivateKey returns the private key associated with the given key. The key is the hex // encoded representation of a key in the form specified in section 4.3.6 of ANSI X9.62. func (api *PublicWhisperAPI) GetPrivateKey(ctx context.Context, id string) (hexutil.Bytes, error) { key, err := api.w.GetPrivateKey(id) -- cgit