Skip to content

Commit ddc7cff

Browse files
authored
support a new credential (#15)
1 parent 58bed8d commit ddc7cff

10 files changed

Lines changed: 236 additions & 203 deletions

File tree

.github/workflows/linter.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Checkout code
1919
uses: actions/checkout@v4
2020
- name: golangci-lint
21-
uses: golangci/golangci-lint-action@v3
21+
uses: golangci/golangci-lint-action@v8
2222
with:
23-
version: v1.55.2
23+
version: v2.3
2424
args: --timeout=5m

.golangci.yml

Lines changed: 29 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,50 @@
1-
service:
2-
golangci-lint-version: 1.x.x
1+
# golangci-lint configuration v2
2+
version: "2"
33

44
run:
55
tests: false
6-
76
timeout: 2m
8-
skip-dirs:
9-
- vendor
107

11-
linters-settings:
12-
govet:
13-
check-shadowing: false
14-
goconst:
15-
min-len: 2
16-
min-occurrences: 2
17-
misspell:
18-
locale: US
19-
lll:
20-
line-length: 140
21-
gocritic:
22-
enabled-tags:
23-
- diagnostic
24-
- style
25-
- performance
26-
gci:
27-
skip-generated: false
8+
formatters:
9+
enable:
10+
- gci
11+
- gofmt
12+
- goimports
2813

2914
linters:
15+
default: standard
3016
enable:
3117
- bodyclose
32-
- megacheck
33-
- revive
18+
- staticcheck # replaces megacheck
19+
- unused # replaces megacheck
3420
- govet
3521
- unconvert
36-
- gas
22+
- gosec # replaces gas
3723
- gocyclo
3824
- dupl
3925
- misspell
4026
- unparam
41-
- typecheck
4227
- ineffassign
43-
- stylecheck
4428
- gochecknoinits
45-
- exportloopref
4629
- gocritic
4730
- nakedret
48-
- gosimple
4931
- prealloc
50-
- gci
5132
- errcheck
52-
- gofmt
53-
- goimports
54-
fast: false
55-
disable-all: true
56-
57-
issues:
58-
exclude-rules:
59-
- text: "unexported-return:"
60-
linters:
61-
- revive
62-
- text: 'shadow: declaration of "(err|ctx)" shadows declaration at'
63-
linters: [ govet ]
33+
- govet
34+
settings:
35+
goconst:
36+
min-len: 2
37+
min-occurrences: 2
38+
misspell:
39+
locale: US
40+
lll:
41+
line-length: 140
42+
gocritic:
43+
enabled-tags:
44+
- diagnostic
45+
- style
46+
- performance
47+
exclusions:
48+
rules:
49+
- text: 'shadow: declaration of "(err|ctx)" shadows declaration at'
50+
linters: [ govet ]

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.22.5-bookworm as base
1+
FROM golang:1.24-bookworm as base
22

33
WORKDIR /build
44

go.mod

Lines changed: 41 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,80 @@
11
module github.com/0xPolygonID/refresh-service
22

3-
go 1.22.0
3+
go 1.23.0
4+
5+
toolchain go1.24.2
46

57
require (
6-
github.com/ethereum/go-ethereum v1.14.8
7-
github.com/go-chi/chi/v5 v5.1.0
8+
github.com/ethereum/go-ethereum v1.16.2
9+
github.com/go-chi/chi/v5 v5.2.2
810
github.com/google/uuid v1.6.0
9-
github.com/iden3/contracts-abi/state/go/abi v1.0.1
10-
github.com/iden3/go-circuits/v2 v2.3.0
11-
github.com/iden3/go-iden3-core/v2 v2.2.0
12-
github.com/iden3/go-jwz/v2 v2.1.1
13-
github.com/iden3/go-schema-processor/v2 v2.4.2
14-
github.com/iden3/iden3comm/v2 v2.5.1
11+
github.com/iden3/contracts-abi/state/go/abi v1.1.0
12+
github.com/iden3/go-circuits/v2 v2.4.1
13+
github.com/iden3/go-iden3-core/v2 v2.3.2
14+
github.com/iden3/go-jwz/v2 v2.2.1
15+
github.com/iden3/go-schema-processor/v2 v2.6.2
16+
github.com/iden3/iden3comm/v2 v2.11.1
1517
github.com/kelseyhightower/envconfig v1.4.0
16-
github.com/piprate/json-gold v0.5.1-0.20230111113000-6ddbe6e6f19f
18+
github.com/piprate/json-gold v0.5.1-0.20241210232033-19254b3ec65b
1719
github.com/pkg/errors v0.9.1
1820
github.com/rs/cors v1.11.1
19-
github.com/stretchr/testify v1.9.0
21+
github.com/stretchr/testify v1.10.0
2022
go.uber.org/zap v1.27.0
2123
gopkg.in/yaml.v3 v3.0.1
2224
)
2325

2426
require (
2527
github.com/Microsoft/go-winio v0.6.2 // indirect
26-
github.com/bits-and-blooms/bitset v1.14.3 // indirect
27-
github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect
28-
github.com/consensys/bavard v0.1.15 // indirect
29-
github.com/consensys/gnark-crypto v0.14.0 // indirect
30-
github.com/crate-crypto/go-kzg-4844 v1.1.0 // indirect
28+
github.com/bits-and-blooms/bitset v1.24.0 // indirect
29+
github.com/consensys/gnark-crypto v0.18.0 // indirect
30+
github.com/crate-crypto/go-eth-kzg v1.3.0 // indirect
31+
github.com/crate-crypto/go-ipa v0.0.0-20240724233137-53bbb0ceb27a // indirect
3132
github.com/davecgh/go-spew v1.1.1 // indirect
3233
github.com/dchest/blake512 v1.0.0 // indirect
33-
github.com/deckarep/golang-set/v2 v2.6.0 // indirect
34-
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
34+
github.com/deckarep/golang-set/v2 v2.8.0 // indirect
35+
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect
3536
github.com/dustinxie/ecc v0.0.0-20210511000915-959544187564 // indirect
36-
github.com/ethereum/c-kzg-4844 v1.0.3 // indirect
37-
github.com/fsnotify/fsnotify v1.7.0 // indirect
37+
github.com/ethereum/c-kzg-4844/v2 v2.1.1 // indirect
38+
github.com/ethereum/go-verkle v0.2.2 // indirect
39+
github.com/fsnotify/fsnotify v1.9.0 // indirect
3840
github.com/go-ole/go-ole v1.3.0 // indirect
39-
github.com/goccy/go-json v0.10.3 // indirect
41+
github.com/goccy/go-json v0.10.5 // indirect
42+
github.com/google/go-cmp v0.6.0 // indirect
4043
github.com/gorilla/websocket v1.5.3 // indirect
41-
github.com/holiman/uint256 v1.3.1 // indirect
44+
github.com/holiman/uint256 v1.3.2 // indirect
45+
github.com/iden3/contracts-abi/onchain-credential-status-resolver/go/abi v1.0.2 // indirect
46+
github.com/iden3/driver-did-iden3 v0.0.12 // indirect
4247
github.com/iden3/go-iden3-crypto v0.0.17 // indirect
4348
github.com/iden3/go-merkletree-sql/v2 v2.0.6 // indirect
44-
github.com/iden3/go-rapidsnark/prover v0.0.11 // indirect
49+
github.com/iden3/go-rapidsnark/prover v0.0.13 // indirect
4550
github.com/iden3/go-rapidsnark/types v0.0.3 // indirect
4651
github.com/iden3/go-rapidsnark/verifier v0.0.5 // indirect
4752
github.com/iden3/go-rapidsnark/witness/v2 v2.0.0 // indirect
4853
github.com/iden3/go-rapidsnark/witness/wazero v0.0.0-20230524142950-0986cf057d4e // indirect
49-
github.com/klauspost/compress v1.16.5 // indirect
50-
github.com/lestrrat-go/blackmagic v1.0.2 // indirect
54+
github.com/iden3/merkletree-proof v1.0.1 // indirect
55+
github.com/lestrrat-go/blackmagic v1.0.4 // indirect
5156
github.com/lestrrat-go/httpcc v1.0.1 // indirect
5257
github.com/lestrrat-go/httprc v1.0.6 // indirect
5358
github.com/lestrrat-go/iter v1.0.2 // indirect
54-
github.com/lestrrat-go/jwx/v2 v2.1.1 // indirect
59+
github.com/lestrrat-go/jwx/v2 v2.1.6 // indirect
5560
github.com/lestrrat-go/option v1.0.1 // indirect
56-
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
57-
github.com/mmcloughlin/addchain v0.4.0 // indirect
5861
github.com/mr-tron/base58 v1.2.0 // indirect
5962
github.com/pmezard/go-difflib v1.0.0 // indirect
6063
github.com/pquerna/cachecontrol v0.2.0 // indirect
61-
github.com/prometheus/client_golang v1.14.0 // indirect
62-
github.com/prometheus/client_model v0.4.0 // indirect
6364
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 // indirect
6465
github.com/segmentio/asm v1.2.0 // indirect
6566
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
66-
github.com/supranational/blst v0.3.13 // indirect
67-
github.com/tetratelabs/wazero v1.8.0 // indirect
68-
github.com/tklauser/go-sysconf v0.3.14 // indirect
69-
github.com/tklauser/numcpus v0.8.0 // indirect
67+
github.com/supranational/blst v0.3.15 // indirect
68+
github.com/tetratelabs/wazero v1.9.0 // indirect
69+
github.com/tklauser/go-sysconf v0.3.15 // indirect
70+
github.com/tklauser/numcpus v0.10.0 // indirect
7071
github.com/yusufpapurcu/wmi v1.2.4 // indirect
7172
go.uber.org/multierr v1.11.0 // indirect
72-
golang.org/x/crypto v0.27.0 // indirect
73-
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
74-
golang.org/x/sync v0.8.0 // indirect
75-
golang.org/x/sys v0.25.0 // indirect
73+
golang.org/x/crypto v0.41.0 // indirect
74+
golang.org/x/exp v0.0.0-20250808145144-a408d31f581a // indirect
75+
golang.org/x/net v0.43.0 // indirect
76+
golang.org/x/sync v0.16.0 // indirect
77+
golang.org/x/sys v0.35.0 // indirect
78+
golang.org/x/text v0.28.0 // indirect
7679
gopkg.in/go-jose/go-jose.v2 v2.6.3 // indirect
77-
rsc.io/tmplfunc v0.0.3 // indirect
7880
)

0 commit comments

Comments
 (0)