aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/whisperv5/api.go
diff options
context:
space:
mode:
authorEli <elihanover@yahoo.com>2018-05-02 14:17:17 +0800
committerGuillaume Ballet <gballet@gmail.com>2018-05-02 14:17:17 +0800
commit9f6af6f812453f7ba30822606bb2a04ba8872ccb (patch)
tree10de4aef53ec6d7811747dc47b33d942f15752d9 /whisper/whisperv5/api.go
parent1da33028ce88c4365d99471977098f4911fd38fa (diff)
downloadgo-tangerine-9f6af6f812453f7ba30822606bb2a04ba8872ccb.tar.gz
go-tangerine-9f6af6f812453f7ba30822606bb2a04ba8872ccb.tar.zst
go-tangerine-9f6af6f812453f7ba30822606bb2a04ba8872ccb.zip
whisper: Golint fixes in whisper packages (#16637)
Diffstat (limited to 'whisper/whisperv5/api.go')
-rw-r--r--whisper/whisperv5/api.go4
1 files changed, 2 insertions, 2 deletions
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)