diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index c331e40f..9ee38d28 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -49,7 +49,7 @@ jobs: # image build&push - vcbackend: + vcverifier: needs: [ "generate-version" ] runs-on: ubuntu-latest @@ -61,7 +61,7 @@ jobs: id: build-image uses: redhat-actions/buildah-build@v2 with: - image: vcbackend + image: vcverifier tags: latest ${{ github.sha }} ${{needs.generate-version.outputs.version}} dockerfiles: | ./Dockerfile @@ -80,7 +80,7 @@ jobs: git-release: needs: - generate-version - - vcbackend + - vcverifier runs-on: ubuntu-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8f57e7b4..c1b6a2dd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,7 +41,7 @@ jobs: # image build&push - vcbackend: + vcverifier: needs: [ "generate-version" ] runs-on: ubuntu-latest @@ -52,7 +52,7 @@ jobs: id: build-image uses: redhat-actions/buildah-build@v2 with: - image: vcbackend + image: vcverifier tags: latest ${{ github.sha }} ${{needs.generate-version.outputs.version}} dockerfiles: | ./Dockerfile @@ -71,7 +71,7 @@ jobs: git-release: needs: - generate-version - - vcbackend + - vcverifier runs-on: ubuntu-latest diff --git a/Dockerfile b/Dockerfile index 2638c397..d9f7b317 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ WORKDIR /go/src/app COPY --from=build /go/src/app/back/views /go/src/app/back/views COPY --from=build /go/src/app/back/www /go/src/app/back/www COPY --from=build /go/src/app/configs /go/src/app/configs -COPY --from=build /go/src/app/vcbackend /go/src/app/vcbackend +COPY --from=build /go/src/app/vcverifier /go/src/app/vcverifier COPY --from=build /go/src/app/vault/templates /go/src/app/vault/templates CMD ["./vcverifier"] \ No newline at end of file diff --git a/README.md b/README.md index 5c3a46ed..2427f6dd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# VCBackend +# vcverifier -VCBackend includes in a single binary demo versions of Issuer, Verifier and Wallet (same-device only, for a cross-device wallet please see [VCWallet](https://github.com/hesusruiz/VCWallet)). +vcverifier includes in a single binary demo versions of Issuer, Verifier and Wallet (same-device only, for a cross-device wallet please see [VCWallet](https://github.com/hesusruiz/VCWallet)). This facilitates installation and allows to see how all components fit together and the protocol flows between them. @@ -9,14 +9,14 @@ This facilitates installation and allows to see how all components fit together Clone the repository: ``` -git clone git@github.com:hesusruiz/VCBackend.git +git clone git@github.com:hesusruiz/vcverifier.git ``` -Before running VCBackend you need to have accessible the endpoints implemented by [VCWaltid](https://github.com/FIWARE/VCWaltid). Please install an run VCWaltid following the instructions there. The endpoints and ports required from VCBackend are preconfigured to match the ones from VCWaltid without any change. If you do require changes, they can be setup in the configuration file in `configs\server.yaml`. +Before running vcverifier you need to have accessible the endpoints implemented by [VCWaltid](https://github.com/FIWARE/VCWaltid). Please install an run VCWaltid following the instructions there. The endpoints and ports required from vcverifier are preconfigured to match the ones from VCWaltid without any change. If you do require changes, they can be setup in the configuration file in `configs\server.yaml`. ## Running -The first time that you start the VCBackend you have to make sure the database artifacts are consistent. Tou can use the provided Makefile for that or run the command directly: +The first time that you start the vcverifier you have to make sure the database artifacts are consistent. Tou can use the provided Makefile for that or run the command directly: ``` make datamodel @@ -24,7 +24,7 @@ make datamodel The above command has to be executed every time that you modify the database model in the application. -To start VCBackend in development mode, type: +To start vcverifier in development mode, type: ``` go run . @@ -32,7 +32,7 @@ go run . # Configuration -The configuration file in `config\server.yaml` provides for some configuration of VCBackend. An example config file is: +The configuration file in `config\server.yaml` provides for some configuration of vcverifier. An example config file is: ```yaml server: diff --git a/api/api.yaml b/api/api.yaml index 8a1a801d..a228c430 100644 --- a/api/api.yaml +++ b/api/api.yaml @@ -1,6 +1,6 @@ openapi: 3.0.3 info: - title: VCBackend + title: vcverifier description: Backend component to verify credentials version: 0.0.1 tags: diff --git a/back/operations/manager.go b/back/operations/manager.go index 0f37f361..03df4681 100644 --- a/back/operations/manager.go +++ b/back/operations/manager.go @@ -1,7 +1,7 @@ package operations import ( - "github.com/fiware/vcbackend/vault" + "github.com/fiware/vcverifier/vault" "github.com/hesusruiz/vcutils/yaml" zlog "github.com/rs/zerolog/log" diff --git a/back/operations/ssikit.go b/back/operations/ssikit.go index 4ca717ce..5745a9aa 100644 --- a/back/operations/ssikit.go +++ b/back/operations/ssikit.go @@ -5,7 +5,7 @@ import ( "fmt" "net/http" - "github.com/fiware/vcbackend/vault" + "github.com/fiware/vcverifier/vault" "github.com/gofiber/fiber/v2" "go.uber.org/zap" ) diff --git a/back/operations/user.go b/back/operations/user.go index b2e3ea73..ed6d5396 100644 --- a/back/operations/user.go +++ b/back/operations/user.go @@ -4,8 +4,8 @@ import ( "context" "crypto/rand" - "github.com/fiware/vcbackend/ent" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent" + "github.com/fiware/vcverifier/ent/user" "github.com/duo-labs/webauthn/protocol" "github.com/duo-labs/webauthn/webauthn" diff --git a/ent/client.go b/ent/client.go index 457516a2..96af00f9 100644 --- a/ent/client.go +++ b/ent/client.go @@ -7,14 +7,14 @@ import ( "fmt" "log" - "github.com/fiware/vcbackend/ent/migrate" - - "github.com/fiware/vcbackend/ent/credential" - "github.com/fiware/vcbackend/ent/did" - "github.com/fiware/vcbackend/ent/naturalperson" - "github.com/fiware/vcbackend/ent/privatekey" - "github.com/fiware/vcbackend/ent/publickey" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent/migrate" + + "github.com/fiware/vcverifier/ent/credential" + "github.com/fiware/vcverifier/ent/did" + "github.com/fiware/vcverifier/ent/naturalperson" + "github.com/fiware/vcverifier/ent/privatekey" + "github.com/fiware/vcverifier/ent/publickey" + "github.com/fiware/vcverifier/ent/user" "entgo.io/ent/dialect" "entgo.io/ent/dialect/sql" diff --git a/ent/credential.go b/ent/credential.go index c6aee33e..e5ae7713 100644 --- a/ent/credential.go +++ b/ent/credential.go @@ -9,8 +9,8 @@ import ( "time" "entgo.io/ent/dialect/sql" - "github.com/fiware/vcbackend/ent/credential" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent/credential" + "github.com/fiware/vcverifier/ent/user" ) // Credential is the model entity for the Credential schema. diff --git a/ent/credential/where.go b/ent/credential/where.go index daf54c25..e08db51b 100644 --- a/ent/credential/where.go +++ b/ent/credential/where.go @@ -7,7 +7,7 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" - "github.com/fiware/vcbackend/ent/predicate" + "github.com/fiware/vcverifier/ent/predicate" ) // ID filters vertices based on their ID field. diff --git a/ent/credential_create.go b/ent/credential_create.go index 20103f75..4210ed92 100644 --- a/ent/credential_create.go +++ b/ent/credential_create.go @@ -10,8 +10,8 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/credential" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent/credential" + "github.com/fiware/vcverifier/ent/user" ) // CredentialCreate is the builder for creating a Credential entity. diff --git a/ent/credential_delete.go b/ent/credential_delete.go index a5ee21ab..e18e9220 100644 --- a/ent/credential_delete.go +++ b/ent/credential_delete.go @@ -9,8 +9,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/credential" - "github.com/fiware/vcbackend/ent/predicate" + "github.com/fiware/vcverifier/ent/credential" + "github.com/fiware/vcverifier/ent/predicate" ) // CredentialDelete is the builder for deleting a Credential entity. diff --git a/ent/credential_query.go b/ent/credential_query.go index 563e5549..3d1f7d3e 100644 --- a/ent/credential_query.go +++ b/ent/credential_query.go @@ -10,9 +10,9 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/credential" - "github.com/fiware/vcbackend/ent/predicate" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent/credential" + "github.com/fiware/vcverifier/ent/predicate" + "github.com/fiware/vcverifier/ent/user" ) // CredentialQuery is the builder for querying Credential entities. diff --git a/ent/credential_update.go b/ent/credential_update.go index 6f69fb2b..09cbabff 100644 --- a/ent/credential_update.go +++ b/ent/credential_update.go @@ -11,9 +11,9 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/credential" - "github.com/fiware/vcbackend/ent/predicate" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent/credential" + "github.com/fiware/vcverifier/ent/predicate" + "github.com/fiware/vcverifier/ent/user" ) // CredentialUpdate is the builder for updating Credential entities. diff --git a/ent/did.go b/ent/did.go index 5f54aa0f..e88a1444 100644 --- a/ent/did.go +++ b/ent/did.go @@ -8,8 +8,8 @@ import ( "time" "entgo.io/ent/dialect/sql" - "github.com/fiware/vcbackend/ent/did" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent/did" + "github.com/fiware/vcverifier/ent/user" ) // DID is the model entity for the DID schema. diff --git a/ent/did/where.go b/ent/did/where.go index 9bd921fb..4f14bc61 100644 --- a/ent/did/where.go +++ b/ent/did/where.go @@ -7,7 +7,7 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" - "github.com/fiware/vcbackend/ent/predicate" + "github.com/fiware/vcverifier/ent/predicate" ) // ID filters vertices based on their ID field. diff --git a/ent/did_create.go b/ent/did_create.go index 02166723..5ef852cb 100644 --- a/ent/did_create.go +++ b/ent/did_create.go @@ -10,8 +10,8 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/did" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent/did" + "github.com/fiware/vcverifier/ent/user" ) // DIDCreate is the builder for creating a DID entity. diff --git a/ent/did_delete.go b/ent/did_delete.go index 15e82b74..9b5f82f8 100644 --- a/ent/did_delete.go +++ b/ent/did_delete.go @@ -9,8 +9,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/did" - "github.com/fiware/vcbackend/ent/predicate" + "github.com/fiware/vcverifier/ent/did" + "github.com/fiware/vcverifier/ent/predicate" ) // DIDDelete is the builder for deleting a DID entity. diff --git a/ent/did_query.go b/ent/did_query.go index edc2505d..2be57377 100644 --- a/ent/did_query.go +++ b/ent/did_query.go @@ -10,9 +10,9 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/did" - "github.com/fiware/vcbackend/ent/predicate" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent/did" + "github.com/fiware/vcverifier/ent/predicate" + "github.com/fiware/vcverifier/ent/user" ) // DIDQuery is the builder for querying DID entities. diff --git a/ent/did_update.go b/ent/did_update.go index fd69265f..a362964f 100644 --- a/ent/did_update.go +++ b/ent/did_update.go @@ -11,9 +11,9 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/did" - "github.com/fiware/vcbackend/ent/predicate" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent/did" + "github.com/fiware/vcverifier/ent/predicate" + "github.com/fiware/vcverifier/ent/user" ) // DIDUpdate is the builder for updating DID entities. diff --git a/ent/ent.go b/ent/ent.go index 0f8e5ddc..4885a407 100644 --- a/ent/ent.go +++ b/ent/ent.go @@ -10,12 +10,12 @@ import ( "entgo.io/ent" "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" - "github.com/fiware/vcbackend/ent/credential" - "github.com/fiware/vcbackend/ent/did" - "github.com/fiware/vcbackend/ent/naturalperson" - "github.com/fiware/vcbackend/ent/privatekey" - "github.com/fiware/vcbackend/ent/publickey" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent/credential" + "github.com/fiware/vcverifier/ent/did" + "github.com/fiware/vcverifier/ent/naturalperson" + "github.com/fiware/vcverifier/ent/privatekey" + "github.com/fiware/vcverifier/ent/publickey" + "github.com/fiware/vcverifier/ent/user" ) // ent aliases to avoid import conflicts in user's code. diff --git a/ent/enttest/enttest.go b/ent/enttest/enttest.go index 697de61f..bb2cab3b 100644 --- a/ent/enttest/enttest.go +++ b/ent/enttest/enttest.go @@ -5,12 +5,12 @@ package enttest import ( "context" - "github.com/fiware/vcbackend/ent" + "github.com/fiware/vcverifier/ent" // required by schema hooks. - _ "github.com/fiware/vcbackend/ent/runtime" + _ "github.com/fiware/vcverifier/ent/runtime" "entgo.io/ent/dialect/sql/schema" - "github.com/fiware/vcbackend/ent/migrate" + "github.com/fiware/vcverifier/ent/migrate" ) type ( diff --git a/ent/hook/hook.go b/ent/hook/hook.go index 7b1401e7..a9e862f2 100644 --- a/ent/hook/hook.go +++ b/ent/hook/hook.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/fiware/vcbackend/ent" + "github.com/fiware/vcverifier/ent" ) // The CredentialFunc type is an adapter to allow the use of ordinary diff --git a/ent/mutation.go b/ent/mutation.go index cf26a0e5..d69b249c 100644 --- a/ent/mutation.go +++ b/ent/mutation.go @@ -9,13 +9,13 @@ import ( "sync" "time" - "github.com/fiware/vcbackend/ent/credential" - "github.com/fiware/vcbackend/ent/did" - "github.com/fiware/vcbackend/ent/naturalperson" - "github.com/fiware/vcbackend/ent/predicate" - "github.com/fiware/vcbackend/ent/privatekey" - "github.com/fiware/vcbackend/ent/publickey" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent/credential" + "github.com/fiware/vcverifier/ent/did" + "github.com/fiware/vcverifier/ent/naturalperson" + "github.com/fiware/vcverifier/ent/predicate" + "github.com/fiware/vcverifier/ent/privatekey" + "github.com/fiware/vcverifier/ent/publickey" + "github.com/fiware/vcverifier/ent/user" "entgo.io/ent" ) diff --git a/ent/naturalperson.go b/ent/naturalperson.go index da34dd1d..eb2c7950 100644 --- a/ent/naturalperson.go +++ b/ent/naturalperson.go @@ -8,7 +8,7 @@ import ( "time" "entgo.io/ent/dialect/sql" - "github.com/fiware/vcbackend/ent/naturalperson" + "github.com/fiware/vcverifier/ent/naturalperson" ) // NaturalPerson is the model entity for the NaturalPerson schema. diff --git a/ent/naturalperson/where.go b/ent/naturalperson/where.go index f37325a7..41cc5408 100644 --- a/ent/naturalperson/where.go +++ b/ent/naturalperson/where.go @@ -7,7 +7,7 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" - "github.com/fiware/vcbackend/ent/predicate" + "github.com/fiware/vcverifier/ent/predicate" ) // ID filters vertices based on their ID field. diff --git a/ent/naturalperson_create.go b/ent/naturalperson_create.go index 126d9031..dc81b404 100644 --- a/ent/naturalperson_create.go +++ b/ent/naturalperson_create.go @@ -10,9 +10,9 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/credential" - "github.com/fiware/vcbackend/ent/naturalperson" - "github.com/fiware/vcbackend/ent/privatekey" + "github.com/fiware/vcverifier/ent/credential" + "github.com/fiware/vcverifier/ent/naturalperson" + "github.com/fiware/vcverifier/ent/privatekey" ) // NaturalPersonCreate is the builder for creating a NaturalPerson entity. diff --git a/ent/naturalperson_delete.go b/ent/naturalperson_delete.go index 70dc2e8c..9d7e7e13 100644 --- a/ent/naturalperson_delete.go +++ b/ent/naturalperson_delete.go @@ -9,8 +9,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/naturalperson" - "github.com/fiware/vcbackend/ent/predicate" + "github.com/fiware/vcverifier/ent/naturalperson" + "github.com/fiware/vcverifier/ent/predicate" ) // NaturalPersonDelete is the builder for deleting a NaturalPerson entity. diff --git a/ent/naturalperson_query.go b/ent/naturalperson_query.go index 6384a47f..1f8f9a85 100644 --- a/ent/naturalperson_query.go +++ b/ent/naturalperson_query.go @@ -11,10 +11,10 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/credential" - "github.com/fiware/vcbackend/ent/naturalperson" - "github.com/fiware/vcbackend/ent/predicate" - "github.com/fiware/vcbackend/ent/privatekey" + "github.com/fiware/vcverifier/ent/credential" + "github.com/fiware/vcverifier/ent/naturalperson" + "github.com/fiware/vcverifier/ent/predicate" + "github.com/fiware/vcverifier/ent/privatekey" ) // NaturalPersonQuery is the builder for querying NaturalPerson entities. diff --git a/ent/naturalperson_update.go b/ent/naturalperson_update.go index 73a902cc..f64c3e8a 100644 --- a/ent/naturalperson_update.go +++ b/ent/naturalperson_update.go @@ -11,10 +11,10 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/credential" - "github.com/fiware/vcbackend/ent/naturalperson" - "github.com/fiware/vcbackend/ent/predicate" - "github.com/fiware/vcbackend/ent/privatekey" + "github.com/fiware/vcverifier/ent/credential" + "github.com/fiware/vcverifier/ent/naturalperson" + "github.com/fiware/vcverifier/ent/predicate" + "github.com/fiware/vcverifier/ent/privatekey" ) // NaturalPersonUpdate is the builder for updating NaturalPerson entities. diff --git a/ent/privatekey.go b/ent/privatekey.go index 68a1c30b..41ed0883 100644 --- a/ent/privatekey.go +++ b/ent/privatekey.go @@ -9,8 +9,8 @@ import ( "time" "entgo.io/ent/dialect/sql" - "github.com/fiware/vcbackend/ent/privatekey" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent/privatekey" + "github.com/fiware/vcverifier/ent/user" ) // PrivateKey is the model entity for the PrivateKey schema. diff --git a/ent/privatekey/where.go b/ent/privatekey/where.go index 9743baf2..293b81ea 100644 --- a/ent/privatekey/where.go +++ b/ent/privatekey/where.go @@ -7,7 +7,7 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" - "github.com/fiware/vcbackend/ent/predicate" + "github.com/fiware/vcverifier/ent/predicate" ) // ID filters vertices based on their ID field. diff --git a/ent/privatekey_create.go b/ent/privatekey_create.go index bd9956c6..470cc022 100644 --- a/ent/privatekey_create.go +++ b/ent/privatekey_create.go @@ -10,8 +10,8 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/privatekey" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent/privatekey" + "github.com/fiware/vcverifier/ent/user" ) // PrivateKeyCreate is the builder for creating a PrivateKey entity. diff --git a/ent/privatekey_delete.go b/ent/privatekey_delete.go index 78ea5672..9ff1a19c 100644 --- a/ent/privatekey_delete.go +++ b/ent/privatekey_delete.go @@ -9,8 +9,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/predicate" - "github.com/fiware/vcbackend/ent/privatekey" + "github.com/fiware/vcverifier/ent/predicate" + "github.com/fiware/vcverifier/ent/privatekey" ) // PrivateKeyDelete is the builder for deleting a PrivateKey entity. diff --git a/ent/privatekey_query.go b/ent/privatekey_query.go index 3da0a78d..c64c2de6 100644 --- a/ent/privatekey_query.go +++ b/ent/privatekey_query.go @@ -10,9 +10,9 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/predicate" - "github.com/fiware/vcbackend/ent/privatekey" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent/predicate" + "github.com/fiware/vcverifier/ent/privatekey" + "github.com/fiware/vcverifier/ent/user" ) // PrivateKeyQuery is the builder for querying PrivateKey entities. diff --git a/ent/privatekey_update.go b/ent/privatekey_update.go index aec0cff6..5539ea7b 100644 --- a/ent/privatekey_update.go +++ b/ent/privatekey_update.go @@ -11,9 +11,9 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/predicate" - "github.com/fiware/vcbackend/ent/privatekey" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent/predicate" + "github.com/fiware/vcverifier/ent/privatekey" + "github.com/fiware/vcverifier/ent/user" ) // PrivateKeyUpdate is the builder for updating PrivateKey entities. diff --git a/ent/publickey.go b/ent/publickey.go index c1fe09b0..bc004119 100644 --- a/ent/publickey.go +++ b/ent/publickey.go @@ -9,7 +9,7 @@ import ( "time" "entgo.io/ent/dialect/sql" - "github.com/fiware/vcbackend/ent/publickey" + "github.com/fiware/vcverifier/ent/publickey" ) // PublicKey is the model entity for the PublicKey schema. diff --git a/ent/publickey/where.go b/ent/publickey/where.go index da6249d2..72db58c6 100644 --- a/ent/publickey/where.go +++ b/ent/publickey/where.go @@ -6,7 +6,7 @@ import ( "time" "entgo.io/ent/dialect/sql" - "github.com/fiware/vcbackend/ent/predicate" + "github.com/fiware/vcverifier/ent/predicate" ) // ID filters vertices based on their ID field. diff --git a/ent/publickey_create.go b/ent/publickey_create.go index 9dd2b7f1..180e1823 100644 --- a/ent/publickey_create.go +++ b/ent/publickey_create.go @@ -10,7 +10,7 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/publickey" + "github.com/fiware/vcverifier/ent/publickey" ) // PublicKeyCreate is the builder for creating a PublicKey entity. diff --git a/ent/publickey_delete.go b/ent/publickey_delete.go index 6c9e4dbb..cae6f581 100644 --- a/ent/publickey_delete.go +++ b/ent/publickey_delete.go @@ -9,8 +9,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/predicate" - "github.com/fiware/vcbackend/ent/publickey" + "github.com/fiware/vcverifier/ent/predicate" + "github.com/fiware/vcverifier/ent/publickey" ) // PublicKeyDelete is the builder for deleting a PublicKey entity. diff --git a/ent/publickey_query.go b/ent/publickey_query.go index 61a971b6..e72fe697 100644 --- a/ent/publickey_query.go +++ b/ent/publickey_query.go @@ -10,8 +10,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/predicate" - "github.com/fiware/vcbackend/ent/publickey" + "github.com/fiware/vcverifier/ent/predicate" + "github.com/fiware/vcverifier/ent/publickey" ) // PublicKeyQuery is the builder for querying PublicKey entities. diff --git a/ent/publickey_update.go b/ent/publickey_update.go index 2617f2a1..35b0cf35 100644 --- a/ent/publickey_update.go +++ b/ent/publickey_update.go @@ -11,8 +11,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/predicate" - "github.com/fiware/vcbackend/ent/publickey" + "github.com/fiware/vcverifier/ent/predicate" + "github.com/fiware/vcverifier/ent/publickey" ) // PublicKeyUpdate is the builder for updating PublicKey entities. diff --git a/ent/runtime.go b/ent/runtime.go index 577056e9..a00f733b 100644 --- a/ent/runtime.go +++ b/ent/runtime.go @@ -5,13 +5,13 @@ package ent import ( "time" - "github.com/fiware/vcbackend/ent/credential" - "github.com/fiware/vcbackend/ent/did" - "github.com/fiware/vcbackend/ent/naturalperson" - "github.com/fiware/vcbackend/ent/privatekey" - "github.com/fiware/vcbackend/ent/publickey" - "github.com/fiware/vcbackend/ent/schema" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent/credential" + "github.com/fiware/vcverifier/ent/did" + "github.com/fiware/vcverifier/ent/naturalperson" + "github.com/fiware/vcverifier/ent/privatekey" + "github.com/fiware/vcverifier/ent/publickey" + "github.com/fiware/vcverifier/ent/schema" + "github.com/fiware/vcverifier/ent/user" ) // The init function reads all schema descriptors with runtime code diff --git a/ent/runtime/runtime.go b/ent/runtime/runtime.go index 770305a8..4a8e3655 100644 --- a/ent/runtime/runtime.go +++ b/ent/runtime/runtime.go @@ -2,7 +2,7 @@ package runtime -// The schema-stitching logic is generated in github.com/fiware/vcbackend/ent/runtime.go +// The schema-stitching logic is generated in github.com/fiware/vcverifier/ent/runtime.go const ( Version = "v0.11.0" // Version of ent codegen. diff --git a/ent/user.go b/ent/user.go index a89f83f2..6e91e56e 100644 --- a/ent/user.go +++ b/ent/user.go @@ -8,7 +8,7 @@ import ( "time" "entgo.io/ent/dialect/sql" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent/user" ) // User is the model entity for the User schema. diff --git a/ent/user/where.go b/ent/user/where.go index f8173705..ef5da4e2 100644 --- a/ent/user/where.go +++ b/ent/user/where.go @@ -7,7 +7,7 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" - "github.com/fiware/vcbackend/ent/predicate" + "github.com/fiware/vcverifier/ent/predicate" ) // ID filters vertices based on their ID field. diff --git a/ent/user_create.go b/ent/user_create.go index 953fdede..0c78babb 100644 --- a/ent/user_create.go +++ b/ent/user_create.go @@ -10,10 +10,10 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/credential" - "github.com/fiware/vcbackend/ent/did" - "github.com/fiware/vcbackend/ent/privatekey" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent/credential" + "github.com/fiware/vcverifier/ent/did" + "github.com/fiware/vcverifier/ent/privatekey" + "github.com/fiware/vcverifier/ent/user" ) // UserCreate is the builder for creating a User entity. diff --git a/ent/user_delete.go b/ent/user_delete.go index 9d5e65f5..a74287bc 100644 --- a/ent/user_delete.go +++ b/ent/user_delete.go @@ -9,8 +9,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/predicate" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent/predicate" + "github.com/fiware/vcverifier/ent/user" ) // UserDelete is the builder for deleting a User entity. diff --git a/ent/user_query.go b/ent/user_query.go index b8d6d852..7b6080d6 100644 --- a/ent/user_query.go +++ b/ent/user_query.go @@ -11,11 +11,11 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/credential" - "github.com/fiware/vcbackend/ent/did" - "github.com/fiware/vcbackend/ent/predicate" - "github.com/fiware/vcbackend/ent/privatekey" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent/credential" + "github.com/fiware/vcverifier/ent/did" + "github.com/fiware/vcverifier/ent/predicate" + "github.com/fiware/vcverifier/ent/privatekey" + "github.com/fiware/vcverifier/ent/user" ) // UserQuery is the builder for querying User entities. diff --git a/ent/user_update.go b/ent/user_update.go index 951eed30..750afcd3 100644 --- a/ent/user_update.go +++ b/ent/user_update.go @@ -11,11 +11,11 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/fiware/vcbackend/ent/credential" - "github.com/fiware/vcbackend/ent/did" - "github.com/fiware/vcbackend/ent/predicate" - "github.com/fiware/vcbackend/ent/privatekey" - "github.com/fiware/vcbackend/ent/user" + "github.com/fiware/vcverifier/ent/credential" + "github.com/fiware/vcverifier/ent/did" + "github.com/fiware/vcverifier/ent/predicate" + "github.com/fiware/vcverifier/ent/privatekey" + "github.com/fiware/vcverifier/ent/user" ) // UserUpdate is the builder for updating User entities. diff --git a/go.mod b/go.mod index c438d5a5..2ab9e924 100644 --- a/go.mod +++ b/go.mod @@ -1,15 +1,14 @@ module github.com/fiware/vcverifier +go 1.19 + require ( entgo.io/ent v0.11.0 github.com/duo-labs/webauthn v0.0.0-20220815211337-00c9fb5711f5 - github.com/goccy/go-yaml v1.9.6 github.com/gofiber/fiber/v2 v2.40.1 github.com/gofiber/storage/memory v0.0.0-20221128090226-a21499405c25 github.com/gorilla/sessions v1.2.1 - github.com/libp2p/go-libp2p v0.22.0 github.com/mattn/go-sqlite3 v1.14.16 - github.com/multiformats/go-varint v0.0.6 github.com/rs/zerolog v1.28.0 github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e ) @@ -17,26 +16,19 @@ require ( require ( github.com/Masterminds/goutils v1.1.1 // indirect github.com/Masterminds/semver/v3 v3.1.1 // indirect - github.com/gogo/protobuf v1.3.2 // indirect + github.com/benbjohnson/clock v1.3.0 // indirect + github.com/goccy/go-yaml v1.9.6 // indirect github.com/huandu/xstrings v1.3.3 // indirect github.com/imdario/mergo v0.3.13 // indirect - github.com/klauspost/cpuid/v2 v2.1.0 // indirect - github.com/libp2p/go-openssl v0.1.0 // indirect - github.com/mattn/go-pointer v0.0.1 // indirect - github.com/minio/sha256-simd v1.0.0 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect - github.com/mr-tron/base58 v1.2.0 // indirect - github.com/multiformats/go-base32 v0.0.4 // indirect - github.com/multiformats/go-base36 v0.1.0 // indirect github.com/shopspring/decimal v1.3.1 // indirect - github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572 // indirect github.com/spf13/cast v1.5.0 // indirect github.com/tidwall/match v1.1.1 // indirect github.com/tidwall/pretty v1.2.1 // indirect go.uber.org/atomic v1.10.0 // indirect + go.uber.org/goleak v1.1.12 // indirect go.uber.org/multierr v1.8.0 // indirect - gopkg.in/yaml.v2 v2.4.0 // indirect ) require ( @@ -64,7 +56,6 @@ require ( github.com/mattn/go-runewidth v0.0.14 // indirect github.com/mitchellh/go-wordwrap v1.0.1 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect - github.com/multiformats/go-multibase v0.1.1 github.com/rivo/uniseg v0.4.3 // indirect github.com/tidwall/gjson v1.14.4 github.com/valyala/bytebufferpool v1.0.0 // indirect diff --git a/go.sum b/go.sum index 0ecf5cb8..2f1b1b31 100644 --- a/go.sum +++ b/go.sum @@ -142,6 +142,7 @@ github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZw github.com/aybabtme/rgbterm v0.0.0-20170906152045-cc83f3b3ce59/go.mod h1:q/89r3U2H7sSsE2t6Kca0lfwTK8JdoNGS/yzM/4iH5I= github.com/aymerick/raymond v2.0.2+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g= github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= +github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= @@ -213,7 +214,6 @@ github.com/davecgh/go-spew v0.0.0-20161028175848-04cdfd42973b/go.mod h1:J7Y8YcW2 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/decred/dcrd/crypto/blake256 v1.0.0 h1:/8DMNYp9SGi5f0w7uCm6d6M4OU2rGFK09Y2A4Xv7EE0= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 h1:HbphB4TFFXpv7MNrT52FGrrgVXF1owhMVTHFZIlnvd4= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0/go.mod h1:DZGJHZMqrU4JJqFAWUS2UO1+lbSKsdiOoYi9Zzey7Fc= github.com/devigned/tab v0.1.1/go.mod h1:XG9mPq0dFghrYvoBF3xdRrJzSTX1b7IQrvaL9mzjeJY= @@ -313,7 +313,6 @@ github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7a github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= github.com/gogo/protobuf v1.3.0/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= -github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= @@ -509,7 +508,6 @@ github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk= github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= -github.com/ipfs/go-cid v0.2.0 h1:01JTiihFq9en9Vz0lc0VDWvZe/uBonGpzo4THP0vcQ0= github.com/jarcoal/httpmock v1.0.5/go.mod h1:ATjnClrvW/3tijVmpL/va5Z3aAyGvqU3gCT8nX0Txik= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= @@ -548,9 +546,6 @@ github.com/klauspost/compress v1.15.0/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47e github.com/klauspost/compress v1.15.9/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU= github.com/klauspost/compress v1.15.12 h1:YClS/PImqYbn+UILDnqxQCZ3RehC9N318SU3kElDUEM= github.com/klauspost/compress v1.15.12/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= -github.com/klauspost/cpuid/v2 v2.0.4/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.1.0 h1:eyi1Ad2aNJMW95zcSbmGg7Cg6cq3ADwLpMAP96d8rF0= -github.com/klauspost/cpuid/v2 v2.1.0/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= @@ -573,11 +568,6 @@ github.com/letsencrypt/pkcs11key/v4 v4.0.0/go.mod h1:EFUvBDay26dErnNb70Nd0/VW3tJ github.com/lib/pq v1.1.1/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.10.1/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= -github.com/libp2p/go-libp2p v0.22.0 h1:2Tce0kHOp5zASFKJbNzRElvh0iZwdtG5uZheNW8chIw= -github.com/libp2p/go-libp2p v0.22.0/go.mod h1:UDolmweypBSjQb2f7xutPnwZ/fxioLbMBxSjRksxxU4= -github.com/libp2p/go-openssl v0.1.0 h1:LBkKEcUv6vtZIQLVTegAil8jbNpJErQ9AnT+bWV+Ooo= -github.com/libp2p/go-openssl v0.1.0/go.mod h1:OiOxwPpL3n4xlenjx2h7AwSGaFSC/KZvf6gNdOBQMtc= github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= github.com/lyft/protoc-gen-star v0.5.1/go.mod h1:9toiA3cC7z5uVbODF7kEQ91Xn7XNFkVUl+SrEe+ZORU= @@ -607,8 +597,6 @@ github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Ky github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16 h1:bq3VjFmv/sOjHtdEhmkEV4x1AJtvUvOJ2PFAZ5+peKQ= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-pointer v0.0.1 h1:n+XhsuGeVO6MEAp7xyEukFINEa+Quek5psIR/ylA6o0= -github.com/mattn/go-pointer v0.0.1/go.mod h1:2zXcozF6qYGgmsG+SeTZz3oAbFLdD3OWqnUbNvJZAlc= github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.7/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= @@ -629,8 +617,6 @@ github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKju github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= github.com/miekg/pkcs11 v1.0.2/go.mod h1:XsNlhZGX73bx86s2hdc/FuaLm2CPZJemRLMA+WTFxgs= github.com/miekg/pkcs11 v1.0.3/go.mod h1:XsNlhZGX73bx86s2hdc/FuaLm2CPZJemRLMA+WTFxgs= -github.com/minio/sha256-simd v1.0.0 h1:v1ta+49hkWZyvaKwrQB8elexRqm6Y0aMLjCNsrYxo6g= -github.com/minio/sha256-simd v1.0.0/go.mod h1:OuYzVNI5vcoYIAmbIvHPl3N3jUzVedXbKy5RFepssQM= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI= github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= @@ -658,20 +644,7 @@ github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lN github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8= -github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o= -github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= github.com/mreiferson/go-httpclient v0.0.0-20160630210159-31f0106b4474/go.mod h1:OQA4XLvDbMgS8P0CevmM4m9Q3Jq4phKUzcocxuGJ5m8= -github.com/multiformats/go-base32 v0.0.4 h1:+qMh4a2f37b4xTNs6mqitDinryCI+tfO2dRVMN9mjSE= -github.com/multiformats/go-base32 v0.0.4/go.mod h1:jNLFzjPZtp3aIARHbJRZIaPuspdH0J6q39uUM5pnABM= -github.com/multiformats/go-base36 v0.1.0 h1:JR6TyF7JjGd3m6FbLU2cOxhC0Li8z8dLNGQ89tUg4F4= -github.com/multiformats/go-base36 v0.1.0/go.mod h1:kFGE83c6s80PklsHO9sRn2NCoffoRdUUOENyW/Vv6sM= -github.com/multiformats/go-multiaddr v0.6.0 h1:qMnoOPj2s8xxPU5kZ57Cqdr0hHhARz7mFsPMIiYNqzg= -github.com/multiformats/go-multibase v0.1.1 h1:3ASCDsuLX8+j4kx58qnJ4YFq/JWTJpCyDW27ztsVTOI= -github.com/multiformats/go-multibase v0.1.1/go.mod h1:ZEjHE+IsUrgp5mhlEAYjMtZwK1k4haNkcaPg9aoe1a8= -github.com/multiformats/go-multicodec v0.5.0 h1:EgU6cBe/D7WRwQb1KmnBvU7lrcFGMggZVTPtOW9dDHs= -github.com/multiformats/go-multihash v0.2.1 h1:aem8ZT0VA2nCHHk7bPJ1BjUbHNciqZC/d16Vve9l108= -github.com/multiformats/go-varint v0.0.6 h1:gk85QWKxh3TazbLxED/NlDVv8+q+ReFJk7Y2W/KhfNY= -github.com/multiformats/go-varint v0.0.6/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/mwitkow/go-proto-validators v0.0.0-20180403085117-0950a7990007/go.mod h1:m2XC9Qq0AlmmVksL6FktJCdTYyLk7V3fKyp0sl1yWQo= @@ -690,7 +663,6 @@ github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQ github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= github.com/olekukonko/tablewriter v0.0.4/go.mod h1:zq6QwlOf5SlnkVbMSr5EoBv3636FWnp+qbPhuoO21uA= -github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= @@ -815,10 +787,7 @@ github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4k github.com/soheilhy/cmux v0.1.5-0.20210205191134-5ec6847320e5/go.mod h1:T7TcVDs9LWfQgPlPsdngu6I6QIoyIFZDDC6sNE1GqG0= github.com/soheilhy/cmux v0.1.5/go.mod h1:T7TcVDs9LWfQgPlPsdngu6I6QIoyIFZDDC6sNE1GqG0= github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= -github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572 h1:RC6RW7j+1+HkWaX/Yh71Ee5ZHaHYt7ZP4sQgUrm6cDU= -github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572/go.mod h1:w0SWMsp6j9O/dk4/ZpIhL+3CkG8ofA2vuv7k+ltqUMc= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= github.com/spf13/afero v1.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4= github.com/spf13/afero v1.3.4/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= @@ -834,12 +803,10 @@ github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHN github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJQMI= github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo= github.com/spf13/cobra v1.3.0/go.mod h1:BrRVncBjOJa/eUcVVm9CE+oC6as8k+VYr4NY7WCi9V4= -github.com/spf13/cobra v1.6.0 h1:42a0n6jwCot1pUmomAp4T7DeMD+20LFv4Q54pxLf2LI= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= @@ -954,6 +921,7 @@ go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ= go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= go.uber.org/goleak v1.1.12 h1:gZAh5/EyT/HQwlpkCy6wTpqfH9H8Lz8zbm3dZh+OyzA= +go.uber.org/goleak v1.1.12/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= @@ -1211,7 +1179,6 @@ golang.org/x/sys v0.0.0-20211205182925-97ca703d548d/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220406163625-3f8b81556e12/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.2.0 h1:ljd4t30dBnAvMZaQCevtY0xLLD0A+bRZXbgLMLU1F/A= @@ -1307,7 +1274,6 @@ golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= -golang.org/x/tools v0.1.12 h1:VveCTK38A2rkS8ZqFY25HIDFscX5X9OoEhJd3quQmXU= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -1508,7 +1474,6 @@ gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= @@ -1523,7 +1488,6 @@ honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.1.4/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= -lukechampine.com/blake3 v1.1.7 h1:GgRMhmdsuK8+ii6UZFDL8Nb+VyMwadAgcJyfYHxG6n0= pack.ag/amqp v0.11.2/go.mod h1:4/cbmt4EJXSKlG6LCfWHoqmN0uFdy5i/+YFz+fTfhV4= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= diff --git a/internal/jwt/example_test.go b/internal/jwt/example_test.go index 92b2ede1..d5b9327d 100644 --- a/internal/jwt/example_test.go +++ b/internal/jwt/example_test.go @@ -5,7 +5,7 @@ import ( "fmt" "time" - "github.com/fiware/vcbackend/internal/jwt" + "github.com/fiware/vcverifier/internal/jwt" ) // Example (atypical) using the RegisteredClaims type by itself to parse a token. diff --git a/internal/jwt/hmac_example_test.go b/internal/jwt/hmac_example_test.go index 99c6fb75..95111a4b 100644 --- a/internal/jwt/hmac_example_test.go +++ b/internal/jwt/hmac_example_test.go @@ -5,7 +5,7 @@ import ( "io/ioutil" "time" - "github.com/fiware/vcbackend/internal/jwt" + "github.com/fiware/vcverifier/internal/jwt" ) // For HMAC signing method, the key can be any []byte. It is recommended to generate diff --git a/internal/jwt/rsa_pss_test.go b/internal/jwt/rsa_pss_test.go index 50376e5a..4d2987f8 100644 --- a/internal/jwt/rsa_pss_test.go +++ b/internal/jwt/rsa_pss_test.go @@ -10,8 +10,8 @@ import ( "testing" "time" - "github.com/fiware/vcbackend/internal/jwt" - "github.com/fiware/vcbackend/internal/jwt/test" + "github.com/fiware/vcverifier/internal/jwt" + "github.com/fiware/vcverifier/internal/jwt/test" ) var rsaPSSTestData = []struct { diff --git a/internal/jwt/test/helpers.go b/internal/jwt/test/helpers.go index b53ae554..bc17dbcb 100644 --- a/internal/jwt/test/helpers.go +++ b/internal/jwt/test/helpers.go @@ -5,7 +5,7 @@ import ( "crypto/rsa" "io/ioutil" - "github.com/fiware/vcbackend/internal/jwt" + "github.com/fiware/vcverifier/internal/jwt" ) func LoadRSAPrivateKeyFromDisk(location string) *rsa.PrivateKey { diff --git a/vault/credential.go b/vault/credential.go index 3609b8ad..a521b788 100644 --- a/vault/credential.go +++ b/vault/credential.go @@ -8,9 +8,9 @@ import ( "text/template" "github.com/Masterminds/sprig/v3" - "github.com/fiware/vcbackend/ent" - "github.com/fiware/vcbackend/internal/jwk" - "github.com/fiware/vcbackend/internal/jwt" + "github.com/fiware/vcverifier/ent" + "github.com/fiware/vcverifier/internal/jwk" + "github.com/fiware/vcverifier/internal/jwt" "github.com/google/uuid" "github.com/hesusruiz/vcutils/yaml" zlog "github.com/rs/zerolog/log" diff --git a/vault/vault.go b/vault/vault.go index e36b9ad8..9c522fc7 100644 --- a/vault/vault.go +++ b/vault/vault.go @@ -9,11 +9,11 @@ import ( "strings" "sync" - "github.com/fiware/vcbackend/ent" - "github.com/fiware/vcbackend/ent/did" - "github.com/fiware/vcbackend/ent/user" - "github.com/fiware/vcbackend/internal/jwk" - "github.com/fiware/vcbackend/internal/jwt" + "github.com/fiware/vcverifier/ent" + "github.com/fiware/vcverifier/ent/did" + "github.com/fiware/vcverifier/ent/user" + "github.com/fiware/vcverifier/internal/jwk" + "github.com/fiware/vcverifier/internal/jwt" "github.com/hesusruiz/vcutils/yaml" "golang.org/x/crypto/bcrypt"