Skip to content

Commit

Permalink
[FAB-11172] Token transaction proto message
Browse files Browse the repository at this point in the history
This changeset contains the definition of a transaction message accommodating
token issue, and transfer, TokenTransaction. For TokenTransaction to be
possible to integrate in the common.Envelope structure recognised by the
orderers, we extend common.HeaderType with a "Token" type. HeaderType
indicates the type of message (payload) included in a common.Envelope.
Peers who receive common.Envelope messages with Envelope.Header including a
HeaderType of "Token" would parse Envelope.Payload as TokenTransaction.

Change-Id: Ica1a5407a14a22f5941de40e43b6ef0c71f83486
Signed-off-by: Elli Androulaki <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Mathias Bjoerkqvist <[email protected]>
  • Loading branch information
elli-androulaki committed Aug 16, 2018
1 parent e766f40 commit 5749920
Show file tree
Hide file tree
Showing 5 changed files with 712 additions and 81 deletions.
157 changes: 80 additions & 77 deletions protos/common/common.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions protos/common/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ enum HeaderType {
DELIVER_SEEK_INFO = 5; // Used as the type for Envelope messages submitted to instruct the Deliver API to seek
CHAINCODE_PACKAGE = 6; // Used for packaging chaincode artifacts for install
PEER_ADMIN_OPERATION = 8; // Used for invoking an administrative operation on a peer
TOKEN_TRANSACTION = 9; // Used to denote transactions that invoke token management operations
}

// This enum enlists indexes of the block metadata array
Expand Down
Loading

0 comments on commit 5749920

Please sign in to comment.