-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: copy vdr component from aries-framework-go (#1)
Signed-off-by: Volodymyr Kubiv <[email protected]>
- Loading branch information
Showing
47 changed files
with
6,336 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,44 @@ jobs: | |
- uses: amannn/action-semantic-pull-request@v4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
Checks: | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: Run checks | ||
run: | | ||
echo $PATH | ||
go env | ||
echo ${{ github.workspace }} | ||
make checks | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
UnitTest: | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 10 | ||
steps: | ||
|
||
- name: Setup Go 1.20 | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.20' | ||
id: go | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Run unit test | ||
timeout-minutes: 15 | ||
run: make unit-test | ||
|
||
- name: Upload coverage to Codecov | ||
timeout-minutes: 10 | ||
uses: codecov/[email protected] | ||
with: | ||
file: ./coverage.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
# | ||
# Copyright SecureKey Technologies Inc. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
run: | ||
concurrency: 4 | ||
deadline: 3m | ||
issues-exit-code: 1 | ||
tests: true | ||
build-tags: [""] | ||
skip-dirs: | ||
- pkg/crypto/primitive/bbs12381g2pub/internal/kilic/bls12-381 | ||
|
||
output: | ||
format: colored-line-number | ||
print-issued-lines: true | ||
print-linter-name: true | ||
|
||
linters-settings: | ||
errcheck: | ||
check-type-assertions: true | ||
check-blank: true | ||
ignore: fmt:.*,io/ioutil:^Read.* | ||
govet: | ||
check-shadowing: true | ||
settings: | ||
printf: | ||
funcs: | ||
- (github.com/hyperledger/aries-framework-go/pkg/common/log.Log).Debugf | ||
- (github.com/hyperledger/aries-framework-go/pkg/common/log.Log).Infof | ||
- (github.com/hyperledger/aries-framework-go/pkg/common/log.Log).Warnf | ||
- (github.com/hyperledger/aries-framework-go/pkg/common/log.Log).Errorf | ||
- (github.com/hyperledger/aries-framework-go/pkg/common/log.Log).Fatalf | ||
- (github.com/hyperledger/aries-framework-go/pkg/common/log.Log).Panicf | ||
golint: | ||
min-confidence: 0.6 | ||
gofmt: | ||
simplify: true | ||
goimports: | ||
local-prefixes: github.com/hyperledger/aries-framework-go | ||
gocyclo: | ||
min-complexity: 10 | ||
maligned: | ||
suggest-new: true | ||
dupl: | ||
threshold: 500 | ||
goconst: | ||
min-len: 3 | ||
min-occurrences: 3 | ||
misspell: | ||
# default locale is a neutral variety of English. | ||
locale: | ||
ignore-words: [] | ||
lll: | ||
line-length: 120 | ||
tab-width: 1 | ||
unused: | ||
check-exported: false | ||
unparam: | ||
check-exported: false | ||
nakedret: | ||
max-func-lines: 0 | ||
gocritic: | ||
enabled-tags: | ||
- diagnostic | ||
- performance | ||
- style | ||
- opinionated | ||
disabled-checks: | ||
- unnamedResult | ||
- whyNoLint # TODO enable. | ||
funlen: | ||
lines: 60 | ||
statements: 40 | ||
wsl: | ||
strict-append: true | ||
allow-assign-and-call: true | ||
allow-multiline-assign: true | ||
allow-case-traling-whitespace: true | ||
allow-cuddle-declarations: false | ||
godot: | ||
check-all: false | ||
gomoddirectives: | ||
replace-local: true | ||
|
||
linters: | ||
enable-all: true | ||
disable: | ||
- nolintlint | ||
- varnamelen | ||
- tenv | ||
- tagliatelle | ||
- testpackage | ||
- maligned | ||
- prealloc | ||
- exhaustive #TODO enable | ||
- goerr113 # TODO enable | ||
- nlreturn # TODO enable | ||
- noctx # TODO enable | ||
- interfacer # deprecated by the author https://github.com/mvdan/interfacer#interfacer | ||
- scopelint # deprecated by the author https://github.com/kyoh86/scopelint#obsoleted | ||
- exhaustivestruct | ||
- paralleltest | ||
- tparallel | ||
- cyclop # TODO consider replacing gocyclo with cyclop | ||
- ifshort # TODO enable | ||
- makezero # TODO enable | ||
- wrapcheck # TODO enable | ||
- thelper # TODO enable | ||
- usestdlibvars | ||
- testableexamples | ||
- stylecheck | ||
- nosnakecase | ||
- gci | ||
- staticcheck | ||
- nonamedreturns | ||
- nilnil | ||
- ireturn | ||
- gomnd | ||
- gosimple | ||
- errchkjson | ||
- errname | ||
- dupword | ||
- interfacebloat | ||
- forcetypeassert | ||
- exhaustruct | ||
- contextcheck | ||
- containedctx | ||
- bodyclose | ||
- revive | ||
- gosec | ||
- gofumpt | ||
- gofmt | ||
- gocritic | ||
- goimports | ||
- gocognit | ||
- forbidigo | ||
- nosprintfhostport | ||
- typecheck | ||
- maintidx | ||
- depguard | ||
- musttag | ||
- mirror | ||
- errorlint | ||
- nakedret | ||
|
||
issues: | ||
exclude-use-default: false | ||
exclude-rules: | ||
- path: _test\.go | ||
linters: | ||
- dupl | ||
- funlen | ||
- gomnd | ||
- maintidx | ||
- gomnd | ||
- usestdlibvars | ||
- testableexamples | ||
- stylecheck | ||
- typecheck | ||
- maintidx | ||
- mirror | ||
- path: example_[^\/]*_test\.go | ||
linters: | ||
- dupl | ||
- funlen | ||
- gomnd | ||
- goconst | ||
- lll | ||
- source: "swagger:route" | ||
linters: | ||
- lll | ||
|
||
exclude: | ||
# Allow package logger variables (for now) | ||
- logger is a global variable | ||
# Add comments for package | ||
- at least one file in a package should have a package comment | ||
- Line contains TODO/BUG/FIXME | ||
# Allow magic number 1 | ||
- Magic number[:] 1[^\d] | ||
# Temporarily allow old protobuf reference | ||
- package github.com/golang/protobuf/proto is deprecated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Copyright SecureKey Technologies Inc. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
|
||
# Tool commands (overridable) | ||
DOCKER_CMD ?= docker | ||
|
||
GO_VER ?= 1.20.5 | ||
PROJECT_ROOT = github.com/hyperledger/aries-framework-go | ||
GOBIN_PATH=$(abspath .)/build/bin | ||
MOCKGEN=$(GOBIN_PATH)/mockgen | ||
GOMOCKS=pkg/internal/gomocks | ||
|
||
.PHONY: all | ||
all: clean checks unit-test | ||
|
||
.PHONY: checks | ||
checks: license lint | ||
|
||
.PHONY: lint | ||
lint: | ||
@scripts/check_lint.sh | ||
|
||
.PHONY: license | ||
license: | ||
@scripts/check_license.sh | ||
|
||
.PHONY: unit-test | ||
unit-test: | ||
@scripts/check_unit.sh | ||
|
||
.PHONY: clean | ||
clean: | ||
@rm -rf ./.build | ||
@rm -rf coverage*.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// Copyright Gen Digital Inc. All Rights Reserved. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
module github.com/trustbloc/did-go | ||
|
||
go 1.20 | ||
|
||
require ( | ||
github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce | ||
github.com/google/uuid v1.3.0 | ||
github.com/hyperledger/aries-framework-go/component/log v0.0.0-20230427134832-0c9969493bd3 | ||
github.com/hyperledger/aries-framework-go/test/component v0.0.0-20220322085443-50e8f9bd208b | ||
github.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a | ||
github.com/multiformats/go-multibase v0.1.1 | ||
github.com/multiformats/go-multihash v0.0.13 | ||
github.com/stretchr/testify v1.8.1 | ||
github.com/trustbloc/kms-crypto-go v0.0.0-20230817141224-c6cb8c6f1908 | ||
github.com/trustbloc/vc-go v0.0.0-20230818135742-348ea3555641 | ||
) | ||
|
||
require ( | ||
github.com/IBM/mathlib v0.0.3-0.20230605104224-932ab92f2ce0 // indirect | ||
github.com/bluele/gcache v0.0.0-20190518031135-bc40bd653833 // indirect | ||
github.com/btcsuite/btcd v0.22.3 // indirect | ||
github.com/consensys/bavard v0.1.13 // indirect | ||
github.com/consensys/gnark-crypto v0.9.1 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/go-jose/go-jose/v3 v3.0.1-0.20221117193127-916db76e8214 // indirect | ||
github.com/golang/protobuf v1.5.2 // indirect | ||
github.com/google/tink/go v1.7.0 // indirect | ||
github.com/hyperledger/aries-framework-go/spi v0.0.0-20230517133327-301aa0597250 // indirect | ||
github.com/hyperledger/fabric-amcl v0.0.0-20230602173724-9e02669dceb2 // indirect | ||
github.com/hyperledger/ursa-wrapper-go v0.3.1 // indirect | ||
github.com/kilic/bls12-381 v0.1.1-0.20210503002446-7b7597926c69 // indirect | ||
github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1 // indirect | ||
github.com/minio/sha256-simd v0.1.1 // indirect | ||
github.com/mitchellh/mapstructure v1.5.0 // indirect | ||
github.com/mmcloughlin/addchain v0.4.0 // indirect | ||
github.com/mr-tron/base58 v1.2.0 // indirect | ||
github.com/multiformats/go-base32 v0.1.0 // indirect | ||
github.com/multiformats/go-base36 v0.1.0 // indirect | ||
github.com/multiformats/go-varint v0.0.5 // indirect | ||
github.com/piprate/json-gold v0.5.1-0.20230111113000-6ddbe6e6f19f // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/pquerna/cachecontrol v0.1.0 // indirect | ||
github.com/spaolacci/murmur3 v1.1.0 // indirect | ||
github.com/teserakt-io/golang-ed25519 v0.0.0-20210104091850-3888c087a4c8 // indirect | ||
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect | ||
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect | ||
github.com/xeipuuv/gojsonschema v1.2.0 // indirect | ||
golang.org/x/crypto v0.1.0 // indirect | ||
golang.org/x/sys v0.2.0 // indirect | ||
google.golang.org/protobuf v1.28.1 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
rsc.io/tmplfunc v0.0.3 // indirect | ||
) |
Oops, something went wrong.