aergoio/aergo

View on GitHub
account/key/utils.go

Summary

Maintainability
A
35 mins
Test Coverage
D
66%

Function decrypt has 5 return statements (exceeds 4 allowed).
Open

func decrypt(base, key, data []byte) ([]byte, error) {
    if len(base) < 16 {
        return nil, errors.New("too short address length")
    }
    nonce := base[4:16]
Severity: Major
Found in account/key/utils.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status