github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/families/block_info/protos/block_info.proto (about)

     1  // Copyright 2017 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.block_info.protobuf";
    20  option go_package = "block_info_pb2";
    21  
    22  message BlockInfoConfig {
    23      uint64 latest_block = 1;
    24      uint64 oldest_block = 2;
    25      uint64 target_count = 3;
    26      uint64 sync_tolerance = 4;
    27  }
    28  
    29  message BlockInfo {
    30      // Block number in the chain
    31      uint64 block_num = 1;
    32      // The header_signature of the previous block that was added to the chain.
    33      string previous_block_id = 2;
    34      // Public key for the component internal to the validator that
    35      // signed the BlockHeader
    36      string signer_public_key = 3;
    37      // The signature derived from signing the header
    38      string header_signature = 4;
    39      // Approximately when this block was committed, as a Unix UTC timestamp
    40      uint64 timestamp = 5;
    41  }
    42  
    43  message BlockInfoTxn {
    44      // The new block to add to state
    45      BlockInfo block = 1;
    46      // If this is set, the new target number of blocks to store in state
    47      uint64 target_count = 2;
    48      // If set, the new network time synchronization tolerance.
    49      uint64 sync_tolerance = 3;
    50  }