github.com/kchristidis/fabric@v1.0.4-0.20171028114726-837acd08cde1/protos/common/configuration.proto (about)

     1  /*
     2  Copyright IBM Corp. 2016 All Rights Reserved.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8                   http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  syntax = "proto3";
    18  
    19  option go_package = "github.com/hyperledger/fabric/protos/common";
    20  option java_package = "org.hyperledger.fabric.protos.common";
    21  
    22  package common;
    23  
    24  // HashingAlgorithm is encoded into the configuration transaction as  a configuration item of type Chain
    25  // with a Key of "HashingAlgorithm" and a Value of  HashingAlgorithm as marshaled protobuf bytes
    26  message HashingAlgorithm {
    27      // Currently supported algorithms are: SHAKE256
    28      string name = 1;
    29  }
    30  
    31  // BlockDataHashingStructure is encoded into the configuration transaction as a configuration item of
    32  // type Chain with a Key of "BlockDataHashingStructure" and a Value of HashingAlgorithm as marshaled protobuf bytes
    33  message BlockDataHashingStructure {
    34      // width specifies the width of the Merkle tree to use when computing the BlockDataHash
    35      // in order to replicate flat hashing, set this width to MAX_UINT32
    36      uint32 width  = 1;
    37  }
    38  
    39  // OrdererAddresses is encoded into the configuration transaction as a configuration item of type Chain
    40  // with a Key of "OrdererAddresses" and a Value of OrdererAddresses as marshaled protobuf bytes
    41  message OrdererAddresses {
    42      repeated string addresses = 1;
    43  }
    44  
    45  // Consortium represents the consortium context in which the channel was created
    46  message Consortium {
    47      string name = 1;
    48  }