github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/protos/batch.proto (about) 1 // Copyright 2016 Intel Corporation 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 // ----------------------------------------------------------------------------- 15 16 syntax = "proto3"; 17 18 option java_multiple_files = true; 19 option java_package = "sawtooth.sdk.protobuf"; 20 option go_package = "batch_pb2"; 21 22 import "transaction.proto"; 23 24 message BatchHeader { 25 // Public key for the client that signed the BatchHeader 26 string signer_public_key = 1; 27 28 // List of transaction.header_signatures that match the order of 29 // transactions required for the batch 30 repeated string transaction_ids = 2; 31 } 32 33 message Batch { 34 // The serialized version of the BatchHeader 35 bytes header = 1; 36 37 // The signature derived from signing the header 38 string header_signature = 2; 39 40 // A list of the transactions that match the list of 41 // transaction_ids listed in the batch header 42 repeated Transaction transactions = 3; 43 44 // A debugging flag which indicates this batch should be traced through the 45 // system, resulting in a higher level of debugging output. 46 bool trace = 4; 47 } 48 49 message BatchList { 50 repeated Batch batches = 1; 51 }