Skip to content

Commit

Permalink
refactor(types): fix lint errors and wrong implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy committed Sep 9, 2024
1 parent 6ec64de commit 79895c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ linters:
- nilerr
- nilnil
- nlreturn
- nestif
- noctx
- nolintlint
- nosprintfhostport
Expand Down Expand Up @@ -81,9 +82,8 @@ linters-settings:

govet:
enable-all: true
disable: fieldalignment
shadow:
strict: true
disable:
- fieldalignment

predeclared:
# Comma-separated list of predeclared identifiers to not report on.
Expand Down Expand Up @@ -130,6 +130,10 @@ issues:
- forbidigo
- lll

- path: _easyjson.go
linters:
- nestif

- linters:
- govet
text: 'shadow: declaration of "err" shadows'
1 change: 1 addition & 0 deletions types/event/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,6 @@ func (e *Event) IsValid() bool {

hash := sha256.Sum256(e.Serialize())

// TODO::: replace with libsecp256k1 (C++ version).
return sig.Verify(hash[:], pubkey)
}

0 comments on commit 79895c6

Please sign in to comment.