library/encoding.go
Function EncodeAsymmetric
has 8 return statements (exceeds 4 allowed). Open
Open
func EncodeAsymmetric(messageJSON string, publicKey string, optionalSigningKey string) (string, error) {
msg, err := wakuMessage(messageJSON)
if err != nil {
return "", err
}
Function DecodeAsymmetric
has 7 return statements (exceeds 4 allowed). Open
Open
func DecodeAsymmetric(messageJSON string, privateKey string) (string, error) {
var msg pb.WakuMessage
err := json.Unmarshal([]byte(messageJSON), &msg)
if err != nil {
return "", err
Function EncodeSymmetric
has 7 return statements (exceeds 4 allowed). Open
Open
func EncodeSymmetric(messageJSON string, symmetricKey string, optionalSigningKey string) (string, error) {
msg, err := wakuMessage(messageJSON)
if err != nil {
return "", err
}
Function DecodeSymmetric
has 6 return statements (exceeds 4 allowed). Open
Open
func DecodeSymmetric(messageJSON string, symmetricKey string) (string, error) {
var msg pb.WakuMessage
err := json.Unmarshal([]byte(messageJSON), &msg)
if err != nil {
return "", err