Proto commits in hyperledger/fabric-protos

These 67 commits are when the Protocol Buffers files have changed:

Commit:17cc701
Author:Yoav Tock
Committer:Dave Enyeart

Remove block attestation As of commit 1325059f136198fd72c7d7ca3c5da762078d110a in hyperledger/fabric, the "BlockAttestation" object is no longer used. Signed-off-by: Yoav Tock <tock@il.ibm.com>

The documentation is generated from this commit.

Commit:7d5570d
Author:Fedor Partanskiy
Committer:Dave Enyeart

add support GetMultipleKeys Signed-off-by: Fedor Partanskiy <fredprtnsk@gmail.com>

Commit:4af0c57
Author:pfi79
Committer:GitHub

add change state batch (#243) Signed-off-by: Fedor Partanskiy <fredprtnsk@gmail.com>

Commit:47d1520
Author:Fedor Partanskiy
Committer:Dave Enyeart

change go package Signed-off-by: Fedor Partanskiy <partanskiy.f@n-t.io> Signed-off-by: Fedor Partanskiy <pfi79@mail.ru>

Commit:dcb02b6
Author:Tatsuya Sato
Committer:Dave Enyeart

Extend lifecycle protos to query all approved chaincode definitions Signed-off-by: Tatsuya Sato <tatsuya.sato.so@hitachi.com>

Commit:6567228
Author:Tatsuya Sato
Committer:Dave Enyeart

Extend lifecycle protos to checkcommitreadiness to provide discrepancy details Signed-off-by: Tatsuya Sato <tatsuya.sato.so@hitachi.com>

Commit:a319cef
Author:semil
Committer:GitHub

system channel cleanup - make HeaderType_ORDERER_TRANSACTION deprecated (#184) Signed-off-by: Emil Elizarov <emil.elizarov@ibm.com> Co-authored-by: Emil Elizarov <emil.elizarov@ibm.com>

Commit:a525af1
Author:Yacov Manevich
Committer:Dave Enyeart

Appease linter for SmartBFT configuration protobuf file Signed-off-by: Yacov Manevich <yacovm@il.ibm.com>

Commit:566671f
Author:Parameswaran Selvam
Committer:GitHub

smartbft configuration protobuf message (#149) Signed-off-by: Parameswaran Selvam <parselva@in.ibm.com> Signed-off-by: Parameswaran Selvam <parselva@in.ibm.com>

Commit:b368169
Author:Mark S. Lewis
Committer:Dave Enyeart

Allow ChaincodeEvents to resume after a specific transaction ID (#77) Add an `after_transaction_id` field to the ChaincodeEventsRequest message so the client can specify a transaction ID, up to which chaincode events should be ignored and not returned to the client. Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com> (cherry picked from commit 9f95521bb870cca7b765217c80aeb600e0bd5abf)

Commit:8ba6a3a
Author:Andrew Coleman
Committer:GitHub

Add SeekContentType to orderer proto (#132) To support BFT Signed-off-by: andrew-coleman <andrew_coleman@uk.ibm.com> Signed-off-by: andrew-coleman <andrew_coleman@uk.ibm.com>

Commit:6e1aac2
Author:Parameswaran Selvam
Committer:GitHub

New orderer cluster service with auth support (#131) Signed-off-by: Parameswaran Selvam <parselva@in.ibm.com> Signed-off-by: Parameswaran Selvam <parselva@in.ibm.com>

Commit:83a2981
Author:Yoav Tock
Committer:GitHub

Orderer v3: deprecate kafka (#128) - Remove the KafkaMessage as it is no longer used - Deprecate the KafkaBrokers Signed-off-by: Yoav Tock <tock@il.ibm.com> Signed-off-by: Yoav Tock <tock@il.ibm.com>

Commit:bf7a660
Author:Andrew Coleman
Committer:GitHub

Add identifier to MetadataSignature (#127) And turning the lint check back on. Signed-off-by: andrew-coleman <andrew_coleman@uk.ibm.com> Signed-off-by: andrew-coleman <andrew_coleman@uk.ibm.com>

Commit:0fd5015
Author:Andrew Coleman
Committer:GitHub

Change Consenter id to uin32 (#126) Temporarily turning off ‘breaking change’ check in lint stage to allow this change to the type (as yet, unused) Signed-off-by: andrew-coleman <andrew_coleman@uk.ibm.com> Signed-off-by: andrew-coleman <andrew_coleman@uk.ibm.com>

Commit:cf1df27
Author:Andrew Coleman
Committer:GitHub

Add consenter mapping to config proto (#125) Signed-off-by: andrew-coleman <andrew_coleman@uk.ibm.com> Signed-off-by: andrew-coleman <andrew_coleman@uk.ibm.com>

Commit:f94e6ee
Author:Dave Enyeart
Committer:GitHub

Revert "New service and messages for block attestation (#92)" (#123) This reverts commit 632b3efb5324c16d387b23f4d268515f9f3d53b9. Signed-off-by: David Enyeart <enyeart@us.ibm.com>

Commit:7bdb399
Author:nujz
Committer:Ry Jones

Fix typo Signed-off-by: nujz <nujz@foxmail.com>

Commit:632b3ef
Author:Parameswaran Selvam
Committer:GitHub

New service and messages for block attestation (#92) Signed-off-by: Parameswaran Selvam <parselva@in.ibm.com>

Commit:9f95521
Author:Mark S. Lewis
Committer:GitHub

Allow ChaincodeEvents to resume after a specific transaction ID (#77) Add an `after_transaction_id` field to the ChaincodeEventsRequest message so the client can specify a transaction ID, up to which chaincode events should be ignored and not returned to the client. Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>

Commit:6e299ac
Author:Matthew B White
Committer:GitHub

Add in the purge-private-data API (#75) Signed-off-by: Matthew B White <whitemat@uk.ibm.com>

Commit:50d7809
Author:manish
Committer:Dave Enyeart

Add `is_purge` field to KVWriteHash This PR adds a field to capture the is_purge operation for enabling the purge of private data. Issue on fabric repo - https://github.com/hyperledger/fabric/issues/3021 Signed-off-by: manish <manish.sethi@gmail.com>

Commit:c6ece3f
Author:Mark S. Lewis
Committer:GitHub

Remove EndorseResponse.result field (#69) This duplicates information already present in the EndorseResponse.prepared_transaction field and, if the content is large, can cause failures due to gRPC message size limits. The Fabric Gateway client and server implementations no longer use this field. Signed-off-by: Mark S. Lewis <mark_lewis@uk.ibm.com>

Commit:9c69228
Author:andrew-coleman
Committer:denyeart

Change EndpointError to ErrorDetail This name gets surfaced in the SDKs, not as an error itself, but as extra information within an error/exception. The name, ending in Error, is misleading in Java and Node. This commit changes it to more appropriate name. Signed-off-by: andrew-coleman <andrew_coleman@uk.ibm.com>

Commit:d59b8ea
Author:Mark S. Lewis
Committer:GitHub

Revert "Bind uint64 fields to JavaScript strings in gateway.proto (#63)" (#65) This reverts commit e08a20156346c7c6aaf97d4effa517689769367c. Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>

Commit:e08a201
Author:Mark S. Lewis
Committer:GitHub

Bind uint64 fields to JavaScript strings in gateway.proto (#63) Default protoc binding is to a JavaScript number, which can only hold integers up to 2^53 - 1. Signed-off-by: Mark S. Lewis <mark_lewis@uk.ibm.com>

Commit:0135abb
Author:Mark S. Lewis
Committer:GitHub

Add start_position to gateway.ChaincodeEventsRequest (#62) Enables replay of chaincode events. Signed-off-by: Mark S. Lewis <mark_lewis@uk.ibm.com>

Commit:3607656
Author:yacovm
Committer:GitHub

[FAB-18527] Hint to discovery to disregard the namespace endorsement policy (#60) This commit adds a hint in the chaincode call of the discovery protobuf API to signal that the client expects the namespace endorsement policy to be irrelevant. Signed-off-by: Yacov Manevich <yacovm@il.ibm.com>

Commit:6322a90
Author:Andrew Coleman
Committer:GitHub

FABGW-25 Extend proto to include derived interest (#59) Add protobuf support for returning the derived chaincode interest structure from Tx simulation (process proposal). Add the set of SBE signature policies to the discovery ChaincodeCall proto message Add the ChaincodeInterest structure to the ProposalResponse message Signed-off-by: andrew-coleman <andrew_coleman@uk.ibm.com>

Commit:ef707fb
Author:andrew-coleman
Committer:denyeart

FABGW-20 Protobuf for Evaluate() endorsingOrgs Add ‘endorsing_organizations’ fields to the gateway protobuf definitions for the Evaluate() method and for supporting offline signing Signed-off-by: andrew-coleman <andrew_coleman@uk.ibm.com>

Commit:bf7411d
Author:Mark S. Lewis
Committer:GitHub

FABGW-21: Add Gateway ChaincodeEvents service (#57) This service supports chaincode event listening in the client API. Signed-off-by: Mark S. Lewis <mark_lewis@uk.ibm.com>

Commit:9e88615
Author:andrew-coleman
Committer:denyeart

FABGW-20 Specify endorsing organizations Add support in the EndorseRequest message of the gateway proto for specifying which org’s peers to target. Signed-off-by: andrew-coleman <andrew_coleman@uk.ibm.com>

Commit:1c9f434
Author:Mark S. Lewis
Committer:GitHub

FABGW-19: Secure Gateway CommitStatus service (#55) - Include calling identity in CommitStatusRequest - SignedCommitStatusRequest wraps a serialized CommitStatusRequest and digital signature - CommitStatus service received a SignedCommitStatusRequest instead of CommitStatusRequest Allows the server to: - Ensure the request message was created by the expected client identity by verifying the signature - Check that the calling identity has read permission for the channel Signed-off-by: Mark S. Lewis <mark_lewis@uk.ibm.com>

Commit:70417cd
Author:James Taylor
Committer:Matthew Sykes

Gateway update Include transaction result in PreparedTransaction Signed-off-by: James Taylor <jamest@uk.ibm.com>

Commit:75c5858
Author:James Taylor
Committer:Matthew Sykes

Gateway updates Add offline signing support to latest gateway protos Signed-off-by: James Taylor <jamest@uk.ibm.com>

Commit:3fcfbb6
Author:James Taylor
Committer:Matthew Sykes

Gateway updates - Now uses specific messages for requests and responses - No streaming - New rpc call to check the commit status of a transaction - Use Response message from peer/proposal_response.proto so that gateway clients can access result status and message as well as the payload Signed-off-by: James Taylor <jamest@uk.ibm.com>

Commit:34a2816
Author:Matthew Sykes
Committer:Matthew Sykes

Fix the package declaration gateway service Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>

Commit:ac146a5
Author:andrew-coleman
Committer:Matthew Sykes

Add error details to gateway proto The functions exposed by the gateway service make grpc client requests to external peers and orderers. If any of these requests return an error, then these errors including the address of the remote endpoint are added to the Details field of the error returned by the gateway service. This commit adds the message definition to the proto file to enable this capability. Signed-off-by: andrew-coleman <andrew_coleman@uk.ibm.com>

Commit:583e2ae
Author:andrew-coleman
Committer:Matthew Sykes

FABGW-1 Add proto definition for gateway Signed-off-by: andrew-coleman <andrew_coleman@uk.ibm.com>

Commit:f44816d
Author:Wenjian Qiao
Committer:GitHub

Use camelcases consistently in ledger.proto (#45) ledger.proto has mixed use of camelcase and underscore styles. It causes inconsistence when marshalling to a string. Since the existing fields are in camelcase, change new fields to camelcases as well. Signed-off-by: Wenjian Qiao <wenjianq@gmail.com>

Commit:74ca5de
Author:Wenjian Qiao
Committer:GitHub

[FAB-18324] Add JoinBySnapshotStatus proto msg as a query response (#44) Signed-off-by: Wenjian Qiao <wenjianq@gmail.com>

Commit:fbc4ba4
Author:Wenjian Qiao
Committer:GitHub

Add new proto msg BootstrappingSnapshotInfo to BlockchainInfo (#43) Signed-off-by: Wenjian Qiao <wenjianq@gmail.com>

Commit:3321d51
Author:Wenjian Qiao
Committer:GitHub

[FAB-18235] Add NextAvailable seek position to ab.proto (#42) This option is added to allow a client listens to the future blocks only, comparing to the existing Newest option which refers to the last block that has been committed on the ledgerr. Signed-off-by: Wenjian Qiao <wenjianq@gmail.com>

Commit:fca21e6
Author:Wenjian Qiao
Committer:GitHub

[FAB-18117] Add client_identity and rename height to block_number in snapshot.proto (#41) Signed-off-by: Wenjian Qiao <wenjianq@gmail.com>

Commit:53e00a6
Author:Wenjian Qiao
Committer:GitHub

[FAB-18105] Add grpc service and protobuf msgs for snapshot mgmt CLI commands (#40) Signed-off-by: Wenjian Qiao <wenjianq@gmail.com>

Commit:fb18522
Author:Matthew Sykes
Committer:GitHub

Replace erroneous ref to SHAKE256 with SHA256 (#39) Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>

Commit:8c4421a
Author:denyeart
Committer:GitHub

Clarify ChaincodeAction.events field (#38) Clarify that 'events' only includes a single marshaled ChaincodeEvent. Signed-off-by: David Enyeart <enyeart@us.ibm.com>

Commit:8bd3203
Author:Matthew Sykes
Committer:Gari Singh

Remove PEER_ADMIN_OPERATION type from protos The peer admin service was removed. Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>

Commit:9944f8f
Author:Tatsuya Sato
Committer:GitHub

[FAB-17432] Extend lifecycle protos to query the approved chaincode (#25) Currently, Fabric peer does not provide a function to query the details of approved chaincode definitions. On the other hand, Fabric admins will need to confirm/use the information after approval for their operations. So, this patch extends lifecycle protos to add a function for querying the details of the approved chaincode definition. Signed-off-by: Tatsuya Sato <Tatsuya.Sato@hal.hitachi.com>

Commit:006feee
Author:yacovm
Committer:Matthew Sykes

[FAB-17674] Add Probe flag to ConnEstablish Part of FAB-17672: Gossip bootstrap peer and anchor peer connection establishments are a two step process: I) Connect to the remote endpoint, and figure out its organization association II) Connect to the remote endpoint once again, this time sending membership information according to what it is eligible to. Unfortunately, if the responding peer connects to the initiator peer at the same time, the connection of (1) will be overwritten by the connection (gossip keeps a single connection among every pair of peers) from the responder peer and the initiator peer will consider the responder peer as dead. In production, where peers run for a long time and constnatly retry, this is not a problem. However, in integration tests that expect data to be disseminated in a timely manner, this might cause flakes. this change set adds a flag that indicates this connection is not a long lasting one, and thus there is no point to add it to the connection store. Signed-off-by: yacovm <yacovm@il.ibm.com>

Commit:3bc5319
Author:Danny Cao
Committer:denyeart

Revert "[FAB-17303] Add more fields to PrivateDataImplicitCollection" This reverts commit ac9156dfc571a12aceb7cdd8f003d850761e779c. Revert "[FAB-17303] Support new organization configuration field (#21)" This reverts commit 6d951158d8a88926759917af8b8bcfdbbba68673. Signed-off-by: Danny Cao <dcao@us.ibm.com>

Commit:ac9156d
Author:Danny Cao
Committer:denyeart

[FAB-17303] Add more fields to PrivateDataImplicitCollection * Also reorganize ordering while it's still not used Signed-off-by: Danny Cao <dcao@us.ibm.com>

Commit:1ab0b3b
Author:yacovm
Committer:Matthew Sykes

Extend discovery protos for FAB-17308 Currently, when a client queries discovery with an endorsement query which has collections in the query, discovery intersects the available peers with the collection definition by removing peers which are not part of the collection since they do not have the pre-images required to read from the namespace. However, the introduction of GetPrivateDataHash makes new use cases possible, namely scenarios where some of the endorsers of a transaction aren't in the collection, but they are fed with the pre-image via other means (e.g the transient field) and after validating the pre-image using GetPrivateDataHash, they can perform the same computation as peers that are in the collection. In such a case, discovery will filter out those peers needlessly. Furthermore, we want to be able to support writes to collections that have their own endorsement policy, while at the same time the membership of the collections might not even intersect (e.g if we have an org specific collection and we want to delete a key from collection "orgA" and write it into collection "orgB"). The above use cases require the ability to convey to discovery not to filter out peers based on collection association. Additionally and independently, we sometimes want to do a chaincode-to-chaincode transaction where some of the chaincodes are used for read only, and then we don't want to take into account the endorsement policy, however it can be useful if discovery would still be aware of this so it can filter out peers that do not have the chaincode installed. To support all the above, I am adding 2 new flags (3 and 4 below) in the ChaincodeCall protobuf message: Signed-off-by: yacovm <yacovm@il.ibm.com>

Commit:6d95115
Author:Danny Cao
Committer:Jason Yellick

[FAB-17303] Support new organization configuration field (#21) in channel config * PrivateDataImplicitCollection stores the configuration for org-specific implicit collections Signed-off-by: Danny Cao <dcao@us.ibm.com>

Commit:d6949c2
Author:Matthew Sykes
Committer:Jason Yellick

Remove dead messages (#22) We were having a conversation about protos and it came out that these are dead and should be removed. This commit removes them. Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>

Commit:1537191
Author:Will Lahti

FAB-15817 Deprecate LAST_CONFIG metadata field The last config index is now included in the SIGNATURES metadata field. Signed-off-by: Will Lahti <wtlahti@us.ibm.com>

Commit:1ba0937
Author:Danny Cao
Committer:Danny Cao

[FAB-17120] Update common/collection.proto references in other protos Signed-off-by: Danny Cao <dcao@us.ibm.com>

Commit:43ccac6
Author:Danny Cao
Committer:Danny Cao

[FAB-17120] Move collection.proto from common to peer * Deprecate old collection.proto messages * Deprecate common.ApplicationPolicy Signed-off-by: Danny Cao <dcao@us.ibm.com>

Commit:c7d2cf6
Author:Jason Yellick

Remove unused proto This message appears to have been created, but isn't actually consumed anywhere in the Fabric codebase: $ cd fabric && pt -c SignedTransaction ./vendor/github.com/hyperledger/fabric-protos-go/peer/transaction.pb.go:19 Signed-off-by: Jason Yellick <jyellick@us.ibm.com>

Commit:5d0624b
Author:Danny Cao
Committer:Matthew Sykes

[FAB-15066] Add endorsement_policy to StaticCollectionConfig * Deprecate peer.ApplicationPolicy in favor of common.ApplicationPolicy for preventing future import cycles Signed-off-by: Danny Cao <dcao@us.ibm.com>

Commit:ed1df91
Author:Danny Cao
Committer:Danny Cao

[FAB-16963] Remove CollectionCriteria proto Signed-off-by: Danny Cao <dcao@us.ibm.com>

Commit:257e98c
Author:muralisr
Committer:muralisr

[FAB-14156] create chaincode server Chaincode service definition that allows a Peer to "Connect" as q client. Currently supports only streams but eventually can be extended to support unary Invoke calls. Signed-off-by: muralisr <srinivasan.muralidharan99@gmail.com>

Commit:734946e
Author:GuillaumeCisco
Committer:GuillaumeCisco

Add ChaincodeData and CDSData protos Signed-off-by: GuillaumeCisco <guillaumecisco@gmail.com>

Commit:42fec87
Author:Mark S. Lewis
Committer:Mark S. Lewis

FAB-16501: Add missing java_package entries Signed-off-by: Mark S. Lewis <mark_lewis@uk.ibm.com>

Commit:b2bf769
Author:Matthew Sykes

Remove unnecessary comment Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>

Commit:1949e67
Author:Jason Yellick

FAB-16353 Remove PayloadVisbility field This field is only ever referenced in the endorserment proposal validation (not in commit validation) and is of no use and only adds confusion. Removing. Change-Id: Icd7b7d1a70310d8d41cea43d52d4365c996ce861 Signed-off-by: Jason Yellick <jyellick@us.ibm.com>

Commit:b12d534
Author:Matthew Sykes
Committer:Ry Jones

Initial commit of protos from fabric - Copy protos from fabric - Remove unused imports from protos - Rewrite go_package to fabric-protos-go Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>