From 52cf447e4ea198e232432d5d9596242c9eaccd7a Mon Sep 17 00:00:00 2001 From: Benjamin Bengfort Date: Mon, 22 Jul 2024 15:58:17 -0500 Subject: [PATCH] Update TRISA Dependencies --- .github/workflows/build.yml | 30 ++++---- go.mod | 20 +++--- go.sum | 70 ++++++++++++++----- pkg/ivms101/enum.pb.go | 6 +- pkg/ivms101/identity.pb.go | 22 +++--- pkg/ivms101/ivms101.pb.go | 32 ++++----- pkg/slip0044/enum.pb.go | 6 +- pkg/trisa/api/v1beta1/api.pb.go | 32 ++++----- pkg/trisa/api/v1beta1/api_grpc.pb.go | 65 ++++++++++++++--- pkg/trisa/api/v1beta1/errors.pb.go | 8 +-- .../data/generic/v1beta1/transaction.pb.go | 12 ++-- pkg/trisa/gds/api/v1beta1/api.pb.go | 34 ++++----- pkg/trisa/gds/api/v1beta1/api_grpc.pb.go | 32 ++++++--- pkg/trisa/gds/models/v1beta1/ca.pb.go | 10 +-- pkg/trisa/gds/models/v1beta1/models.pb.go | 18 ++--- 15 files changed, 244 insertions(+), 153 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7c5c3ec..232fd13 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,13 +16,13 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.20.x + go-version: 1.22.x - name: Install Staticcheck - run: go install honnef.co/go/tools/cmd/staticcheck@2023.1.3 + run: go install honnef.co/go/tools/cmd/staticcheck@2023.1.7 - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Lint Go Code run: staticcheck ./... @@ -33,7 +33,7 @@ jobs: strategy: fail-fast: true matrix: - go-version: [1.19.x, 1.20.x, 1.21.x] + go-version: [1.20.x, 1.21.x, 1.22.x] env: GOPATH: ${{ github.workspace }}/go GOBIN: ${{ github.workspace }}/go/bin @@ -56,21 +56,21 @@ jobs: ${{ runner.os }}-go- - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: ${{ env.GOPATH }}/src/github.com/trisacrypto/trisa - name: Install Protoc - uses: arduino/setup-protoc@v2 + uses: arduino/setup-protoc@v3 with: - version: '23.x' + version: '27.x' repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Install Dependencies run: | go version - go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.31 - go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3 + go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.2 + go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.4.0 - name: Code Generation run: go generate ./... @@ -92,7 +92,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.20.x + go-version: 1.22.x - name: Cache Speedup uses: actions/cache@v3 @@ -103,21 +103,21 @@ jobs: ${{ runner.os }}-go- - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: ${{ env.GOPATH }}/src/github.com/trisacrypto/trisa - name: Install Protoc - uses: arduino/setup-protoc@v2 + uses: arduino/setup-protoc@v3 with: - version: '23.x' + version: '27.x' repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Install Dependencies run: | go version - go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.31 - go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3 + go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.2 + go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.4.0 - name: Code Generation run: go generate ./... diff --git a/go.mod b/go.mod index fd04bd8..83e8efd 100644 --- a/go.mod +++ b/go.mod @@ -1,16 +1,18 @@ module github.com/trisacrypto/trisa -go 1.20 +go 1.22 + +toolchain go1.22.3 require ( - github.com/bombsimon/tld-validator v1.2.31 + github.com/bombsimon/tld-validator v1.2.33 github.com/google/uuid v1.6.0 github.com/joho/godotenv v1.5.1 github.com/nsf/jsondiff v0.0.0-20230430225905-43f6cf3098c1 github.com/stretchr/testify v1.9.0 github.com/urfave/cli/v2 v2.27.2 - google.golang.org/grpc v1.64.0 - google.golang.org/protobuf v1.34.1 + google.golang.org/grpc v1.65.0 + google.golang.org/protobuf v1.34.2 software.sslmate.com/src/go-pkcs12 v0.4.0 ) @@ -20,10 +22,10 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect - golang.org/x/crypto v0.23.0 // indirect - golang.org/x/net v0.25.0 // indirect - golang.org/x/sys v0.20.0 // indirect - golang.org/x/text v0.15.0 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240521202816-d264139d666e // indirect + golang.org/x/crypto v0.25.0 // indirect + golang.org/x/net v0.27.0 // indirect + golang.org/x/sys v0.22.0 // indirect + golang.org/x/text v0.16.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240722135656-d784300faade // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 500ff08..dd4ba8a 100644 --- a/go.sum +++ b/go.sum @@ -1,10 +1,11 @@ -github.com/bombsimon/tld-validator v1.2.31 h1:rQfGv3UavCtGwsFi86uGwB1ST/JMj4liPvv7Bao4m+Q= -github.com/bombsimon/tld-validator v1.2.31/go.mod h1:+2YM7/ptr3r4ov5x//j0sOMy1yfSqmrA28THAVNlmnQ= +github.com/bombsimon/tld-validator v1.2.33 h1:FajZi0jt1gYpelma29CT3ed/zAf/PwnU2TzJPdK+g/o= +github.com/bombsimon/tld-validator v1.2.33/go.mod h1:Tw75x7N4Znt8h4p+8VgOsEjwe7/FYjXw9/65bh0lQVU= github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= 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/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= @@ -21,31 +22,64 @@ github.com/urfave/cli/v2 v2.27.2 h1:6e0H+AkS+zDckwPCUrZkKX38mRaau4nL2uipkJpbkcI= github.com/urfave/cli/v2 v2.27.2/go.mod h1:g0+79LmHHATl7DAcHO99smiR/T7uGLw84w8Y42x+4eM= github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4= github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.25.0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac= +golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30= +golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= +golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= +golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= +golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= +golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= +golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= +golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= +golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240521202816-d264139d666e h1:Elxv5MwEkCI9f5SkoL6afed6NTdxaGoAo39eANBwHL8= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240521202816-d264139d666e/go.mod h1:EfXuqaE1J41VCDicxHzUDm+8rk+7ZdXzHV0IhO/I6s0= -google.golang.org/grpc v1.64.0 h1:KH3VH9y/MgNQg1dE7b3XfVK0GsPSIzJwdF617gUSbvY= -google.golang.org/grpc v1.64.0/go.mod h1:oxjF8E3FBnjp+/gVFYdWacaLDx9na1aqy9oovLpxQYg= -google.golang.org/protobuf v1.34.1 h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg= -google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240722135656-d784300faade h1:oCRSWfwGXQsqlVdErcyTt4A93Y8fo0/9D4b1gnI++qo= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240722135656-d784300faade/go.mod h1:Ue6ibwXGpU+dqIcODieyLOcgj7z8+IcskoNIgZxtrFY= +google.golang.org/grpc v1.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc= +google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/pkg/ivms101/enum.pb.go b/pkg/ivms101/enum.pb.go index b9ea84a..c4407d6 100644 --- a/pkg/ivms101/enum.pb.go +++ b/pkg/ivms101/enum.pb.go @@ -32,8 +32,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 -// protoc v5.26.1 +// protoc-gen-go v1.34.2 +// protoc v5.27.1 // source: ivms101/enum.proto package ivms101 @@ -569,7 +569,7 @@ func file_ivms101_enum_proto_rawDescGZIP() []byte { } var file_ivms101_enum_proto_enumTypes = make([]protoimpl.EnumInfo, 5) -var file_ivms101_enum_proto_goTypes = []interface{}{ +var file_ivms101_enum_proto_goTypes = []any{ (NaturalPersonNameTypeCode)(0), // 0: ivms101.NaturalPersonNameTypeCode (LegalPersonNameTypeCode)(0), // 1: ivms101.LegalPersonNameTypeCode (AddressTypeCode)(0), // 2: ivms101.AddressTypeCode diff --git a/pkg/ivms101/identity.pb.go b/pkg/ivms101/identity.pb.go index 829d33a..4042139 100644 --- a/pkg/ivms101/identity.pb.go +++ b/pkg/ivms101/identity.pb.go @@ -32,8 +32,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 -// protoc v5.26.1 +// protoc-gen-go v1.34.2 +// protoc v5.27.1 // source: ivms101/identity.proto package ivms101 @@ -624,7 +624,7 @@ func file_ivms101_identity_proto_rawDescGZIP() []byte { } var file_ivms101_identity_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_ivms101_identity_proto_goTypes = []interface{}{ +var file_ivms101_identity_proto_goTypes = []any{ (*IdentityPayload)(nil), // 0: ivms101.IdentityPayload (*Originator)(nil), // 1: ivms101.Originator (*Beneficiary)(nil), // 2: ivms101.Beneficiary @@ -665,7 +665,7 @@ func file_ivms101_identity_proto_init() { file_ivms101_ivms101_proto_init() file_ivms101_enum_proto_init() if !protoimpl.UnsafeEnabled { - file_ivms101_identity_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_ivms101_identity_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*IdentityPayload); i { case 0: return &v.state @@ -677,7 +677,7 @@ func file_ivms101_identity_proto_init() { return nil } } - file_ivms101_identity_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_ivms101_identity_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*Originator); i { case 0: return &v.state @@ -689,7 +689,7 @@ func file_ivms101_identity_proto_init() { return nil } } - file_ivms101_identity_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_ivms101_identity_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*Beneficiary); i { case 0: return &v.state @@ -701,7 +701,7 @@ func file_ivms101_identity_proto_init() { return nil } } - file_ivms101_identity_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_ivms101_identity_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*OriginatingVasp); i { case 0: return &v.state @@ -713,7 +713,7 @@ func file_ivms101_identity_proto_init() { return nil } } - file_ivms101_identity_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_ivms101_identity_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*BeneficiaryVasp); i { case 0: return &v.state @@ -725,7 +725,7 @@ func file_ivms101_identity_proto_init() { return nil } } - file_ivms101_identity_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_ivms101_identity_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*IntermediaryVasp); i { case 0: return &v.state @@ -737,7 +737,7 @@ func file_ivms101_identity_proto_init() { return nil } } - file_ivms101_identity_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_ivms101_identity_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*TransferPath); i { case 0: return &v.state @@ -749,7 +749,7 @@ func file_ivms101_identity_proto_init() { return nil } } - file_ivms101_identity_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_ivms101_identity_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*PayloadMetadata); i { case 0: return &v.state diff --git a/pkg/ivms101/ivms101.pb.go b/pkg/ivms101/ivms101.pb.go index 6442489..f9e7fae 100644 --- a/pkg/ivms101/ivms101.pb.go +++ b/pkg/ivms101/ivms101.pb.go @@ -32,8 +32,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 -// protoc v5.26.1 +// protoc-gen-go v1.34.2 +// protoc v5.27.1 // source: ivms101/ivms101.proto package ivms101 @@ -1376,7 +1376,7 @@ func file_ivms101_ivms101_proto_rawDescGZIP() []byte { } var file_ivms101_ivms101_proto_msgTypes = make([]protoimpl.MessageInfo, 12) -var file_ivms101_ivms101_proto_goTypes = []interface{}{ +var file_ivms101_ivms101_proto_goTypes = []any{ (*Person)(nil), // 0: ivms101.Person (*NaturalPerson)(nil), // 1: ivms101.NaturalPerson (*NaturalPersonName)(nil), // 2: ivms101.NaturalPersonName @@ -1430,7 +1430,7 @@ func file_ivms101_ivms101_proto_init() { } file_ivms101_enum_proto_init() if !protoimpl.UnsafeEnabled { - file_ivms101_ivms101_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_ivms101_ivms101_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Person); i { case 0: return &v.state @@ -1442,7 +1442,7 @@ func file_ivms101_ivms101_proto_init() { return nil } } - file_ivms101_ivms101_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_ivms101_ivms101_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*NaturalPerson); i { case 0: return &v.state @@ -1454,7 +1454,7 @@ func file_ivms101_ivms101_proto_init() { return nil } } - file_ivms101_ivms101_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_ivms101_ivms101_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*NaturalPersonName); i { case 0: return &v.state @@ -1466,7 +1466,7 @@ func file_ivms101_ivms101_proto_init() { return nil } } - file_ivms101_ivms101_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_ivms101_ivms101_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*NaturalPersonNameId); i { case 0: return &v.state @@ -1478,7 +1478,7 @@ func file_ivms101_ivms101_proto_init() { return nil } } - file_ivms101_ivms101_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_ivms101_ivms101_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*LocalNaturalPersonNameId); i { case 0: return &v.state @@ -1490,7 +1490,7 @@ func file_ivms101_ivms101_proto_init() { return nil } } - file_ivms101_ivms101_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_ivms101_ivms101_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*Address); i { case 0: return &v.state @@ -1502,7 +1502,7 @@ func file_ivms101_ivms101_proto_init() { return nil } } - file_ivms101_ivms101_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_ivms101_ivms101_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*DateAndPlaceOfBirth); i { case 0: return &v.state @@ -1514,7 +1514,7 @@ func file_ivms101_ivms101_proto_init() { return nil } } - file_ivms101_ivms101_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_ivms101_ivms101_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*NationalIdentification); i { case 0: return &v.state @@ -1526,7 +1526,7 @@ func file_ivms101_ivms101_proto_init() { return nil } } - file_ivms101_ivms101_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_ivms101_ivms101_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*LegalPerson); i { case 0: return &v.state @@ -1538,7 +1538,7 @@ func file_ivms101_ivms101_proto_init() { return nil } } - file_ivms101_ivms101_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_ivms101_ivms101_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*LegalPersonName); i { case 0: return &v.state @@ -1550,7 +1550,7 @@ func file_ivms101_ivms101_proto_init() { return nil } } - file_ivms101_ivms101_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_ivms101_ivms101_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*LegalPersonNameId); i { case 0: return &v.state @@ -1562,7 +1562,7 @@ func file_ivms101_ivms101_proto_init() { return nil } } - file_ivms101_ivms101_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_ivms101_ivms101_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*LocalLegalPersonNameId); i { case 0: return &v.state @@ -1575,7 +1575,7 @@ func file_ivms101_ivms101_proto_init() { } } } - file_ivms101_ivms101_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_ivms101_ivms101_proto_msgTypes[0].OneofWrappers = []any{ (*Person_NaturalPerson)(nil), (*Person_LegalPerson)(nil), } diff --git a/pkg/slip0044/enum.pb.go b/pkg/slip0044/enum.pb.go index 305fcb8..78a9c8e 100644 --- a/pkg/slip0044/enum.pb.go +++ b/pkg/slip0044/enum.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 -// protoc v5.26.1 +// protoc-gen-go v1.34.2 +// protoc v5.27.1 // source: slip0044/enum.proto package slip0044 @@ -1410,7 +1410,7 @@ func file_slip0044_enum_proto_rawDescGZIP() []byte { } var file_slip0044_enum_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_slip0044_enum_proto_goTypes = []interface{}{ +var file_slip0044_enum_proto_goTypes = []any{ (CoinType)(0), // 0: slip0044.CoinType } var file_slip0044_enum_proto_depIdxs = []int32{ diff --git a/pkg/trisa/api/v1beta1/api.pb.go b/pkg/trisa/api/v1beta1/api.pb.go index 1fdd982..2f3c959 100644 --- a/pkg/trisa/api/v1beta1/api.pb.go +++ b/pkg/trisa/api/v1beta1/api.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 -// protoc v5.26.1 +// protoc-gen-go v1.34.2 +// protoc v5.27.1 // source: trisa/api/v1beta1/api.proto package api @@ -1430,7 +1430,7 @@ func file_trisa_api_v1beta1_api_proto_rawDescGZIP() []byte { var file_trisa_api_v1beta1_api_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_trisa_api_v1beta1_api_proto_msgTypes = make([]protoimpl.MessageInfo, 11) -var file_trisa_api_v1beta1_api_proto_goTypes = []interface{}{ +var file_trisa_api_v1beta1_api_proto_goTypes = []any{ (TransferState)(0), // 0: trisa.api.v1beta1.TransferState (ConfirmationType)(0), // 1: trisa.api.v1beta1.ConfirmationType (ServiceState_Status)(0), // 2: trisa.api.v1beta1.ServiceState.Status @@ -1485,7 +1485,7 @@ func file_trisa_api_v1beta1_api_proto_init() { } file_trisa_api_v1beta1_errors_proto_init() if !protoimpl.UnsafeEnabled { - file_trisa_api_v1beta1_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_trisa_api_v1beta1_api_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*SecureEnvelope); i { case 0: return &v.state @@ -1497,7 +1497,7 @@ func file_trisa_api_v1beta1_api_proto_init() { return nil } } - file_trisa_api_v1beta1_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_trisa_api_v1beta1_api_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*Payload); i { case 0: return &v.state @@ -1509,7 +1509,7 @@ func file_trisa_api_v1beta1_api_proto_init() { return nil } } - file_trisa_api_v1beta1_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_trisa_api_v1beta1_api_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*Address); i { case 0: return &v.state @@ -1521,7 +1521,7 @@ func file_trisa_api_v1beta1_api_proto_init() { return nil } } - file_trisa_api_v1beta1_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_trisa_api_v1beta1_api_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*AddressConfirmation); i { case 0: return &v.state @@ -1533,7 +1533,7 @@ func file_trisa_api_v1beta1_api_proto_init() { return nil } } - file_trisa_api_v1beta1_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_trisa_api_v1beta1_api_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*KeyTokenQuery); i { case 0: return &v.state @@ -1545,7 +1545,7 @@ func file_trisa_api_v1beta1_api_proto_init() { return nil } } - file_trisa_api_v1beta1_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_trisa_api_v1beta1_api_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*KeyTokenConfirm); i { case 0: return &v.state @@ -1557,7 +1557,7 @@ func file_trisa_api_v1beta1_api_proto_init() { return nil } } - file_trisa_api_v1beta1_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_trisa_api_v1beta1_api_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*OnChainQuery); i { case 0: return &v.state @@ -1569,7 +1569,7 @@ func file_trisa_api_v1beta1_api_proto_init() { return nil } } - file_trisa_api_v1beta1_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_trisa_api_v1beta1_api_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*OnChainConfirm); i { case 0: return &v.state @@ -1581,7 +1581,7 @@ func file_trisa_api_v1beta1_api_proto_init() { return nil } } - file_trisa_api_v1beta1_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_trisa_api_v1beta1_api_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*SigningKey); i { case 0: return &v.state @@ -1593,7 +1593,7 @@ func file_trisa_api_v1beta1_api_proto_init() { return nil } } - file_trisa_api_v1beta1_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_trisa_api_v1beta1_api_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*HealthCheck); i { case 0: return &v.state @@ -1605,7 +1605,7 @@ func file_trisa_api_v1beta1_api_proto_init() { return nil } } - file_trisa_api_v1beta1_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_trisa_api_v1beta1_api_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*ServiceState); i { case 0: return &v.state @@ -1618,11 +1618,11 @@ func file_trisa_api_v1beta1_api_proto_init() { } } } - file_trisa_api_v1beta1_api_proto_msgTypes[2].OneofWrappers = []interface{}{ + file_trisa_api_v1beta1_api_proto_msgTypes[2].OneofWrappers = []any{ (*Address_KeyToken)(nil), (*Address_OnChain)(nil), } - file_trisa_api_v1beta1_api_proto_msgTypes[3].OneofWrappers = []interface{}{ + file_trisa_api_v1beta1_api_proto_msgTypes[3].OneofWrappers = []any{ (*AddressConfirmation_KeyToken)(nil), (*AddressConfirmation_OnChain)(nil), } diff --git a/pkg/trisa/api/v1beta1/api_grpc.pb.go b/pkg/trisa/api/v1beta1/api_grpc.pb.go index 8940ea2..c50b319 100644 --- a/pkg/trisa/api/v1beta1/api_grpc.pb.go +++ b/pkg/trisa/api/v1beta1/api_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.26.1 +// - protoc-gen-go-grpc v1.4.0 +// - protoc v5.27.1 // source: trisa/api/v1beta1/api.proto package api @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.62.0 or later. +const _ = grpc.SupportPackageIsVersion8 const ( TRISANetwork_Transfer_FullMethodName = "/trisa.api.v1beta1.TRISANetwork/Transfer" @@ -28,6 +28,15 @@ const ( // TRISANetworkClient is the client API for TRISANetwork service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// The TRISANetwork service defines the peer-to-peer interactions between VASPs that are +// necessary to conduct compliance information exchanges. All TRISA members must +// implement all services described by the TRISA protocol to ensure that exchanges are +// conducted correctly and securely. The primary RPCs are Transfer and TransferStream +// which allow VASPs to exchange compliance information before conducting a virtual +// asset transaction. The other RPCs facilitate Transfers, allowing address +// confirmations prior to a transfer and public key exchange so that transaction +// envelopes can be encrypted and signed. type TRISANetworkClient interface { // To conduct an information exchange prior to a virtual asset transaction, an // originating VASP will send an encrypted transaction envelope to the beneficiary @@ -59,8 +68,9 @@ func NewTRISANetworkClient(cc grpc.ClientConnInterface) TRISANetworkClient { } func (c *tRISANetworkClient) Transfer(ctx context.Context, in *SecureEnvelope, opts ...grpc.CallOption) (*SecureEnvelope, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SecureEnvelope) - err := c.cc.Invoke(ctx, TRISANetwork_Transfer_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TRISANetwork_Transfer_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -68,11 +78,12 @@ func (c *tRISANetworkClient) Transfer(ctx context.Context, in *SecureEnvelope, o } func (c *tRISANetworkClient) TransferStream(ctx context.Context, opts ...grpc.CallOption) (TRISANetwork_TransferStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &TRISANetwork_ServiceDesc.Streams[0], TRISANetwork_TransferStream_FullMethodName, opts...) + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &TRISANetwork_ServiceDesc.Streams[0], TRISANetwork_TransferStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &tRISANetworkTransferStreamClient{stream} + x := &tRISANetworkTransferStreamClient{ClientStream: stream} return x, nil } @@ -99,8 +110,9 @@ func (x *tRISANetworkTransferStreamClient) Recv() (*SecureEnvelope, error) { } func (c *tRISANetworkClient) ConfirmAddress(ctx context.Context, in *Address, opts ...grpc.CallOption) (*AddressConfirmation, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AddressConfirmation) - err := c.cc.Invoke(ctx, TRISANetwork_ConfirmAddress_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TRISANetwork_ConfirmAddress_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -108,8 +120,9 @@ func (c *tRISANetworkClient) ConfirmAddress(ctx context.Context, in *Address, op } func (c *tRISANetworkClient) KeyExchange(ctx context.Context, in *SigningKey, opts ...grpc.CallOption) (*SigningKey, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SigningKey) - err := c.cc.Invoke(ctx, TRISANetwork_KeyExchange_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TRISANetwork_KeyExchange_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -119,6 +132,15 @@ func (c *tRISANetworkClient) KeyExchange(ctx context.Context, in *SigningKey, op // TRISANetworkServer is the server API for TRISANetwork service. // All implementations must embed UnimplementedTRISANetworkServer // for forward compatibility +// +// The TRISANetwork service defines the peer-to-peer interactions between VASPs that are +// necessary to conduct compliance information exchanges. All TRISA members must +// implement all services described by the TRISA protocol to ensure that exchanges are +// conducted correctly and securely. The primary RPCs are Transfer and TransferStream +// which allow VASPs to exchange compliance information before conducting a virtual +// asset transaction. The other RPCs facilitate Transfers, allowing address +// confirmations prior to a transfer and public key exchange so that transaction +// envelopes can be encrypted and signed. type TRISANetworkServer interface { // To conduct an information exchange prior to a virtual asset transaction, an // originating VASP will send an encrypted transaction envelope to the beneficiary @@ -190,7 +212,7 @@ func _TRISANetwork_Transfer_Handler(srv interface{}, ctx context.Context, dec fu } func _TRISANetwork_TransferStream_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(TRISANetworkServer).TransferStream(&tRISANetworkTransferStreamServer{stream}) + return srv.(TRISANetworkServer).TransferStream(&tRISANetworkTransferStreamServer{ServerStream: stream}) } type TRISANetwork_TransferStreamServer interface { @@ -289,6 +311,16 @@ const ( // TRISAHealthClient is the client API for TRISAHealth service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// The TRISAHealth service is optional but highly recommended for VASP members to +// implement. The Status endpoint allows the TRISA Directory Service to perform health +// checks with VASP's TRISA Node and report the service conditions of the TRISA network. +// Because a down TRISA node will prevent travel rule compliant virtual asset +// transactions, the health service is intended to quickly identify network problems and +// notify members as quickly as possible. +// +// NOTE: the TRISAHealth service must also be behind mTLS so that the health check +// service can verify the identity certificates being used for the TRISANetwork service. type TRISAHealthClient interface { Status(ctx context.Context, in *HealthCheck, opts ...grpc.CallOption) (*ServiceState, error) } @@ -302,8 +334,9 @@ func NewTRISAHealthClient(cc grpc.ClientConnInterface) TRISAHealthClient { } func (c *tRISAHealthClient) Status(ctx context.Context, in *HealthCheck, opts ...grpc.CallOption) (*ServiceState, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ServiceState) - err := c.cc.Invoke(ctx, TRISAHealth_Status_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TRISAHealth_Status_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -313,6 +346,16 @@ func (c *tRISAHealthClient) Status(ctx context.Context, in *HealthCheck, opts .. // TRISAHealthServer is the server API for TRISAHealth service. // All implementations must embed UnimplementedTRISAHealthServer // for forward compatibility +// +// The TRISAHealth service is optional but highly recommended for VASP members to +// implement. The Status endpoint allows the TRISA Directory Service to perform health +// checks with VASP's TRISA Node and report the service conditions of the TRISA network. +// Because a down TRISA node will prevent travel rule compliant virtual asset +// transactions, the health service is intended to quickly identify network problems and +// notify members as quickly as possible. +// +// NOTE: the TRISAHealth service must also be behind mTLS so that the health check +// service can verify the identity certificates being used for the TRISANetwork service. type TRISAHealthServer interface { Status(context.Context, *HealthCheck) (*ServiceState, error) mustEmbedUnimplementedTRISAHealthServer() diff --git a/pkg/trisa/api/v1beta1/errors.pb.go b/pkg/trisa/api/v1beta1/errors.pb.go index 0c655fc..aa758c1 100644 --- a/pkg/trisa/api/v1beta1/errors.pb.go +++ b/pkg/trisa/api/v1beta1/errors.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 -// protoc v5.26.1 +// protoc-gen-go v1.34.2 +// protoc v5.27.1 // source: trisa/api/v1beta1/errors.proto package api @@ -425,7 +425,7 @@ func file_trisa_api_v1beta1_errors_proto_rawDescGZIP() []byte { var file_trisa_api_v1beta1_errors_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_trisa_api_v1beta1_errors_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_trisa_api_v1beta1_errors_proto_goTypes = []interface{}{ +var file_trisa_api_v1beta1_errors_proto_goTypes = []any{ (Error_Code)(0), // 0: trisa.api.v1beta1.Error.Code (*Error)(nil), // 1: trisa.api.v1beta1.Error (*anypb.Any)(nil), // 2: google.protobuf.Any @@ -446,7 +446,7 @@ func file_trisa_api_v1beta1_errors_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_trisa_api_v1beta1_errors_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_trisa_api_v1beta1_errors_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Error); i { case 0: return &v.state diff --git a/pkg/trisa/data/generic/v1beta1/transaction.pb.go b/pkg/trisa/data/generic/v1beta1/transaction.pb.go index ed7c8e9..182e1f4 100644 --- a/pkg/trisa/data/generic/v1beta1/transaction.pb.go +++ b/pkg/trisa/data/generic/v1beta1/transaction.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 -// protoc v5.26.1 +// protoc-gen-go v1.34.2 +// protoc v5.27.1 // source: trisa/data/generic/v1beta1/transaction.proto package generic @@ -404,7 +404,7 @@ func file_trisa_data_generic_v1beta1_transaction_proto_rawDescGZIP() []byte { } var file_trisa_data_generic_v1beta1_transaction_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_trisa_data_generic_v1beta1_transaction_proto_goTypes = []interface{}{ +var file_trisa_data_generic_v1beta1_transaction_proto_goTypes = []any{ (*Transaction)(nil), // 0: trisa.data.generic.v1beta1.Transaction (*Pending)(nil), // 1: trisa.data.generic.v1beta1.Pending (*ConfirmationReceipt)(nil), // 2: trisa.data.generic.v1beta1.ConfirmationReceipt @@ -424,7 +424,7 @@ func file_trisa_data_generic_v1beta1_transaction_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_trisa_data_generic_v1beta1_transaction_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_trisa_data_generic_v1beta1_transaction_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Transaction); i { case 0: return &v.state @@ -436,7 +436,7 @@ func file_trisa_data_generic_v1beta1_transaction_proto_init() { return nil } } - file_trisa_data_generic_v1beta1_transaction_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_trisa_data_generic_v1beta1_transaction_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*Pending); i { case 0: return &v.state @@ -448,7 +448,7 @@ func file_trisa_data_generic_v1beta1_transaction_proto_init() { return nil } } - file_trisa_data_generic_v1beta1_transaction_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_trisa_data_generic_v1beta1_transaction_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*ConfirmationReceipt); i { case 0: return &v.state diff --git a/pkg/trisa/gds/api/v1beta1/api.pb.go b/pkg/trisa/gds/api/v1beta1/api.pb.go index 1f63d67..129aaf7 100644 --- a/pkg/trisa/gds/api/v1beta1/api.pb.go +++ b/pkg/trisa/gds/api/v1beta1/api.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 -// protoc v5.26.1 +// protoc-gen-go v1.34.2 +// protoc v5.27.1 // source: trisa/gds/api/v1beta1/api.proto package api @@ -1432,7 +1432,7 @@ func file_trisa_gds_api_v1beta1_api_proto_rawDescGZIP() []byte { var file_trisa_gds_api_v1beta1_api_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_trisa_gds_api_v1beta1_api_proto_msgTypes = make([]protoimpl.MessageInfo, 14) -var file_trisa_gds_api_v1beta1_api_proto_goTypes = []interface{}{ +var file_trisa_gds_api_v1beta1_api_proto_goTypes = []any{ (ServiceState_Status)(0), // 0: trisa.gds.api.v1beta1.ServiceState.Status (*LookupRequest)(nil), // 1: trisa.gds.api.v1beta1.LookupRequest (*LookupReply)(nil), // 2: trisa.gds.api.v1beta1.LookupReply @@ -1499,7 +1499,7 @@ func file_trisa_gds_api_v1beta1_api_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_trisa_gds_api_v1beta1_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_api_v1beta1_api_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*LookupRequest); i { case 0: return &v.state @@ -1511,7 +1511,7 @@ func file_trisa_gds_api_v1beta1_api_proto_init() { return nil } } - file_trisa_gds_api_v1beta1_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_api_v1beta1_api_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*LookupReply); i { case 0: return &v.state @@ -1523,7 +1523,7 @@ func file_trisa_gds_api_v1beta1_api_proto_init() { return nil } } - file_trisa_gds_api_v1beta1_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_api_v1beta1_api_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*SearchRequest); i { case 0: return &v.state @@ -1535,7 +1535,7 @@ func file_trisa_gds_api_v1beta1_api_proto_init() { return nil } } - file_trisa_gds_api_v1beta1_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_api_v1beta1_api_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*SearchReply); i { case 0: return &v.state @@ -1547,7 +1547,7 @@ func file_trisa_gds_api_v1beta1_api_proto_init() { return nil } } - file_trisa_gds_api_v1beta1_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_api_v1beta1_api_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*RegisterRequest); i { case 0: return &v.state @@ -1559,7 +1559,7 @@ func file_trisa_gds_api_v1beta1_api_proto_init() { return nil } } - file_trisa_gds_api_v1beta1_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_api_v1beta1_api_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*RegisterReply); i { case 0: return &v.state @@ -1571,7 +1571,7 @@ func file_trisa_gds_api_v1beta1_api_proto_init() { return nil } } - file_trisa_gds_api_v1beta1_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_api_v1beta1_api_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*VerifyContactRequest); i { case 0: return &v.state @@ -1583,7 +1583,7 @@ func file_trisa_gds_api_v1beta1_api_proto_init() { return nil } } - file_trisa_gds_api_v1beta1_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_api_v1beta1_api_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*VerifyContactReply); i { case 0: return &v.state @@ -1595,7 +1595,7 @@ func file_trisa_gds_api_v1beta1_api_proto_init() { return nil } } - file_trisa_gds_api_v1beta1_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_api_v1beta1_api_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*VerificationRequest); i { case 0: return &v.state @@ -1607,7 +1607,7 @@ func file_trisa_gds_api_v1beta1_api_proto_init() { return nil } } - file_trisa_gds_api_v1beta1_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_api_v1beta1_api_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*VerificationReply); i { case 0: return &v.state @@ -1619,7 +1619,7 @@ func file_trisa_gds_api_v1beta1_api_proto_init() { return nil } } - file_trisa_gds_api_v1beta1_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_api_v1beta1_api_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*HealthCheck); i { case 0: return &v.state @@ -1631,7 +1631,7 @@ func file_trisa_gds_api_v1beta1_api_proto_init() { return nil } } - file_trisa_gds_api_v1beta1_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_api_v1beta1_api_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*ServiceState); i { case 0: return &v.state @@ -1643,7 +1643,7 @@ func file_trisa_gds_api_v1beta1_api_proto_init() { return nil } } - file_trisa_gds_api_v1beta1_api_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_api_v1beta1_api_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*Error); i { case 0: return &v.state @@ -1655,7 +1655,7 @@ func file_trisa_gds_api_v1beta1_api_proto_init() { return nil } } - file_trisa_gds_api_v1beta1_api_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_api_v1beta1_api_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*SearchReply_Result); i { case 0: return &v.state diff --git a/pkg/trisa/gds/api/v1beta1/api_grpc.pb.go b/pkg/trisa/gds/api/v1beta1/api_grpc.pb.go index 5fb21db..20755f8 100644 --- a/pkg/trisa/gds/api/v1beta1/api_grpc.pb.go +++ b/pkg/trisa/gds/api/v1beta1/api_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.26.1 +// - protoc-gen-go-grpc v1.4.0 +// - protoc v5.27.1 // source: trisa/gds/api/v1beta1/api.proto package api @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.62.0 or later. +const _ = grpc.SupportPackageIsVersion8 const ( TRISADirectory_Lookup_FullMethodName = "/trisa.gds.api.v1beta1.TRISADirectory/Lookup" @@ -30,6 +30,9 @@ const ( // TRISADirectoryClient is the client API for TRISADirectory service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// The TRISADirectory service specifies how TRISA clients should interact with a +// directory service to facilitate P2P transfers. type TRISADirectoryClient interface { // Interactions with the Directory Service during a TRISA transfer // These are the primary Directory Service interactions. @@ -53,8 +56,9 @@ func NewTRISADirectoryClient(cc grpc.ClientConnInterface) TRISADirectoryClient { } func (c *tRISADirectoryClient) Lookup(ctx context.Context, in *LookupRequest, opts ...grpc.CallOption) (*LookupReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LookupReply) - err := c.cc.Invoke(ctx, TRISADirectory_Lookup_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TRISADirectory_Lookup_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -62,8 +66,9 @@ func (c *tRISADirectoryClient) Lookup(ctx context.Context, in *LookupRequest, op } func (c *tRISADirectoryClient) Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchReply) - err := c.cc.Invoke(ctx, TRISADirectory_Search_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TRISADirectory_Search_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,8 +76,9 @@ func (c *tRISADirectoryClient) Search(ctx context.Context, in *SearchRequest, op } func (c *tRISADirectoryClient) Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RegisterReply) - err := c.cc.Invoke(ctx, TRISADirectory_Register_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TRISADirectory_Register_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -80,8 +86,9 @@ func (c *tRISADirectoryClient) Register(ctx context.Context, in *RegisterRequest } func (c *tRISADirectoryClient) VerifyContact(ctx context.Context, in *VerifyContactRequest, opts ...grpc.CallOption) (*VerifyContactReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(VerifyContactReply) - err := c.cc.Invoke(ctx, TRISADirectory_VerifyContact_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TRISADirectory_VerifyContact_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -89,8 +96,9 @@ func (c *tRISADirectoryClient) VerifyContact(ctx context.Context, in *VerifyCont } func (c *tRISADirectoryClient) Verification(ctx context.Context, in *VerificationRequest, opts ...grpc.CallOption) (*VerificationReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(VerificationReply) - err := c.cc.Invoke(ctx, TRISADirectory_Verification_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TRISADirectory_Verification_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -98,8 +106,9 @@ func (c *tRISADirectoryClient) Verification(ctx context.Context, in *Verificatio } func (c *tRISADirectoryClient) Status(ctx context.Context, in *HealthCheck, opts ...grpc.CallOption) (*ServiceState, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ServiceState) - err := c.cc.Invoke(ctx, TRISADirectory_Status_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TRISADirectory_Status_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -109,6 +118,9 @@ func (c *tRISADirectoryClient) Status(ctx context.Context, in *HealthCheck, opts // TRISADirectoryServer is the server API for TRISADirectory service. // All implementations must embed UnimplementedTRISADirectoryServer // for forward compatibility +// +// The TRISADirectory service specifies how TRISA clients should interact with a +// directory service to facilitate P2P transfers. type TRISADirectoryServer interface { // Interactions with the Directory Service during a TRISA transfer // These are the primary Directory Service interactions. diff --git a/pkg/trisa/gds/models/v1beta1/ca.pb.go b/pkg/trisa/gds/models/v1beta1/ca.pb.go index f3fe361..59a553e 100644 --- a/pkg/trisa/gds/models/v1beta1/ca.pb.go +++ b/pkg/trisa/gds/models/v1beta1/ca.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 -// protoc v5.26.1 +// protoc-gen-go v1.34.2 +// protoc v5.27.1 // source: trisa/gds/models/v1beta1/ca.proto package models @@ -349,7 +349,7 @@ func file_trisa_gds_models_v1beta1_ca_proto_rawDescGZIP() []byte { } var file_trisa_gds_models_v1beta1_ca_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_trisa_gds_models_v1beta1_ca_proto_goTypes = []interface{}{ +var file_trisa_gds_models_v1beta1_ca_proto_goTypes = []any{ (*Certificate)(nil), // 0: trisa.gds.models.v1beta1.Certificate (*Name)(nil), // 1: trisa.gds.models.v1beta1.Name } @@ -369,7 +369,7 @@ func file_trisa_gds_models_v1beta1_ca_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_trisa_gds_models_v1beta1_ca_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_models_v1beta1_ca_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Certificate); i { case 0: return &v.state @@ -381,7 +381,7 @@ func file_trisa_gds_models_v1beta1_ca_proto_init() { return nil } } - file_trisa_gds_models_v1beta1_ca_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_models_v1beta1_ca_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*Name); i { case 0: return &v.state diff --git a/pkg/trisa/gds/models/v1beta1/models.pb.go b/pkg/trisa/gds/models/v1beta1/models.pb.go index a2f8407..7ceca1f 100644 --- a/pkg/trisa/gds/models/v1beta1/models.pb.go +++ b/pkg/trisa/gds/models/v1beta1/models.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 -// protoc v5.26.1 +// protoc-gen-go v1.34.2 +// protoc v5.27.1 // source: trisa/gds/models/v1beta1/models.proto package models @@ -1155,7 +1155,7 @@ func file_trisa_gds_models_v1beta1_models_proto_rawDescGZIP() []byte { var file_trisa_gds_models_v1beta1_models_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_trisa_gds_models_v1beta1_models_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_trisa_gds_models_v1beta1_models_proto_goTypes = []interface{}{ +var file_trisa_gds_models_v1beta1_models_proto_goTypes = []any{ (BusinessCategory)(0), // 0: trisa.gds.models.v1beta1.BusinessCategory (VerificationState)(0), // 1: trisa.gds.models.v1beta1.VerificationState (ServiceState)(0), // 2: trisa.gds.models.v1beta1.ServiceState @@ -1202,7 +1202,7 @@ func file_trisa_gds_models_v1beta1_models_proto_init() { } file_trisa_gds_models_v1beta1_ca_proto_init() if !protoimpl.UnsafeEnabled { - file_trisa_gds_models_v1beta1_models_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_models_v1beta1_models_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*VASP); i { case 0: return &v.state @@ -1214,7 +1214,7 @@ func file_trisa_gds_models_v1beta1_models_proto_init() { return nil } } - file_trisa_gds_models_v1beta1_models_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_models_v1beta1_models_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*Contacts); i { case 0: return &v.state @@ -1226,7 +1226,7 @@ func file_trisa_gds_models_v1beta1_models_proto_init() { return nil } } - file_trisa_gds_models_v1beta1_models_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_models_v1beta1_models_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*Contact); i { case 0: return &v.state @@ -1238,7 +1238,7 @@ func file_trisa_gds_models_v1beta1_models_proto_init() { return nil } } - file_trisa_gds_models_v1beta1_models_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_models_v1beta1_models_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*TRIXOQuestionnaire); i { case 0: return &v.state @@ -1250,7 +1250,7 @@ func file_trisa_gds_models_v1beta1_models_proto_init() { return nil } } - file_trisa_gds_models_v1beta1_models_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_models_v1beta1_models_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*Jurisdiction); i { case 0: return &v.state @@ -1262,7 +1262,7 @@ func file_trisa_gds_models_v1beta1_models_proto_init() { return nil } } - file_trisa_gds_models_v1beta1_models_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_trisa_gds_models_v1beta1_models_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*Version); i { case 0: return &v.state