github.com/inklabsfoundation/inkchain@v0.17.1-0.20181025012015-c3cef8062f19/protos/common/configuration.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: common/configuration.proto
     3  
     4  package common
     5  
     6  import proto "github.com/golang/protobuf/proto"
     7  import fmt "fmt"
     8  import math "math"
     9  
    10  // Reference imports to suppress errors if they are not otherwise used.
    11  var _ = proto.Marshal
    12  var _ = fmt.Errorf
    13  var _ = math.Inf
    14  
    15  // HashingAlgorithm is encoded into the configuration transaction as  a configuration item of type Chain
    16  // with a Key of "HashingAlgorithm" and a Value of  HashingAlgorithm as marshaled protobuf bytes
    17  type HashingAlgorithm struct {
    18  	// Currently supported algorithms are: SHAKE256
    19  	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
    20  }
    21  
    22  func (m *HashingAlgorithm) Reset()                    { *m = HashingAlgorithm{} }
    23  func (m *HashingAlgorithm) String() string            { return proto.CompactTextString(m) }
    24  func (*HashingAlgorithm) ProtoMessage()               {}
    25  func (*HashingAlgorithm) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
    26  
    27  func (m *HashingAlgorithm) GetName() string {
    28  	if m != nil {
    29  		return m.Name
    30  	}
    31  	return ""
    32  }
    33  
    34  // BlockDataHashingStructure is encoded into the configuration transaction as a configuration item of
    35  // type Chain with a Key of "BlockDataHashingStructure" and a Value of HashingAlgorithm as marshaled protobuf bytes
    36  type BlockDataHashingStructure struct {
    37  	// width specifies the width of the Merkle tree to use when computing the BlockDataHash
    38  	// in order to replicate flat hashing, set this width to MAX_UINT32
    39  	Width uint32 `protobuf:"varint,1,opt,name=width" json:"width,omitempty"`
    40  }
    41  
    42  func (m *BlockDataHashingStructure) Reset()                    { *m = BlockDataHashingStructure{} }
    43  func (m *BlockDataHashingStructure) String() string            { return proto.CompactTextString(m) }
    44  func (*BlockDataHashingStructure) ProtoMessage()               {}
    45  func (*BlockDataHashingStructure) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
    46  
    47  func (m *BlockDataHashingStructure) GetWidth() uint32 {
    48  	if m != nil {
    49  		return m.Width
    50  	}
    51  	return 0
    52  }
    53  
    54  // OrdererAddresses is encoded into the configuration transaction as a configuration item of type Chain
    55  // with a Key of "OrdererAddresses" and a Value of OrdererAddresses as marshaled protobuf bytes
    56  type OrdererAddresses struct {
    57  	Addresses []string `protobuf:"bytes,1,rep,name=addresses" json:"addresses,omitempty"`
    58  }
    59  
    60  func (m *OrdererAddresses) Reset()                    { *m = OrdererAddresses{} }
    61  func (m *OrdererAddresses) String() string            { return proto.CompactTextString(m) }
    62  func (*OrdererAddresses) ProtoMessage()               {}
    63  func (*OrdererAddresses) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
    64  
    65  func (m *OrdererAddresses) GetAddresses() []string {
    66  	if m != nil {
    67  		return m.Addresses
    68  	}
    69  	return nil
    70  }
    71  
    72  // Consortium represents the consortium context in which the channel was created
    73  type Consortium struct {
    74  	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
    75  }
    76  
    77  func (m *Consortium) Reset()                    { *m = Consortium{} }
    78  func (m *Consortium) String() string            { return proto.CompactTextString(m) }
    79  func (*Consortium) ProtoMessage()               {}
    80  func (*Consortium) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
    81  
    82  func (m *Consortium) GetName() string {
    83  	if m != nil {
    84  		return m.Name
    85  	}
    86  	return ""
    87  }
    88  
    89  func init() {
    90  	proto.RegisterType((*HashingAlgorithm)(nil), "common.HashingAlgorithm")
    91  	proto.RegisterType((*BlockDataHashingStructure)(nil), "common.BlockDataHashingStructure")
    92  	proto.RegisterType((*OrdererAddresses)(nil), "common.OrdererAddresses")
    93  	proto.RegisterType((*Consortium)(nil), "common.Consortium")
    94  }
    95  
    96  func init() { proto.RegisterFile("common/configuration.proto", fileDescriptor2) }
    97  
    98  var fileDescriptor2 = []byte{
    99  	// 232 bytes of a gzipped FileDescriptorProto
   100  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x8f, 0x41, 0x4b, 0xf4, 0x30,
   101  	0x10, 0x40, 0x29, 0xdf, 0xe7, 0x42, 0x07, 0x84, 0x25, 0x78, 0x58, 0xc5, 0x43, 0xe9, 0x41, 0xf6,
   102  	0x20, 0x8d, 0xb2, 0xbf, 0x60, 0x57, 0x0f, 0xde, 0x84, 0x7a, 0xf3, 0x96, 0x26, 0xd9, 0x64, 0x68,
   103  	0x9b, 0x91, 0x49, 0x82, 0x7f, 0x5f, 0x6c, 0x76, 0xf1, 0xa0, 0xb7, 0x79, 0x33, 0x3c, 0x98, 0x07,
   104  	0x37, 0x9a, 0xe6, 0x99, 0x82, 0xd4, 0x14, 0x8e, 0xe8, 0x32, 0xab, 0x84, 0x14, 0xba, 0x0f, 0xa6,
   105  	0x44, 0x62, 0x55, 0x6e, 0xed, 0x1d, 0xac, 0x5f, 0x54, 0xf4, 0x18, 0xdc, 0x7e, 0x72, 0xc4, 0x98,
   106  	0xfc, 0x2c, 0x04, 0xfc, 0x0f, 0x6a, 0xb6, 0x9b, 0xaa, 0xa9, 0xb6, 0x75, 0xbf, 0xcc, 0xed, 0x23,
   107  	0x5c, 0x1f, 0x26, 0xd2, 0xe3, 0xb3, 0x4a, 0xea, 0x24, 0xbc, 0x25, 0xce, 0x3a, 0x65, 0xb6, 0xe2,
   108  	0x0a, 0x2e, 0x3e, 0xd1, 0x24, 0xbf, 0x18, 0x97, 0x7d, 0x81, 0xf6, 0x01, 0xd6, 0xaf, 0x6c, 0x2c,
   109  	0x5b, 0xde, 0x1b, 0xc3, 0x36, 0x46, 0x1b, 0xc5, 0x2d, 0xd4, 0xea, 0x0c, 0x9b, 0xaa, 0xf9, 0xb7,
   110  	0xad, 0xfb, 0x9f, 0x45, 0xdb, 0x00, 0x3c, 0x51, 0x88, 0xc4, 0x09, 0xf3, 0x9f, 0x6f, 0x1c, 0x34,
   111  	0xdc, 0x13, 0xbb, 0x0e, 0xc3, 0x38, 0xa9, 0x21, 0x1e, 0x29, 0x07, 0x53, 0xaa, 0x30, 0x8c, 0xda,
   112  	0x2b, 0x3c, 0xe5, 0xc5, 0xae, 0xe4, 0xbd, 0xef, 0x1c, 0x26, 0x9f, 0x87, 0x6f, 0x94, 0xbf, 0x24,
   113  	0x79, 0x96, 0x64, 0x91, 0x64, 0x91, 0x86, 0xd5, 0x82, 0xbb, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff,
   114  	0xf3, 0xad, 0x7b, 0xeb, 0x40, 0x01, 0x00, 0x00,
   115  }