Skip to content

Commit

Permalink
fix: update data integrity proof context to v2 (#1820)
Browse files Browse the repository at this point in the history
* fix: update data integrity proof context to v2

* feat: add context

* feat:  update vc

* feat: update vc

* feat: update vc

* feat: update did

* feat: update vc

* fix: lint

* fix: more linters

* fix: lint

* fix: more lint

* fix: lint
  • Loading branch information
skynet2 authored Dec 13, 2024
1 parent 885f2be commit 55eafb2
Show file tree
Hide file tree
Showing 60 changed files with 540 additions and 144 deletions.
9 changes: 4 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ run:
# Define the Go version limit.
# Mainly related to generics support in go1.18.
# Default: use Go version from the go.mod file, fallback on the env var `GOVERSION`, fallback on 1.17
go: "1.17" # TODO: change to 1.18 when most linters support it, see https://github.com/golangci/golangci-lint/issues/2649
go: "1.22" # TODO: change to 1.18 when most linters support it, see https://github.com/golangci/golangci-lint/issues/2649


# All possible options can be found here: https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml
Expand Down Expand Up @@ -61,7 +61,7 @@ linters-settings:
# Default: true
skipRecvDeref: false

gomnd:
mnd:
# List of function patterns to exclude from analysis.
# Values always ignored: `time.Date`
# Default: []
Expand Down Expand Up @@ -171,9 +171,8 @@ linters:
- durationcheck # check for two durations multiplied together
- errname # Checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error.
- errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13.
- execinquery # execinquery is a linter about query string checker in Query function which reads your Go src files and warning it finds
- exhaustive # check exhaustiveness of enum switch statements
- exportloopref # checks for pointers to enclosing loop variables
- copyloopvar # checks for pointers to enclosing loop variables
- forbidigo # Forbids identifiers
- funlen # Tool for detection of long functions
- gochecknoglobals # check that no global variables exist
Expand All @@ -184,7 +183,7 @@ linters:
- gocyclo # Computes and checks the cyclomatic complexity of functions
- godot # Check if comments end in a period
- goimports # In addition to fixing imports, goimports also formats your code in the same style as gofmt.
- gomnd # An analyzer to detect magic numbers.
- mnd # An analyzer to detect magic numbers.
- gomodguard # Allow and block list linter for direct Go module dependencies. This is different from depguard where there are different block types for example version constraints and module recommendations.
- goprintffuncname # Checks that printf-like functions are named with f at the end
- gosec # Inspects source code for security problems
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ ALPINE_IMAGE ?=alpine
OPENSSL_IMAGE ?=frapsoft/openssl
GOPROXY ?= https://proxy.golang.org

VC_FRAMEWORK_VERSION = cb6ea1d75d15ea672eb402bf222659148e78bed4
VC_FRAMEWORK_VERSION = 7d341e2fd88c7aed2df15831a51e43eef4136ed5
KMS_FRAMEWORK_VERSION = 8d9510c6bb88df0666fa45c55c0ace699a675b12
DID_GO_VERSION = 6ae560f130216bddbb8bfaeb8e781d54929bb7a3
DID_GO_VERSION = f213d5441fe03c6ad982a0c3abc636c7dd355b1c
SIDE_TREE_VERSION = f4260aff710479ba5fa3f0c61b51d451d9041225

BUILD_DATE=$(shell date +'%Y%m%d%H%M%S' -d @$(shell git show -s --format=%ct))
Expand Down
4 changes: 2 additions & 2 deletions cmd/vc-rest/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ require (
github.com/spf13/cobra v1.8.1
github.com/stretchr/testify v1.9.0
github.com/trustbloc/cmdutil-go v1.0.0
github.com/trustbloc/did-go v1.3.2-0.20241206132250-6ae560f13021
github.com/trustbloc/did-go v1.3.2-0.20241212234638-3c3fc9094d0f
github.com/trustbloc/logutil-go v1.0.1-0.20241105212510-19307a43016e
github.com/trustbloc/sidetree-go v1.0.1-0.20240219121130-f4260aff7104
github.com/trustbloc/vc-go v1.3.1-0.20241206135341-cb6ea1d75d15
github.com/trustbloc/vc-go v1.3.1-0.20241213105555-7d341e2fd88c
github.com/trustbloc/vcs v0.0.0
github.com/trustbloc/vcs/component/credentialstatus v0.0.0-00010101000000-000000000000
github.com/trustbloc/vcs/component/echo v0.0.0-00010101000000-000000000000
Expand Down
8 changes: 4 additions & 4 deletions cmd/vc-rest/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,8 @@ github.com/trustbloc/bbs-signature-go v1.0.2 h1:gepEsbLiZHv/vva9FKG5gF38mGtOIyGe
github.com/trustbloc/bbs-signature-go v1.0.2/go.mod h1:xYotcXHAbcE0TO+SteW0J6XI3geQaXq4wdnXR2k+XCU=
github.com/trustbloc/cmdutil-go v1.0.0 h1:QCe7wVEIASWmy9ZDD0l0tsQCEsX6fx+kBFX5UqCVRdk=
github.com/trustbloc/cmdutil-go v1.0.0/go.mod h1:o/v7C1z6d/5UrjaC6GAUc1hk0XVuE3M4tpyvsMMUw5k=
github.com/trustbloc/did-go v1.3.2-0.20241206132250-6ae560f13021 h1:HCliHtrCijpx2nyhBdgjUjmXGdpFXPVwv/E2h/5TxlI=
github.com/trustbloc/did-go v1.3.2-0.20241206132250-6ae560f13021/go.mod h1:GdmgtrHKWuBIw77t0FBqHO9rUjbG3zrKU/RZWbhUL9g=
github.com/trustbloc/did-go v1.3.2-0.20241212234638-3c3fc9094d0f h1:l7QamFbIY1rjWUAnxNxY0RZY9+oYNDujZqYgEK1l/g8=
github.com/trustbloc/did-go v1.3.2-0.20241212234638-3c3fc9094d0f/go.mod h1:GdmgtrHKWuBIw77t0FBqHO9rUjbG3zrKU/RZWbhUL9g=
github.com/trustbloc/json-gold v0.5.2-0.20241206130328-d2135d9f36a8 h1:DomzdQu7D3CDBsMijT0E9uQl91iFcsIfYq1UKXmI/XQ=
github.com/trustbloc/json-gold v0.5.2-0.20241206130328-d2135d9f36a8/go.mod h1:RVhE35veDX19r5gfUAR+IYHkAUuPwJO8Ie/qVeFaIzw=
github.com/trustbloc/kms-go v1.2.0 h1:kM2mkK4vBT7MN18rE6cTEXtrnEo3Uc83F68UKakqeR4=
Expand All @@ -678,8 +678,8 @@ github.com/trustbloc/logutil-go v1.0.1-0.20241105212510-19307a43016e h1:r0AVM5IL
github.com/trustbloc/logutil-go v1.0.1-0.20241105212510-19307a43016e/go.mod h1:AuHbwVcx1Rl6KNG2oFvlUR79egmDM8urblUaJ24p85A=
github.com/trustbloc/sidetree-go v1.0.1-0.20240219121130-f4260aff7104 h1:0IW4muaGvhjJ4OkG6/PQG3DGf5POWxlA1wwEYsxWQ+4=
github.com/trustbloc/sidetree-go v1.0.1-0.20240219121130-f4260aff7104/go.mod h1:3yChjB5KOT7B9eZe0W1XaIx3MNUuC1Oe9nR/GCtI1W0=
github.com/trustbloc/vc-go v1.3.1-0.20241206135341-cb6ea1d75d15 h1:x5GL2wR/bxc8brLlzA06GbIJnLlJarHoIYWXqRefKUU=
github.com/trustbloc/vc-go v1.3.1-0.20241206135341-cb6ea1d75d15/go.mod h1:jprI1Le1w4DYQVDk+RzS91EFt2NkR1I+E06TBAIRdfY=
github.com/trustbloc/vc-go v1.3.1-0.20241213105555-7d341e2fd88c h1:C9X5gKg+ArnT00TQYDnq7d1/mqZZtP6gh5ISB8GxZv0=
github.com/trustbloc/vc-go v1.3.1-0.20241213105555-7d341e2fd88c/go.mod h1:Z/Ub+hGeHPIGY9xYcT4fqNa4E+Vj96CH/9MYlGzbJ6Q=
github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI=
github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=
github.com/ugorji/go/codec v1.2.12 h1:9LC83zGrHhuUA9l16C9AHXAqEV/2wBQ4nkvumAE65EE=
Expand Down
5 changes: 3 additions & 2 deletions component/credentialstatus/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ require (
github.com/piprate/json-gold v0.5.1-0.20230111113000-6ddbe6e6f19f
github.com/spf13/cobra v1.8.1
github.com/stretchr/testify v1.9.0
github.com/trustbloc/did-go v1.3.2-0.20241206132250-6ae560f13021
github.com/trustbloc/did-go v1.3.2-0.20241212234638-3c3fc9094d0f
github.com/trustbloc/kms-go v1.2.0
github.com/trustbloc/logutil-go v1.0.1-0.20241105212510-19307a43016e
github.com/trustbloc/sidetree-go v1.0.1-0.20240219121130-f4260aff7104
github.com/trustbloc/vc-go v1.3.1-0.20241206135341-cb6ea1d75d15
github.com/trustbloc/vc-go v1.3.1-0.20241213105555-7d341e2fd88c
github.com/trustbloc/vcs v0.0.0-00010101000000-000000000000
)

Expand Down Expand Up @@ -74,6 +74,7 @@ require (
github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/hyperledger/fabric-amcl v0.0.0-20230602173724-9e02669dceb2 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
Expand Down
10 changes: 6 additions & 4 deletions component/credentialstatus/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB1
github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M=
github.com/hashicorp/go-retryablehttp v0.7.7 h1:C8hUCYzor8PIfXHa4UrZkU4VvK8o9ISHxT2Q8+VepXU=
github.com/hashicorp/go-retryablehttp v0.7.7/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk=
github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k=
github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM=
github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
Expand Down Expand Up @@ -464,8 +466,8 @@ github.com/tidwall/sjson v1.2.5 h1:kLy8mja+1c9jlljvWTlSazM7cKDRfJuR/bOJhcY5NcY=
github.com/tidwall/sjson v1.2.5/go.mod h1:Fvgq9kS/6ociJEDnK0Fk1cpYF4FIW6ZF7LAe+6jwd28=
github.com/trustbloc/bbs-signature-go v1.0.2 h1:gepEsbLiZHv/vva9FKG5gF38mGtOIyGez7desZxiI1o=
github.com/trustbloc/bbs-signature-go v1.0.2/go.mod h1:xYotcXHAbcE0TO+SteW0J6XI3geQaXq4wdnXR2k+XCU=
github.com/trustbloc/did-go v1.3.2-0.20241206132250-6ae560f13021 h1:HCliHtrCijpx2nyhBdgjUjmXGdpFXPVwv/E2h/5TxlI=
github.com/trustbloc/did-go v1.3.2-0.20241206132250-6ae560f13021/go.mod h1:GdmgtrHKWuBIw77t0FBqHO9rUjbG3zrKU/RZWbhUL9g=
github.com/trustbloc/did-go v1.3.2-0.20241212234638-3c3fc9094d0f h1:l7QamFbIY1rjWUAnxNxY0RZY9+oYNDujZqYgEK1l/g8=
github.com/trustbloc/did-go v1.3.2-0.20241212234638-3c3fc9094d0f/go.mod h1:GdmgtrHKWuBIw77t0FBqHO9rUjbG3zrKU/RZWbhUL9g=
github.com/trustbloc/json-gold v0.5.2-0.20241206130328-d2135d9f36a8 h1:DomzdQu7D3CDBsMijT0E9uQl91iFcsIfYq1UKXmI/XQ=
github.com/trustbloc/json-gold v0.5.2-0.20241206130328-d2135d9f36a8/go.mod h1:RVhE35veDX19r5gfUAR+IYHkAUuPwJO8Ie/qVeFaIzw=
github.com/trustbloc/kms-go v1.2.0 h1:kM2mkK4vBT7MN18rE6cTEXtrnEo3Uc83F68UKakqeR4=
Expand All @@ -474,8 +476,8 @@ github.com/trustbloc/logutil-go v1.0.1-0.20241105212510-19307a43016e h1:r0AVM5IL
github.com/trustbloc/logutil-go v1.0.1-0.20241105212510-19307a43016e/go.mod h1:AuHbwVcx1Rl6KNG2oFvlUR79egmDM8urblUaJ24p85A=
github.com/trustbloc/sidetree-go v1.0.1-0.20240219121130-f4260aff7104 h1:0IW4muaGvhjJ4OkG6/PQG3DGf5POWxlA1wwEYsxWQ+4=
github.com/trustbloc/sidetree-go v1.0.1-0.20240219121130-f4260aff7104/go.mod h1:3yChjB5KOT7B9eZe0W1XaIx3MNUuC1Oe9nR/GCtI1W0=
github.com/trustbloc/vc-go v1.3.1-0.20241206135341-cb6ea1d75d15 h1:x5GL2wR/bxc8brLlzA06GbIJnLlJarHoIYWXqRefKUU=
github.com/trustbloc/vc-go v1.3.1-0.20241206135341-cb6ea1d75d15/go.mod h1:jprI1Le1w4DYQVDk+RzS91EFt2NkR1I+E06TBAIRdfY=
github.com/trustbloc/vc-go v1.3.1-0.20241213105555-7d341e2fd88c h1:C9X5gKg+ArnT00TQYDnq7d1/mqZZtP6gh5ISB8GxZv0=
github.com/trustbloc/vc-go v1.3.1-0.20241213105555-7d341e2fd88c/go.mod h1:Z/Ub+hGeHPIGY9xYcT4fqNa4E+Vj96CH/9MYlGzbJ6Q=
github.com/urfave/negroni v1.0.0 h1:kIimOitoypq34K7TG7DUaJ9kq/N4Ofuwi1sjz0KipXc=
github.com/urfave/negroni v1.0.0/go.mod h1:Meg73S6kFm/4PpbYdq35yYWoCZ9mS/YSx+lKnmiohz4=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
Expand Down
2 changes: 1 addition & 1 deletion component/event/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (b *Bus) handleEvent(e *spi.Event) error { //nolint:gocognit

payload := eventPayload{}

jsonData, err := json.Marshal(e.Data.(map[string]interface{}))
jsonData, err := json.Marshal(e.Data.(map[string]interface{})) // nolint:errcheck
if err != nil {
return err
}
Expand Down
5 changes: 3 additions & 2 deletions component/event/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ require (
github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/hyperledger/fabric-amcl v0.0.0-20230602173724-9e02669dceb2 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
Expand Down Expand Up @@ -116,9 +117,9 @@ require (
github.com/tidwall/pretty v1.2.1 // indirect
github.com/tidwall/sjson v1.2.5 // indirect
github.com/trustbloc/bbs-signature-go v1.0.2 // indirect
github.com/trustbloc/did-go v1.3.2-0.20241206132250-6ae560f13021 // indirect
github.com/trustbloc/did-go v1.3.2-0.20241212234638-3c3fc9094d0f // indirect
github.com/trustbloc/kms-go v1.2.0 // indirect
github.com/trustbloc/vc-go v1.3.1-0.20241206135341-cb6ea1d75d15 // indirect
github.com/trustbloc/vc-go v1.3.1-0.20241213105555-7d341e2fd88c // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
github.com/veraison/go-cose v1.3.0-rc.1 // indirect
Expand Down
10 changes: 6 additions & 4 deletions component/event/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB1
github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M=
github.com/hashicorp/go-retryablehttp v0.7.7 h1:C8hUCYzor8PIfXHa4UrZkU4VvK8o9ISHxT2Q8+VepXU=
github.com/hashicorp/go-retryablehttp v0.7.7/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk=
github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k=
github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM=
github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
Expand Down Expand Up @@ -448,16 +450,16 @@ github.com/trustbloc/bbs-signature-go v1.0.2 h1:gepEsbLiZHv/vva9FKG5gF38mGtOIyGe
github.com/trustbloc/bbs-signature-go v1.0.2/go.mod h1:xYotcXHAbcE0TO+SteW0J6XI3geQaXq4wdnXR2k+XCU=
github.com/trustbloc/cmdutil-go v1.0.0 h1:QCe7wVEIASWmy9ZDD0l0tsQCEsX6fx+kBFX5UqCVRdk=
github.com/trustbloc/cmdutil-go v1.0.0/go.mod h1:o/v7C1z6d/5UrjaC6GAUc1hk0XVuE3M4tpyvsMMUw5k=
github.com/trustbloc/did-go v1.3.2-0.20241206132250-6ae560f13021 h1:HCliHtrCijpx2nyhBdgjUjmXGdpFXPVwv/E2h/5TxlI=
github.com/trustbloc/did-go v1.3.2-0.20241206132250-6ae560f13021/go.mod h1:GdmgtrHKWuBIw77t0FBqHO9rUjbG3zrKU/RZWbhUL9g=
github.com/trustbloc/did-go v1.3.2-0.20241212234638-3c3fc9094d0f h1:l7QamFbIY1rjWUAnxNxY0RZY9+oYNDujZqYgEK1l/g8=
github.com/trustbloc/did-go v1.3.2-0.20241212234638-3c3fc9094d0f/go.mod h1:GdmgtrHKWuBIw77t0FBqHO9rUjbG3zrKU/RZWbhUL9g=
github.com/trustbloc/json-gold v0.5.2-0.20241206130328-d2135d9f36a8 h1:DomzdQu7D3CDBsMijT0E9uQl91iFcsIfYq1UKXmI/XQ=
github.com/trustbloc/json-gold v0.5.2-0.20241206130328-d2135d9f36a8/go.mod h1:RVhE35veDX19r5gfUAR+IYHkAUuPwJO8Ie/qVeFaIzw=
github.com/trustbloc/kms-go v1.2.0 h1:kM2mkK4vBT7MN18rE6cTEXtrnEo3Uc83F68UKakqeR4=
github.com/trustbloc/kms-go v1.2.0/go.mod h1:OKOtsLbE6W5s4mpjWkvk8XEqcmt9vTgVmDNkHELpWO0=
github.com/trustbloc/logutil-go v1.0.1-0.20241105212510-19307a43016e h1:r0AVM5ILWbtXLDLBKTL9u2F/EOZH/7JU/owOjfbESME=
github.com/trustbloc/logutil-go v1.0.1-0.20241105212510-19307a43016e/go.mod h1:AuHbwVcx1Rl6KNG2oFvlUR79egmDM8urblUaJ24p85A=
github.com/trustbloc/vc-go v1.3.1-0.20241206135341-cb6ea1d75d15 h1:x5GL2wR/bxc8brLlzA06GbIJnLlJarHoIYWXqRefKUU=
github.com/trustbloc/vc-go v1.3.1-0.20241206135341-cb6ea1d75d15/go.mod h1:jprI1Le1w4DYQVDk+RzS91EFt2NkR1I+E06TBAIRdfY=
github.com/trustbloc/vc-go v1.3.1-0.20241213105555-7d341e2fd88c h1:C9X5gKg+ArnT00TQYDnq7d1/mqZZtP6gh5ISB8GxZv0=
github.com/trustbloc/vc-go v1.3.1-0.20241213105555-7d341e2fd88c/go.mod h1:Z/Ub+hGeHPIGY9xYcT4fqNa4E+Vj96CH/9MYlGzbJ6Q=
github.com/urfave/negroni v1.0.0 h1:kIimOitoypq34K7TG7DUaJ9kq/N4Ofuwi1sjz0KipXc=
github.com/urfave/negroni v1.0.0/go.mod h1:Meg73S6kFm/4PpbYdq35yYWoCZ9mS/YSx+lKnmiohz4=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
Expand Down
2 changes: 1 addition & 1 deletion component/oidc/fosite/mongo/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (s *Store) createSession(
RequestedAudience: requester.GetRequestedAudience(),
GrantedAudience: requester.GetGrantedAudience(),
ClientID: requester.GetClient().GetID(),
SessionExtra: requester.GetSession().(*fosite.DefaultSession).Extra,
SessionExtra: requester.GetSession().(*fosite.DefaultSession).Extra, // nolint:errcheck
}

switch mapped := requester.(type) {
Expand Down
2 changes: 1 addition & 1 deletion component/oidc/fosite/redis/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (s *Store) createSession(
RequestedAudience: requester.GetRequestedAudience(),
GrantedAudience: requester.GetGrantedAudience(),
ClientID: requester.GetClient().GetID(),
SessionExtra: requester.GetSession().(*fosite.DefaultSession).Extra,
SessionExtra: requester.GetSession().(*fosite.DefaultSession).Extra, // nolint:errcheck
}

switch mapped := requester.(type) {
Expand Down
2 changes: 1 addition & 1 deletion component/profile/reader/file/creator.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (c *Creator) createDID(
km KeysCreator,
_, _ string,
) (*createResult, error) { //nolint: unparam
methods, err := newVerMethods(3, km, verificationMethodType, keyType) // nolint:gomnd
methods, err := newVerMethods(3, km, verificationMethodType, keyType) // nolint:mnd
if err != nil {
return nil, fmt.Errorf("did:orb: failed to create verification methods: %w", err)
}
Expand Down
5 changes: 3 additions & 2 deletions component/profile/reader/file/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (
github.com/spf13/cobra v1.8.1
github.com/stretchr/testify v1.9.0
github.com/trustbloc/cmdutil-go v1.0.0
github.com/trustbloc/did-go v1.3.2-0.20241206132250-6ae560f13021
github.com/trustbloc/did-go v1.3.2-0.20241212234638-3c3fc9094d0f
github.com/trustbloc/kms-go v1.2.0
github.com/trustbloc/logutil-go v1.0.1-0.20241105212510-19307a43016e
github.com/trustbloc/sidetree-go v1.0.1-0.20240219121130-f4260aff7104
Expand Down Expand Up @@ -72,6 +72,7 @@ require (
github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/hyperledger/fabric-amcl v0.0.0-20230602173724-9e02669dceb2 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
Expand Down Expand Up @@ -126,7 +127,7 @@ require (
github.com/tidwall/pretty v1.2.1 // indirect
github.com/tidwall/sjson v1.2.5 // indirect
github.com/trustbloc/bbs-signature-go v1.0.2 // indirect
github.com/trustbloc/vc-go v1.3.1-0.20241206135341-cb6ea1d75d15 // indirect
github.com/trustbloc/vc-go v1.3.1-0.20241213105555-7d341e2fd88c // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
github.com/veraison/go-cose v1.3.0-rc.1 // indirect
Expand Down
Loading

0 comments on commit 55eafb2

Please sign in to comment.