diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 33a00a33a..f0d5b82f7 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,10 +5,23 @@ updates: directory: "/" schedule: interval: "weekly" + groups: + actions-deps: + patterns: + - "*" - package-ecosystem: "gomod" - directory: "/" + directories: + - "**/*" allow: - dependency-type: all schedule: interval: "weekly" + ignore: + - dependency-name: "github.com/hyperledger/fabric*" + - dependency-name: "github.com/hyperledger-labs/fabric*" + groups: + all-deps: + update-types: + - minor + - patch diff --git a/Makefile b/Makefile index 2ab265c5b..1474e71f1 100644 --- a/Makefile +++ b/Makefile @@ -46,6 +46,9 @@ gotools: godeps: gotools $(GO) mod download +gotidy: + ./scripts/gomate.sh tidy + fpc-sdk: godeps $(foreach DIR, $(FPC_SDK_DEP_DIRS), $(MAKE) -C $(DIR) build || exit;) diff --git a/integration/go_chaincode/deps.go b/integration/go_chaincode/deps.go new file mode 100644 index 000000000..bff0d7f97 --- /dev/null +++ b/integration/go_chaincode/deps.go @@ -0,0 +1,14 @@ +//go:build deps +// +build deps + +/* +Copyright IBM Corp. All Rights Reserved. + +SPDX-License-Identifier: Apache-2.0 +*/ + +package go_chaincode + +import ( + _ "github.com/hyperledger-labs/fabric-smart-client/node" +) diff --git a/integration/go_chaincode/go.mod b/integration/go_chaincode/go.mod index c1f66a3c3..8b42e21e4 100644 --- a/integration/go_chaincode/go.mod +++ b/integration/go_chaincode/go.mod @@ -13,9 +13,8 @@ replace ( require ( github.com/hyperledger-labs/fabric-smart-client v0.3.1-0.20240426121454-7cc4bf2a24b9 - github.com/hyperledger/fabric v2.1.1+incompatible + github.com/hyperledger/fabric v2.1.1+incompatible // indirect github.com/hyperledger/fabric-protos-go v0.3.0 // indirect - github.com/libp2p/go-libp2p-core v0.14.0 github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.8.4 ) @@ -26,7 +25,6 @@ require ( cloud.google.com/go/compute/metadata v0.2.3 // indirect cloud.google.com/go/iam v1.1.3 // indirect cloud.google.com/go/storage v1.30.1 // indirect - code.cloudfoundry.org/clock v1.0.0 // indirect github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect github.com/BurntSushi/toml v1.2.1 // indirect github.com/IBM/idemix v0.0.2-0.20231107110441-534ea4193b8f // indirect @@ -37,16 +35,10 @@ require ( github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible // indirect github.com/Microsoft/go-winio v0.6.1 // indirect github.com/ReneKroon/ttlcache/v2 v2.11.0 // indirect - github.com/SmartBFT-Go/consensus v0.0.0-20230212211744-e5a79afcea81 // indirect - github.com/VictoriaMetrics/fastcache v1.12.0 // indirect github.com/ale-linux/aries-framework-go/component/kmscrypto v0.0.0-20231023164747-f3f972769504 // indirect - github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect - github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect github.com/benbjohnson/clock v1.3.5 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bits-and-blooms/bitset v1.7.0 // indirect - github.com/btcsuite/btcd v0.23.4 // indirect - github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2 // indirect github.com/bytedance/sonic v1.11.2 // indirect github.com/cenkalti/backoff/v4 v4.2.1 // indirect github.com/cespare/xxhash v1.1.0 // indirect @@ -121,7 +113,6 @@ require ( github.com/hyperledger-labs/weaver-dlt-interoperability/sdks/fabric/go-sdk v1.2.3-alpha.1.0.20210812140206-37f430515b8c // indirect github.com/hyperledger/fabric-amcl v0.0.0-20230602173724-9e02669dceb2 // indirect github.com/hyperledger/fabric-chaincode-go v0.0.0-20230228194215-b84622ba6a7a // indirect - github.com/hyperledger/fabric-config v0.1.0 // indirect github.com/hyperledger/fabric-lib-go v1.0.0 // indirect github.com/hyperledger/fabric-private-chaincode v1.0.0-rc3.0.20231026135044-67a19b0fcda0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect @@ -154,13 +145,11 @@ require ( github.com/libp2p/go-msgio v0.3.0 // indirect github.com/libp2p/go-nat v0.2.0 // indirect github.com/libp2p/go-netroute v0.2.1 // indirect - github.com/libp2p/go-openssl v0.1.0 // indirect github.com/libp2p/go-reuseport v0.4.0 // indirect github.com/libp2p/go-yamux/v4 v4.0.1 // indirect github.com/magiconair/properties v1.8.7 // indirect github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd // indirect github.com/mattn/go-isatty v0.0.20 // indirect - github.com/mattn/go-pointer v0.0.1 // indirect github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect github.com/miekg/dns v1.1.55 // indirect github.com/miekg/pkcs11 v1.1.1 // indirect @@ -212,7 +201,6 @@ require ( github.com/raulk/go-watchdog v1.3.0 // indirect github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect github.com/sirupsen/logrus v1.9.3 // indirect - github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572 // indirect github.com/spaolacci/murmur3 v1.1.0 // indirect github.com/spf13/afero v1.9.5 // indirect github.com/spf13/cast v1.5.0 // indirect @@ -226,15 +214,11 @@ require ( github.com/tedsuo/ifrit v0.0.0-20230330192023-5cba443a66c4 // indirect github.com/test-go/testify v1.1.4 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect - github.com/ugorji/go/codec v1.2.12 // indirect + github.com/ugorji/go v1.1.4 // indirect github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1 // indirect github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect github.com/xeipuuv/gojsonschema v1.2.0 // indirect - go.etcd.io/etcd/client/pkg/v3 v3.5.6 // indirect - go.etcd.io/etcd/pkg/v3 v3.5.1 // indirect - go.etcd.io/etcd/raft/v3 v3.5.1 // indirect - go.etcd.io/etcd/server/v3 v3.5.1 // indirect go.opencensus.io v0.24.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1 // indirect go.opentelemetry.io/otel v1.21.0 // indirect @@ -267,7 +251,6 @@ require ( google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b // indirect google.golang.org/grpc v1.59.0 // indirect google.golang.org/protobuf v1.33.0 // indirect - gopkg.in/alecthomas/kingpin.v2 v2.2.6 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/integration/go_chaincode/go.sum b/integration/go_chaincode/go.sum index be2022fa0..cd099e662 100644 --- a/integration/go_chaincode/go.sum +++ b/integration/go_chaincode/go.sum @@ -47,7 +47,6 @@ cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGB cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= cloud.google.com/go/firestore v1.6.1/go.mod h1:asNXNOzBdyVQmEU+ggO8UPodTkEVFW5Qx+rwHnAz+EY= cloud.google.com/go/iam v1.1.3 h1:18tKG7DzydKWUnLjonWcJO6wjSCAtzh4GcRKlH/Hrzc= cloud.google.com/go/iam v1.1.3/go.mod h1:3khUlaBXfPKKe7huYgEpDn6FtgRyMEqbkvBxrQyY5SE= @@ -63,8 +62,6 @@ cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9 cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= cloud.google.com/go/storage v1.30.1 h1:uOdMxAs8HExqBlnLtnQyP0YkvbiDpdGShGKtx6U/oNM= cloud.google.com/go/storage v1.30.1/go.mod h1:NfxhC0UJE1aXSx7CIIbCf7y9HKT7BiccwkR7+P7gN8E= -code.cloudfoundry.org/clock v1.0.0 h1:kFXWQM4bxYvdBw2X8BbBeXwQNgfoWv1vqAk2ZZyBN2o= -code.cloudfoundry.org/clock v1.0.0/go.mod h1:QD9Lzhd/ux6eNQVUDVRJX/RKTigpewimNYBi7ivZKY8= dmitri.shuralyov.com/app/changes v0.0.0-20180602232624-0a106ad413e3/go.mod h1:Yl+fi1br7+Rr3LqpNJf1/uxUdtRUV+Tnj0o93V2B9MU= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= dmitri.shuralyov.com/html/belt v0.0.0-20180602232347-f7d459c86be0/go.mod h1:JLBrvjyP0v+ecvNYvCpyZgu5/xkfAUhi6wJj28eUfSU= @@ -112,24 +109,15 @@ github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWX github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= github.com/SmartBFT-Go/consensus v0.0.0-20230212211744-e5a79afcea81 h1:yiyJRAf/rsEu3Sl0ATWu1zREfyaj01i9VsPbGiXzZZw= github.com/SmartBFT-Go/consensus v0.0.0-20230212211744-e5a79afcea81/go.mod h1:ZOD/ZiAdH9HpqdsJLlUTlbzYBr/qYEzyYx7wClbrH+w= -github.com/VictoriaMetrics/fastcache v1.12.0 h1:vnVi/y9yKDcD9akmc4NqAoqgQhJrOwUF+j9LTgn4QDE= -github.com/VictoriaMetrics/fastcache v1.12.0/go.mod h1:tjiYeEfYXCqacuvYw/7UoDIeJaNxq6132xHICNP77w8= github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= -github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= github.com/akavel/rsrc v0.8.0/go.mod h1:uLoCtb9J+EyAqh+26kdrTgmzRBFPGOolLWKpdxkKq+c= github.com/ale-linux/aries-framework-go/component/kmscrypto v0.0.0-20231023164747-f3f972769504 h1:sQyFeDcHVHWJ3IeE437NSJjv0+J/6MvGQOJew4X+Cuw= github.com/ale-linux/aries-framework-go/component/kmscrypto v0.0.0-20231023164747-f3f972769504/go.mod h1:z5xq4Ji1RQojJLZzKeZH5+LKCVZxgQRZpQ4xAJWi8r0= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 h1:JYp7IbQjafoB+tBA3gMyHYHrpOtNuDiK/uB5uXxq5wM= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 h1:s6gZFSlWYmbqAuRjVTiNNhvNRfY2Wxp9nhfyel4rklc= -github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= -github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah4HI848JfFxHt+iPb26b4zyfspmqY0/8= -github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= @@ -140,7 +128,6 @@ github.com/armon/go-metrics v0.3.10/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/badgerodon/peg v0.0.0-20130729175151-9e5f7f4d07ca/go.mod h1:TWe0N2hv5qvpLHT+K16gYcGBllld4h65dQ/5CNuirmk= -github.com/benbjohnson/clock v1.0.3/go.mod h1:bGMdMPoPVvcYyt1gHDf4J2KE153Yf9BuiUKYMaxlTDM= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/benbjohnson/clock v1.3.5 h1:VvXlSJBzZpA/zum6Sj74hxwYI2DIxRWuNIoXAzHZz5o= @@ -152,23 +139,10 @@ github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6r github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bits-and-blooms/bitset v1.7.0 h1:YjAGVd3XmtK9ktAbX8Zg2g2PwLIMjGREZJHlV4j7NEo= github.com/bits-and-blooms/bitset v1.7.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA= -github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= github.com/bradfitz/go-smtpd v0.0.0-20170404230938-deb6d6237625/go.mod h1:HYsPBTaaSFSlLx/70C2HPIMNZpVV8+vt/A+FMnYP11g= -github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= -github.com/btcsuite/btcd v0.22.1 h1:CnwP9LM/M9xuRrGSCGeMVs9iv09uMqwsVX7EeIpgV2c= -github.com/btcsuite/btcd v0.22.1/go.mod h1:wqgTSL29+50LRkmOVknEdmt8ZojIzhuWvgu/iptuN7Y= -github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2 h1:KdUfX2zKommPRa+PD0sWZUyXe9w277ABlgELO7H04IM= -github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= -github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= -github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce h1:YtWJF7RHm2pYCvA5t0RPmAaLUhREsKuKd+SLhxFbFeQ= github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce/go.mod h1:0DVlHczLPewLcPGEIeUEzfOJhqGPQ0mJJRDBtD307+o= -github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg= -github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY= -github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= -github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY= -github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= github.com/buger/jsonparser v0.0.0-20181115193947-bf1c66bbce23/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= github.com/bytedance/sonic v1.5.0/go.mod h1:ED5hyg4y6t3/9Ku1R6dU/4KyJ48DZ4jPhfY1O2AihPM= github.com/bytedance/sonic v1.10.0-rc/go.mod h1:ElCzW+ufi8qKqNW0FY314xriJhyJhuoJ3gFZdAHF7NM= @@ -184,9 +158,6 @@ github.com/cenkalti/backoff/v4 v4.2.1/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyY github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/census-instrumentation/opencensus-proto v0.3.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/certifi/gocertifi v0.0.0-20180118203423-deb3ae2ef261/go.mod h1:GJKEexRPVJrBSOjoqN5VNOIKJ5Q3RViH6eu3puDRwx4= -github.com/certifi/gocertifi v0.0.0-20191021191039-0944d244cd40/go.mod h1:sGbDF6GwGcLpkNXPUTkMRoywsNa/ol15pxFe6ERfguA= -github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054 h1:uH66TXeswKn5PW5zdZ39xEwfS9an067BirqA+P4QaLI= -github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054/go.mod h1:sGbDF6GwGcLpkNXPUTkMRoywsNa/ol15pxFe6ERfguA= github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= @@ -223,12 +194,6 @@ github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWH github.com/cncf/xds/go v0.0.0-20211130200136-a8f946100490/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= -github.com/cockroachdb/datadriven v0.0.0-20200714090401-bf6692d28da5 h1:xD/lrqdvwsc+O2bjSSi3YqY73Ke3LAiSCx49aCesA0E= -github.com/cockroachdb/datadriven v0.0.0-20200714090401-bf6692d28da5/go.mod h1:h6jFvWxBdQXxjopDMZyH2UVceIRfR84bdzbkoKrsWNo= -github.com/cockroachdb/errors v1.2.4 h1:Lap807SXTH5tri2TivECb/4abUkMZC9zRoLarvcKDqs= -github.com/cockroachdb/errors v1.2.4/go.mod h1:rQD95gz6FARkaKkQXUksEje/d9a6wBJoCr5oaCLELYA= -github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f h1:o/kfcElHqOiXqcou5a3rIlMc7oJbMQkeLk0VQJ7zgqY= -github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f/go.mod h1:i/u985jwjWRlyHXQbwatDASoW0RMlZ/3i9yJHE2xLkI= github.com/consensys/bavard v0.1.13 h1:oLhMLOFGTLdlda/kma4VOJazblc7IM5y5QPd2A/YjhQ= github.com/consensys/bavard v0.1.13/go.mod h1:9ItSMtA/dXMAiL7BG6bqW2m3NdSEObYWoH223nGHukI= github.com/consensys/gnark-crypto v0.12.1 h1:lHH39WuuFgVHONRl3J0LRBtuYdQTumFSDtJF7HpyG8M= @@ -245,7 +210,6 @@ github.com/containerd/log v0.1.0/go.mod h1:VRRf09a7mHDIRezVKTRCrOq78v577GXq3bSa3 github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= github.com/coreos/bbolt v1.3.3/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= github.com/coreos/go-semver v0.3.0 h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM= @@ -269,13 +233,11 @@ github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46t github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY= github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= github.com/cznic/mathutil v0.0.0-20170313102836-1447ad269d64/go.mod h1:e6NPNENfs9mPDVNRekM7lKScauxd5kXTr1Mfyig6TDM= github.com/d4l3k/messagediff v1.2.1/go.mod h1:Oozbb1TVXFac9FtSIxHBMnBCq2qeH/2KkEQxENCrlLo= github.com/daaku/go.zipexe v1.0.0/go.mod h1:z8IiR6TsVLEYKwXAoE/I+8ys/sDkgTzSL0CLnGVd57E= -github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= @@ -346,7 +308,6 @@ github.com/flimzy/testy v0.1.16/go.mod h1:3szguN8NXqgq9bt9Gu8TQVj698PJWmyx/VY1fr github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/flynn/noise v1.0.0 h1:DlTHqmzmvcEiKj+4RYo/imoswx/4r6iBlCMfVtrMXpQ= github.com/flynn/noise v1.0.0/go.mod h1:xbMo+0i6+IGbYdJhF31t2eR1BIU0CYc12+BNAKwUTag= -github.com/form3tech-oss/jwt-go v3.2.3+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/fortytw2/leaktest v1.2.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/francoispqt/gojay v1.2.13 h1:d2m3sFjloqoIUQU3TsHBgj6qg/BVGlTBeHDUmyJnXKk= @@ -365,8 +326,6 @@ github.com/fsouza/go-dockerclient v1.10.0/go.mod h1:+iNzAW78AzClIBTZ6WFjkaMvOgz6 github.com/gabriel-vasile/mimetype v1.4.3 h1:in2uUcidCuFcDKtdcBxlR0rJ1+fsokWf+uqxgUFjbI0= github.com/gabriel-vasile/mimetype v1.4.3/go.mod h1:d8uq/6HKRL6CGdk+aubisF/M5GcPfT7nKyLpA0lbSSk= github.com/getsentry/raven-go v0.0.0-20180121060056-563b81fc02b7/go.mod h1:KungGk8q33+aIAZUIVWZDr2OfAEBsO49PX4NzFV5kcQ= -github.com/getsentry/raven-go v0.2.0 h1:no+xWJRb5ZI7eE8TWgIq1jLulQiIoLG0IfYxv5JYMGs= -github.com/getsentry/raven-go v0.2.0/go.mod h1:KungGk8q33+aIAZUIVWZDr2OfAEBsO49PX4NzFV5kcQ= github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/cors v1.7.0 h1:wZX2wuZ0o7rV2/1i7gb4Jn+gW7HBqaP91fizJkBUJOA= @@ -490,7 +449,6 @@ github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA= github.com/google/certificate-transparency-go v1.0.21/go.mod h1:QeJfpSbVSfYc7RgB3gJFj9cbuQMMchQxrWXz8Ruopmg= github.com/google/flatbuffers v1.12.1 h1:MVlul7pQNoDzWRLTw5imwYsl+usrS1TXG2H4jg6ImGw= github.com/google/flatbuffers v1.12.1/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= @@ -577,7 +535,6 @@ github.com/gotestyourself/gotestyourself v2.2.0+incompatible/go.mod h1:zZKM6oeNM github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= -github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= @@ -587,10 +544,8 @@ github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 h1:YBftPWNWd4WwGqtY2yeZL2ef8rHAxPBD8KFhJpmcqms= github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0/go.mod h1:YN5jB8ie0yfIUg6VvR9Kz84aCaG7AsGZnLjhHbUqwPg= -github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= github.com/hashicorp/consul/api v1.11.0/go.mod h1:XjsvQN+RJGWI2TWy1/kqaE16HrR2J/FWgkYjdZQsX9M= github.com/hashicorp/consul/api v1.12.0/go.mod h1:6pVBMo0ebnYdt2S3H87XhekM/HHrUoTD2XXb/VrZVy0= -github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= github.com/hashicorp/consul/sdk v0.8.0 h1:OJtKBtEjboEZvG6AOUdh4Z1Zbyu0WcxQ0qatRrZHTVU= github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= @@ -609,13 +564,11 @@ github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+ github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= -github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc= @@ -623,13 +576,10 @@ github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uG github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= github.com/hashicorp/mdns v1.0.1/go.mod h1:4gW7WsVCke5TE7EPeYliwHlRUyBtfCwuFwuMg2DmyNY= github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= -github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= github.com/hashicorp/memberlist v0.2.2/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= github.com/hashicorp/memberlist v0.3.0/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= -github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= github.com/hashicorp/serf v0.9.5/go.mod h1:UWDWwZeL5cuWDJdl0C6wrvrUwEqtQ4ZKBKKENpqIUyk= github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= github.com/hidal-go/hidalgo v0.0.0-20190814174001-42e03f3b5eaa/go.mod h1:bPkrxDlroXxigw8BMWTEPTv4W5/rQwNgg2BECXsgyX0= @@ -673,7 +623,6 @@ github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2 github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/ipfs/boxo v0.8.0-rc1 h1:DL5SDbBNSS9ZNsF+UhoQ39d05/wgoJ2k/T+y7JeWRaw= github.com/ipfs/boxo v0.8.0-rc1/go.mod h1:EgDiNox/+W/+ySwEotRrHlvdmrhbSAB4p22ELg+ZsCc= -github.com/ipfs/go-cid v0.0.7/go.mod h1:6Ux9z5e+HpkQdckYoX1PG/6xqKspzlEIR5SDmgqgC/I= github.com/ipfs/go-cid v0.4.1 h1:A/T3qGvxi4kpKWWcPC/PgbvDA2bjVLO7n4UeVwnbs/s= github.com/ipfs/go-cid v0.4.1/go.mod h1:uQHwDeX4c6CtyrFwdqyhpNcxVewur1M7l7fNU7LKwZk= github.com/ipfs/go-datastore v0.6.0 h1:JKyz+Gvz1QEZw0LsX1IBn+JFCJQH4SJVFtM4uWU0Myk= @@ -699,7 +648,6 @@ github.com/jbenet/go-temp-err-catcher v0.1.0/go.mod h1:0kJRvmDZXNMIiJirNPEYfhpPw github.com/jbenet/goprocess v0.1.4 h1:DRGOFReOMqqDNXwW70QkacFW0YN9QnwLV0Vqk+3oU0o= github.com/jbenet/goprocess v0.1.4/go.mod h1:5yspPrukOVuOLORacaBi858NqyClJPQxYZlqdZVfqY4= github.com/jellevandenhooff/dkim v0.0.0-20150330215556-f50fe3d243e1/go.mod h1:E0B/fFc00Y+Rasa88328GlI/XbtyysCtTHZS8h7IrBU= -github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jmhodges/clock v0.0.0-20160418191101-880ee4c33548/go.mod h1:hGT6jSUVzF6no3QaDSMLGLEHtHSBSefs+MgcDWnmhmo= github.com/jmoiron/sqlx v0.0.0-20180124204410-05cef0741ade/go.mod h1:IiEW3SEiiErVyFdH8NTuWjSifiEQKUoyK3LNqr2kCHU= @@ -707,9 +655,6 @@ github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqx github.com/joho/godotenv v1.4.0 h1:3l4+N6zfMWnkbPEXKng2o2/MR5mSwTrBih4ZEkkz1lg= github.com/joho/godotenv v1.4.0/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= -github.com/jonboulle/clockwork v0.2.2/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= -github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= -github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= @@ -722,7 +667,6 @@ github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/X github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= -github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/kilic/bls12-381 v0.1.0 h1:encrdjqKMEvabVQ7qYOKu1OvhqpK4s47wDYtNiPtlp4= @@ -733,7 +677,6 @@ github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/kisielk/sqlstruct v0.0.0-20150923205031-648daed35d49/go.mod h1:yyMNCyc/Ib3bDTKd379tNMpB/7/H5TjM2Y9QJ5THLbE= github.com/kisom/goutils v1.1.0/go.mod h1:+UBTfd78habUYWFbNWTJNG+jNG/i/lGURakr4A/yNRw= -github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= github.com/klauspost/compress v1.17.4 h1:Ej5ixsIri7BrIjBkRZLTo6ghwrEtHFk7ijlczPW4fZ4= github.com/klauspost/compress v1.17.4/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= @@ -743,7 +686,6 @@ github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZY github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= 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.2/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/koron/go-ssdp v0.0.4 h1:1IDwrghSKYM7yLf7XCzbByg2sJ/JcNOZRXS2jczTwz0= github.com/koron/go-ssdp v0.0.4/go.mod h1:oDXq+E5IL5q0U8uSBcoAXzTzInwy5lEgC91HoKtbmZk= github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= @@ -768,20 +710,16 @@ github.com/lib/pq v1.1.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.1.1/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/libp2p/go-buffer-pool v0.0.2/go.mod h1:MvaB6xw5vOrDl8rYZGLFdKAuk/hRoRZd1Vi32+RXyFM= github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= github.com/libp2p/go-cidranger v1.1.0 h1:ewPN8EZ0dd1LSnrtuwd4709PXVcITVeuwbag38yPW7c= github.com/libp2p/go-cidranger v1.1.0/go.mod h1:KWZTfSr+r9qEo9OkI9/SIEeAtw+NNoU0dXIXt15Okic= -github.com/libp2p/go-flow-metrics v0.0.3/go.mod h1:HeoSNUrOJVK1jEpDqVEiUOIXqhbnS27omG0uWU5slZs= github.com/libp2p/go-flow-metrics v0.1.0 h1:0iPhMI8PskQwzh57jB9WxIuIOQ0r+15PChFGkx3Q3WM= github.com/libp2p/go-flow-metrics v0.1.0/go.mod h1:4Xi8MX8wj5aWNDAZttg6UPmc0ZrnFNsMtpsYUClFtro= github.com/libp2p/go-libp2p v0.31.0 h1:LFShhP8F6xthWiBBq3euxbKjZsoRajVEyBS9snfHxYg= github.com/libp2p/go-libp2p v0.31.0/go.mod h1:W/FEK1c/t04PbRH3fA9i5oucu5YcgrG0JVoBWT1B7Eg= github.com/libp2p/go-libp2p-asn-util v0.3.0 h1:gMDcMyYiZKkocGXDQ5nsUQyquC9+H+iLEQHwOCZ7s8s= github.com/libp2p/go-libp2p-asn-util v0.3.0/go.mod h1:B1mcOrKUE35Xq/ASTmQ4tN3LNzVVaMNmq2NACuqyB9w= -github.com/libp2p/go-libp2p-core v0.14.0 h1:0kYSgiK/D7Eo28GTuRXo5YHsWwAisVpFCqCVPUd/vJs= -github.com/libp2p/go-libp2p-core v0.14.0/go.mod h1:tLasfcVdTXnixsLB0QYaT1syJOhsbrhG7q6pGrHtBg8= github.com/libp2p/go-libp2p-kad-dht v0.22.0 h1:cW2nGgG0hztDM42tOPyC5cVflD7EzLaHM0/Kjol6Wio= github.com/libp2p/go-libp2p-kad-dht v0.22.0/go.mod h1:hareSo3Z/GJ7nUWPMj7XhD/56a7+rRltYCWwCuy3FQk= github.com/libp2p/go-libp2p-kbucket v0.5.0 h1:g/7tVm8ACHDxH29BGrpsQlnNeu+6OF1A9bno/4/U1oA= @@ -790,16 +728,12 @@ github.com/libp2p/go-libp2p-record v0.2.0 h1:oiNUOCWno2BFuxt3my4i1frNrt7PerzB3qu github.com/libp2p/go-libp2p-record v0.2.0/go.mod h1:I+3zMkvvg5m2OcSdoL0KPljyJyvNDFGKX7QdlpYUcwk= github.com/libp2p/go-libp2p-testing v0.12.0 h1:EPvBb4kKMWO29qP4mZGyhVzUyR25dvfUIK5WDu6iPUA= github.com/libp2p/go-libp2p-testing v0.12.0/go.mod h1:KcGDRXyN7sQCllucn1cOOS+Dmm7ujhfEyXQL5lvkcPg= -github.com/libp2p/go-msgio v0.0.6/go.mod h1:4ecVB6d9f4BDSL5fqvPiC4A3KivjWn+Venn/1ALLMWA= github.com/libp2p/go-msgio v0.3.0 h1:mf3Z8B1xcFN314sWX+2vOTShIE0Mmn2TXn3YCUQGNj0= github.com/libp2p/go-msgio v0.3.0/go.mod h1:nyRM819GmVaF9LX3l03RMh10QdOroF++NBbxAb0mmDM= github.com/libp2p/go-nat v0.2.0 h1:Tyz+bUFAYqGyJ/ppPPymMGbIgNRH+WqC5QrT5fKrrGk= github.com/libp2p/go-nat v0.2.0/go.mod h1:3MJr+GRpRkyT65EpVPBstXLvOlAPzUVlG6Pwg9ohLJk= github.com/libp2p/go-netroute v0.2.1 h1:V8kVrpD8GK0Riv15/7VN6RbUQ3URNZVosw7H2v9tksU= github.com/libp2p/go-netroute v0.2.1/go.mod h1:hraioZr0fhBjG0ZRXJJ6Zj2IVEVNx6tDTFQfSmcq7mQ= -github.com/libp2p/go-openssl v0.0.7/go.mod h1:unDrJpgy3oFr+rqXsarWifmJuNnJR4chtO1HmaZjggc= -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/libp2p/go-reuseport v0.4.0 h1:nR5KU7hD0WxXCJbmw7r2rhRYruNRl2koHw8fQscQm2s= github.com/libp2p/go-reuseport v0.4.0/go.mod h1:ZtI03j/wO5hZVDFo2jKywN6bYKWLOy8Se6DrI2E1cLU= github.com/libp2p/go-yamux/v4 v4.0.1 h1:FfDR4S1wj6Bw2Pqbc8Uz7pCxeRBPbwsBbEdfwiCypkQ= @@ -832,8 +766,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.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -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-sqlite3 v1.10.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwpU1Y= @@ -858,19 +790,14 @@ github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc h1:PTfri+PuQmWDqERdn github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc/go.mod h1:cGKTAVKx4SxOuR/czcZ/E2RSJ3sfHs8FpHhQ5CWMf9s= github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1/go.mod h1:pD8RvIylQ358TN4wwqatJ8rNavkEINozVn9DtGI3dfQ= github.com/minio/sha256-simd v0.1.1-0.20190913151208-6de447530771/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM= -github.com/minio/sha256-simd v0.1.1/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM= github.com/minio/sha256-simd v1.0.1 h1:6kaan5IFmwTNynnKKpDHe6FWHohJOHhCPchzK49dzMM= github.com/minio/sha256-simd v1.0.1/go.mod h1:Pz6AKMiUdngCLpeTL/RJY1M9rUuPMYujV5xJjtbRSN8= github.com/miracl/conflate v1.3.1 h1:9dMzG9wF5JQ1pSqrNlapYE6L30J/V0tcDqzHgzqxrCI= github.com/miracl/conflate v1.3.1/go.mod h1:tLhX8/nIEP/SQR6eFTtnkBRlSB1XuKLZXQufwg8EbmY= -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/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/go-testing-interface v1.0.0 h1:fzU/JVNcaqHQEcVFAKeR41fkiLdIPrefOvVG1VZ96U0= github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= -github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= -github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.3.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= @@ -899,46 +826,38 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A= github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= -github.com/mr-tron/base58 v1.1.0/go.mod h1:xcD2VGqlgYjBdcBLw+TuYLr8afG+Hj8g2eTVqeSzSU8= github.com/mr-tron/base58 v1.1.2/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= github.com/mr-tron/base58 v1.1.3/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= 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.3/go.mod h1:pLiuGC8y0QR3Ue4Zug5UzK9LjgbkL8NSQj0zQ5Nz/AA= github.com/multiformats/go-base32 v0.1.0 h1:pVx9xoSPqEIQG8o+UbAe7DNi51oej1NtK+aGkbLYxPE= github.com/multiformats/go-base32 v0.1.0/go.mod h1:Kj3tFY6zNr+ABYMqeUNeGvkIC/UYgtWibDcT0rExnbI= -github.com/multiformats/go-base36 v0.1.0/go.mod h1:kFGE83c6s80PklsHO9sRn2NCoffoRdUUOENyW/Vv6sM= github.com/multiformats/go-base36 v0.2.0 h1:lFsAbNOGeKtuKozrtBsAkSVhv1p9D0/qedU9rQyccr0= github.com/multiformats/go-base36 v0.2.0/go.mod h1:qvnKE++v+2MWCfePClUEjE78Z7P2a1UV0xHgWc0hkp4= github.com/multiformats/go-multiaddr v0.1.1/go.mod h1:aMKBKNEYmzmDmxfX88/vz+J5IU55txyt0p4aiWVohjo= github.com/multiformats/go-multiaddr v0.2.0/go.mod h1:0nO36NvPpyV4QzvTLi/lafl2y95ncPj0vFwVF6k6wJ4= -github.com/multiformats/go-multiaddr v0.4.1/go.mod h1:3afI9HfVW8csiF8UZqtpYRiDyew8pRX7qLIGHu9FLuM= github.com/multiformats/go-multiaddr v0.11.0 h1:XqGyJ8ufbCE0HmTDwx2kPdsrQ36AGPZNZX6s6xfJH10= github.com/multiformats/go-multiaddr v0.11.0/go.mod h1:gWUm0QLR4thQ6+ZF6SXUw8YjtwQSPapICM+NmCkxHSM= github.com/multiformats/go-multiaddr-dns v0.3.1 h1:QgQgR+LQVt3NPTjbrLLpsaT2ufAA2y0Mkk+QRVJbW3A= github.com/multiformats/go-multiaddr-dns v0.3.1/go.mod h1:G/245BRQ6FJGmryJCrOuTdB37AMA5AMOVuO6NY3JwTk= github.com/multiformats/go-multiaddr-fmt v0.1.0 h1:WLEFClPycPkp4fnIzoFoV9FVd49/eQsuaL3/CWe167E= github.com/multiformats/go-multiaddr-fmt v0.1.0/go.mod h1:hGtDIW4PU4BqJ50gW2quDuPVjyWNZxToGUh/HwTZYJo= -github.com/multiformats/go-multibase v0.0.3/go.mod h1:5+1R4eQrT3PkYZ24C3W2Ue2tPwIdYQD509ZjSb5y9Oc= github.com/multiformats/go-multibase v0.2.0 h1:isdYCVLvksgWlMW9OZRYJEa9pZETFivncJHmHnnd87g= github.com/multiformats/go-multibase v0.2.0/go.mod h1:bFBZX4lKCA/2lyOFSAoKH5SS6oPyjtnzK/XTFDPkNuk= github.com/multiformats/go-multicodec v0.9.0 h1:pb/dlPnzee/Sxv/j4PmkDRxCOi3hXTz3IbPKOXWJkmg= github.com/multiformats/go-multicodec v0.9.0/go.mod h1:L3QTQvMIaVBkXOXXtVmYE+LI16i14xuaojr/H7Ai54k= github.com/multiformats/go-multihash v0.0.8/go.mod h1:YSLudS+Pi8NHE7o6tb3D8vrpKa63epEDmG8nTduyAew= github.com/multiformats/go-multihash v0.0.13/go.mod h1:VdAWLKTwram9oKAatUcLxBNUjdtcVwxObEQBtRfuyjc= -github.com/multiformats/go-multihash v0.0.14/go.mod h1:VdAWLKTwram9oKAatUcLxBNUjdtcVwxObEQBtRfuyjc= github.com/multiformats/go-multihash v0.2.3 h1:7Lyc8XfX/IY2jWb/gI7JP+o7JEq9hOa7BFvVU9RSh+U= github.com/multiformats/go-multihash v0.2.3/go.mod h1:dXgKXCXjBzdscBLk9JkjINiEsCKRVch90MdaGiKsvSM= github.com/multiformats/go-multistream v0.4.1 h1:rFy0Iiyn3YT0asivDUIR05leAdwZq3de4741sbiSdfo= github.com/multiformats/go-multistream v0.4.1/go.mod h1:Mz5eykRVAjJWckE2U78c6xqdtyNUEhKSM0Lwar2p77Q= github.com/multiformats/go-varint v0.0.1/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= github.com/multiformats/go-varint v0.0.5/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= -github.com/multiformats/go-varint v0.0.6/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= github.com/multiformats/go-varint v0.0.7 h1:sWSGR+f/eu5ABZA2ZpYKBILXTTs9JWpdEM/nEGOHFS8= github.com/multiformats/go-varint v0.0.7/go.mod h1:r8PUYw/fD/SjBCiKOoDlGF6QawOELpZAu9eioSos/OU= 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/neelance/astrewrite v0.0.0-20160511093645-99348263ae86/go.mod h1:kHJEU3ofeGjhHklVoIGuVj85JJwZ6kWPaJwCIxgnFmo= github.com/neelance/sourcemap v0.0.0-20151028013722-8c68805598ab/go.mod h1:Qr6/a/Q4r9LP1IltGz7tA7iOK1WonHEYhu1HRBA7ZiM= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= @@ -1024,7 +943,6 @@ github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5Fsn github.com/prometheus/client_golang v1.1.0/go.mod h1:I1FGZT9+L76gKKOs5djB6ezCbFQP1xR9D75/vuwEF3g= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= github.com/prometheus/client_golang v1.17.0 h1:rl2sfwZMtSthVU752MqfjQozy7blglC+1SOtjMAMh+Q= github.com/prometheus/client_golang v1.17.0/go.mod h1:VeL+gMmOAxkS2IqfCq0ZmHSL+LjWfWDUmp1mBz9JgUY= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= @@ -1042,7 +960,6 @@ github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y8 github.com/prometheus/common v0.6.0/go.mod h1:eBmuwkDJBwy6iBfxCBob6t6dR6ENT/y+J+Zk0j9GMYc= github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= -github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= github.com/prometheus/common v0.44.0 h1:+5BrQJwiBB9xsMygAB3TNvpQKOwlkc25LbISbrdOOfY= github.com/prometheus/common v0.44.0/go.mod h1:ofAIvZbQ1e/nugmZGz4/qCb9Ap1VoSTIO7x0VV9VvuY= github.com/prometheus/procfs v0.0.0-20180725123919-05ee40e3a273/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= @@ -1117,24 +1034,18 @@ github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPx github.com/sirupsen/logrus v1.3.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= -github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/assertions v1.2.0 h1:42S6lae5dvLc7BrLu/0ugRtcFVjoJNMC/N3yZFZkDFs= github.com/smartystreets/assertions v1.2.0/go.mod h1:tcbTF8ujkAEcZ8TElKY+i30BzYlVhC/LOxJk7iOWnoo= github.com/smartystreets/go-aws-auth v0.0.0-20180515143844-0c1422d1fdb9/go.mod h1:SnhjPscd9TpLiy1LpzGSKh3bXCfxxXuqd9xmQJy3slM= -github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/smartystreets/goconvey v1.7.2 h1:9RBaZCeXEQ3UselpuwUQHltGVXvdwm6cv1hgR6gDIPg= github.com/smartystreets/goconvey v1.7.2/go.mod h1:Vw0tHAZW6lzCRk3xgdin6fKYcG+G3Pg9vgXWeJpQFMM= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= -github.com/soheilhy/cmux v0.1.5/go.mod h1:T7TcVDs9LWfQgPlPsdngu6I6QIoyIFZDDC6sNE1GqG0= github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d/go.mod h1:UdhH50NIW0fCiwBSr0co2m7BnFLdv4fQTgdqdJTHFeE= github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e/go.mod h1:HuIsMU8RRBOtsCgI77wP899iHVBQpCmg4ErYMZB+2IA= -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/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= @@ -1153,7 +1064,6 @@ github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155 github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= -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.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= @@ -1167,7 +1077,6 @@ github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An github.com/spf13/viper v1.1.1/go.mod h1:A8kyI5cUJhb8N+3pkfONlcEcZbueH6nhAm0Fq7SrnBM= 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= -github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= github.com/spf13/viper v1.10.0/go.mod h1:SoyBPwAtKDzypXNDFKN5kzH7ppppbGZtls1UpIy5AsM= github.com/spf13/viper v1.10.1/go.mod h1:IGlFPqhNAPKRxohIzWpI5QEy4kuI7tcl5WvR+8qy1rU= github.com/spf13/viper v1.15.0 h1:js3yy885G8xwJa6iOISGFwd+qlUo5AvyXb7CiihdtiU= @@ -1205,16 +1114,14 @@ github.com/test-go/testify v1.1.4/go.mod h1:rH7cfJo/47vWGdi4GPj16x3/t1xGOj2YxzmN github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20200427203606-3cfed13b9966/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08= github.com/tylertreat/BoomFilters v0.0.0-20181028192813-611b3dbe80e8 h1:7X4KYG3guI2mPQGxm/ZNNsiu4BjKnef0KG0TblMC+Z8= github.com/tylertreat/BoomFilters v0.0.0-20181028192813-611b3dbe80e8/go.mod h1:OYRfF6eb5wY9VRFkXJH8FFBi3plw2v+giaIu7P054pM= +github.com/ugorji/go v1.1.4 h1:j4s+tAvLfL3bZyefP2SEWmhBzmuIlH/eqNuPdFPgngw= github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= -github.com/ugorji/go/codec v1.2.12 h1:9LC83zGrHhuUA9l16C9AHXAqEV/2wBQ4nkvumAE65EE= -github.com/ugorji/go/codec v1.2.12/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= github.com/urfave/cli v1.22.10/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= @@ -1254,21 +1161,11 @@ github.com/zmap/zcrypto v0.0.0-20190729165852-9051775e6a2e/go.mod h1:w7kd3qXHh8F github.com/zmap/zlint v0.0.0-20190806154020-fd021b4cfbeb/go.mod h1:29UiAJNsiVdvTBFCJW8e3q6dcDbOoPkhMgttOSCIMMY= go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/bbolt v1.3.6/go.mod h1:qXsaaIqmgQH0T+OPdb99Bf+PKfBBQVAdyD6TY9G8XM4= go.etcd.io/etcd v0.5.0-alpha.5.0.20210226220824-aa7126864d82 h1:RCaUKN0yRYKT2JzV9kH4u+D6l9VWcJMQ449QKRriFc8= go.etcd.io/etcd v0.5.0-alpha.5.0.20210226220824-aa7126864d82/go.mod h1:WWRiAtnzDdtuCMxtFwME/Knea11a6fJgJkwtC1QSc/k= go.etcd.io/etcd/api/v3 v3.5.1/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= go.etcd.io/etcd/client/pkg/v3 v3.5.1/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/pkg/v3 v3.5.6 h1:TXQWYceBKqLp4sa87rcPs11SXxUA/mHwH975v+BDvLU= -go.etcd.io/etcd/client/pkg/v3 v3.5.6/go.mod h1:ggrwbk069qxpKPq8/FKkQ3Xq9y39kbFR4LnKszpRXeQ= go.etcd.io/etcd/client/v2 v2.305.1/go.mod h1:pMEacxZW7o8pg4CrFE7pquyCJJzZvkvdD2RibOCCCGs= -go.etcd.io/etcd/client/v3 v3.5.1/go.mod h1:OnjH4M8OnAotwaB2l9bVgZzRFKru7/ZMoS46OtKyd3Q= -go.etcd.io/etcd/pkg/v3 v3.5.1 h1:nYifzmtBQ2l91wUQM6aZGGwR/pvpQQyscmS4azm184Q= -go.etcd.io/etcd/pkg/v3 v3.5.1/go.mod h1:Qb9MvSx6rlo+Es8pOvkCQjGf7L8GA+NxrkRcyZ7eGXo= -go.etcd.io/etcd/raft/v3 v3.5.1 h1:nthXrxmATKB9OZ9C64sk3QZaJ1WZ8tmlI0VwzpJSZwg= -go.etcd.io/etcd/raft/v3 v3.5.1/go.mod h1:WIlKzH/rjc54LDZ8SOa7GObrrdX3z96MkP1WDfODBeA= -go.etcd.io/etcd/server/v3 v3.5.1 h1:u8risUH348DmLy2XD3krH/S3GWk2ljuCrs8V3hd4584= -go.etcd.io/etcd/server/v3 v3.5.1/go.mod h1:yBKYw++NWu6ciuWoKuL7UXgGKDP7ICBCuVQrIcYbPdw= go.mongodb.org/mongo-driver v1.0.4/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= go.opencensus.io v0.18.0/go.mod h1:vKdFvxhtzZ9onBp9VKHK8z/sRpBMnKAsufL7wlDrCOA= go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= @@ -1282,28 +1179,18 @@ go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/contrib v0.20.0/go.mod h1:G/EtFaa6qaN7+LxqfIAT3GiZa7Wv5DTBUzl5H4LY0Kc= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.20.0/go.mod h1:oVGt1LRbBOBq1A5BQLlUg9UaU/54aiHw8cgjV3aWZ/E= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1 h1:aFJWCqJMNjENlcleuuOkGAPH82y0yULBScfXcIEdS24= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1/go.mod h1:sEGXWArGqc3tVa+ekntsN65DmVbVeW+7lTKTjZF3/Fo= -go.opentelemetry.io/otel v0.20.0/go.mod h1:Y3ugLH2oa81t5QO+Lty+zXf8zC9L26ax4Nzoxm/dooo= go.opentelemetry.io/otel v1.21.0 h1:hzLeKBZEL7Okw2mGzZ0cc4k/A7Fta0uoPgaJCr8fsFc= go.opentelemetry.io/otel v1.21.0/go.mod h1:QZzNPQPm1zLX4gZK4cMi+71eaorMSGT3A4znnUvNNEo= -go.opentelemetry.io/otel/exporters/otlp v0.20.0/go.mod h1:YIieizyaN77rtLJra0buKiNBOm9XQfkPEKBeuhoMwAM= go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0 h1:cl5P5/GIfFh4t6xyruOgJP5QiA1pw4fYYdv6nc6CBWw= go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0/go.mod h1:zgBdWWAu7oEEMC06MMKc5NLbA/1YDXV1sMpSqEeLQLg= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.21.0 h1:digkEZCJWobwBqMwC0cwCq8/wkkRy/OowZg5OArWZrM= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.21.0/go.mod h1:/OpE/y70qVkndM0TrxT4KBoN3RsFZP0QaofcfYrj76I= -go.opentelemetry.io/otel/metric v0.20.0/go.mod h1:598I5tYlH1vzBjn+BTuhzTCSb/9debfNp6R3s7Pr1eU= go.opentelemetry.io/otel/metric v1.21.0 h1:tlYWfeo+Bocx5kLEloTjbcDwBuELRrIFxwdQ36PlJu4= go.opentelemetry.io/otel/metric v1.21.0/go.mod h1:o1p3CA8nNHW8j5yuQLdc1eeqEaPfzug24uvsyIEJRWM= -go.opentelemetry.io/otel/oteltest v0.20.0/go.mod h1:L7bgKf9ZB7qCwT9Up7i9/pn0PWIa9FqQ2IQ8LoxiGnw= -go.opentelemetry.io/otel/sdk v0.20.0/go.mod h1:g/IcepuwNsoiX5Byy2nNV0ySUF1em498m7hBWC279Yc= go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= -go.opentelemetry.io/otel/sdk/export/metric v0.20.0/go.mod h1:h7RBNMsDJ5pmI1zExLi+bJK+Dr8NQCh0qGhm1KDnNlE= -go.opentelemetry.io/otel/sdk/metric v0.20.0/go.mod h1:knxiS8Xd4E/N+ZqKmUPf3gTTZ4/0TjTXukfxjzSTpHE= -go.opentelemetry.io/otel/trace v0.20.0/go.mod h1:6GjCW8zgDjwGHGa6GkyeB8+/5vjT16gUEi0Nf1iBdgw= go.opentelemetry.io/otel/trace v1.21.0 h1:WD9i5gzvoUPuXIXH24ZNBudiarZDKuekPqi/E8fpfLc= go.opentelemetry.io/otel/trace v1.21.0/go.mod h1:LGbsEB0f9LGjN+OZaQQ26sohbOmiMR+BaslueVtS/qQ= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= @@ -1336,7 +1223,6 @@ go.uber.org/zap v1.12.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= go.uber.org/zap v1.16.0/go.mod h1:MA8QOfq0BHJwdXa996Y4dYkAqRKB8/1K1QMMZVaNZjQ= go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= -go.uber.org/zap v1.19.0/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= go.uber.org/zap v1.19.1/go.mod h1:j3DNczoxDZroyBnOT1L/Q79cfUMGZxlv/9dzN7SM1rI= go.uber.org/zap v1.25.0 h1:4Hvk6GtkucQ790dqmj7l1eEnRdKm3k3ZUrUMS2d5+5c= go.uber.org/zap v1.25.0/go.mod h1:JIAUzQIH94IC4fOJQm7gMmBJP5k7wQfdcnYdPoEXJYk= @@ -1345,7 +1231,6 @@ golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUu golang.org/x/arch v0.7.0 h1:pskyeJh/3AmoQ8CPE95vxHLqp1G1GfGNXTmcl9NEKTc= golang.org/x/arch v0.7.0/go.mod h1:FEVrYAQjsQXMVJ1nsMoVVXPZg6p2JE2mx8psSWTDQys= golang.org/x/build v0.0.0-20190111050920-041ab4dc3f9d/go.mod h1:OWs+y06UdEOHN4y+MfF/py+xQ/tYqIWW03b70/CG9Rw= -golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= @@ -1364,7 +1249,6 @@ golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200602180216-279210d13fed/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= @@ -1424,7 +1308,6 @@ golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73r golang.org/x/net v0.0.0-20181029044818-c44066c5c816/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181106065722-10aee1819953/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1460,7 +1343,6 @@ golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81R golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= @@ -1539,7 +1421,6 @@ golang.org/x/sys v0.0.0-20190515120540-06a5c4944438/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190614160838-b47fdc937951/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1571,10 +1452,8 @@ golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200602225109-6fdc65e7d980/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200923182605-d9f96fdee20d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201101102859-da207088b7d1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1595,7 +1474,6 @@ golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1612,7 +1490,6 @@ golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20211205182925-97ca703d548d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220405052023-b1e9470b6e64/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/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-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1643,7 +1520,6 @@ golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxb golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.1.0 h1:xYY+Bajn2a7VBmTM5GikTmnK8ZuX8YgnQCqZpbBNtmA= golang.org/x/time v0.1.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -1672,7 +1548,6 @@ golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -1903,7 +1778,6 @@ google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= -gopkg.in/alecthomas/kingpin.v2 v2.2.6 h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -1915,11 +1789,9 @@ gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qS gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= -gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.66.2/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= gopkg.in/olivere/elastic.v5 v5.0.80/go.mod h1:uhHoB4o3bvX5sorxBU29rPcmBQdV2Qfg0FBrx5D6pV0= gopkg.in/olivere/elastic.v5 v5.0.81/go.mod h1:uhHoB4o3bvX5sorxBU29rPcmBQdV2Qfg0FBrx5D6pV0= gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= @@ -1990,6 +1862,5 @@ rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= rsc.io/tmplfunc v0.0.3 h1:53XFQh69AfOa8Tw0Jm7t+GV7KZhOi6jzsCzTtKbMvzU= rsc.io/tmplfunc v0.0.3/go.mod h1:AG3sTPzElb1Io3Yg4voV9AGZJuleGAwaVRxL9M49PhA= sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= -sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= sourcegraph.com/sourcegraph/go-diff v0.5.0/go.mod h1:kuch7UrkMzY0X+p9CRK03kfuPQ2zzQcaEFbx8wA8rck= sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0= diff --git a/integration/go_chaincode/tools.go b/integration/go_chaincode/tools.go deleted file mode 100644 index e0ed56856..000000000 --- a/integration/go_chaincode/tools.go +++ /dev/null @@ -1,23 +0,0 @@ -//go:build tools -// +build tools - -/* -Copyright IBM Corp. All Rights Reserved. - -SPDX-License-Identifier: Apache-2.0 -*/ - -package go_chaincode - -import ( - _ "github.com/hyperledger-labs/fabric-smart-client/platform/fabric/services/weaver/relay/fabric" - _ "github.com/hyperledger-labs/fabric-smart-client/platform/view/services/comm" - _ "github.com/hyperledger/fabric/cmd/orderer" - _ "github.com/hyperledger/fabric/cmd/peer" - _ "github.com/hyperledger/fabric/common/ledger/util/leveldbhelper" - _ "github.com/hyperledger/fabric/common/metrics/prometheus" - _ "github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb" - _ "github.com/hyperledger/fabric/core/ledger/pvtdatastorage" - _ "github.com/hyperledger/fabric/core/operations" - _ "github.com/libp2p/go-libp2p-core/network" -) diff --git a/internal/protos/fpc.pb.go b/internal/protos/fpc.pb.go index 842fccdaf..612f9a339 100644 --- a/internal/protos/fpc.pb.go +++ b/internal/protos/fpc.pb.go @@ -5,8 +5,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.12 +// protoc-gen-go v1.36.6 +// protoc v4.22.3 // source: fpc/fpc.proto package protos @@ -19,6 +19,7 @@ import ( anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -29,10 +30,7 @@ const ( ) type CCParameters struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // name of the chaincode ChaincodeId string `protobuf:"bytes,1,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` // version of chaincode, this is the expected mrenclave @@ -41,16 +39,16 @@ type CCParameters struct { // chaincode sequence number Sequence int64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` // name of channel - ChannelId string `protobuf:"bytes,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + ChannelId string `protobuf:"bytes,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CCParameters) Reset() { *x = CCParameters{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_fpc_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_fpc_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CCParameters) String() string { @@ -61,7 +59,7 @@ func (*CCParameters) ProtoMessage() {} func (x *CCParameters) ProtoReflect() protoreflect.Message { mi := &file_fpc_fpc_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -105,10 +103,7 @@ func (x *CCParameters) GetChannelId() string { } type HostParameters struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // MSP ID of organization hosting (embracing) the peer with corresponding enclave // TODO: rename to `creator_msp_id` because this value will be set to the creator's mspid (not the peer's) PeerMspId string `protobuf:"bytes,1,opt,name=peer_msp_id,json=peerMspId,proto3" json:"peer_msp_id,omitempty"` @@ -121,16 +116,16 @@ type HostParameters struct { // particular FPC Chaincode enclave. See additional information in // fpc-registration.puml in the 'Org-Enclave binding/certification' group. // Note that this field may be moved elsewhere. - Certificate []byte `protobuf:"bytes,3,opt,name=certificate,proto3" json:"certificate,omitempty"` + Certificate []byte `protobuf:"bytes,3,opt,name=certificate,proto3" json:"certificate,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *HostParameters) Reset() { *x = HostParameters{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_fpc_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_fpc_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HostParameters) String() string { @@ -141,7 +136,7 @@ func (*HostParameters) ProtoMessage() {} func (x *HostParameters) ProtoReflect() protoreflect.Message { mi := &file_fpc_fpc_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -178,12 +173,9 @@ func (x *HostParameters) GetCertificate() []byte { } type AttestedData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CcParams *CCParameters `protobuf:"bytes,1,opt,name=cc_params,json=ccParams,proto3" json:"cc_params,omitempty"` - HostParams *HostParameters `protobuf:"bytes,2,opt,name=host_params,json=hostParams,proto3" json:"host_params,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + CcParams *CCParameters `protobuf:"bytes,1,opt,name=cc_params,json=ccParams,proto3" json:"cc_params,omitempty"` + HostParams *HostParameters `protobuf:"bytes,2,opt,name=host_params,json=hostParams,proto3" json:"host_params,omitempty"` // chaincode enclave public key EnclaveVk []byte `protobuf:"bytes,3,opt,name=enclave_vk,json=enclaveVk,proto3" json:"enclave_vk,omitempty"` // SHA256 hash of the channel genesis block; @@ -193,16 +185,16 @@ type AttestedData struct { TlccMrenclave string `protobuf:"bytes,5,opt,name=tlcc_mrenclave,json=tlccMrenclave,proto3" json:"tlcc_mrenclave,omitempty"` // chaincode encryption key // NOTE: This is a (momentary) short-cut over the FPC and FPC Lite specification in `docs/design/fabric-v2+/fpc-registration.puml` and `docs/design/fabric-v2+/fpc-key-dist.puml` - ChaincodeEk []byte `protobuf:"bytes,6,opt,name=chaincode_ek,json=chaincodeEk,proto3" json:"chaincode_ek,omitempty"` + ChaincodeEk []byte `protobuf:"bytes,6,opt,name=chaincode_ek,json=chaincodeEk,proto3" json:"chaincode_ek,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AttestedData) Reset() { *x = AttestedData{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_fpc_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_fpc_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AttestedData) String() string { @@ -213,7 +205,7 @@ func (*AttestedData) ProtoMessage() {} func (x *AttestedData) ProtoReflect() protoreflect.Message { mi := &file_fpc_fpc_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -271,25 +263,22 @@ func (x *AttestedData) GetChaincodeEk() []byte { } type Credentials struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // serialization of type **AttestedData** SerializedAttestedData *anypb.Any `protobuf:"bytes,1,opt,name=serialized_attested_data,json=serializedAttestedData,proto3" json:"serialized_attested_data,omitempty"` // serialized attestation/quote as output by `get_attestatation`, see `interfaces.attestation.md` Attestation []byte `protobuf:"bytes,2,opt,name=attestation,proto3" json:"attestation,omitempty"` // serialized attestation evidence as output by `AttestationToEvidence`, see `interfaces.attestation.md` - Evidence []byte `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence,omitempty"` + Evidence []byte `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Credentials) Reset() { *x = Credentials{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_fpc_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_fpc_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Credentials) String() string { @@ -300,7 +289,7 @@ func (*Credentials) ProtoMessage() {} func (x *Credentials) ProtoReflect() protoreflect.Message { mi := &file_fpc_fpc_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -337,24 +326,21 @@ func (x *Credentials) GetEvidence() []byte { } type InitEnclaveMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // the (externally accessible) address of the peer endpoint in format : PeerEndpoint string `protobuf:"bytes,1,opt,name=peer_endpoint,json=peerEndpoint,proto3" json:"peer_endpoint,omitempty"` // parameters passed for initialization of the attestation API as required by that API // (i.e., a base64-encoded json string, see 'interfaces.attestation.md' and 'common/crypto/attestation-api') AttestationParams []byte `protobuf:"bytes,2,opt,name=attestation_params,json=attestationParams,proto3" json:"attestation_params,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *InitEnclaveMessage) Reset() { *x = InitEnclaveMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_fpc_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_fpc_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InitEnclaveMessage) String() string { @@ -365,7 +351,7 @@ func (*InitEnclaveMessage) ProtoMessage() {} func (x *InitEnclaveMessage) ProtoReflect() protoreflect.Message { mi := &file_fpc_fpc_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -395,21 +381,18 @@ func (x *InitEnclaveMessage) GetAttestationParams() []byte { } type CleartextChaincodeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // the function and args to invoke - Input *peer.ChaincodeInput `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` + Input *peer.ChaincodeInput `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CleartextChaincodeRequest) Reset() { *x = CleartextChaincodeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_fpc_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_fpc_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CleartextChaincodeRequest) String() string { @@ -420,7 +403,7 @@ func (*CleartextChaincodeRequest) ProtoMessage() {} func (x *CleartextChaincodeRequest) ProtoReflect() protoreflect.Message { mi := &file_fpc_fpc_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -443,23 +426,20 @@ func (x *CleartextChaincodeRequest) GetInput() *peer.ChaincodeInput { } type ChaincodeRequestMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // an encryption (symmetric) of the serialization of CleartextChaincodeRequest with KeyTransportMessage.request_encryption_key EncryptedRequest []byte `protobuf:"bytes,1,opt,name=encrypted_request,json=encryptedRequest,proto3" json:"encrypted_request,omitempty"` // an encryption (asymmetric) of the serialization of request KeyTransportMessage with AttestedData.chaincode_ek EncryptedKeyTransportMessage []byte `protobuf:"bytes,2,opt,name=encrypted_key_transport_message,json=encryptedKeyTransportMessage,proto3" json:"encrypted_key_transport_message,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ChaincodeRequestMessage) Reset() { *x = ChaincodeRequestMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_fpc_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_fpc_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChaincodeRequestMessage) String() string { @@ -470,7 +450,7 @@ func (*ChaincodeRequestMessage) ProtoMessage() {} func (x *ChaincodeRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_fpc_fpc_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -500,23 +480,20 @@ func (x *ChaincodeRequestMessage) GetEncryptedKeyTransportMessage() []byte { } type KeyTransportMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // key to decrypt CleartextChaincodeRequest RequestEncryptionKey []byte `protobuf:"bytes,1,opt,name=request_encryption_key,json=requestEncryptionKey,proto3" json:"request_encryption_key,omitempty"` // key to encrypt CleartextChaincodeResponse ResponseEncryptionKey []byte `protobuf:"bytes,2,opt,name=response_encryption_key,json=responseEncryptionKey,proto3" json:"response_encryption_key,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *KeyTransportMessage) Reset() { *x = KeyTransportMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_fpc_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_fpc_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KeyTransportMessage) String() string { @@ -527,7 +504,7 @@ func (*KeyTransportMessage) ProtoMessage() {} func (x *KeyTransportMessage) ProtoReflect() protoreflect.Message { mi := &file_fpc_fpc_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -557,21 +534,18 @@ func (x *KeyTransportMessage) GetResponseEncryptionKey() []byte { } type CleartextChaincodeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // the response of the chaincode invocation - Response *peer.Response `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + Response *peer.Response `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CleartextChaincodeResponse) Reset() { *x = CleartextChaincodeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_fpc_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_fpc_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CleartextChaincodeResponse) String() string { @@ -582,7 +556,7 @@ func (*CleartextChaincodeResponse) ProtoMessage() {} func (x *CleartextChaincodeResponse) ProtoReflect() protoreflect.Message { mi := &file_fpc_fpc_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -607,21 +581,18 @@ func (x *CleartextChaincodeResponse) GetResponse() *peer.Response { // FPCKVSet augments the Fabric kvrwset.KVRWSet protobuf to include the hash of the value of each read. // Specifically, read_value_hashes[i] is the hash of the value associated to rw_set.reads[i].key type FPCKVSet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RwSet *kvrwset.KVRWSet `protobuf:"bytes,1,opt,name=rw_set,json=rwSet,proto3" json:"rw_set,omitempty"` - ReadValueHashes [][]byte `protobuf:"bytes,2,rep,name=read_value_hashes,json=readValueHashes,proto3" json:"read_value_hashes,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + RwSet *kvrwset.KVRWSet `protobuf:"bytes,1,opt,name=rw_set,json=rwSet,proto3" json:"rw_set,omitempty"` + ReadValueHashes [][]byte `protobuf:"bytes,2,rep,name=read_value_hashes,json=readValueHashes,proto3" json:"read_value_hashes,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FPCKVSet) Reset() { *x = FPCKVSet{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_fpc_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_fpc_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FPCKVSet) String() string { @@ -632,7 +603,7 @@ func (*FPCKVSet) ProtoMessage() {} func (x *FPCKVSet) ProtoReflect() protoreflect.Message { mi := &file_fpc_fpc_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -662,10 +633,7 @@ func (x *FPCKVSet) GetReadValueHashes() [][]byte { } type ChaincodeResponseMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // an encryption (symmetric) of the serialization of CleartextChaincodeRequest with KeyTransportMessage.response_encryption_key EncryptedResponse []byte `protobuf:"bytes,1,opt,name=encrypted_response,json=encryptedResponse,proto3" json:"encrypted_response,omitempty"` // R/W set (of cleartext keys but encrypted values) @@ -678,16 +646,16 @@ type ChaincodeResponseMessage struct { // and not extracted from it; validation chaincode will check for consistency ChaincodeRequestMessageHash []byte `protobuf:"bytes,4,opt,name=chaincode_request_message_hash,json=chaincodeRequestMessageHash,proto3" json:"chaincode_request_message_hash,omitempty"` // identity for public key used to sign - EnclaveId string `protobuf:"bytes,5,opt,name=enclave_id,json=enclaveId,proto3" json:"enclave_id,omitempty"` + EnclaveId string `protobuf:"bytes,5,opt,name=enclave_id,json=enclaveId,proto3" json:"enclave_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ChaincodeResponseMessage) Reset() { *x = ChaincodeResponseMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_fpc_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_fpc_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChaincodeResponseMessage) String() string { @@ -698,7 +666,7 @@ func (*ChaincodeResponseMessage) ProtoMessage() {} func (x *ChaincodeResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_fpc_fpc_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -749,23 +717,20 @@ func (x *ChaincodeResponseMessage) GetEnclaveId() string { } type SignedChaincodeResponseMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // binary encoding of a ChaincodeResponseMessage protobuf ChaincodeResponseMessage []byte `protobuf:"bytes,1,opt,name=chaincode_response_message,json=chaincodeResponseMessage,proto3" json:"chaincode_response_message,omitempty"` // signature over the chaincode response message - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SignedChaincodeResponseMessage) Reset() { *x = SignedChaincodeResponseMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_fpc_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_fpc_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SignedChaincodeResponseMessage) String() string { @@ -776,7 +741,7 @@ func (*SignedChaincodeResponseMessage) ProtoMessage() {} func (x *SignedChaincodeResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_fpc_fpc_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -807,145 +772,74 @@ func (x *SignedChaincodeResponseMessage) GetSignature() []byte { var File_fpc_fpc_proto protoreflect.FileDescriptor -var file_fpc_fpc_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x66, 0x70, 0x63, 0x2f, 0x66, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x03, 0x66, 0x70, 0x63, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x14, 0x70, 0x65, 0x65, 0x72, 0x2f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x70, 0x65, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x70, 0x65, 0x65, 0x72, - 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, - 0x2f, 0x72, 0x77, 0x73, 0x65, 0x74, 0x2f, 0x6b, 0x76, 0x72, 0x77, 0x73, 0x65, 0x74, 0x2f, 0x6b, - 0x76, 0x5f, 0x72, 0x77, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x86, 0x01, - 0x0a, 0x0c, 0x43, 0x43, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x21, - 0x0a, 0x0c, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x49, - 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x73, - 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, - 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x6e, - 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, - 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x22, 0x77, 0x0a, 0x0e, 0x48, 0x6f, 0x73, 0x74, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1e, 0x0a, 0x0b, 0x70, 0x65, 0x65, 0x72, - 0x5f, 0x6d, 0x73, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, - 0x65, 0x65, 0x72, 0x4d, 0x73, 0x70, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x65, 0x65, 0x72, - 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0c, 0x70, 0x65, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x20, 0x0a, - 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x22, - 0x80, 0x02, 0x0a, 0x0c, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, - 0x12, 0x2e, 0x0a, 0x09, 0x63, 0x63, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x66, 0x70, 0x63, 0x2e, 0x43, 0x43, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x08, 0x63, 0x63, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x12, 0x34, 0x0a, 0x0b, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x66, 0x70, 0x63, 0x2e, 0x48, 0x6f, 0x73, 0x74, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x0a, 0x68, 0x6f, 0x73, 0x74, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x6e, 0x63, 0x6c, 0x61, 0x76, - 0x65, 0x5f, 0x76, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, 0x6e, 0x63, 0x6c, - 0x61, 0x76, 0x65, 0x56, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, - 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x68, 0x61, - 0x6e, 0x6e, 0x65, 0x6c, 0x48, 0x61, 0x73, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x6c, 0x63, 0x63, - 0x5f, 0x6d, 0x72, 0x65, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0d, 0x74, 0x6c, 0x63, 0x63, 0x4d, 0x72, 0x65, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x12, - 0x21, 0x0a, 0x0c, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x6b, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, - 0x45, 0x6b, 0x22, 0x9b, 0x01, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, - 0x6c, 0x73, 0x12, 0x4e, 0x0a, 0x18, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, - 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x16, 0x73, 0x65, 0x72, 0x69, - 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x64, 0x44, 0x61, - 0x74, 0x61, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, - 0x22, 0x68, 0x0a, 0x12, 0x49, 0x6e, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x4d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x65, - 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, - 0x65, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x12, 0x61, - 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x49, 0x0a, 0x19, 0x43, 0x6c, - 0x65, 0x61, 0x72, 0x74, 0x65, 0x78, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x43, 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x52, 0x05, - 0x69, 0x6e, 0x70, 0x75, 0x74, 0x22, 0x8d, 0x01, 0x0a, 0x17, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x63, - 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x65, 0x6e, - 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x45, - 0x0a, 0x1f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, - 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x1c, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x65, 0x64, 0x4b, 0x65, 0x79, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x83, 0x01, 0x0a, 0x13, 0x4b, 0x65, 0x79, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x34, 0x0a, - 0x16, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x14, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x4b, 0x65, 0x79, 0x12, 0x36, 0x0a, 0x17, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, - 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x15, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x45, 0x6e, - 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x22, 0x4a, 0x0a, 0x1a, 0x43, - 0x6c, 0x65, 0x61, 0x72, 0x74, 0x65, 0x78, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x08, 0x72, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5f, 0x0a, 0x08, 0x46, 0x50, 0x43, 0x4b, 0x56, - 0x53, 0x65, 0x74, 0x12, 0x27, 0x0a, 0x06, 0x72, 0x77, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6b, 0x76, 0x72, 0x77, 0x73, 0x65, 0x74, 0x2e, 0x4b, 0x56, - 0x52, 0x57, 0x53, 0x65, 0x74, 0x52, 0x05, 0x72, 0x77, 0x53, 0x65, 0x74, 0x12, 0x2a, 0x0a, 0x11, - 0x72, 0x65, 0x61, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x65, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0f, 0x72, 0x65, 0x61, 0x64, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x48, 0x61, 0x73, 0x68, 0x65, 0x73, 0x22, 0x8e, 0x02, 0x0a, 0x18, 0x43, 0x68, 0x61, - 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x11, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x0a, 0x66, 0x70, 0x63, 0x5f, 0x72, 0x77, 0x5f, 0x73, - 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x66, 0x70, 0x63, 0x2e, 0x46, - 0x50, 0x43, 0x4b, 0x56, 0x53, 0x65, 0x74, 0x52, 0x08, 0x66, 0x70, 0x63, 0x52, 0x77, 0x53, 0x65, - 0x74, 0x12, 0x32, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x53, 0x69, 0x67, - 0x6e, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x43, 0x0a, 0x1e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, - 0x64, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x1b, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x6e, - 0x63, 0x6c, 0x61, 0x76, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x65, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x1e, 0x53, 0x69, 0x67, - 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3c, 0x0a, 0x1a, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x18, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, - 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, - 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x42, 0x41, 0x5a, 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, 0x65, 0x64, 0x67, 0x65, - 0x72, 0x2f, 0x66, 0x61, 0x62, 0x72, 0x69, 0x63, 0x2d, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, - 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, - 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} +const file_fpc_fpc_proto_rawDesc = "" + + "\n" + + "\rfpc/fpc.proto\x12\x03fpc\x1a\x19google/protobuf/any.proto\x1a\x14peer/chaincode.proto\x1a\x13peer/proposal.proto\x1a\x1cpeer/proposal_response.proto\x1a#ledger/rwset/kvrwset/kv_rwset.proto\"\x86\x01\n" + + "\fCCParameters\x12!\n" + + "\fchaincode_id\x18\x01 \x01(\tR\vchaincodeId\x12\x18\n" + + "\aversion\x18\x02 \x01(\tR\aversion\x12\x1a\n" + + "\bsequence\x18\x03 \x01(\x03R\bsequence\x12\x1d\n" + + "\n" + + "channel_id\x18\x04 \x01(\tR\tchannelId\"w\n" + + "\x0eHostParameters\x12\x1e\n" + + "\vpeer_msp_id\x18\x01 \x01(\tR\tpeerMspId\x12#\n" + + "\rpeer_endpoint\x18\x02 \x01(\tR\fpeerEndpoint\x12 \n" + + "\vcertificate\x18\x03 \x01(\fR\vcertificate\"\x80\x02\n" + + "\fAttestedData\x12.\n" + + "\tcc_params\x18\x01 \x01(\v2\x11.fpc.CCParametersR\bccParams\x124\n" + + "\vhost_params\x18\x02 \x01(\v2\x13.fpc.HostParametersR\n" + + "hostParams\x12\x1d\n" + + "\n" + + "enclave_vk\x18\x03 \x01(\fR\tenclaveVk\x12!\n" + + "\fchannel_hash\x18\x04 \x01(\fR\vchannelHash\x12%\n" + + "\x0etlcc_mrenclave\x18\x05 \x01(\tR\rtlccMrenclave\x12!\n" + + "\fchaincode_ek\x18\x06 \x01(\fR\vchaincodeEk\"\x9b\x01\n" + + "\vCredentials\x12N\n" + + "\x18serialized_attested_data\x18\x01 \x01(\v2\x14.google.protobuf.AnyR\x16serializedAttestedData\x12 \n" + + "\vattestation\x18\x02 \x01(\fR\vattestation\x12\x1a\n" + + "\bevidence\x18\x03 \x01(\fR\bevidence\"h\n" + + "\x12InitEnclaveMessage\x12#\n" + + "\rpeer_endpoint\x18\x01 \x01(\tR\fpeerEndpoint\x12-\n" + + "\x12attestation_params\x18\x02 \x01(\fR\x11attestationParams\"I\n" + + "\x19CleartextChaincodeRequest\x12,\n" + + "\x05input\x18\x01 \x01(\v2\x16.protos.ChaincodeInputR\x05input\"\x8d\x01\n" + + "\x17ChaincodeRequestMessage\x12+\n" + + "\x11encrypted_request\x18\x01 \x01(\fR\x10encryptedRequest\x12E\n" + + "\x1fencrypted_key_transport_message\x18\x02 \x01(\fR\x1cencryptedKeyTransportMessage\"\x83\x01\n" + + "\x13KeyTransportMessage\x124\n" + + "\x16request_encryption_key\x18\x01 \x01(\fR\x14requestEncryptionKey\x126\n" + + "\x17response_encryption_key\x18\x02 \x01(\fR\x15responseEncryptionKey\"J\n" + + "\x1aCleartextChaincodeResponse\x12,\n" + + "\bresponse\x18\x01 \x01(\v2\x10.protos.ResponseR\bresponse\"_\n" + + "\bFPCKVSet\x12'\n" + + "\x06rw_set\x18\x01 \x01(\v2\x10.kvrwset.KVRWSetR\x05rwSet\x12*\n" + + "\x11read_value_hashes\x18\x02 \x03(\fR\x0freadValueHashes\"\x8e\x02\n" + + "\x18ChaincodeResponseMessage\x12-\n" + + "\x12encrypted_response\x18\x01 \x01(\fR\x11encryptedResponse\x12+\n" + + "\n" + + "fpc_rw_set\x18\x02 \x01(\v2\r.fpc.FPCKVSetR\bfpcRwSet\x122\n" + + "\bproposal\x18\x03 \x01(\v2\x16.protos.SignedProposalR\bproposal\x12C\n" + + "\x1echaincode_request_message_hash\x18\x04 \x01(\fR\x1bchaincodeRequestMessageHash\x12\x1d\n" + + "\n" + + "enclave_id\x18\x05 \x01(\tR\tenclaveId\"|\n" + + "\x1eSignedChaincodeResponseMessage\x12<\n" + + "\x1achaincode_response_message\x18\x01 \x01(\fR\x18chaincodeResponseMessage\x12\x1c\n" + + "\tsignature\x18\x02 \x01(\fR\tsignatureBAZ?github.com/hyperledger/fabric-private-chaincode/internal/protosb\x06proto3" var ( file_fpc_fpc_proto_rawDescOnce sync.Once - file_fpc_fpc_proto_rawDescData = file_fpc_fpc_proto_rawDesc + file_fpc_fpc_proto_rawDescData []byte ) func file_fpc_fpc_proto_rawDescGZIP() []byte { file_fpc_fpc_proto_rawDescOnce.Do(func() { - file_fpc_fpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_fpc_fpc_proto_rawDescData) + file_fpc_fpc_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_fpc_fpc_proto_rawDesc), len(file_fpc_fpc_proto_rawDesc))) }) return file_fpc_fpc_proto_rawDescData } var file_fpc_fpc_proto_msgTypes = make([]protoimpl.MessageInfo, 12) -var file_fpc_fpc_proto_goTypes = []interface{}{ +var file_fpc_fpc_proto_goTypes = []any{ (*CCParameters)(nil), // 0: fpc.CCParameters (*HostParameters)(nil), // 1: fpc.HostParameters (*AttestedData)(nil), // 2: fpc.AttestedData @@ -985,157 +879,11 @@ func file_fpc_fpc_proto_init() { if File_fpc_fpc_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_fpc_fpc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CCParameters); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_fpc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HostParameters); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_fpc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AttestedData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_fpc_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Credentials); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_fpc_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitEnclaveMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_fpc_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CleartextChaincodeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_fpc_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChaincodeRequestMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_fpc_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KeyTransportMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_fpc_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CleartextChaincodeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_fpc_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FPCKVSet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_fpc_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChaincodeResponseMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_fpc_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignedChaincodeResponseMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fpc_fpc_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_fpc_fpc_proto_rawDesc), len(file_fpc_fpc_proto_rawDesc)), NumEnums: 0, NumMessages: 12, NumExtensions: 0, @@ -1146,7 +894,6 @@ func file_fpc_fpc_proto_init() { MessageInfos: file_fpc_fpc_proto_msgTypes, }.Build() File_fpc_fpc_proto = out.File - file_fpc_fpc_proto_rawDesc = nil file_fpc_fpc_proto_goTypes = nil file_fpc_fpc_proto_depIdxs = nil } diff --git a/internal/protos/key_dist.pb.go b/internal/protos/key_dist.pb.go index 25634cbf2..d33c62f8d 100644 --- a/internal/protos/key_dist.pb.go +++ b/internal/protos/key_dist.pb.go @@ -5,8 +5,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.12 +// protoc-gen-go v1.36.6 +// protoc v4.22.3 // source: fpc/key_dist.proto package protos @@ -17,6 +17,7 @@ import ( anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -27,26 +28,23 @@ const ( ) type CCKeyRegistrationMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // defines the context as SHA256 of cc_params CcParamsHash []byte `protobuf:"bytes,1,opt,name=cc_params_hash,json=ccParamsHash,proto3" json:"cc_params_hash,omitempty"` // public chaincode encryption key ChaincodeEk []byte `protobuf:"bytes,2,opt,name=chaincode_ek,json=chaincodeEk,proto3" json:"chaincode_ek,omitempty"` // creator of this message // enclave_id is the SHA256 hash of enclave_vk - EnclaveId []byte `protobuf:"bytes,3,opt,name=enclave_id,json=enclaveId,proto3" json:"enclave_id,omitempty"` + EnclaveId []byte `protobuf:"bytes,3,opt,name=enclave_id,json=enclaveId,proto3" json:"enclave_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CCKeyRegistrationMessage) Reset() { *x = CCKeyRegistrationMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_key_dist_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_key_dist_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CCKeyRegistrationMessage) String() string { @@ -57,7 +55,7 @@ func (*CCKeyRegistrationMessage) ProtoMessage() {} func (x *CCKeyRegistrationMessage) ProtoReflect() protoreflect.Message { mi := &file_fpc_key_dist_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -94,23 +92,20 @@ func (x *CCKeyRegistrationMessage) GetEnclaveId() []byte { } type SignedCCKeyRegistrationMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // serialization of type CCKeyRegistrationMessage SerializedCckeyRegMsg *anypb.Any `protobuf:"bytes,1,opt,name=serialized_cckey_reg_msg,json=serializedCckeyRegMsg,proto3" json:"serialized_cckey_reg_msg,omitempty"` // signature of the message creator (enclave) - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SignedCCKeyRegistrationMessage) Reset() { *x = SignedCCKeyRegistrationMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_key_dist_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_key_dist_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SignedCCKeyRegistrationMessage) String() string { @@ -121,7 +116,7 @@ func (*SignedCCKeyRegistrationMessage) ProtoMessage() {} func (x *SignedCCKeyRegistrationMessage) ProtoReflect() protoreflect.Message { mi := &file_fpc_key_dist_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -151,10 +146,7 @@ func (x *SignedCCKeyRegistrationMessage) GetSignature() []byte { } type ExportMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // defines the context of this export message as SHA256 of cc_params CcParamsHash []byte `protobuf:"bytes,1,opt,name=cc_params_hash,json=ccParamsHash,proto3" json:"cc_params_hash,omitempty"` // public chaincode encryption key @@ -165,15 +157,15 @@ type ExportMessage struct { ReceiverEnclaveVk []byte `protobuf:"bytes,4,opt,name=receiver_enclave_vk,json=receiverEnclaveVk,proto3" json:"receiver_enclave_vk,omitempty"` // sender (creator) of this export message SenderEnclaveVk []byte `protobuf:"bytes,5,opt,name=sender_enclave_vk,json=senderEnclaveVk,proto3" json:"sender_enclave_vk,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ExportMessage) Reset() { *x = ExportMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_key_dist_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_key_dist_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExportMessage) String() string { @@ -184,7 +176,7 @@ func (*ExportMessage) ProtoMessage() {} func (x *ExportMessage) ProtoReflect() protoreflect.Message { mi := &file_fpc_key_dist_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -235,23 +227,20 @@ func (x *ExportMessage) GetSenderEnclaveVk() []byte { } type SignedExportMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // serialization of type ExportMessage SerializedExportMsgBytes *anypb.Any `protobuf:"bytes,1,opt,name=serialized_export_msg_bytes,json=serializedExportMsgBytes,proto3" json:"serialized_export_msg_bytes,omitempty"` // signature of the message creator - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SignedExportMessage) Reset() { *x = SignedExportMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_key_dist_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_key_dist_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SignedExportMessage) String() string { @@ -262,7 +251,7 @@ func (*SignedExportMessage) ProtoMessage() {} func (x *SignedExportMessage) ProtoReflect() protoreflect.Message { mi := &file_fpc_key_dist_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -293,72 +282,42 @@ func (x *SignedExportMessage) GetSignature() []byte { var File_fpc_key_dist_proto protoreflect.FileDescriptor -var file_fpc_key_dist_proto_rawDesc = []byte{ - 0x0a, 0x12, 0x66, 0x70, 0x63, 0x2f, 0x6b, 0x65, 0x79, 0x5f, 0x64, 0x69, 0x73, 0x74, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x6b, 0x65, 0x79, 0x5f, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x82, 0x01, 0x0a, 0x18, 0x43, 0x43, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x24, - 0x0a, 0x0e, 0x63, 0x63, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x5f, 0x68, 0x61, 0x73, 0x68, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x63, 0x63, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x48, 0x61, 0x73, 0x68, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, - 0x65, 0x5f, 0x65, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x45, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x6e, 0x63, 0x6c, 0x61, - 0x76, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, 0x6e, 0x63, - 0x6c, 0x61, 0x76, 0x65, 0x49, 0x64, 0x22, 0x8d, 0x01, 0x0a, 0x1e, 0x53, 0x69, 0x67, 0x6e, 0x65, - 0x64, 0x43, 0x43, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x4d, 0x0a, 0x18, 0x73, 0x65, 0x72, - 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x63, 0x63, 0x6b, 0x65, 0x79, 0x5f, 0x72, 0x65, - 0x67, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, - 0x79, 0x52, 0x15, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x43, 0x63, 0x6b, - 0x65, 0x79, 0x52, 0x65, 0x67, 0x4d, 0x73, 0x67, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, - 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0xd3, 0x01, 0x0a, 0x0d, 0x45, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x63, 0x63, 0x5f, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x0c, 0x63, 0x63, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x48, 0x61, 0x73, 0x68, 0x12, 0x21, - 0x0a, 0x0c, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x6b, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x45, - 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x63, 0x6b, 0x65, 0x79, 0x73, 0x5f, 0x65, 0x6e, 0x63, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x63, 0x6b, 0x65, 0x79, 0x73, 0x45, 0x6e, 0x63, - 0x12, 0x2e, 0x0a, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x65, 0x6e, 0x63, - 0x6c, 0x61, 0x76, 0x65, 0x5f, 0x76, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x72, - 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x56, 0x6b, - 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x65, 0x6e, 0x63, 0x6c, 0x61, - 0x76, 0x65, 0x5f, 0x76, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x73, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x45, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x56, 0x6b, 0x22, 0x88, 0x01, 0x0a, - 0x13, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x12, 0x53, 0x0a, 0x1b, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, - 0x65, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x73, 0x67, 0x5f, 0x62, 0x79, - 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, - 0x18, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x4d, 0x73, 0x67, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, - 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, - 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x42, 0x41, 0x5a, 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, 0x65, 0x64, 0x67, 0x65, - 0x72, 0x2f, 0x66, 0x61, 0x62, 0x72, 0x69, 0x63, 0x2d, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, - 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, - 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} +const file_fpc_key_dist_proto_rawDesc = "" + + "\n" + + "\x12fpc/key_dist.proto\x12\x10key_distribution\x1a\x19google/protobuf/any.proto\"\x82\x01\n" + + "\x18CCKeyRegistrationMessage\x12$\n" + + "\x0ecc_params_hash\x18\x01 \x01(\fR\fccParamsHash\x12!\n" + + "\fchaincode_ek\x18\x02 \x01(\fR\vchaincodeEk\x12\x1d\n" + + "\n" + + "enclave_id\x18\x03 \x01(\fR\tenclaveId\"\x8d\x01\n" + + "\x1eSignedCCKeyRegistrationMessage\x12M\n" + + "\x18serialized_cckey_reg_msg\x18\x01 \x01(\v2\x14.google.protobuf.AnyR\x15serializedCckeyRegMsg\x12\x1c\n" + + "\tsignature\x18\x02 \x01(\fR\tsignature\"\xd3\x01\n" + + "\rExportMessage\x12$\n" + + "\x0ecc_params_hash\x18\x01 \x01(\fR\fccParamsHash\x12!\n" + + "\fchaincode_ek\x18\x02 \x01(\fR\vchaincodeEk\x12\x1d\n" + + "\n" + + "cckeys_enc\x18\x03 \x01(\fR\tcckeysEnc\x12.\n" + + "\x13receiver_enclave_vk\x18\x04 \x01(\fR\x11receiverEnclaveVk\x12*\n" + + "\x11sender_enclave_vk\x18\x05 \x01(\fR\x0fsenderEnclaveVk\"\x88\x01\n" + + "\x13SignedExportMessage\x12S\n" + + "\x1bserialized_export_msg_bytes\x18\x01 \x01(\v2\x14.google.protobuf.AnyR\x18serializedExportMsgBytes\x12\x1c\n" + + "\tsignature\x18\x02 \x01(\fR\tsignatureBAZ?github.com/hyperledger/fabric-private-chaincode/internal/protosb\x06proto3" var ( file_fpc_key_dist_proto_rawDescOnce sync.Once - file_fpc_key_dist_proto_rawDescData = file_fpc_key_dist_proto_rawDesc + file_fpc_key_dist_proto_rawDescData []byte ) func file_fpc_key_dist_proto_rawDescGZIP() []byte { file_fpc_key_dist_proto_rawDescOnce.Do(func() { - file_fpc_key_dist_proto_rawDescData = protoimpl.X.CompressGZIP(file_fpc_key_dist_proto_rawDescData) + file_fpc_key_dist_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_fpc_key_dist_proto_rawDesc), len(file_fpc_key_dist_proto_rawDesc))) }) return file_fpc_key_dist_proto_rawDescData } var file_fpc_key_dist_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_fpc_key_dist_proto_goTypes = []interface{}{ +var file_fpc_key_dist_proto_goTypes = []any{ (*CCKeyRegistrationMessage)(nil), // 0: key_distribution.CCKeyRegistrationMessage (*SignedCCKeyRegistrationMessage)(nil), // 1: key_distribution.SignedCCKeyRegistrationMessage (*ExportMessage)(nil), // 2: key_distribution.ExportMessage @@ -380,61 +339,11 @@ func file_fpc_key_dist_proto_init() { if File_fpc_key_dist_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_fpc_key_dist_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CCKeyRegistrationMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_key_dist_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignedCCKeyRegistrationMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_key_dist_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExportMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_key_dist_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignedExportMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fpc_key_dist_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_fpc_key_dist_proto_rawDesc), len(file_fpc_key_dist_proto_rawDesc)), NumEnums: 0, NumMessages: 4, NumExtensions: 0, @@ -445,7 +354,6 @@ func file_fpc_key_dist_proto_init() { MessageInfos: file_fpc_key_dist_proto_msgTypes, }.Build() File_fpc_key_dist_proto = out.File - file_fpc_key_dist_proto_rawDesc = nil file_fpc_key_dist_proto_goTypes = nil file_fpc_key_dist_proto_depIdxs = nil } diff --git a/internal/protos/tl_session/tl_session.pb.go b/internal/protos/tl_session/tl_session.pb.go index d581eefe1..0c7ed7ba0 100644 --- a/internal/protos/tl_session/tl_session.pb.go +++ b/internal/protos/tl_session/tl_session.pb.go @@ -5,8 +5,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.12 +// protoc-gen-go v1.36.6 +// protoc v4.22.3 // source: fpc/tl_session.proto package tl_session @@ -17,6 +17,7 @@ import ( anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -27,22 +28,19 @@ const ( ) type SessionSetupInitRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + ChaincodeId string `protobuf:"bytes,2,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` + EnclaveId string `protobuf:"bytes,3,opt,name=enclave_id,json=enclaveId,proto3" json:"enclave_id,omitempty"` unknownFields protoimpl.UnknownFields - - ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` - ChaincodeId string `protobuf:"bytes,2,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` - EnclaveId string `protobuf:"bytes,3,opt,name=enclave_id,json=enclaveId,proto3" json:"enclave_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SessionSetupInitRequest) Reset() { *x = SessionSetupInitRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_tl_session_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_tl_session_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SessionSetupInitRequest) String() string { @@ -53,7 +51,7 @@ func (*SessionSetupInitRequest) ProtoMessage() {} func (x *SessionSetupInitRequest) ProtoReflect() protoreflect.Message { mi := &file_fpc_tl_session_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -90,22 +88,19 @@ func (x *SessionSetupInitRequest) GetEnclaveId() string { } type SessionSetupInitResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SessionId uint64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SessionId uint64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // serialized struct sgx_dh_msg1_t - Msg1 []byte `protobuf:"bytes,2,opt,name=msg1,proto3" json:"msg1,omitempty"` + Msg1 []byte `protobuf:"bytes,2,opt,name=msg1,proto3" json:"msg1,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SessionSetupInitResponse) Reset() { *x = SessionSetupInitResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_tl_session_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_tl_session_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SessionSetupInitResponse) String() string { @@ -116,7 +111,7 @@ func (*SessionSetupInitResponse) ProtoMessage() {} func (x *SessionSetupInitResponse) ProtoReflect() protoreflect.Message { mi := &file_fpc_tl_session_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -146,22 +141,19 @@ func (x *SessionSetupInitResponse) GetMsg1() []byte { } type SessionSetupCompleteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SessionId uint64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SessionId uint64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // serialized struct sgx_dh_msg2_t - Msg2 []byte `protobuf:"bytes,2,opt,name=msg2,proto3" json:"msg2,omitempty"` + Msg2 []byte `protobuf:"bytes,2,opt,name=msg2,proto3" json:"msg2,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SessionSetupCompleteRequest) Reset() { *x = SessionSetupCompleteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_tl_session_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_tl_session_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SessionSetupCompleteRequest) String() string { @@ -172,7 +164,7 @@ func (*SessionSetupCompleteRequest) ProtoMessage() {} func (x *SessionSetupCompleteRequest) ProtoReflect() protoreflect.Message { mi := &file_fpc_tl_session_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -202,26 +194,23 @@ func (x *SessionSetupCompleteRequest) GetMsg2() []byte { } type SessionSetupCompleteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SessionId uint64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SessionId uint64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // serialized struct sgx_dh_msg2_t - Msg3 []byte `protobuf:"bytes,2,opt,name=msg3,proto3" json:"msg3,omitempty"` - ChannelId string `protobuf:"bytes,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` - ChannelHash []byte `protobuf:"bytes,4,opt,name=channel_hash,json=channelHash,proto3" json:"channel_hash,omitempty"` - ChaincodeId string `protobuf:"bytes,5,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` - EnclaveId string `protobuf:"bytes,6,opt,name=enclave_id,json=enclaveId,proto3" json:"enclave_id,omitempty"` + Msg3 []byte `protobuf:"bytes,2,opt,name=msg3,proto3" json:"msg3,omitempty"` + ChannelId string `protobuf:"bytes,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + ChannelHash []byte `protobuf:"bytes,4,opt,name=channel_hash,json=channelHash,proto3" json:"channel_hash,omitempty"` + ChaincodeId string `protobuf:"bytes,5,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` + EnclaveId string `protobuf:"bytes,6,opt,name=enclave_id,json=enclaveId,proto3" json:"enclave_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SessionSetupCompleteResponse) Reset() { *x = SessionSetupCompleteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_tl_session_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_tl_session_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SessionSetupCompleteResponse) String() string { @@ -232,7 +221,7 @@ func (*SessionSetupCompleteResponse) ProtoMessage() {} func (x *SessionSetupCompleteResponse) ProtoReflect() protoreflect.Message { mi := &file_fpc_tl_session_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -290,20 +279,17 @@ func (x *SessionSetupCompleteResponse) GetEnclaveId() string { } type SessionCloseRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SessionId uint64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` unknownFields protoimpl.UnknownFields - - SessionId uint64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SessionCloseRequest) Reset() { *x = SessionCloseRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_tl_session_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_tl_session_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SessionCloseRequest) String() string { @@ -314,7 +300,7 @@ func (*SessionCloseRequest) ProtoMessage() {} func (x *SessionCloseRequest) ProtoReflect() protoreflect.Message { mi := &file_fpc_tl_session_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -337,20 +323,17 @@ func (x *SessionCloseRequest) GetSessionId() uint64 { } type SessionCloseResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SessionId uint64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` unknownFields protoimpl.UnknownFields - - SessionId uint64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SessionCloseResponse) Reset() { *x = SessionCloseResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_tl_session_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_tl_session_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SessionCloseResponse) String() string { @@ -361,7 +344,7 @@ func (*SessionCloseResponse) ProtoMessage() {} func (x *SessionCloseResponse) ProtoReflect() protoreflect.Message { mi := &file_fpc_tl_session_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -384,22 +367,19 @@ func (x *SessionCloseResponse) GetSessionId() uint64 { } type SessionTXRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SessionId uint64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` + Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` + Request []byte `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` unknownFields protoimpl.UnknownFields - - SessionId uint64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` - Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` - Request []byte `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SessionTXRequest) Reset() { *x = SessionTXRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_tl_session_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_tl_session_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SessionTXRequest) String() string { @@ -410,7 +390,7 @@ func (*SessionTXRequest) ProtoMessage() {} func (x *SessionTXRequest) ProtoReflect() protoreflect.Message { mi := &file_fpc_tl_session_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -447,23 +427,20 @@ func (x *SessionTXRequest) GetRequest() []byte { } type SessionTXResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SessionId uint64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SessionId uint64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // should be same as in request: somewhat redundant but makes processing of MAC easier/more uniform. - Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` - Respoonse []byte `protobuf:"bytes,3,opt,name=respoonse,proto3" json:"respoonse,omitempty"` + Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` + Respoonse []byte `protobuf:"bytes,3,opt,name=respoonse,proto3" json:"respoonse,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SessionTXResponse) Reset() { *x = SessionTXResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_tl_session_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_tl_session_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SessionTXResponse) String() string { @@ -474,7 +451,7 @@ func (*SessionTXResponse) ProtoMessage() {} func (x *SessionTXResponse) ProtoReflect() protoreflect.Message { mi := &file_fpc_tl_session_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -511,22 +488,19 @@ func (x *SessionTXResponse) GetRespoonse() []byte { } type SessionError struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SessionId uint64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` + ErrorCode int32 `protobuf:"varint,2,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` + ErrorMsg string `protobuf:"bytes,3,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` unknownFields protoimpl.UnknownFields - - SessionId uint64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` - ErrorCode int32 `protobuf:"varint,2,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` - ErrorMsg string `protobuf:"bytes,3,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SessionError) Reset() { *x = SessionError{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_tl_session_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_tl_session_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SessionError) String() string { @@ -537,7 +511,7 @@ func (*SessionError) ProtoMessage() {} func (x *SessionError) ProtoReflect() protoreflect.Message { mi := &file_fpc_tl_session_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -574,11 +548,8 @@ func (x *SessionError) GetErrorMsg() string { } type SessionMsgPayload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Payload: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Payload: // // *SessionMsgPayload_StpIntReq // *SessionMsgPayload_StpIntRsp @@ -589,16 +560,16 @@ type SessionMsgPayload struct { // *SessionMsgPayload_TxReq // *SessionMsgPayload_TxRsp // *SessionMsgPayload_Error - Payload isSessionMsgPayload_Payload `protobuf_oneof:"payload"` + Payload isSessionMsgPayload_Payload `protobuf_oneof:"payload"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SessionMsgPayload) Reset() { *x = SessionMsgPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_tl_session_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_tl_session_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SessionMsgPayload) String() string { @@ -609,7 +580,7 @@ func (*SessionMsgPayload) ProtoMessage() {} func (x *SessionMsgPayload) ProtoReflect() protoreflect.Message { mi := &file_fpc_tl_session_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -624,72 +595,90 @@ func (*SessionMsgPayload) Descriptor() ([]byte, []int) { return file_fpc_tl_session_proto_rawDescGZIP(), []int{9} } -func (m *SessionMsgPayload) GetPayload() isSessionMsgPayload_Payload { - if m != nil { - return m.Payload +func (x *SessionMsgPayload) GetPayload() isSessionMsgPayload_Payload { + if x != nil { + return x.Payload } return nil } func (x *SessionMsgPayload) GetStpIntReq() *SessionSetupInitRequest { - if x, ok := x.GetPayload().(*SessionMsgPayload_StpIntReq); ok { - return x.StpIntReq + if x != nil { + if x, ok := x.Payload.(*SessionMsgPayload_StpIntReq); ok { + return x.StpIntReq + } } return nil } func (x *SessionMsgPayload) GetStpIntRsp() *SessionSetupInitResponse { - if x, ok := x.GetPayload().(*SessionMsgPayload_StpIntRsp); ok { - return x.StpIntRsp + if x != nil { + if x, ok := x.Payload.(*SessionMsgPayload_StpIntRsp); ok { + return x.StpIntRsp + } } return nil } func (x *SessionMsgPayload) GetStpCmpReq() *SessionSetupCompleteRequest { - if x, ok := x.GetPayload().(*SessionMsgPayload_StpCmpReq); ok { - return x.StpCmpReq + if x != nil { + if x, ok := x.Payload.(*SessionMsgPayload_StpCmpReq); ok { + return x.StpCmpReq + } } return nil } func (x *SessionMsgPayload) GetStpCmpRsp() *SessionSetupCompleteResponse { - if x, ok := x.GetPayload().(*SessionMsgPayload_StpCmpRsp); ok { - return x.StpCmpRsp + if x != nil { + if x, ok := x.Payload.(*SessionMsgPayload_StpCmpRsp); ok { + return x.StpCmpRsp + } } return nil } func (x *SessionMsgPayload) GetClsReq() *SessionCloseRequest { - if x, ok := x.GetPayload().(*SessionMsgPayload_ClsReq); ok { - return x.ClsReq + if x != nil { + if x, ok := x.Payload.(*SessionMsgPayload_ClsReq); ok { + return x.ClsReq + } } return nil } func (x *SessionMsgPayload) GetClsRsp() *SessionCloseResponse { - if x, ok := x.GetPayload().(*SessionMsgPayload_ClsRsp); ok { - return x.ClsRsp + if x != nil { + if x, ok := x.Payload.(*SessionMsgPayload_ClsRsp); ok { + return x.ClsRsp + } } return nil } func (x *SessionMsgPayload) GetTxReq() *SessionTXRequest { - if x, ok := x.GetPayload().(*SessionMsgPayload_TxReq); ok { - return x.TxReq + if x != nil { + if x, ok := x.Payload.(*SessionMsgPayload_TxReq); ok { + return x.TxReq + } } return nil } func (x *SessionMsgPayload) GetTxRsp() *SessionTXResponse { - if x, ok := x.GetPayload().(*SessionMsgPayload_TxRsp); ok { - return x.TxRsp + if x != nil { + if x, ok := x.Payload.(*SessionMsgPayload_TxRsp); ok { + return x.TxRsp + } } return nil } func (x *SessionMsgPayload) GetError() *SessionError { - if x, ok := x.GetPayload().(*SessionMsgPayload_Error); ok { - return x.Error + if x != nil { + if x, ok := x.Payload.(*SessionMsgPayload_Error); ok { + return x.Error + } } return nil } @@ -753,21 +742,18 @@ func (*SessionMsgPayload_TxRsp) isSessionMsgPayload_Payload() {} func (*SessionMsgPayload_Error) isSessionMsgPayload_Payload() {} type SessionMsg struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SerializedPayload *anypb.Any `protobuf:"bytes,1,opt,name=serialized_payload,json=serializedPayload,proto3" json:"serialized_payload,omitempty"` // This should be a serialization of SessionMsgPayload - Mac []byte `protobuf:"bytes,2,opt,name=mac,proto3" json:"mac,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SerializedPayload *anypb.Any `protobuf:"bytes,1,opt,name=serialized_payload,json=serializedPayload,proto3" json:"serialized_payload,omitempty"` // This should be a serialization of SessionMsgPayload + Mac []byte `protobuf:"bytes,2,opt,name=mac,proto3" json:"mac,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SessionMsg) Reset() { *x = SessionMsg{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_tl_session_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_tl_session_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SessionMsg) String() string { @@ -778,7 +764,7 @@ func (*SessionMsg) ProtoMessage() {} func (x *SessionMsg) ProtoReflect() protoreflect.Message { mi := &file_fpc_tl_session_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -809,135 +795,86 @@ func (x *SessionMsg) GetMac() []byte { var File_fpc_tl_session_proto protoreflect.FileDescriptor -var file_fpc_tl_session_proto_rawDesc = []byte{ - 0x0a, 0x14, 0x66, 0x70, 0x63, 0x2f, 0x74, 0x6c, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x6c, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7a, 0x0a, - 0x17, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x75, 0x70, 0x49, 0x6e, 0x69, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x6e, - 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, - 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x6e, - 0x63, 0x6c, 0x61, 0x76, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x65, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x49, 0x64, 0x22, 0x4d, 0x0a, 0x18, 0x53, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x75, 0x70, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x73, 0x67, 0x31, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x04, 0x6d, 0x73, 0x67, 0x31, 0x22, 0x50, 0x0a, 0x1b, 0x53, 0x65, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x75, 0x70, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x73, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x73, 0x67, 0x32, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6d, 0x73, 0x67, 0x32, 0x22, 0xd5, 0x01, 0x0a, 0x1c, 0x53, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x75, 0x70, 0x43, 0x6f, 0x6d, 0x70, 0x6c, - 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x73, - 0x67, 0x33, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6d, 0x73, 0x67, 0x33, 0x12, 0x1d, - 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x21, 0x0a, - 0x0c, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x48, 0x61, 0x73, 0x68, - 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, - 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x5f, 0x69, - 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, - 0x49, 0x64, 0x22, 0x34, 0x0a, 0x13, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x6f, - 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x73, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x35, 0x0a, 0x14, 0x53, 0x65, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, - 0x61, 0x0a, 0x10, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x58, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x22, 0x66, 0x0a, 0x11, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x58, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x73, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, - 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x09, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x69, 0x0a, 0x0c, 0x53, 0x65, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, - 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x22, 0xde, 0x04, 0x0a, 0x11, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x4d, 0x73, 0x67, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x45, 0x0a, 0x0b, 0x73, - 0x74, 0x70, 0x5f, 0x69, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x23, 0x2e, 0x74, 0x6c, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x75, 0x70, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x09, 0x73, 0x74, 0x70, 0x49, 0x6e, 0x74, 0x52, - 0x65, 0x71, 0x12, 0x46, 0x0a, 0x0b, 0x73, 0x74, 0x70, 0x5f, 0x69, 0x6e, 0x74, 0x5f, 0x72, 0x73, - 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x6c, 0x5f, 0x73, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x75, - 0x70, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, - 0x09, 0x73, 0x74, 0x70, 0x49, 0x6e, 0x74, 0x52, 0x73, 0x70, 0x12, 0x49, 0x0a, 0x0b, 0x73, 0x74, - 0x70, 0x5f, 0x63, 0x6d, 0x70, 0x5f, 0x72, 0x65, 0x71, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x27, 0x2e, 0x74, 0x6c, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x75, 0x70, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x09, 0x73, 0x74, 0x70, 0x43, - 0x6d, 0x70, 0x52, 0x65, 0x71, 0x12, 0x4a, 0x0a, 0x0b, 0x73, 0x74, 0x70, 0x5f, 0x63, 0x6d, 0x70, - 0x5f, 0x72, 0x73, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x6c, 0x5f, - 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, - 0x65, 0x74, 0x75, 0x70, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x09, 0x73, 0x74, 0x70, 0x43, 0x6d, 0x70, 0x52, 0x73, - 0x70, 0x12, 0x3a, 0x0a, 0x07, 0x63, 0x6c, 0x73, 0x5f, 0x72, 0x65, 0x71, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x6c, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, - 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x06, 0x63, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x12, 0x3b, 0x0a, - 0x07, 0x63, 0x6c, 0x73, 0x5f, 0x72, 0x73, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, - 0x2e, 0x74, 0x6c, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x48, 0x00, 0x52, 0x06, 0x63, 0x6c, 0x73, 0x52, 0x73, 0x70, 0x12, 0x35, 0x0a, 0x06, 0x74, 0x78, - 0x5f, 0x72, 0x65, 0x71, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x6c, 0x5f, - 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, - 0x58, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x05, 0x74, 0x78, 0x52, 0x65, - 0x71, 0x12, 0x36, 0x0a, 0x06, 0x74, 0x78, 0x5f, 0x72, 0x73, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x6c, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x58, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x48, 0x00, 0x52, 0x05, 0x74, 0x78, 0x52, 0x73, 0x70, 0x12, 0x30, 0x0a, 0x05, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x6c, 0x5f, 0x73, 0x65, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, - 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x09, 0x0a, 0x07, 0x70, - 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x63, 0x0a, 0x0a, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x4d, 0x73, 0x67, 0x12, 0x43, 0x0a, 0x12, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, - 0x65, 0x64, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x11, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, - 0x65, 0x64, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x61, 0x63, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6d, 0x61, 0x63, 0x42, 0x4c, 0x5a, 0x4a, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, - 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x66, 0x61, 0x62, 0x72, 0x69, 0x63, 0x2d, 0x70, 0x72, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x2f, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x74, - 0x6c, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} +const file_fpc_tl_session_proto_rawDesc = "" + + "\n" + + "\x14fpc/tl_session.proto\x12\n" + + "tl_session\x1a\x19google/protobuf/any.proto\"z\n" + + "\x17SessionSetupInitRequest\x12\x1d\n" + + "\n" + + "channel_id\x18\x01 \x01(\tR\tchannelId\x12!\n" + + "\fchaincode_id\x18\x02 \x01(\tR\vchaincodeId\x12\x1d\n" + + "\n" + + "enclave_id\x18\x03 \x01(\tR\tenclaveId\"M\n" + + "\x18SessionSetupInitResponse\x12\x1d\n" + + "\n" + + "session_id\x18\x01 \x01(\x04R\tsessionId\x12\x12\n" + + "\x04msg1\x18\x02 \x01(\fR\x04msg1\"P\n" + + "\x1bSessionSetupCompleteRequest\x12\x1d\n" + + "\n" + + "session_id\x18\x01 \x01(\x04R\tsessionId\x12\x12\n" + + "\x04msg2\x18\x02 \x01(\fR\x04msg2\"\xd5\x01\n" + + "\x1cSessionSetupCompleteResponse\x12\x1d\n" + + "\n" + + "session_id\x18\x01 \x01(\x04R\tsessionId\x12\x12\n" + + "\x04msg3\x18\x02 \x01(\fR\x04msg3\x12\x1d\n" + + "\n" + + "channel_id\x18\x03 \x01(\tR\tchannelId\x12!\n" + + "\fchannel_hash\x18\x04 \x01(\fR\vchannelHash\x12!\n" + + "\fchaincode_id\x18\x05 \x01(\tR\vchaincodeId\x12\x1d\n" + + "\n" + + "enclave_id\x18\x06 \x01(\tR\tenclaveId\"4\n" + + "\x13SessionCloseRequest\x12\x1d\n" + + "\n" + + "session_id\x18\x01 \x01(\x04R\tsessionId\"5\n" + + "\x14SessionCloseResponse\x12\x1d\n" + + "\n" + + "session_id\x18\x01 \x01(\x04R\tsessionId\"a\n" + + "\x10SessionTXRequest\x12\x1d\n" + + "\n" + + "session_id\x18\x01 \x01(\x04R\tsessionId\x12\x14\n" + + "\x05nonce\x18\x02 \x01(\fR\x05nonce\x12\x18\n" + + "\arequest\x18\x03 \x01(\fR\arequest\"f\n" + + "\x11SessionTXResponse\x12\x1d\n" + + "\n" + + "session_id\x18\x01 \x01(\x04R\tsessionId\x12\x14\n" + + "\x05nonce\x18\x02 \x01(\fR\x05nonce\x12\x1c\n" + + "\trespoonse\x18\x03 \x01(\fR\trespoonse\"i\n" + + "\fSessionError\x12\x1d\n" + + "\n" + + "session_id\x18\x01 \x01(\x04R\tsessionId\x12\x1d\n" + + "\n" + + "error_code\x18\x02 \x01(\x05R\terrorCode\x12\x1b\n" + + "\terror_msg\x18\x03 \x01(\tR\berrorMsg\"\xde\x04\n" + + "\x11SessionMsgPayload\x12E\n" + + "\vstp_int_req\x18\x01 \x01(\v2#.tl_session.SessionSetupInitRequestH\x00R\tstpIntReq\x12F\n" + + "\vstp_int_rsp\x18\x02 \x01(\v2$.tl_session.SessionSetupInitResponseH\x00R\tstpIntRsp\x12I\n" + + "\vstp_cmp_req\x18\x03 \x01(\v2'.tl_session.SessionSetupCompleteRequestH\x00R\tstpCmpReq\x12J\n" + + "\vstp_cmp_rsp\x18\x04 \x01(\v2(.tl_session.SessionSetupCompleteResponseH\x00R\tstpCmpRsp\x12:\n" + + "\acls_req\x18\x05 \x01(\v2\x1f.tl_session.SessionCloseRequestH\x00R\x06clsReq\x12;\n" + + "\acls_rsp\x18\x06 \x01(\v2 .tl_session.SessionCloseResponseH\x00R\x06clsRsp\x125\n" + + "\x06tx_req\x18\a \x01(\v2\x1c.tl_session.SessionTXRequestH\x00R\x05txReq\x126\n" + + "\x06tx_rsp\x18\b \x01(\v2\x1d.tl_session.SessionTXResponseH\x00R\x05txRsp\x120\n" + + "\x05error\x18\t \x01(\v2\x18.tl_session.SessionErrorH\x00R\x05errorB\t\n" + + "\apayload\"c\n" + + "\n" + + "SessionMsg\x12C\n" + + "\x12serialized_payload\x18\x01 \x01(\v2\x14.google.protobuf.AnyR\x11serializedPayload\x12\x10\n" + + "\x03mac\x18\x02 \x01(\fR\x03macBLZJgithub.com/hyperledger/fabric-private-chaincode/internal/protos/tl_sessionb\x06proto3" var ( file_fpc_tl_session_proto_rawDescOnce sync.Once - file_fpc_tl_session_proto_rawDescData = file_fpc_tl_session_proto_rawDesc + file_fpc_tl_session_proto_rawDescData []byte ) func file_fpc_tl_session_proto_rawDescGZIP() []byte { file_fpc_tl_session_proto_rawDescOnce.Do(func() { - file_fpc_tl_session_proto_rawDescData = protoimpl.X.CompressGZIP(file_fpc_tl_session_proto_rawDescData) + file_fpc_tl_session_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_fpc_tl_session_proto_rawDesc), len(file_fpc_tl_session_proto_rawDesc))) }) return file_fpc_tl_session_proto_rawDescData } var file_fpc_tl_session_proto_msgTypes = make([]protoimpl.MessageInfo, 11) -var file_fpc_tl_session_proto_goTypes = []interface{}{ +var file_fpc_tl_session_proto_goTypes = []any{ (*SessionSetupInitRequest)(nil), // 0: tl_session.SessionSetupInitRequest (*SessionSetupInitResponse)(nil), // 1: tl_session.SessionSetupInitResponse (*SessionSetupCompleteRequest)(nil), // 2: tl_session.SessionSetupCompleteRequest @@ -974,141 +911,7 @@ func file_fpc_tl_session_proto_init() { if File_fpc_tl_session_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_fpc_tl_session_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SessionSetupInitRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_tl_session_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SessionSetupInitResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_tl_session_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SessionSetupCompleteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_tl_session_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SessionSetupCompleteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_tl_session_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SessionCloseRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_tl_session_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SessionCloseResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_tl_session_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SessionTXRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_tl_session_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SessionTXResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_tl_session_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SessionError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_tl_session_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SessionMsgPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_tl_session_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SessionMsg); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_fpc_tl_session_proto_msgTypes[9].OneofWrappers = []interface{}{ + file_fpc_tl_session_proto_msgTypes[9].OneofWrappers = []any{ (*SessionMsgPayload_StpIntReq)(nil), (*SessionMsgPayload_StpIntRsp)(nil), (*SessionMsgPayload_StpCmpReq)(nil), @@ -1123,7 +926,7 @@ func file_fpc_tl_session_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fpc_tl_session_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_fpc_tl_session_proto_rawDesc), len(file_fpc_tl_session_proto_rawDesc)), NumEnums: 0, NumMessages: 11, NumExtensions: 0, @@ -1134,7 +937,6 @@ func file_fpc_tl_session_proto_init() { MessageInfos: file_fpc_tl_session_proto_msgTypes, }.Build() File_fpc_tl_session_proto = out.File - file_fpc_tl_session_proto_rawDesc = nil file_fpc_tl_session_proto_goTypes = nil file_fpc_tl_session_proto_depIdxs = nil } diff --git a/internal/protos/trusted_ledger.pb.go b/internal/protos/trusted_ledger.pb.go index 7bbeff8be..903293228 100644 --- a/internal/protos/trusted_ledger.pb.go +++ b/internal/protos/trusted_ledger.pb.go @@ -5,8 +5,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.12 +// protoc-gen-go v1.36.6 +// protoc v4.22.3 // source: fpc/trusted_ledger.proto package protos @@ -16,6 +16,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -30,21 +31,18 @@ const ( // const char *namespace, // const char *key); type GetMetadataRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` unknownFields protoimpl.UnknownFields - - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetMetadataRequest) Reset() { *x = GetMetadataRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_trusted_ledger_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_trusted_ledger_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMetadataRequest) String() string { @@ -55,7 +53,7 @@ func (*GetMetadataRequest) ProtoMessage() {} func (x *GetMetadataRequest) ProtoReflect() protoreflect.Message { mi := &file_fpc_trusted_ledger_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -85,20 +83,17 @@ func (x *GetMetadataRequest) GetKey() string { } type GetMetadataResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` unknownFields protoimpl.UnknownFields - - Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetMetadataResponse) Reset() { *x = GetMetadataResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_trusted_ledger_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_trusted_ledger_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMetadataResponse) String() string { @@ -109,7 +104,7 @@ func (*GetMetadataResponse) ProtoMessage() {} func (x *GetMetadataResponse) ProtoReflect() protoreflect.Message { mi := &file_fpc_trusted_ledger_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -136,21 +131,18 @@ func (x *GetMetadataResponse) GetHash() []byte { // const char *namespace, // const char *comp_key); type GetMultiMetadataRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + CompoKey string `protobuf:"bytes,2,opt,name=compo_key,json=compoKey,proto3" json:"compo_key,omitempty"` unknownFields protoimpl.UnknownFields - - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - CompoKey string `protobuf:"bytes,2,opt,name=compo_key,json=compoKey,proto3" json:"compo_key,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetMultiMetadataRequest) Reset() { *x = GetMultiMetadataRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_trusted_ledger_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_trusted_ledger_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMultiMetadataRequest) String() string { @@ -161,7 +153,7 @@ func (*GetMultiMetadataRequest) ProtoMessage() {} func (x *GetMultiMetadataRequest) ProtoReflect() protoreflect.Message { mi := &file_fpc_trusted_ledger_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -191,21 +183,18 @@ func (x *GetMultiMetadataRequest) GetCompoKey() string { } type GetMultiMetadataResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // SHA-256 over value found by key (or all-zero if key absent) - Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetMultiMetadataResponse) Reset() { *x = GetMultiMetadataResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_trusted_ledger_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_trusted_ledger_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMultiMetadataResponse) String() string { @@ -216,7 +205,7 @@ func (*GetMultiMetadataResponse) ProtoMessage() {} func (x *GetMultiMetadataResponse) ProtoReflect() protoreflect.Message { mi := &file_fpc_trusted_ledger_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -246,20 +235,17 @@ func (x *GetMultiMetadataResponse) GetHash() []byte { // const uint8_t *serializedIdentity, // const uint32_t len); type ValidateIdentityRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SerializedIdentity []byte `protobuf:"bytes,1,opt,name=serialized_identity,json=serializedIdentity,proto3" json:"serialized_identity,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SerializedIdentity []byte `protobuf:"bytes,1,opt,name=serialized_identity,json=serializedIdentity,proto3" json:"serialized_identity,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ValidateIdentityRequest) Reset() { *x = ValidateIdentityRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_trusted_ledger_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_trusted_ledger_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateIdentityRequest) String() string { @@ -270,7 +256,7 @@ func (*ValidateIdentityRequest) ProtoMessage() {} func (x *ValidateIdentityRequest) ProtoReflect() protoreflect.Message { mi := &file_fpc_trusted_ledger_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -293,20 +279,17 @@ func (x *ValidateIdentityRequest) GetSerializedIdentity() []byte { } type ValidateIdentityResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + IsValid bool `protobuf:"varint,1,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"` unknownFields protoimpl.UnknownFields - - IsValid bool `protobuf:"varint,1,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ValidateIdentityResponse) Reset() { *x = ValidateIdentityResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_trusted_ledger_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_trusted_ledger_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateIdentityResponse) String() string { @@ -317,7 +300,7 @@ func (*ValidateIdentityResponse) ProtoMessage() {} func (x *ValidateIdentityResponse) ProtoReflect() protoreflect.Message { mi := &file_fpc_trusted_ledger_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -348,22 +331,19 @@ func (x *ValidateIdentityResponse) GetIsValid() bool { // const char *chaincode_id, // const char *enclave_id); type CanEndorseRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // note: could be implied from session context but still explicit in case we want to expose to ERCC - ChaincodeId string `protobuf:"bytes,1,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` - EnclaveId string `protobuf:"bytes,2,opt,name=enclave_id,json=enclaveId,proto3" json:"enclave_id,omitempty"` + ChaincodeId string `protobuf:"bytes,1,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` + EnclaveId string `protobuf:"bytes,2,opt,name=enclave_id,json=enclaveId,proto3" json:"enclave_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CanEndorseRequest) Reset() { *x = CanEndorseRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_trusted_ledger_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_trusted_ledger_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CanEndorseRequest) String() string { @@ -374,7 +354,7 @@ func (*CanEndorseRequest) ProtoMessage() {} func (x *CanEndorseRequest) ProtoReflect() protoreflect.Message { mi := &file_fpc_trusted_ledger_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -404,20 +384,17 @@ func (x *CanEndorseRequest) GetEnclaveId() string { } type CanEndorseResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + IsValid bool `protobuf:"varint,1,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"` unknownFields protoimpl.UnknownFields - - IsValid bool `protobuf:"varint,1,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CanEndorseResponse) Reset() { *x = CanEndorseResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_trusted_ledger_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_trusted_ledger_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CanEndorseResponse) String() string { @@ -428,7 +405,7 @@ func (*CanEndorseResponse) ProtoMessage() {} func (x *CanEndorseResponse) ProtoReflect() protoreflect.Message { mi := &file_fpc_trusted_ledger_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -452,11 +429,8 @@ func (x *CanEndorseResponse) GetIsValid() bool { // - wrapper type which is passed to `tl_session_request` and the handler registered with `tl_session_register` type Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TxContext []byte `protobuf:"bytes,1,opt,name=tx_context,json=txContext,proto3" json:"tx_context,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + TxContext []byte `protobuf:"bytes,1,opt,name=tx_context,json=txContext,proto3" json:"tx_context,omitempty"` // tx_context is used by TLCC to enforce consistency across separate requests of // a single chaincode transaction (including potential subtransactions) and is // an arbitrary identifier chosen by ECC_Enclave with following constraints: @@ -483,22 +457,22 @@ type Request struct { // - [#435](https://github.com/hyperledger/fabric-private-chaincode/pull/435) // - [#361](https://github.com/hyperledger/fabric-private-chaincode/issues/361) // - // Types that are assignable to Request: + // Types that are valid to be assigned to Request: // // *Request_Metadata // *Request_MultiMetadata // *Request_ValidateIdentity // *Request_CanEndorse - Request isRequest_Request `protobuf_oneof:"request"` + Request isRequest_Request `protobuf_oneof:"request"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Request) Reset() { *x = Request{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_trusted_ledger_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_trusted_ledger_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Request) String() string { @@ -509,7 +483,7 @@ func (*Request) ProtoMessage() {} func (x *Request) ProtoReflect() protoreflect.Message { mi := &file_fpc_trusted_ledger_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -531,37 +505,45 @@ func (x *Request) GetTxContext() []byte { return nil } -func (m *Request) GetRequest() isRequest_Request { - if m != nil { - return m.Request +func (x *Request) GetRequest() isRequest_Request { + if x != nil { + return x.Request } return nil } func (x *Request) GetMetadata() *GetMetadataRequest { - if x, ok := x.GetRequest().(*Request_Metadata); ok { - return x.Metadata + if x != nil { + if x, ok := x.Request.(*Request_Metadata); ok { + return x.Metadata + } } return nil } func (x *Request) GetMultiMetadata() *GetMultiMetadataRequest { - if x, ok := x.GetRequest().(*Request_MultiMetadata); ok { - return x.MultiMetadata + if x != nil { + if x, ok := x.Request.(*Request_MultiMetadata); ok { + return x.MultiMetadata + } } return nil } func (x *Request) GetValidateIdentity() *ValidateIdentityRequest { - if x, ok := x.GetRequest().(*Request_ValidateIdentity); ok { - return x.ValidateIdentity + if x != nil { + if x, ok := x.Request.(*Request_ValidateIdentity); ok { + return x.ValidateIdentity + } } return nil } func (x *Request) GetCanEndorse() *CanEndorseRequest { - if x, ok := x.GetRequest().(*Request_CanEndorse); ok { - return x.CanEndorse + if x != nil { + if x, ok := x.Request.(*Request_CanEndorse); ok { + return x.CanEndorse + } } return nil } @@ -595,26 +577,23 @@ func (*Request_ValidateIdentity) isRequest_Request() {} func (*Request_CanEndorse) isRequest_Request() {} type Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Response: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Response: // // *Response_Metadata // *Response_MultiMetadata // *Response_ValidateIdentity // *Response_CanEndorse - Response isResponse_Response `protobuf_oneof:"response"` + Response isResponse_Response `protobuf_oneof:"response"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Response) Reset() { *x = Response{} - if protoimpl.UnsafeEnabled { - mi := &file_fpc_trusted_ledger_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_fpc_trusted_ledger_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Response) String() string { @@ -625,7 +604,7 @@ func (*Response) ProtoMessage() {} func (x *Response) ProtoReflect() protoreflect.Message { mi := &file_fpc_trusted_ledger_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -640,37 +619,45 @@ func (*Response) Descriptor() ([]byte, []int) { return file_fpc_trusted_ledger_proto_rawDescGZIP(), []int{9} } -func (m *Response) GetResponse() isResponse_Response { - if m != nil { - return m.Response +func (x *Response) GetResponse() isResponse_Response { + if x != nil { + return x.Response } return nil } func (x *Response) GetMetadata() *GetMetadataResponse { - if x, ok := x.GetResponse().(*Response_Metadata); ok { - return x.Metadata + if x != nil { + if x, ok := x.Response.(*Response_Metadata); ok { + return x.Metadata + } } return nil } func (x *Response) GetMultiMetadata() *GetMultiMetadataResponse { - if x, ok := x.GetResponse().(*Response_MultiMetadata); ok { - return x.MultiMetadata + if x != nil { + if x, ok := x.Response.(*Response_MultiMetadata); ok { + return x.MultiMetadata + } } return nil } func (x *Response) GetValidateIdentity() *ValidateIdentityResponse { - if x, ok := x.GetResponse().(*Response_ValidateIdentity); ok { - return x.ValidateIdentity + if x != nil { + if x, ok := x.Response.(*Response_ValidateIdentity); ok { + return x.ValidateIdentity + } } return nil } func (x *Response) GetCanEndorse() *CanEndorseResponse { - if x, ok := x.GetResponse().(*Response_CanEndorse); ok { - return x.CanEndorse + if x != nil { + if x, ok := x.Response.(*Response_CanEndorse); ok { + return x.CanEndorse + } } return nil } @@ -705,106 +692,61 @@ func (*Response_CanEndorse) isResponse_Response() {} var File_fpc_trusted_ledger_proto protoreflect.FileDescriptor -var file_fpc_trusted_ledger_proto_rawDesc = []byte{ - 0x0a, 0x18, 0x66, 0x70, 0x63, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6c, 0x65, - 0x64, 0x67, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x74, 0x72, 0x75, 0x73, - 0x74, 0x65, 0x64, 0x5f, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x22, 0x44, 0x0a, 0x12, 0x47, 0x65, - 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x22, 0x29, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x22, 0x54, 0x0a, 0x17, 0x47, - 0x65, 0x74, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x5f, 0x6b, 0x65, - 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x4b, 0x65, - 0x79, 0x22, 0x2e, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, - 0x68, 0x22, 0x4a, 0x0a, 0x17, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x13, - 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x73, 0x65, 0x72, 0x69, 0x61, - 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x35, 0x0a, - 0x18, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x22, 0x55, 0x0a, 0x11, 0x43, 0x61, 0x6e, 0x45, 0x6e, 0x64, 0x6f, 0x72, - 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, - 0x65, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x65, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x49, 0x64, 0x22, 0x2f, 0x0a, 0x12, 0x43, - 0x61, 0x6e, 0x45, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x22, 0xe5, 0x02, 0x0a, - 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x78, 0x5f, 0x63, - 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x78, - 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x40, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x74, 0x72, 0x75, 0x73, - 0x74, 0x65, 0x64, 0x5f, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, - 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x50, 0x0a, 0x0e, 0x6d, 0x75, 0x6c, - 0x74, 0x69, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x27, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6c, 0x65, 0x64, 0x67, - 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x75, - 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x56, 0x0a, 0x11, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, - 0x5f, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, - 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, - 0x00, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x12, 0x44, 0x0a, 0x0b, 0x63, 0x61, 0x6e, 0x5f, 0x65, 0x6e, 0x64, 0x6f, 0x72, - 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, - 0x65, 0x64, 0x5f, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2e, 0x43, 0x61, 0x6e, 0x45, 0x6e, 0x64, - 0x6f, 0x72, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x63, - 0x61, 0x6e, 0x45, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x22, 0xcc, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x41, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6c, 0x65, - 0x64, 0x67, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x12, 0x51, 0x0a, 0x0e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x6d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, - 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2e, 0x47, 0x65, - 0x74, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x57, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6c, 0x65, 0x64, - 0x67, 0x65, 0x72, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x10, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, - 0x12, 0x45, 0x0a, 0x0b, 0x63, 0x61, 0x6e, 0x5f, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x5f, - 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2e, 0x43, 0x61, 0x6e, 0x45, 0x6e, 0x64, 0x6f, 0x72, 0x73, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x61, 0x6e, - 0x45, 0x6e, 0x64, 0x6f, 0x72, 0x73, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x42, 0x41, 0x5a, 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x66, 0x61, - 0x62, 0x72, 0x69, 0x63, 0x2d, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2d, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_fpc_trusted_ledger_proto_rawDesc = "" + + "\n" + + "\x18fpc/trusted_ledger.proto\x12\x0etrusted_ledger\"D\n" + + "\x12GetMetadataRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x10\n" + + "\x03key\x18\x02 \x01(\tR\x03key\")\n" + + "\x13GetMetadataResponse\x12\x12\n" + + "\x04hash\x18\x01 \x01(\fR\x04hash\"T\n" + + "\x17GetMultiMetadataRequest\x12\x1c\n" + + "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1b\n" + + "\tcompo_key\x18\x02 \x01(\tR\bcompoKey\".\n" + + "\x18GetMultiMetadataResponse\x12\x12\n" + + "\x04hash\x18\x01 \x01(\fR\x04hash\"J\n" + + "\x17ValidateIdentityRequest\x12/\n" + + "\x13serialized_identity\x18\x01 \x01(\fR\x12serializedIdentity\"5\n" + + "\x18ValidateIdentityResponse\x12\x19\n" + + "\bis_valid\x18\x01 \x01(\bR\aisValid\"U\n" + + "\x11CanEndorseRequest\x12!\n" + + "\fchaincode_id\x18\x01 \x01(\tR\vchaincodeId\x12\x1d\n" + + "\n" + + "enclave_id\x18\x02 \x01(\tR\tenclaveId\"/\n" + + "\x12CanEndorseResponse\x12\x19\n" + + "\bis_valid\x18\x01 \x01(\bR\aisValid\"\xe5\x02\n" + + "\aRequest\x12\x1d\n" + + "\n" + + "tx_context\x18\x01 \x01(\fR\ttxContext\x12@\n" + + "\bmetadata\x18\x02 \x01(\v2\".trusted_ledger.GetMetadataRequestH\x00R\bmetadata\x12P\n" + + "\x0emulti_metadata\x18\x03 \x01(\v2'.trusted_ledger.GetMultiMetadataRequestH\x00R\rmultiMetadata\x12V\n" + + "\x11validate_identity\x18\x04 \x01(\v2'.trusted_ledger.ValidateIdentityRequestH\x00R\x10validateIdentity\x12D\n" + + "\vcan_endorse\x18\x05 \x01(\v2!.trusted_ledger.CanEndorseRequestH\x00R\n" + + "canEndorseB\t\n" + + "\arequest\"\xcc\x02\n" + + "\bResponse\x12A\n" + + "\bmetadata\x18\x01 \x01(\v2#.trusted_ledger.GetMetadataResponseH\x00R\bmetadata\x12Q\n" + + "\x0emulti_metadata\x18\x02 \x01(\v2(.trusted_ledger.GetMultiMetadataResponseH\x00R\rmultiMetadata\x12W\n" + + "\x11validate_identity\x18\x03 \x01(\v2(.trusted_ledger.ValidateIdentityResponseH\x00R\x10validateIdentity\x12E\n" + + "\vcan_endorse\x18\x04 \x01(\v2\".trusted_ledger.CanEndorseResponseH\x00R\n" + + "canEndorseB\n" + + "\n" + + "\bresponseBAZ?github.com/hyperledger/fabric-private-chaincode/internal/protosb\x06proto3" var ( file_fpc_trusted_ledger_proto_rawDescOnce sync.Once - file_fpc_trusted_ledger_proto_rawDescData = file_fpc_trusted_ledger_proto_rawDesc + file_fpc_trusted_ledger_proto_rawDescData []byte ) func file_fpc_trusted_ledger_proto_rawDescGZIP() []byte { file_fpc_trusted_ledger_proto_rawDescOnce.Do(func() { - file_fpc_trusted_ledger_proto_rawDescData = protoimpl.X.CompressGZIP(file_fpc_trusted_ledger_proto_rawDescData) + file_fpc_trusted_ledger_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_fpc_trusted_ledger_proto_rawDesc), len(file_fpc_trusted_ledger_proto_rawDesc))) }) return file_fpc_trusted_ledger_proto_rawDescData } var file_fpc_trusted_ledger_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_fpc_trusted_ledger_proto_goTypes = []interface{}{ +var file_fpc_trusted_ledger_proto_goTypes = []any{ (*GetMetadataRequest)(nil), // 0: trusted_ledger.GetMetadataRequest (*GetMetadataResponse)(nil), // 1: trusted_ledger.GetMetadataResponse (*GetMultiMetadataRequest)(nil), // 2: trusted_ledger.GetMultiMetadataRequest @@ -837,135 +779,13 @@ func file_fpc_trusted_ledger_proto_init() { if File_fpc_trusted_ledger_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_fpc_trusted_ledger_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMetadataRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_trusted_ledger_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMetadataResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_trusted_ledger_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMultiMetadataRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_trusted_ledger_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMultiMetadataResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_trusted_ledger_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateIdentityRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_trusted_ledger_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateIdentityResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_trusted_ledger_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CanEndorseRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_trusted_ledger_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CanEndorseResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_trusted_ledger_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fpc_trusted_ledger_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_fpc_trusted_ledger_proto_msgTypes[8].OneofWrappers = []interface{}{ + file_fpc_trusted_ledger_proto_msgTypes[8].OneofWrappers = []any{ (*Request_Metadata)(nil), (*Request_MultiMetadata)(nil), (*Request_ValidateIdentity)(nil), (*Request_CanEndorse)(nil), } - file_fpc_trusted_ledger_proto_msgTypes[9].OneofWrappers = []interface{}{ + file_fpc_trusted_ledger_proto_msgTypes[9].OneofWrappers = []any{ (*Response_Metadata)(nil), (*Response_MultiMetadata)(nil), (*Response_ValidateIdentity)(nil), @@ -975,7 +795,7 @@ func file_fpc_trusted_ledger_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fpc_trusted_ledger_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_fpc_trusted_ledger_proto_rawDesc), len(file_fpc_trusted_ledger_proto_rawDesc)), NumEnums: 0, NumMessages: 10, NumExtensions: 0, @@ -986,7 +806,6 @@ func file_fpc_trusted_ledger_proto_init() { MessageInfos: file_fpc_trusted_ledger_proto_msgTypes, }.Build() File_fpc_trusted_ledger_proto = out.File - file_fpc_trusted_ledger_proto_rawDesc = nil file_fpc_trusted_ledger_proto_goTypes = nil file_fpc_trusted_ledger_proto_depIdxs = nil } diff --git a/samples/application/ccapi/go.mod b/samples/application/ccapi/go.mod index f0c3cd922..1aef238f6 100644 --- a/samples/application/ccapi/go.mod +++ b/samples/application/ccapi/go.mod @@ -5,20 +5,17 @@ go 1.23.5 require ( github.com/gin-contrib/cors v1.4.0 github.com/gin-gonic/gin v1.10.0 + github.com/hyperledger-labs/cc-tools-demo/ccapi v0.0.0-20241207212759-9de20ef72afc github.com/hyperledger/fabric v2.1.1+incompatible - github.com/hyperledger/fabric-gateway v1.2.2 github.com/hyperledger/fabric-private-chaincode v1.0.0-rc3.0.20241027225741-54c22bdd71b6 - github.com/hyperledger/fabric-protos-go-apiv2 v0.2.0 github.com/hyperledger/fabric-sdk-go v1.0.1-0.20240123083657-5d6ca326e01b github.com/pkg/errors v0.9.1 - github.com/swaggo/files v1.0.1 - github.com/swaggo/gin-swagger v1.6.0 github.com/swaggo/swag v1.8.12 - google.golang.org/grpc v1.59.0 - google.golang.org/protobuf v1.34.2 gopkg.in/yaml.v2 v2.4.0 ) +replace github.com/hyperledger/fabric-private-chaincode => ../../../ + require ( github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible // indirect github.com/KyleBanks/depth v1.2.1 // indirect @@ -47,11 +44,12 @@ require ( github.com/golang/protobuf v1.5.3 // indirect github.com/google/certificate-transparency-go v1.0.21 // indirect github.com/hashicorp/hcl v1.0.0 // indirect - github.com/hyperledger-labs/cc-tools-demo/ccapi v0.0.0-20241207212759-9de20ef72afc // indirect github.com/hyperledger/fabric-chaincode-go v0.0.0-20230228194215-b84622ba6a7a // indirect github.com/hyperledger/fabric-config v0.1.0 // indirect + github.com/hyperledger/fabric-gateway v1.2.2 // indirect github.com/hyperledger/fabric-lib-go v1.0.0 // indirect github.com/hyperledger/fabric-protos-go v0.3.0 // indirect + github.com/hyperledger/fabric-protos-go-apiv2 v0.2.0 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/klauspost/cpuid/v2 v2.2.7 // indirect @@ -78,6 +76,8 @@ require ( github.com/spf13/viper v1.10.1 // indirect github.com/stretchr/testify v1.9.0 // indirect github.com/subosito/gotenv v1.6.0 // indirect + github.com/swaggo/files v1.0.1 // indirect + github.com/swaggo/gin-swagger v1.6.0 // indirect github.com/sykesm/zap-logfmt v0.0.4 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -93,6 +93,8 @@ require ( golang.org/x/text v0.15.0 // indirect golang.org/x/tools v0.14.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b // indirect + google.golang.org/grpc v1.59.0 // indirect + google.golang.org/protobuf v1.34.2 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/samples/application/ccapi/go.sum b/samples/application/ccapi/go.sum index 197c52375..5b7bdd5b2 100644 --- a/samples/application/ccapi/go.sum +++ b/samples/application/ccapi/go.sum @@ -46,8 +46,6 @@ github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible h1 github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= github.com/KyleBanks/depth v1.2.1 h1:5h8fQADFrWtarTdtDudMmGsC7GPbOAu6RVB3ffsVFHc= github.com/KyleBanks/depth v1.2.1/go.mod h1:jzSb9d0L43HxTQfT+oSA1EEp2q+ne2uh6XgeJcm8brE= -github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= github.com/Shopify/sarama v1.19.0 h1:9oksLxC6uxVPHPVYUmq6xhr1BOF/hHobWH2UzO67z1s= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= @@ -191,7 +189,6 @@ github.com/go-sql-driver/mysql v1.3.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/gobuffalo/packr v1.30.1/go.mod h1:ljMyFO2EcrnzsHsN99cvbq055Y9OhRrIaviy289eRuk= github.com/goccy/go-json v0.9.7/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= @@ -316,8 +313,6 @@ github.com/hyperledger/fabric-gateway v1.2.2 h1:8Al1U2ciEtkiZ21701qbf9oOfd+4Y0in github.com/hyperledger/fabric-gateway v1.2.2/go.mod h1:Ziu7mVxlE2MCwmH0S8zK3WylwEMq1fVBgf+M8OJglQc= github.com/hyperledger/fabric-lib-go v1.0.0 h1:UL1w7c9LvHZUSkIvHTDGklxFv2kTeva1QI2emOVc324= github.com/hyperledger/fabric-lib-go v1.0.0/go.mod h1:H362nMlunurmHwkYqR5uHL2UDWbQdbfz74n8kbCFsqc= -github.com/hyperledger/fabric-private-chaincode v1.0.0-rc3.0.20241027225741-54c22bdd71b6 h1:Vhudx0SCjzW4dAXUvAR6Ojl4s6KpDLOSjqHhunxcHzU= -github.com/hyperledger/fabric-private-chaincode v1.0.0-rc3.0.20241027225741-54c22bdd71b6/go.mod h1:8NTUNTZOLPvAjML/oauAK+C8V6U/d2RJCzsyP2f9oYw= github.com/hyperledger/fabric-protos-go v0.0.0-20200424173316-dd554ba3746e/go.mod h1:xVYTjK4DtZRBxZ2D9aE4y6AbLaPwue2o/criQyQbVD0= github.com/hyperledger/fabric-protos-go v0.0.0-20211118165945-23d738fc3553/go.mod h1:xVYTjK4DtZRBxZ2D9aE4y6AbLaPwue2o/criQyQbVD0= github.com/hyperledger/fabric-protos-go v0.3.0 h1:MXxy44WTMENOh5TI8+PCK2x6pMj47Go2vFRKDHB2PZs= @@ -399,7 +394,6 @@ github.com/miekg/pkcs11 v1.1.1 h1:Ugu9pdy6vAYku5DEpVWVFPYnzV+bxB+iRdbuFSu7TvU= github.com/miekg/pkcs11 v1.1.1/go.mod h1:XsNlhZGX73bx86s2hdc/FuaLm2CPZJemRLMA+WTFxgs= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= @@ -575,8 +569,6 @@ github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPU github.com/weppos/publicsuffix-go v0.4.0/go.mod h1:z3LCPQ38eedDQSwmsSRW4Y7t2L8Ln16JPQ02lHAdn5k= github.com/weppos/publicsuffix-go v0.5.0 h1:rutRtjBJViU/YjcI5d80t4JAVvDltS6bciJg2K1HrLU= github.com/weppos/publicsuffix-go v0.5.0/go.mod h1:z3LCPQ38eedDQSwmsSRW4Y7t2L8Ln16JPQ02lHAdn5k= -github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= -github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= diff --git a/samples/demos/irb/pkg/protos/irb.pb.go b/samples/demos/irb/pkg/protos/irb.pb.go new file mode 100644 index 000000000..2bbf69cf0 --- /dev/null +++ b/samples/demos/irb/pkg/protos/irb.pb.go @@ -0,0 +1,1677 @@ +// Copyright IBM Corp. All Rights Reserved. +// Copyright 2020 Intel Corporation +// +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.6 +// protoc v3.12.4 +// source: irb.proto + +package protos + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Approval_Decision int32 + +const ( + Approval_UNDEFINED Approval_Decision = 0 + Approval_APPROVED Approval_Decision = 1 + Approval_REJECTED Approval_Decision = 2 +) + +// Enum value maps for Approval_Decision. +var ( + Approval_Decision_name = map[int32]string{ + 0: "UNDEFINED", + 1: "APPROVED", + 2: "REJECTED", + } + Approval_Decision_value = map[string]int32{ + "UNDEFINED": 0, + "APPROVED": 1, + "REJECTED": 2, + } +) + +func (x Approval_Decision) Enum() *Approval_Decision { + p := new(Approval_Decision) + *p = x + return p +} + +func (x Approval_Decision) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Approval_Decision) Descriptor() protoreflect.EnumDescriptor { + return file_irb_proto_enumTypes[0].Descriptor() +} + +func (Approval_Decision) Type() protoreflect.EnumType { + return &file_irb_proto_enumTypes[0] +} + +func (x Approval_Decision) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Approval_Decision.Descriptor instead. +func (Approval_Decision) EnumDescriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{12, 0} +} + +type Status_ReturnCode int32 + +const ( + Status_ERROR_UNKNOWN Status_ReturnCode = 0 + Status_OK Status_ReturnCode = 1 +) + +// Enum value maps for Status_ReturnCode. +var ( + Status_ReturnCode_name = map[int32]string{ + 0: "ERROR_UNKNOWN", + 1: "OK", + } + Status_ReturnCode_value = map[string]int32{ + "ERROR_UNKNOWN": 0, + "OK": 1, + } +) + +func (x Status_ReturnCode) Enum() *Status_ReturnCode { + p := new(Status_ReturnCode) + *p = x + return p +} + +func (x Status_ReturnCode) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Status_ReturnCode) Descriptor() protoreflect.EnumDescriptor { + return file_irb_proto_enumTypes[1].Descriptor() +} + +func (Status_ReturnCode) Type() protoreflect.EnumType { + return &file_irb_proto_enumTypes[1] +} + +func (x Status_ReturnCode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Status_ReturnCode.Descriptor instead. +func (Status_ReturnCode) EnumDescriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{23, 0} +} + +type StudyDetailsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + StudyId string `protobuf:"bytes,1,opt,name=study_id,json=studyId,proto3" json:"study_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StudyDetailsRequest) Reset() { + *x = StudyDetailsRequest{} + mi := &file_irb_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StudyDetailsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StudyDetailsRequest) ProtoMessage() {} + +func (x *StudyDetailsRequest) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StudyDetailsRequest.ProtoReflect.Descriptor instead. +func (*StudyDetailsRequest) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{0} +} + +func (x *StudyDetailsRequest) GetStudyId() string { + if x != nil { + return x.StudyId + } + return "" +} + +type StudyDetailsMessage struct { + state protoimpl.MessageState `protogen:"open.v1"` + StudyId string `protobuf:"bytes,1,opt,name=study_id,json=studyId,proto3" json:"study_id,omitempty"` + Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + UserIdentities []*Identity `protobuf:"bytes,3,rep,name=user_identities,json=userIdentities,proto3" json:"user_identities,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StudyDetailsMessage) Reset() { + *x = StudyDetailsMessage{} + mi := &file_irb_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StudyDetailsMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StudyDetailsMessage) ProtoMessage() {} + +func (x *StudyDetailsMessage) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StudyDetailsMessage.ProtoReflect.Descriptor instead. +func (*StudyDetailsMessage) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{1} +} + +func (x *StudyDetailsMessage) GetStudyId() string { + if x != nil { + return x.StudyId + } + return "" +} + +func (x *StudyDetailsMessage) GetMetadata() string { + if x != nil { + return x.Metadata + } + return "" +} + +func (x *StudyDetailsMessage) GetUserIdentities() []*Identity { + if x != nil { + return x.UserIdentities + } + return nil +} + +type StudyDetailsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + StudyDetailsMessage []byte `protobuf:"bytes,1,opt,name=study_details_message,json=studyDetailsMessage,proto3" json:"study_details_message,omitempty"` + // signed by Study Approval Service (SAS) + // used to be verified by EAS when new study is created + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` + Status *Status `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StudyDetailsResponse) Reset() { + *x = StudyDetailsResponse{} + mi := &file_irb_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StudyDetailsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StudyDetailsResponse) ProtoMessage() {} + +func (x *StudyDetailsResponse) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StudyDetailsResponse.ProtoReflect.Descriptor instead. +func (*StudyDetailsResponse) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{2} +} + +func (x *StudyDetailsResponse) GetStudyDetailsMessage() []byte { + if x != nil { + return x.StudyDetailsMessage + } + return nil +} + +func (x *StudyDetailsResponse) GetSignature() []byte { + if x != nil { + return x.Signature + } + return nil +} + +func (x *StudyDetailsResponse) GetStatus() *Status { + if x != nil { + return x.Status + } + return nil +} + +type RegisterDataRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Participant *Identity `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"` + DecryptionKey []byte `protobuf:"bytes,2,opt,name=decryption_key,json=decryptionKey,proto3" json:"decryption_key,omitempty"` + DataHandler string `protobuf:"bytes,3,opt,name=data_handler,json=dataHandler,proto3" json:"data_handler,omitempty"` + StudyId string `protobuf:"bytes,4,opt,name=study_id,json=studyId,proto3" json:"study_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RegisterDataRequest) Reset() { + *x = RegisterDataRequest{} + mi := &file_irb_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RegisterDataRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RegisterDataRequest) ProtoMessage() {} + +func (x *RegisterDataRequest) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RegisterDataRequest.ProtoReflect.Descriptor instead. +func (*RegisterDataRequest) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{3} +} + +func (x *RegisterDataRequest) GetParticipant() *Identity { + if x != nil { + return x.Participant + } + return nil +} + +func (x *RegisterDataRequest) GetDecryptionKey() []byte { + if x != nil { + return x.DecryptionKey + } + return nil +} + +func (x *RegisterDataRequest) GetDataHandler() string { + if x != nil { + return x.DataHandler + } + return "" +} + +func (x *RegisterDataRequest) GetStudyId() string { + if x != nil { + return x.StudyId + } + return "" +} + +type SubmitStudyRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Details *StudyDetailsResponse `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SubmitStudyRequest) Reset() { + *x = SubmitStudyRequest{} + mi := &file_irb_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SubmitStudyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SubmitStudyRequest) ProtoMessage() {} + +func (x *SubmitStudyRequest) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SubmitStudyRequest.ProtoReflect.Descriptor instead. +func (*SubmitStudyRequest) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{4} +} + +func (x *SubmitStudyRequest) GetDetails() *StudyDetailsResponse { + if x != nil { + return x.Details + } + return nil +} + +type NewExperimentRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Experiment *Experiment `protobuf:"bytes,1,opt,name=experiment,proto3" json:"experiment,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NewExperimentRequest) Reset() { + *x = NewExperimentRequest{} + mi := &file_irb_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NewExperimentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NewExperimentRequest) ProtoMessage() {} + +func (x *NewExperimentRequest) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NewExperimentRequest.ProtoReflect.Descriptor instead. +func (*NewExperimentRequest) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{5} +} + +func (x *NewExperimentRequest) GetExperiment() *Experiment { + if x != nil { + return x.Experiment + } + return nil +} + +type GetExperimentRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExperimentId string `protobuf:"bytes,1,opt,name=experiment_id,json=experimentId,proto3" json:"experiment_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetExperimentRequest) Reset() { + *x = GetExperimentRequest{} + mi := &file_irb_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetExperimentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetExperimentRequest) ProtoMessage() {} + +func (x *GetExperimentRequest) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetExperimentRequest.ProtoReflect.Descriptor instead. +func (*GetExperimentRequest) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{6} +} + +func (x *GetExperimentRequest) GetExperimentId() string { + if x != nil { + return x.ExperimentId + } + return "" +} + +type GetExperimentResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExperimentProposal *ExperimentProposal `protobuf:"bytes,1,opt,name=experiment_proposal,json=experimentProposal,proto3" json:"experiment_proposal,omitempty"` + Status *Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetExperimentResponse) Reset() { + *x = GetExperimentResponse{} + mi := &file_irb_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetExperimentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetExperimentResponse) ProtoMessage() {} + +func (x *GetExperimentResponse) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetExperimentResponse.ProtoReflect.Descriptor instead. +func (*GetExperimentResponse) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{7} +} + +func (x *GetExperimentResponse) GetExperimentProposal() *ExperimentProposal { + if x != nil { + return x.ExperimentProposal + } + return nil +} + +func (x *GetExperimentResponse) GetStatus() *Status { + if x != nil { + return x.Status + } + return nil +} + +type WorkerCredentials struct { + state protoimpl.MessageState `protogen:"open.v1"` + IdentityBytes []byte `protobuf:"bytes,1,opt,name=identity_bytes,json=identityBytes,proto3" json:"identity_bytes,omitempty"` + Attestation []byte `protobuf:"bytes,2,opt,name=attestation,proto3" json:"attestation,omitempty"` + Evidence []byte `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkerCredentials) Reset() { + *x = WorkerCredentials{} + mi := &file_irb_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkerCredentials) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkerCredentials) ProtoMessage() {} + +func (x *WorkerCredentials) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkerCredentials.ProtoReflect.Descriptor instead. +func (*WorkerCredentials) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{8} +} + +func (x *WorkerCredentials) GetIdentityBytes() []byte { + if x != nil { + return x.IdentityBytes + } + return nil +} + +func (x *WorkerCredentials) GetAttestation() []byte { + if x != nil { + return x.Attestation + } + return nil +} + +func (x *WorkerCredentials) GetEvidence() []byte { + if x != nil { + return x.Evidence + } + return nil +} + +type ExperimentProposal struct { + state protoimpl.MessageState `protogen:"open.v1"` + StudyId string `protobuf:"bytes,1,opt,name=study_id,json=studyId,proto3" json:"study_id,omitempty"` + ExperimentId string `protobuf:"bytes,2,opt,name=experiment_id,json=experimentId,proto3" json:"experiment_id,omitempty"` + Mrenclave string `protobuf:"bytes,3,opt,name=mrenclave,proto3" json:"mrenclave,omitempty"` + Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` + WorkerCredentials *WorkerCredentials `protobuf:"bytes,5,opt,name=worker_credentials,json=workerCredentials,proto3" json:"worker_credentials,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExperimentProposal) Reset() { + *x = ExperimentProposal{} + mi := &file_irb_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExperimentProposal) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExperimentProposal) ProtoMessage() {} + +func (x *ExperimentProposal) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExperimentProposal.ProtoReflect.Descriptor instead. +func (*ExperimentProposal) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{9} +} + +func (x *ExperimentProposal) GetStudyId() string { + if x != nil { + return x.StudyId + } + return "" +} + +func (x *ExperimentProposal) GetExperimentId() string { + if x != nil { + return x.ExperimentId + } + return "" +} + +func (x *ExperimentProposal) GetMrenclave() string { + if x != nil { + return x.Mrenclave + } + return "" +} + +func (x *ExperimentProposal) GetMetadata() string { + if x != nil { + return x.Metadata + } + return "" +} + +func (x *ExperimentProposal) GetWorkerCredentials() *WorkerCredentials { + if x != nil { + return x.WorkerCredentials + } + return nil +} + +type Experiment struct { + state protoimpl.MessageState `protogen:"open.v1"` + // we keep bytes + ExperimentProposal []byte `protobuf:"bytes,1,opt,name=experiment_proposal,json=experimentProposal,proto3" json:"experiment_proposal,omitempty"` + Approval *Approval `protobuf:"bytes,2,opt,name=approval,proto3" json:"approval,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Experiment) Reset() { + *x = Experiment{} + mi := &file_irb_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Experiment) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Experiment) ProtoMessage() {} + +func (x *Experiment) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Experiment.ProtoReflect.Descriptor instead. +func (*Experiment) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{10} +} + +func (x *Experiment) GetExperimentProposal() []byte { + if x != nil { + return x.ExperimentProposal + } + return nil +} + +func (x *Experiment) GetApproval() *Approval { + if x != nil { + return x.Approval + } + return nil +} + +type ApprovalRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Approval *Approval `protobuf:"bytes,1,opt,name=approval,proto3" json:"approval,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ApprovalRequest) Reset() { + *x = ApprovalRequest{} + mi := &file_irb_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ApprovalRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ApprovalRequest) ProtoMessage() {} + +func (x *ApprovalRequest) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ApprovalRequest.ProtoReflect.Descriptor instead. +func (*ApprovalRequest) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{11} +} + +func (x *ApprovalRequest) GetApproval() *Approval { + if x != nil { + return x.Approval + } + return nil +} + +type Approval struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExperimentId string `protobuf:"bytes,1,opt,name=experiment_id,json=experimentId,proto3" json:"experiment_id,omitempty"` + // serialized Experiment Proposal + ExperimentProposal []byte `protobuf:"bytes,2,opt,name=experiment_proposal,json=experimentProposal,proto3" json:"experiment_proposal,omitempty"` + Decision Approval_Decision `protobuf:"varint,3,opt,name=decision,proto3,enum=Approval_Decision" json:"decision,omitempty"` + Approver *Identity `protobuf:"bytes,4,opt,name=approver,proto3" json:"approver,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Approval) Reset() { + *x = Approval{} + mi := &file_irb_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Approval) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Approval) ProtoMessage() {} + +func (x *Approval) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Approval.ProtoReflect.Descriptor instead. +func (*Approval) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{12} +} + +func (x *Approval) GetExperimentId() string { + if x != nil { + return x.ExperimentId + } + return "" +} + +func (x *Approval) GetExperimentProposal() []byte { + if x != nil { + return x.ExperimentProposal + } + return nil +} + +func (x *Approval) GetDecision() Approval_Decision { + if x != nil { + return x.Decision + } + return Approval_UNDEFINED +} + +func (x *Approval) GetApprover() *Identity { + if x != nil { + return x.Approver + } + return nil +} + +type SignedApprovalMessage struct { + state protoimpl.MessageState `protogen:"open.v1"` + Approval []byte `protobuf:"bytes,1,opt,name=approval,proto3" json:"approval,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SignedApprovalMessage) Reset() { + *x = SignedApprovalMessage{} + mi := &file_irb_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SignedApprovalMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignedApprovalMessage) ProtoMessage() {} + +func (x *SignedApprovalMessage) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignedApprovalMessage.ProtoReflect.Descriptor instead. +func (*SignedApprovalMessage) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{13} +} + +func (x *SignedApprovalMessage) GetApproval() []byte { + if x != nil { + return x.Approval + } + return nil +} + +func (x *SignedApprovalMessage) GetSignature() []byte { + if x != nil { + return x.Signature + } + return nil +} + +type EvaluationPackRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + StudyId string `protobuf:"bytes,1,opt,name=study_id,json=studyId,proto3" json:"study_id,omitempty"` + ExperimentId string `protobuf:"bytes,2,opt,name=experiment_id,json=experimentId,proto3" json:"experiment_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EvaluationPackRequest) Reset() { + *x = EvaluationPackRequest{} + mi := &file_irb_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EvaluationPackRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EvaluationPackRequest) ProtoMessage() {} + +func (x *EvaluationPackRequest) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EvaluationPackRequest.ProtoReflect.Descriptor instead. +func (*EvaluationPackRequest) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{14} +} + +func (x *EvaluationPackRequest) GetStudyId() string { + if x != nil { + return x.StudyId + } + return "" +} + +func (x *EvaluationPackRequest) GetExperimentId() string { + if x != nil { + return x.ExperimentId + } + return "" +} + +type EncryptedEvaluationPack struct { + state protoimpl.MessageState `protogen:"open.v1"` + EncryptedEncryptionKey []byte `protobuf:"bytes,1,opt,name=encrypted_encryption_key,json=encryptedEncryptionKey,proto3" json:"encrypted_encryption_key,omitempty"` + // this is ciphertext of a serialized EvaluationPack msg + EncryptedEvaluationpack []byte `protobuf:"bytes,2,opt,name=encrypted_evaluationpack,json=encryptedEvaluationpack,proto3" json:"encrypted_evaluationpack,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EncryptedEvaluationPack) Reset() { + *x = EncryptedEvaluationPack{} + mi := &file_irb_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EncryptedEvaluationPack) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EncryptedEvaluationPack) ProtoMessage() {} + +func (x *EncryptedEvaluationPack) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EncryptedEvaluationPack.ProtoReflect.Descriptor instead. +func (*EncryptedEvaluationPack) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{15} +} + +func (x *EncryptedEvaluationPack) GetEncryptedEncryptionKey() []byte { + if x != nil { + return x.EncryptedEncryptionKey + } + return nil +} + +func (x *EncryptedEvaluationPack) GetEncryptedEvaluationpack() []byte { + if x != nil { + return x.EncryptedEvaluationpack + } + return nil +} + +type EvaluationPackMessage struct { + state protoimpl.MessageState `protogen:"open.v1"` + Item []*EvaluationPackItem `protobuf:"bytes,1,rep,name=item,proto3" json:"item,omitempty"` + RegisteredData []*RegisterDataRequest `protobuf:"bytes,2,rep,name=registered_data,json=registeredData,proto3" json:"registered_data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EvaluationPackMessage) Reset() { + *x = EvaluationPackMessage{} + mi := &file_irb_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EvaluationPackMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EvaluationPackMessage) ProtoMessage() {} + +func (x *EvaluationPackMessage) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EvaluationPackMessage.ProtoReflect.Descriptor instead. +func (*EvaluationPackMessage) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{16} +} + +func (x *EvaluationPackMessage) GetItem() []*EvaluationPackItem { + if x != nil { + return x.Item + } + return nil +} + +func (x *EvaluationPackMessage) GetRegisteredData() []*RegisterDataRequest { + if x != nil { + return x.RegisteredData + } + return nil +} + +type EvaluationPackItem struct { + state protoimpl.MessageState `protogen:"open.v1"` + DecryptionKey []byte `protobuf:"bytes,1,opt,name=decryption_key,json=decryptionKey,proto3" json:"decryption_key,omitempty"` + DataHandler string `protobuf:"bytes,2,opt,name=data_handler,json=dataHandler,proto3" json:"data_handler,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EvaluationPackItem) Reset() { + *x = EvaluationPackItem{} + mi := &file_irb_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EvaluationPackItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EvaluationPackItem) ProtoMessage() {} + +func (x *EvaluationPackItem) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EvaluationPackItem.ProtoReflect.Descriptor instead. +func (*EvaluationPackItem) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{17} +} + +func (x *EvaluationPackItem) GetDecryptionKey() []byte { + if x != nil { + return x.DecryptionKey + } + return nil +} + +func (x *EvaluationPackItem) GetDataHandler() string { + if x != nil { + return x.DataHandler + } + return "" +} + +// note that the State message is just here to represent the KVS accessable via putState and getState functions within FPC +type State struct { + state protoimpl.MessageState `protogen:"open.v1"` + // as key we use study id + State map[string]*Study `protobuf:"bytes,1,rep,name=state,proto3" json:"state,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + // as key we use an identity.uuid + RegisteredData map[string]*Data `protobuf:"bytes,2,rep,name=registered_data,json=registeredData,proto3" json:"registered_data,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *State) Reset() { + *x = State{} + mi := &file_irb_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *State) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*State) ProtoMessage() {} + +func (x *State) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use State.ProtoReflect.Descriptor instead. +func (*State) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{18} +} + +func (x *State) GetState() map[string]*Study { + if x != nil { + return x.State + } + return nil +} + +func (x *State) GetRegisteredData() map[string]*Data { + if x != nil { + return x.RegisteredData + } + return nil +} + +type Study struct { + state protoimpl.MessageState `protogen:"open.v1"` + StudyId string `protobuf:"bytes,1,opt,name=study_id,json=studyId,proto3" json:"study_id,omitempty"` + Participant []*Identity `protobuf:"bytes,2,rep,name=participant,proto3" json:"participant,omitempty"` + Experiment []*Experiment `protobuf:"bytes,3,rep,name=experiment,proto3" json:"experiment,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Study) Reset() { + *x = Study{} + mi := &file_irb_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Study) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Study) ProtoMessage() {} + +func (x *Study) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Study.ProtoReflect.Descriptor instead. +func (*Study) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{19} +} + +func (x *Study) GetStudyId() string { + if x != nil { + return x.StudyId + } + return "" +} + +func (x *Study) GetParticipant() []*Identity { + if x != nil { + return x.Participant + } + return nil +} + +func (x *Study) GetExperiment() []*Experiment { + if x != nil { + return x.Experiment + } + return nil +} + +type Data struct { + state protoimpl.MessageState `protogen:"open.v1"` + Participant *Identity `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"` + DecryptionKey []byte `protobuf:"bytes,2,opt,name=decryption_key,json=decryptionKey,proto3" json:"decryption_key,omitempty"` + DataHandler string `protobuf:"bytes,3,opt,name=data_handler,json=dataHandler,proto3" json:"data_handler,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Data) Reset() { + *x = Data{} + mi := &file_irb_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Data) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Data) ProtoMessage() {} + +func (x *Data) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Data.ProtoReflect.Descriptor instead. +func (*Data) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{20} +} + +func (x *Data) GetParticipant() *Identity { + if x != nil { + return x.Participant + } + return nil +} + +func (x *Data) GetDecryptionKey() []byte { + if x != nil { + return x.DecryptionKey + } + return nil +} + +func (x *Data) GetDataHandler() string { + if x != nil { + return x.DataHandler + } + return "" +} + +type ExecuteRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ExperimentId string `protobuf:"bytes,1,opt,name=experiment_id,json=experimentId,proto3" json:"experiment_id,omitempty"` + EncryptedEvaluationPack []byte `protobuf:"bytes,2,opt,name=encrypted_evaluationPack,json=encryptedEvaluationPack,proto3" json:"encrypted_evaluationPack,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExecuteRequest) Reset() { + *x = ExecuteRequest{} + mi := &file_irb_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExecuteRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecuteRequest) ProtoMessage() {} + +func (x *ExecuteRequest) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecuteRequest.ProtoReflect.Descriptor instead. +func (*ExecuteRequest) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{21} +} + +func (x *ExecuteRequest) GetExperimentId() string { + if x != nil { + return x.ExperimentId + } + return "" +} + +func (x *ExecuteRequest) GetEncryptedEvaluationPack() []byte { + if x != nil { + return x.EncryptedEvaluationPack + } + return nil +} + +// Common messages +type Identity struct { + state protoimpl.MessageState `protogen:"open.v1"` + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + PublicEncryptionKey []byte `protobuf:"bytes,3,opt,name=public_encryption_key,json=publicEncryptionKey,proto3" json:"public_encryption_key,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Identity) Reset() { + *x = Identity{} + mi := &file_irb_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Identity) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Identity) ProtoMessage() {} + +func (x *Identity) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Identity.ProtoReflect.Descriptor instead. +func (*Identity) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{22} +} + +func (x *Identity) GetUuid() string { + if x != nil { + return x.Uuid + } + return "" +} + +func (x *Identity) GetPublicKey() []byte { + if x != nil { + return x.PublicKey + } + return nil +} + +func (x *Identity) GetPublicEncryptionKey() []byte { + if x != nil { + return x.PublicEncryptionKey + } + return nil +} + +type Status struct { + state protoimpl.MessageState `protogen:"open.v1"` + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` + ReturnCode Status_ReturnCode `protobuf:"varint,2,opt,name=return_code,json=returnCode,proto3,enum=Status_ReturnCode" json:"return_code,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Status) Reset() { + *x = Status{} + mi := &file_irb_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Status) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Status) ProtoMessage() {} + +func (x *Status) ProtoReflect() protoreflect.Message { + mi := &file_irb_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Status.ProtoReflect.Descriptor instead. +func (*Status) Descriptor() ([]byte, []int) { + return file_irb_proto_rawDescGZIP(), []int{23} +} + +func (x *Status) GetMsg() string { + if x != nil { + return x.Msg + } + return "" +} + +func (x *Status) GetReturnCode() Status_ReturnCode { + if x != nil { + return x.ReturnCode + } + return Status_ERROR_UNKNOWN +} + +var File_irb_proto protoreflect.FileDescriptor + +const file_irb_proto_rawDesc = "" + + "\n" + + "\tirb.proto\"0\n" + + "\x13StudyDetailsRequest\x12\x19\n" + + "\bstudy_id\x18\x01 \x01(\tR\astudyId\"\x80\x01\n" + + "\x13StudyDetailsMessage\x12\x19\n" + + "\bstudy_id\x18\x01 \x01(\tR\astudyId\x12\x1a\n" + + "\bmetadata\x18\x02 \x01(\tR\bmetadata\x122\n" + + "\x0fuser_identities\x18\x03 \x03(\v2\t.IdentityR\x0euserIdentities\"\x89\x01\n" + + "\x14StudyDetailsResponse\x122\n" + + "\x15study_details_message\x18\x01 \x01(\fR\x13studyDetailsMessage\x12\x1c\n" + + "\tsignature\x18\x02 \x01(\fR\tsignature\x12\x1f\n" + + "\x06status\x18\x03 \x01(\v2\a.StatusR\x06status\"\xa7\x01\n" + + "\x13RegisterDataRequest\x12+\n" + + "\vparticipant\x18\x01 \x01(\v2\t.IdentityR\vparticipant\x12%\n" + + "\x0edecryption_key\x18\x02 \x01(\fR\rdecryptionKey\x12!\n" + + "\fdata_handler\x18\x03 \x01(\tR\vdataHandler\x12\x19\n" + + "\bstudy_id\x18\x04 \x01(\tR\astudyId\"E\n" + + "\x12SubmitStudyRequest\x12/\n" + + "\adetails\x18\x01 \x01(\v2\x15.StudyDetailsResponseR\adetails\"C\n" + + "\x14NewExperimentRequest\x12+\n" + + "\n" + + "experiment\x18\x01 \x01(\v2\v.ExperimentR\n" + + "experiment\";\n" + + "\x14GetExperimentRequest\x12#\n" + + "\rexperiment_id\x18\x01 \x01(\tR\fexperimentId\"~\n" + + "\x15GetExperimentResponse\x12D\n" + + "\x13experiment_proposal\x18\x01 \x01(\v2\x13.ExperimentProposalR\x12experimentProposal\x12\x1f\n" + + "\x06status\x18\x02 \x01(\v2\a.StatusR\x06status\"x\n" + + "\x11WorkerCredentials\x12%\n" + + "\x0eidentity_bytes\x18\x01 \x01(\fR\ridentityBytes\x12 \n" + + "\vattestation\x18\x02 \x01(\fR\vattestation\x12\x1a\n" + + "\bevidence\x18\x03 \x01(\fR\bevidence\"\xd1\x01\n" + + "\x12ExperimentProposal\x12\x19\n" + + "\bstudy_id\x18\x01 \x01(\tR\astudyId\x12#\n" + + "\rexperiment_id\x18\x02 \x01(\tR\fexperimentId\x12\x1c\n" + + "\tmrenclave\x18\x03 \x01(\tR\tmrenclave\x12\x1a\n" + + "\bmetadata\x18\x04 \x01(\tR\bmetadata\x12A\n" + + "\x12worker_credentials\x18\x05 \x01(\v2\x12.WorkerCredentialsR\x11workerCredentials\"d\n" + + "\n" + + "Experiment\x12/\n" + + "\x13experiment_proposal\x18\x01 \x01(\fR\x12experimentProposal\x12%\n" + + "\bapproval\x18\x02 \x01(\v2\t.ApprovalR\bapproval\"8\n" + + "\x0fApprovalRequest\x12%\n" + + "\bapproval\x18\x01 \x01(\v2\t.ApprovalR\bapproval\"\xee\x01\n" + + "\bApproval\x12#\n" + + "\rexperiment_id\x18\x01 \x01(\tR\fexperimentId\x12/\n" + + "\x13experiment_proposal\x18\x02 \x01(\fR\x12experimentProposal\x12.\n" + + "\bdecision\x18\x03 \x01(\x0e2\x12.Approval.DecisionR\bdecision\x12%\n" + + "\bapprover\x18\x04 \x01(\v2\t.IdentityR\bapprover\"5\n" + + "\bDecision\x12\r\n" + + "\tUNDEFINED\x10\x00\x12\f\n" + + "\bAPPROVED\x10\x01\x12\f\n" + + "\bREJECTED\x10\x02\"Q\n" + + "\x15SignedApprovalMessage\x12\x1a\n" + + "\bapproval\x18\x01 \x01(\fR\bapproval\x12\x1c\n" + + "\tsignature\x18\x02 \x01(\fR\tsignature\"W\n" + + "\x15EvaluationPackRequest\x12\x19\n" + + "\bstudy_id\x18\x01 \x01(\tR\astudyId\x12#\n" + + "\rexperiment_id\x18\x02 \x01(\tR\fexperimentId\"\x8e\x01\n" + + "\x17EncryptedEvaluationPack\x128\n" + + "\x18encrypted_encryption_key\x18\x01 \x01(\fR\x16encryptedEncryptionKey\x129\n" + + "\x18encrypted_evaluationpack\x18\x02 \x01(\fR\x17encryptedEvaluationpack\"\x7f\n" + + "\x15EvaluationPackMessage\x12'\n" + + "\x04item\x18\x01 \x03(\v2\x13.EvaluationPackItemR\x04item\x12=\n" + + "\x0fregistered_data\x18\x02 \x03(\v2\x14.RegisterDataRequestR\x0eregisteredData\"^\n" + + "\x12EvaluationPackItem\x12%\n" + + "\x0edecryption_key\x18\x01 \x01(\fR\rdecryptionKey\x12!\n" + + "\fdata_handler\x18\x02 \x01(\tR\vdataHandler\"\x81\x02\n" + + "\x05State\x12'\n" + + "\x05state\x18\x01 \x03(\v2\x11.State.StateEntryR\x05state\x12C\n" + + "\x0fregistered_data\x18\x02 \x03(\v2\x1a.State.RegisteredDataEntryR\x0eregisteredData\x1a@\n" + + "\n" + + "StateEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x1c\n" + + "\x05value\x18\x02 \x01(\v2\x06.StudyR\x05value:\x028\x01\x1aH\n" + + "\x13RegisteredDataEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x1b\n" + + "\x05value\x18\x02 \x01(\v2\x05.DataR\x05value:\x028\x01\"|\n" + + "\x05Study\x12\x19\n" + + "\bstudy_id\x18\x01 \x01(\tR\astudyId\x12+\n" + + "\vparticipant\x18\x02 \x03(\v2\t.IdentityR\vparticipant\x12+\n" + + "\n" + + "experiment\x18\x03 \x03(\v2\v.ExperimentR\n" + + "experiment\"}\n" + + "\x04Data\x12+\n" + + "\vparticipant\x18\x01 \x01(\v2\t.IdentityR\vparticipant\x12%\n" + + "\x0edecryption_key\x18\x02 \x01(\fR\rdecryptionKey\x12!\n" + + "\fdata_handler\x18\x03 \x01(\tR\vdataHandler\"p\n" + + "\x0eExecuteRequest\x12#\n" + + "\rexperiment_id\x18\x01 \x01(\tR\fexperimentId\x129\n" + + "\x18encrypted_evaluationPack\x18\x02 \x01(\fR\x17encryptedEvaluationPack\"q\n" + + "\bIdentity\x12\x12\n" + + "\x04uuid\x18\x01 \x01(\tR\x04uuid\x12\x1d\n" + + "\n" + + "public_key\x18\x02 \x01(\fR\tpublicKey\x122\n" + + "\x15public_encryption_key\x18\x03 \x01(\fR\x13publicEncryptionKey\"x\n" + + "\x06Status\x12\x10\n" + + "\x03msg\x18\x01 \x01(\tR\x03msg\x123\n" + + "\vreturn_code\x18\x02 \x01(\x0e2\x12.Status.ReturnCodeR\n" + + "returnCode\"'\n" + + "\n" + + "ReturnCode\x12\x11\n" + + "\rERROR_UNKNOWN\x10\x00\x12\x06\n" + + "\x02OK\x10\x012X\n" + + "\x14StudyApprovalService\x12@\n" + + "\x0fGetStudyDetails\x12\x14.StudyDetailsRequest\x1a\x15.StudyDetailsResponse\"\x002\xf9\x02\n" + + "\x19ExperimentApprovalService\x12/\n" + + "\fRegisterData\x12\x14.RegisterDataRequest\x1a\a.Status\"\x00\x12/\n" + + "\rRegisterStudy\x12\x13.SubmitStudyRequest\x1a\a.Status\"\x00\x121\n" + + "\rNewExperiment\x12\x15.NewExperimentRequest\x1a\a.Status\"\x00\x12H\n" + + "\x15GetExperimentProposal\x12\x15.GetExperimentRequest\x1a\x16.GetExperimentResponse\"\x00\x120\n" + + "\x11ApproveExperiment\x12\x10.ApprovalRequest\x1a\a.Status\"\x00\x12K\n" + + "\x15RequestEvaluationPack\x12\x16.EvaluationPackRequest\x1a\x18.EncryptedEvaluationPack\"\x002/\n" + + "\x06Worker\x12%\n" + + "\aExecute\x12\x0f.ExecuteRequest\x1a\a.Status\"\x00BNZLgithub.com/hyperledger/fabric-private-chaincode/samples/demos/irb/pkg/protosb\x06proto3" + +var ( + file_irb_proto_rawDescOnce sync.Once + file_irb_proto_rawDescData []byte +) + +func file_irb_proto_rawDescGZIP() []byte { + file_irb_proto_rawDescOnce.Do(func() { + file_irb_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_irb_proto_rawDesc), len(file_irb_proto_rawDesc))) + }) + return file_irb_proto_rawDescData +} + +var file_irb_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_irb_proto_msgTypes = make([]protoimpl.MessageInfo, 26) +var file_irb_proto_goTypes = []any{ + (Approval_Decision)(0), // 0: Approval.Decision + (Status_ReturnCode)(0), // 1: Status.ReturnCode + (*StudyDetailsRequest)(nil), // 2: StudyDetailsRequest + (*StudyDetailsMessage)(nil), // 3: StudyDetailsMessage + (*StudyDetailsResponse)(nil), // 4: StudyDetailsResponse + (*RegisterDataRequest)(nil), // 5: RegisterDataRequest + (*SubmitStudyRequest)(nil), // 6: SubmitStudyRequest + (*NewExperimentRequest)(nil), // 7: NewExperimentRequest + (*GetExperimentRequest)(nil), // 8: GetExperimentRequest + (*GetExperimentResponse)(nil), // 9: GetExperimentResponse + (*WorkerCredentials)(nil), // 10: WorkerCredentials + (*ExperimentProposal)(nil), // 11: ExperimentProposal + (*Experiment)(nil), // 12: Experiment + (*ApprovalRequest)(nil), // 13: ApprovalRequest + (*Approval)(nil), // 14: Approval + (*SignedApprovalMessage)(nil), // 15: SignedApprovalMessage + (*EvaluationPackRequest)(nil), // 16: EvaluationPackRequest + (*EncryptedEvaluationPack)(nil), // 17: EncryptedEvaluationPack + (*EvaluationPackMessage)(nil), // 18: EvaluationPackMessage + (*EvaluationPackItem)(nil), // 19: EvaluationPackItem + (*State)(nil), // 20: State + (*Study)(nil), // 21: Study + (*Data)(nil), // 22: Data + (*ExecuteRequest)(nil), // 23: ExecuteRequest + (*Identity)(nil), // 24: Identity + (*Status)(nil), // 25: Status + nil, // 26: State.StateEntry + nil, // 27: State.RegisteredDataEntry +} +var file_irb_proto_depIdxs = []int32{ + 24, // 0: StudyDetailsMessage.user_identities:type_name -> Identity + 25, // 1: StudyDetailsResponse.status:type_name -> Status + 24, // 2: RegisterDataRequest.participant:type_name -> Identity + 4, // 3: SubmitStudyRequest.details:type_name -> StudyDetailsResponse + 12, // 4: NewExperimentRequest.experiment:type_name -> Experiment + 11, // 5: GetExperimentResponse.experiment_proposal:type_name -> ExperimentProposal + 25, // 6: GetExperimentResponse.status:type_name -> Status + 10, // 7: ExperimentProposal.worker_credentials:type_name -> WorkerCredentials + 14, // 8: Experiment.approval:type_name -> Approval + 14, // 9: ApprovalRequest.approval:type_name -> Approval + 0, // 10: Approval.decision:type_name -> Approval.Decision + 24, // 11: Approval.approver:type_name -> Identity + 19, // 12: EvaluationPackMessage.item:type_name -> EvaluationPackItem + 5, // 13: EvaluationPackMessage.registered_data:type_name -> RegisterDataRequest + 26, // 14: State.state:type_name -> State.StateEntry + 27, // 15: State.registered_data:type_name -> State.RegisteredDataEntry + 24, // 16: Study.participant:type_name -> Identity + 12, // 17: Study.experiment:type_name -> Experiment + 24, // 18: Data.participant:type_name -> Identity + 1, // 19: Status.return_code:type_name -> Status.ReturnCode + 21, // 20: State.StateEntry.value:type_name -> Study + 22, // 21: State.RegisteredDataEntry.value:type_name -> Data + 2, // 22: StudyApprovalService.GetStudyDetails:input_type -> StudyDetailsRequest + 5, // 23: ExperimentApprovalService.RegisterData:input_type -> RegisterDataRequest + 6, // 24: ExperimentApprovalService.RegisterStudy:input_type -> SubmitStudyRequest + 7, // 25: ExperimentApprovalService.NewExperiment:input_type -> NewExperimentRequest + 8, // 26: ExperimentApprovalService.GetExperimentProposal:input_type -> GetExperimentRequest + 13, // 27: ExperimentApprovalService.ApproveExperiment:input_type -> ApprovalRequest + 16, // 28: ExperimentApprovalService.RequestEvaluationPack:input_type -> EvaluationPackRequest + 23, // 29: Worker.Execute:input_type -> ExecuteRequest + 4, // 30: StudyApprovalService.GetStudyDetails:output_type -> StudyDetailsResponse + 25, // 31: ExperimentApprovalService.RegisterData:output_type -> Status + 25, // 32: ExperimentApprovalService.RegisterStudy:output_type -> Status + 25, // 33: ExperimentApprovalService.NewExperiment:output_type -> Status + 9, // 34: ExperimentApprovalService.GetExperimentProposal:output_type -> GetExperimentResponse + 25, // 35: ExperimentApprovalService.ApproveExperiment:output_type -> Status + 17, // 36: ExperimentApprovalService.RequestEvaluationPack:output_type -> EncryptedEvaluationPack + 25, // 37: Worker.Execute:output_type -> Status + 30, // [30:38] is the sub-list for method output_type + 22, // [22:30] is the sub-list for method input_type + 22, // [22:22] is the sub-list for extension type_name + 22, // [22:22] is the sub-list for extension extendee + 0, // [0:22] is the sub-list for field type_name +} + +func init() { file_irb_proto_init() } +func file_irb_proto_init() { + if File_irb_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_irb_proto_rawDesc), len(file_irb_proto_rawDesc)), + NumEnums: 2, + NumMessages: 26, + NumExtensions: 0, + NumServices: 3, + }, + GoTypes: file_irb_proto_goTypes, + DependencyIndexes: file_irb_proto_depIdxs, + EnumInfos: file_irb_proto_enumTypes, + MessageInfos: file_irb_proto_msgTypes, + }.Build() + File_irb_proto = out.File + file_irb_proto_goTypes = nil + file_irb_proto_depIdxs = nil +} diff --git a/samples/demos/irb/protos/.gitignore b/samples/demos/irb/protos/.gitignore deleted file mode 100644 index 732075117..000000000 --- a/samples/demos/irb/protos/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.py -*.go -__pycache__ diff --git a/samples/demos/irb/protos/irb_pb2.py b/samples/demos/irb/protos/irb_pb2.py new file mode 100644 index 000000000..73a698a7c --- /dev/null +++ b/samples/demos/irb/protos/irb_pb2.py @@ -0,0 +1,1520 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: irb.proto + +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='irb.proto', + package='', + syntax='proto3', + serialized_options=b'ZLgithub.com/hyperledger/fabric-private-chaincode/samples/demos/irb/pkg/protos', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n\tirb.proto\"\'\n\x13StudyDetailsRequest\x12\x10\n\x08study_id\x18\x01 \x01(\t\"]\n\x13StudyDetailsMessage\x12\x10\n\x08study_id\x18\x01 \x01(\t\x12\x10\n\x08metadata\x18\x02 \x01(\t\x12\"\n\x0fuser_identities\x18\x03 \x03(\x0b\x32\t.Identity\"a\n\x14StudyDetailsResponse\x12\x1d\n\x15study_details_message\x18\x01 \x01(\x0c\x12\x11\n\tsignature\x18\x02 \x01(\x0c\x12\x17\n\x06status\x18\x03 \x01(\x0b\x32\x07.Status\"u\n\x13RegisterDataRequest\x12\x1e\n\x0bparticipant\x18\x01 \x01(\x0b\x32\t.Identity\x12\x16\n\x0e\x64\x65\x63ryption_key\x18\x02 \x01(\x0c\x12\x14\n\x0c\x64\x61ta_handler\x18\x03 \x01(\t\x12\x10\n\x08study_id\x18\x04 \x01(\t\"<\n\x12SubmitStudyRequest\x12&\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32\x15.StudyDetailsResponse\"7\n\x14NewExperimentRequest\x12\x1f\n\nexperiment\x18\x01 \x01(\x0b\x32\x0b.Experiment\"-\n\x14GetExperimentRequest\x12\x15\n\rexperiment_id\x18\x01 \x01(\t\"b\n\x15GetExperimentResponse\x12\x30\n\x13\x65xperiment_proposal\x18\x01 \x01(\x0b\x32\x13.ExperimentProposal\x12\x17\n\x06status\x18\x02 \x01(\x0b\x32\x07.Status\"R\n\x11WorkerCredentials\x12\x16\n\x0eidentity_bytes\x18\x01 \x01(\x0c\x12\x13\n\x0b\x61ttestation\x18\x02 \x01(\x0c\x12\x10\n\x08\x65vidence\x18\x03 \x01(\x0c\"\x92\x01\n\x12\x45xperimentProposal\x12\x10\n\x08study_id\x18\x01 \x01(\t\x12\x15\n\rexperiment_id\x18\x02 \x01(\t\x12\x11\n\tmrenclave\x18\x03 \x01(\t\x12\x10\n\x08metadata\x18\x04 \x01(\t\x12.\n\x12worker_credentials\x18\x05 \x01(\x0b\x32\x12.WorkerCredentials\"F\n\nExperiment\x12\x1b\n\x13\x65xperiment_proposal\x18\x01 \x01(\x0c\x12\x1b\n\x08\x61pproval\x18\x02 \x01(\x0b\x32\t.Approval\".\n\x0f\x41pprovalRequest\x12\x1b\n\x08\x61pproval\x18\x01 \x01(\x0b\x32\t.Approval\"\xb8\x01\n\x08\x41pproval\x12\x15\n\rexperiment_id\x18\x01 \x01(\t\x12\x1b\n\x13\x65xperiment_proposal\x18\x02 \x01(\x0c\x12$\n\x08\x64\x65\x63ision\x18\x03 \x01(\x0e\x32\x12.Approval.Decision\x12\x1b\n\x08\x61pprover\x18\x04 \x01(\x0b\x32\t.Identity\"5\n\x08\x44\x65\x63ision\x12\r\n\tUNDEFINED\x10\x00\x12\x0c\n\x08\x41PPROVED\x10\x01\x12\x0c\n\x08REJECTED\x10\x02\"<\n\x15SignedApprovalMessage\x12\x10\n\x08\x61pproval\x18\x01 \x01(\x0c\x12\x11\n\tsignature\x18\x02 \x01(\x0c\"@\n\x15\x45valuationPackRequest\x12\x10\n\x08study_id\x18\x01 \x01(\t\x12\x15\n\rexperiment_id\x18\x02 \x01(\t\"]\n\x17\x45ncryptedEvaluationPack\x12 \n\x18\x65ncrypted_encryption_key\x18\x01 \x01(\x0c\x12 \n\x18\x65ncrypted_evaluationpack\x18\x02 \x01(\x0c\"i\n\x15\x45valuationPackMessage\x12!\n\x04item\x18\x01 \x03(\x0b\x32\x13.EvaluationPackItem\x12-\n\x0fregistered_data\x18\x02 \x03(\x0b\x32\x14.RegisterDataRequest\"B\n\x12\x45valuationPackItem\x12\x16\n\x0e\x64\x65\x63ryption_key\x18\x01 \x01(\x0c\x12\x14\n\x0c\x64\x61ta_handler\x18\x02 \x01(\t\"\xd2\x01\n\x05State\x12 \n\x05state\x18\x01 \x03(\x0b\x32\x11.State.StateEntry\x12\x33\n\x0fregistered_data\x18\x02 \x03(\x0b\x32\x1a.State.RegisteredDataEntry\x1a\x34\n\nStateEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x15\n\x05value\x18\x02 \x01(\x0b\x32\x06.Study:\x02\x38\x01\x1a<\n\x13RegisteredDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x14\n\x05value\x18\x02 \x01(\x0b\x32\x05.Data:\x02\x38\x01\"Z\n\x05Study\x12\x10\n\x08study_id\x18\x01 \x01(\t\x12\x1e\n\x0bparticipant\x18\x02 \x03(\x0b\x32\t.Identity\x12\x1f\n\nexperiment\x18\x03 \x03(\x0b\x32\x0b.Experiment\"T\n\x04\x44\x61ta\x12\x1e\n\x0bparticipant\x18\x01 \x01(\x0b\x32\t.Identity\x12\x16\n\x0e\x64\x65\x63ryption_key\x18\x02 \x01(\x0c\x12\x14\n\x0c\x64\x61ta_handler\x18\x03 \x01(\t\"I\n\x0e\x45xecuteRequest\x12\x15\n\rexperiment_id\x18\x01 \x01(\t\x12 \n\x18\x65ncrypted_evaluationPack\x18\x02 \x01(\x0c\"K\n\x08Identity\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12\x12\n\npublic_key\x18\x02 \x01(\x0c\x12\x1d\n\x15public_encryption_key\x18\x03 \x01(\x0c\"g\n\x06Status\x12\x0b\n\x03msg\x18\x01 \x01(\t\x12\'\n\x0breturn_code\x18\x02 \x01(\x0e\x32\x12.Status.ReturnCode\"\'\n\nReturnCode\x12\x11\n\rERROR_UNKNOWN\x10\x00\x12\x06\n\x02OK\x10\x01\x32X\n\x14StudyApprovalService\x12@\n\x0fGetStudyDetails\x12\x14.StudyDetailsRequest\x1a\x15.StudyDetailsResponse\"\x00\x32\xf9\x02\n\x19\x45xperimentApprovalService\x12/\n\x0cRegisterData\x12\x14.RegisterDataRequest\x1a\x07.Status\"\x00\x12/\n\rRegisterStudy\x12\x13.SubmitStudyRequest\x1a\x07.Status\"\x00\x12\x31\n\rNewExperiment\x12\x15.NewExperimentRequest\x1a\x07.Status\"\x00\x12H\n\x15GetExperimentProposal\x12\x15.GetExperimentRequest\x1a\x16.GetExperimentResponse\"\x00\x12\x30\n\x11\x41pproveExperiment\x12\x10.ApprovalRequest\x1a\x07.Status\"\x00\x12K\n\x15RequestEvaluationPack\x12\x16.EvaluationPackRequest\x1a\x18.EncryptedEvaluationPack\"\x00\x32/\n\x06Worker\x12%\n\x07\x45xecute\x12\x0f.ExecuteRequest\x1a\x07.Status\"\x00\x42NZLgithub.com/hyperledger/fabric-private-chaincode/samples/demos/irb/pkg/protosb\x06proto3' +) + + + +_APPROVAL_DECISION = _descriptor.EnumDescriptor( + name='Decision', + full_name='Approval.Decision', + filename=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + values=[ + _descriptor.EnumValueDescriptor( + name='UNDEFINED', index=0, number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='APPROVED', index=1, number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='REJECTED', index=2, number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + ], + containing_type=None, + serialized_options=None, + serialized_start=1118, + serialized_end=1171, +) +_sym_db.RegisterEnumDescriptor(_APPROVAL_DECISION) + +_STATUS_RETURNCODE = _descriptor.EnumDescriptor( + name='ReturnCode', + full_name='Status.ReturnCode', + filename=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + values=[ + _descriptor.EnumValueDescriptor( + name='ERROR_UNKNOWN', index=0, number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='OK', index=1, number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + ], + containing_type=None, + serialized_options=None, + serialized_start=2178, + serialized_end=2217, +) +_sym_db.RegisterEnumDescriptor(_STATUS_RETURNCODE) + + +_STUDYDETAILSREQUEST = _descriptor.Descriptor( + name='StudyDetailsRequest', + full_name='StudyDetailsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='study_id', full_name='StudyDetailsRequest.study_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=13, + serialized_end=52, +) + + +_STUDYDETAILSMESSAGE = _descriptor.Descriptor( + name='StudyDetailsMessage', + full_name='StudyDetailsMessage', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='study_id', full_name='StudyDetailsMessage.study_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='metadata', full_name='StudyDetailsMessage.metadata', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='user_identities', full_name='StudyDetailsMessage.user_identities', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=54, + serialized_end=147, +) + + +_STUDYDETAILSRESPONSE = _descriptor.Descriptor( + name='StudyDetailsResponse', + full_name='StudyDetailsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='study_details_message', full_name='StudyDetailsResponse.study_details_message', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='signature', full_name='StudyDetailsResponse.signature', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='status', full_name='StudyDetailsResponse.status', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=149, + serialized_end=246, +) + + +_REGISTERDATAREQUEST = _descriptor.Descriptor( + name='RegisterDataRequest', + full_name='RegisterDataRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='participant', full_name='RegisterDataRequest.participant', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='decryption_key', full_name='RegisterDataRequest.decryption_key', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='data_handler', full_name='RegisterDataRequest.data_handler', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='study_id', full_name='RegisterDataRequest.study_id', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=248, + serialized_end=365, +) + + +_SUBMITSTUDYREQUEST = _descriptor.Descriptor( + name='SubmitStudyRequest', + full_name='SubmitStudyRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='details', full_name='SubmitStudyRequest.details', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=367, + serialized_end=427, +) + + +_NEWEXPERIMENTREQUEST = _descriptor.Descriptor( + name='NewExperimentRequest', + full_name='NewExperimentRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='experiment', full_name='NewExperimentRequest.experiment', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=429, + serialized_end=484, +) + + +_GETEXPERIMENTREQUEST = _descriptor.Descriptor( + name='GetExperimentRequest', + full_name='GetExperimentRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='experiment_id', full_name='GetExperimentRequest.experiment_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=486, + serialized_end=531, +) + + +_GETEXPERIMENTRESPONSE = _descriptor.Descriptor( + name='GetExperimentResponse', + full_name='GetExperimentResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='experiment_proposal', full_name='GetExperimentResponse.experiment_proposal', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='status', full_name='GetExperimentResponse.status', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=533, + serialized_end=631, +) + + +_WORKERCREDENTIALS = _descriptor.Descriptor( + name='WorkerCredentials', + full_name='WorkerCredentials', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='identity_bytes', full_name='WorkerCredentials.identity_bytes', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='attestation', full_name='WorkerCredentials.attestation', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='evidence', full_name='WorkerCredentials.evidence', index=2, + number=3, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=633, + serialized_end=715, +) + + +_EXPERIMENTPROPOSAL = _descriptor.Descriptor( + name='ExperimentProposal', + full_name='ExperimentProposal', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='study_id', full_name='ExperimentProposal.study_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='experiment_id', full_name='ExperimentProposal.experiment_id', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='mrenclave', full_name='ExperimentProposal.mrenclave', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='metadata', full_name='ExperimentProposal.metadata', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='worker_credentials', full_name='ExperimentProposal.worker_credentials', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=718, + serialized_end=864, +) + + +_EXPERIMENT = _descriptor.Descriptor( + name='Experiment', + full_name='Experiment', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='experiment_proposal', full_name='Experiment.experiment_proposal', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='approval', full_name='Experiment.approval', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=866, + serialized_end=936, +) + + +_APPROVALREQUEST = _descriptor.Descriptor( + name='ApprovalRequest', + full_name='ApprovalRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='approval', full_name='ApprovalRequest.approval', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=938, + serialized_end=984, +) + + +_APPROVAL = _descriptor.Descriptor( + name='Approval', + full_name='Approval', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='experiment_id', full_name='Approval.experiment_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='experiment_proposal', full_name='Approval.experiment_proposal', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='decision', full_name='Approval.decision', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='approver', full_name='Approval.approver', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _APPROVAL_DECISION, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=987, + serialized_end=1171, +) + + +_SIGNEDAPPROVALMESSAGE = _descriptor.Descriptor( + name='SignedApprovalMessage', + full_name='SignedApprovalMessage', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='approval', full_name='SignedApprovalMessage.approval', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='signature', full_name='SignedApprovalMessage.signature', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1173, + serialized_end=1233, +) + + +_EVALUATIONPACKREQUEST = _descriptor.Descriptor( + name='EvaluationPackRequest', + full_name='EvaluationPackRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='study_id', full_name='EvaluationPackRequest.study_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='experiment_id', full_name='EvaluationPackRequest.experiment_id', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1235, + serialized_end=1299, +) + + +_ENCRYPTEDEVALUATIONPACK = _descriptor.Descriptor( + name='EncryptedEvaluationPack', + full_name='EncryptedEvaluationPack', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='encrypted_encryption_key', full_name='EncryptedEvaluationPack.encrypted_encryption_key', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='encrypted_evaluationpack', full_name='EncryptedEvaluationPack.encrypted_evaluationpack', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1301, + serialized_end=1394, +) + + +_EVALUATIONPACKMESSAGE = _descriptor.Descriptor( + name='EvaluationPackMessage', + full_name='EvaluationPackMessage', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='item', full_name='EvaluationPackMessage.item', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='registered_data', full_name='EvaluationPackMessage.registered_data', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1396, + serialized_end=1501, +) + + +_EVALUATIONPACKITEM = _descriptor.Descriptor( + name='EvaluationPackItem', + full_name='EvaluationPackItem', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='decryption_key', full_name='EvaluationPackItem.decryption_key', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='data_handler', full_name='EvaluationPackItem.data_handler', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1503, + serialized_end=1569, +) + + +_STATE_STATEENTRY = _descriptor.Descriptor( + name='StateEntry', + full_name='State.StateEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='State.StateEntry.key', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='value', full_name='State.StateEntry.value', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'8\001', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1668, + serialized_end=1720, +) + +_STATE_REGISTEREDDATAENTRY = _descriptor.Descriptor( + name='RegisteredDataEntry', + full_name='State.RegisteredDataEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='State.RegisteredDataEntry.key', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='value', full_name='State.RegisteredDataEntry.value', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'8\001', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1722, + serialized_end=1782, +) + +_STATE = _descriptor.Descriptor( + name='State', + full_name='State', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='state', full_name='State.state', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='registered_data', full_name='State.registered_data', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[_STATE_STATEENTRY, _STATE_REGISTEREDDATAENTRY, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1572, + serialized_end=1782, +) + + +_STUDY = _descriptor.Descriptor( + name='Study', + full_name='Study', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='study_id', full_name='Study.study_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='participant', full_name='Study.participant', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='experiment', full_name='Study.experiment', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1784, + serialized_end=1874, +) + + +_DATA = _descriptor.Descriptor( + name='Data', + full_name='Data', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='participant', full_name='Data.participant', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='decryption_key', full_name='Data.decryption_key', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='data_handler', full_name='Data.data_handler', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1876, + serialized_end=1960, +) + + +_EXECUTEREQUEST = _descriptor.Descriptor( + name='ExecuteRequest', + full_name='ExecuteRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='experiment_id', full_name='ExecuteRequest.experiment_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='encrypted_evaluationPack', full_name='ExecuteRequest.encrypted_evaluationPack', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1962, + serialized_end=2035, +) + + +_IDENTITY = _descriptor.Descriptor( + name='Identity', + full_name='Identity', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='uuid', full_name='Identity.uuid', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='public_key', full_name='Identity.public_key', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='public_encryption_key', full_name='Identity.public_encryption_key', index=2, + number=3, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2037, + serialized_end=2112, +) + + +_STATUS = _descriptor.Descriptor( + name='Status', + full_name='Status', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='msg', full_name='Status.msg', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='return_code', full_name='Status.return_code', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _STATUS_RETURNCODE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2114, + serialized_end=2217, +) + +_STUDYDETAILSMESSAGE.fields_by_name['user_identities'].message_type = _IDENTITY +_STUDYDETAILSRESPONSE.fields_by_name['status'].message_type = _STATUS +_REGISTERDATAREQUEST.fields_by_name['participant'].message_type = _IDENTITY +_SUBMITSTUDYREQUEST.fields_by_name['details'].message_type = _STUDYDETAILSRESPONSE +_NEWEXPERIMENTREQUEST.fields_by_name['experiment'].message_type = _EXPERIMENT +_GETEXPERIMENTRESPONSE.fields_by_name['experiment_proposal'].message_type = _EXPERIMENTPROPOSAL +_GETEXPERIMENTRESPONSE.fields_by_name['status'].message_type = _STATUS +_EXPERIMENTPROPOSAL.fields_by_name['worker_credentials'].message_type = _WORKERCREDENTIALS +_EXPERIMENT.fields_by_name['approval'].message_type = _APPROVAL +_APPROVALREQUEST.fields_by_name['approval'].message_type = _APPROVAL +_APPROVAL.fields_by_name['decision'].enum_type = _APPROVAL_DECISION +_APPROVAL.fields_by_name['approver'].message_type = _IDENTITY +_APPROVAL_DECISION.containing_type = _APPROVAL +_EVALUATIONPACKMESSAGE.fields_by_name['item'].message_type = _EVALUATIONPACKITEM +_EVALUATIONPACKMESSAGE.fields_by_name['registered_data'].message_type = _REGISTERDATAREQUEST +_STATE_STATEENTRY.fields_by_name['value'].message_type = _STUDY +_STATE_STATEENTRY.containing_type = _STATE +_STATE_REGISTEREDDATAENTRY.fields_by_name['value'].message_type = _DATA +_STATE_REGISTEREDDATAENTRY.containing_type = _STATE +_STATE.fields_by_name['state'].message_type = _STATE_STATEENTRY +_STATE.fields_by_name['registered_data'].message_type = _STATE_REGISTEREDDATAENTRY +_STUDY.fields_by_name['participant'].message_type = _IDENTITY +_STUDY.fields_by_name['experiment'].message_type = _EXPERIMENT +_DATA.fields_by_name['participant'].message_type = _IDENTITY +_STATUS.fields_by_name['return_code'].enum_type = _STATUS_RETURNCODE +_STATUS_RETURNCODE.containing_type = _STATUS +DESCRIPTOR.message_types_by_name['StudyDetailsRequest'] = _STUDYDETAILSREQUEST +DESCRIPTOR.message_types_by_name['StudyDetailsMessage'] = _STUDYDETAILSMESSAGE +DESCRIPTOR.message_types_by_name['StudyDetailsResponse'] = _STUDYDETAILSRESPONSE +DESCRIPTOR.message_types_by_name['RegisterDataRequest'] = _REGISTERDATAREQUEST +DESCRIPTOR.message_types_by_name['SubmitStudyRequest'] = _SUBMITSTUDYREQUEST +DESCRIPTOR.message_types_by_name['NewExperimentRequest'] = _NEWEXPERIMENTREQUEST +DESCRIPTOR.message_types_by_name['GetExperimentRequest'] = _GETEXPERIMENTREQUEST +DESCRIPTOR.message_types_by_name['GetExperimentResponse'] = _GETEXPERIMENTRESPONSE +DESCRIPTOR.message_types_by_name['WorkerCredentials'] = _WORKERCREDENTIALS +DESCRIPTOR.message_types_by_name['ExperimentProposal'] = _EXPERIMENTPROPOSAL +DESCRIPTOR.message_types_by_name['Experiment'] = _EXPERIMENT +DESCRIPTOR.message_types_by_name['ApprovalRequest'] = _APPROVALREQUEST +DESCRIPTOR.message_types_by_name['Approval'] = _APPROVAL +DESCRIPTOR.message_types_by_name['SignedApprovalMessage'] = _SIGNEDAPPROVALMESSAGE +DESCRIPTOR.message_types_by_name['EvaluationPackRequest'] = _EVALUATIONPACKREQUEST +DESCRIPTOR.message_types_by_name['EncryptedEvaluationPack'] = _ENCRYPTEDEVALUATIONPACK +DESCRIPTOR.message_types_by_name['EvaluationPackMessage'] = _EVALUATIONPACKMESSAGE +DESCRIPTOR.message_types_by_name['EvaluationPackItem'] = _EVALUATIONPACKITEM +DESCRIPTOR.message_types_by_name['State'] = _STATE +DESCRIPTOR.message_types_by_name['Study'] = _STUDY +DESCRIPTOR.message_types_by_name['Data'] = _DATA +DESCRIPTOR.message_types_by_name['ExecuteRequest'] = _EXECUTEREQUEST +DESCRIPTOR.message_types_by_name['Identity'] = _IDENTITY +DESCRIPTOR.message_types_by_name['Status'] = _STATUS +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +StudyDetailsRequest = _reflection.GeneratedProtocolMessageType('StudyDetailsRequest', (_message.Message,), { + 'DESCRIPTOR' : _STUDYDETAILSREQUEST, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:StudyDetailsRequest) + }) +_sym_db.RegisterMessage(StudyDetailsRequest) + +StudyDetailsMessage = _reflection.GeneratedProtocolMessageType('StudyDetailsMessage', (_message.Message,), { + 'DESCRIPTOR' : _STUDYDETAILSMESSAGE, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:StudyDetailsMessage) + }) +_sym_db.RegisterMessage(StudyDetailsMessage) + +StudyDetailsResponse = _reflection.GeneratedProtocolMessageType('StudyDetailsResponse', (_message.Message,), { + 'DESCRIPTOR' : _STUDYDETAILSRESPONSE, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:StudyDetailsResponse) + }) +_sym_db.RegisterMessage(StudyDetailsResponse) + +RegisterDataRequest = _reflection.GeneratedProtocolMessageType('RegisterDataRequest', (_message.Message,), { + 'DESCRIPTOR' : _REGISTERDATAREQUEST, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:RegisterDataRequest) + }) +_sym_db.RegisterMessage(RegisterDataRequest) + +SubmitStudyRequest = _reflection.GeneratedProtocolMessageType('SubmitStudyRequest', (_message.Message,), { + 'DESCRIPTOR' : _SUBMITSTUDYREQUEST, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:SubmitStudyRequest) + }) +_sym_db.RegisterMessage(SubmitStudyRequest) + +NewExperimentRequest = _reflection.GeneratedProtocolMessageType('NewExperimentRequest', (_message.Message,), { + 'DESCRIPTOR' : _NEWEXPERIMENTREQUEST, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:NewExperimentRequest) + }) +_sym_db.RegisterMessage(NewExperimentRequest) + +GetExperimentRequest = _reflection.GeneratedProtocolMessageType('GetExperimentRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETEXPERIMENTREQUEST, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:GetExperimentRequest) + }) +_sym_db.RegisterMessage(GetExperimentRequest) + +GetExperimentResponse = _reflection.GeneratedProtocolMessageType('GetExperimentResponse', (_message.Message,), { + 'DESCRIPTOR' : _GETEXPERIMENTRESPONSE, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:GetExperimentResponse) + }) +_sym_db.RegisterMessage(GetExperimentResponse) + +WorkerCredentials = _reflection.GeneratedProtocolMessageType('WorkerCredentials', (_message.Message,), { + 'DESCRIPTOR' : _WORKERCREDENTIALS, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:WorkerCredentials) + }) +_sym_db.RegisterMessage(WorkerCredentials) + +ExperimentProposal = _reflection.GeneratedProtocolMessageType('ExperimentProposal', (_message.Message,), { + 'DESCRIPTOR' : _EXPERIMENTPROPOSAL, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:ExperimentProposal) + }) +_sym_db.RegisterMessage(ExperimentProposal) + +Experiment = _reflection.GeneratedProtocolMessageType('Experiment', (_message.Message,), { + 'DESCRIPTOR' : _EXPERIMENT, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:Experiment) + }) +_sym_db.RegisterMessage(Experiment) + +ApprovalRequest = _reflection.GeneratedProtocolMessageType('ApprovalRequest', (_message.Message,), { + 'DESCRIPTOR' : _APPROVALREQUEST, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:ApprovalRequest) + }) +_sym_db.RegisterMessage(ApprovalRequest) + +Approval = _reflection.GeneratedProtocolMessageType('Approval', (_message.Message,), { + 'DESCRIPTOR' : _APPROVAL, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:Approval) + }) +_sym_db.RegisterMessage(Approval) + +SignedApprovalMessage = _reflection.GeneratedProtocolMessageType('SignedApprovalMessage', (_message.Message,), { + 'DESCRIPTOR' : _SIGNEDAPPROVALMESSAGE, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:SignedApprovalMessage) + }) +_sym_db.RegisterMessage(SignedApprovalMessage) + +EvaluationPackRequest = _reflection.GeneratedProtocolMessageType('EvaluationPackRequest', (_message.Message,), { + 'DESCRIPTOR' : _EVALUATIONPACKREQUEST, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:EvaluationPackRequest) + }) +_sym_db.RegisterMessage(EvaluationPackRequest) + +EncryptedEvaluationPack = _reflection.GeneratedProtocolMessageType('EncryptedEvaluationPack', (_message.Message,), { + 'DESCRIPTOR' : _ENCRYPTEDEVALUATIONPACK, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:EncryptedEvaluationPack) + }) +_sym_db.RegisterMessage(EncryptedEvaluationPack) + +EvaluationPackMessage = _reflection.GeneratedProtocolMessageType('EvaluationPackMessage', (_message.Message,), { + 'DESCRIPTOR' : _EVALUATIONPACKMESSAGE, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:EvaluationPackMessage) + }) +_sym_db.RegisterMessage(EvaluationPackMessage) + +EvaluationPackItem = _reflection.GeneratedProtocolMessageType('EvaluationPackItem', (_message.Message,), { + 'DESCRIPTOR' : _EVALUATIONPACKITEM, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:EvaluationPackItem) + }) +_sym_db.RegisterMessage(EvaluationPackItem) + +State = _reflection.GeneratedProtocolMessageType('State', (_message.Message,), { + + 'StateEntry' : _reflection.GeneratedProtocolMessageType('StateEntry', (_message.Message,), { + 'DESCRIPTOR' : _STATE_STATEENTRY, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:State.StateEntry) + }) + , + + 'RegisteredDataEntry' : _reflection.GeneratedProtocolMessageType('RegisteredDataEntry', (_message.Message,), { + 'DESCRIPTOR' : _STATE_REGISTEREDDATAENTRY, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:State.RegisteredDataEntry) + }) + , + 'DESCRIPTOR' : _STATE, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:State) + }) +_sym_db.RegisterMessage(State) +_sym_db.RegisterMessage(State.StateEntry) +_sym_db.RegisterMessage(State.RegisteredDataEntry) + +Study = _reflection.GeneratedProtocolMessageType('Study', (_message.Message,), { + 'DESCRIPTOR' : _STUDY, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:Study) + }) +_sym_db.RegisterMessage(Study) + +Data = _reflection.GeneratedProtocolMessageType('Data', (_message.Message,), { + 'DESCRIPTOR' : _DATA, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:Data) + }) +_sym_db.RegisterMessage(Data) + +ExecuteRequest = _reflection.GeneratedProtocolMessageType('ExecuteRequest', (_message.Message,), { + 'DESCRIPTOR' : _EXECUTEREQUEST, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:ExecuteRequest) + }) +_sym_db.RegisterMessage(ExecuteRequest) + +Identity = _reflection.GeneratedProtocolMessageType('Identity', (_message.Message,), { + 'DESCRIPTOR' : _IDENTITY, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:Identity) + }) +_sym_db.RegisterMessage(Identity) + +Status = _reflection.GeneratedProtocolMessageType('Status', (_message.Message,), { + 'DESCRIPTOR' : _STATUS, + '__module__' : 'irb_pb2' + # @@protoc_insertion_point(class_scope:Status) + }) +_sym_db.RegisterMessage(Status) + + +DESCRIPTOR._options = None +_STATE_STATEENTRY._options = None +_STATE_REGISTEREDDATAENTRY._options = None + +_STUDYAPPROVALSERVICE = _descriptor.ServiceDescriptor( + name='StudyApprovalService', + full_name='StudyApprovalService', + file=DESCRIPTOR, + index=0, + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_start=2219, + serialized_end=2307, + methods=[ + _descriptor.MethodDescriptor( + name='GetStudyDetails', + full_name='StudyApprovalService.GetStudyDetails', + index=0, + containing_service=None, + input_type=_STUDYDETAILSREQUEST, + output_type=_STUDYDETAILSRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), +]) +_sym_db.RegisterServiceDescriptor(_STUDYAPPROVALSERVICE) + +DESCRIPTOR.services_by_name['StudyApprovalService'] = _STUDYAPPROVALSERVICE + + +_EXPERIMENTAPPROVALSERVICE = _descriptor.ServiceDescriptor( + name='ExperimentApprovalService', + full_name='ExperimentApprovalService', + file=DESCRIPTOR, + index=1, + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_start=2310, + serialized_end=2687, + methods=[ + _descriptor.MethodDescriptor( + name='RegisterData', + full_name='ExperimentApprovalService.RegisterData', + index=0, + containing_service=None, + input_type=_REGISTERDATAREQUEST, + output_type=_STATUS, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='RegisterStudy', + full_name='ExperimentApprovalService.RegisterStudy', + index=1, + containing_service=None, + input_type=_SUBMITSTUDYREQUEST, + output_type=_STATUS, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='NewExperiment', + full_name='ExperimentApprovalService.NewExperiment', + index=2, + containing_service=None, + input_type=_NEWEXPERIMENTREQUEST, + output_type=_STATUS, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='GetExperimentProposal', + full_name='ExperimentApprovalService.GetExperimentProposal', + index=3, + containing_service=None, + input_type=_GETEXPERIMENTREQUEST, + output_type=_GETEXPERIMENTRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='ApproveExperiment', + full_name='ExperimentApprovalService.ApproveExperiment', + index=4, + containing_service=None, + input_type=_APPROVALREQUEST, + output_type=_STATUS, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='RequestEvaluationPack', + full_name='ExperimentApprovalService.RequestEvaluationPack', + index=5, + containing_service=None, + input_type=_EVALUATIONPACKREQUEST, + output_type=_ENCRYPTEDEVALUATIONPACK, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), +]) +_sym_db.RegisterServiceDescriptor(_EXPERIMENTAPPROVALSERVICE) + +DESCRIPTOR.services_by_name['ExperimentApprovalService'] = _EXPERIMENTAPPROVALSERVICE + + +_WORKER = _descriptor.ServiceDescriptor( + name='Worker', + full_name='Worker', + file=DESCRIPTOR, + index=2, + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_start=2689, + serialized_end=2736, + methods=[ + _descriptor.MethodDescriptor( + name='Execute', + full_name='Worker.Execute', + index=0, + containing_service=None, + input_type=_EXECUTEREQUEST, + output_type=_STATUS, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), +]) +_sym_db.RegisterServiceDescriptor(_WORKER) + +DESCRIPTOR.services_by_name['Worker'] = _WORKER + +# @@protoc_insertion_point(module_scope) diff --git a/scripts/gomate.sh b/scripts/gomate.sh new file mode 100755 index 000000000..d6c4e5862 --- /dev/null +++ b/scripts/gomate.sh @@ -0,0 +1,76 @@ +#!/usr/bin/env bash +# +# Copyright IBM Corp. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# + +set -euo pipefail + +# lint me: shfmt -i 2 -ci -l -w + +IFS=$'\t\n' # Split on newlines and tabs (but not on spaces) +script_name=$(basename "${0}") +script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) +readonly script_name script_dir + +readonly repo_dir="$(pwd)" + +# how to use this script +function usage() { + cli_name=${0##*/} + echo "gomate helps to manage multiple go modules in a single repository. +Usage: $cli_name [command] +Commands: + initwork creates go workspace for this project (\`go work init\` and \`go work use\` everywhere) + tidy runs \`go mod tidy\` everywhere + update [XYZ] updates a specific dep (\`go get XYZ\`) everywhere; if no dep argument given, \`go get -u\` is called + help shows this help + " + exit 1 +} + +# create go work init +function init_work() { + echo "go work init" + go work init + find "$repo_dir" -iname "go.mod" -exec dirname {} \; | xargs go work use +} + +# update deps; take as parameter the dependency to update; if empty all deps are updates +function update() { + if [[ -z $1 ]]; then + # check all update + echo "go get -u everywhere" + find "$repo_dir" -iname "go.mod" -execdir sh -c "go get -u" \; + else + # check a specific dep + echo "go get $1 everywhere" + find "$repo_dir" -iname "go.mod" -execdir sh -c "go get $1" \; + fi +} + +# run go mod tidy everywhere +function tidy() { + echo "go mod tidy everywhere" + find "$repo_dir" -iname "go.mod" -execdir sh -c "go mod tidy" \; +} + +main() { + case "${1-""}" in + initwork) + init_work + ;; + tidy) + tidy + ;; + update) + update "${2-""}" + ;; + *) + usage + ;; + esac +} + +main "${@}"