github.com/hellobchain/third_party@v0.0.0-20230331131523-deb0478a2e52/hyperledger/fabric-config/configtx/constants.go (about)

     1  /*
     2  Copyright IBM Corp. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package configtx
     8  
     9  const (
    10  	// These values are fixed for the genesis block.
    11  	msgVersion = 0
    12  	epoch      = 0
    13  
    14  	// ConsortiumKey is the key for the ConfigValue of a
    15  	// Consortium.
    16  	ConsortiumKey = "Consortium"
    17  
    18  	// HashingAlgorithmKey is the key for the ConfigValue of a
    19  	// HashingAlgorithm.
    20  	HashingAlgorithmKey = "HashingAlgorithm"
    21  
    22  	// BlockDataHashingStructureKey is the key for the ConfigValue
    23  	// of a BlockDataHashingStructure.
    24  	BlockDataHashingStructureKey = "BlockDataHashingStructure"
    25  
    26  	// CapabilitiesKey is the key for the ConfigValue, capabilities.
    27  	// CapabiltiesKey can be used at the channel, application, and orderer levels.
    28  	CapabilitiesKey = "Capabilities"
    29  
    30  	// EndpointsKey is the key for the ConfigValue, Endpoints in
    31  	// a OrdererOrgGroup.
    32  	EndpointsKey = "Endpoints"
    33  
    34  	// MSPKey is the key for the ConfigValue, MSP.
    35  	MSPKey = "MSP"
    36  
    37  	// AdminsPolicyKey is the key used for the admin policy.
    38  	AdminsPolicyKey = "Admins"
    39  
    40  	// ReadersPolicyKey is the key used for the read policy.
    41  	ReadersPolicyKey = "Readers"
    42  
    43  	// WritersPolicyKey is the key used for the write policy.
    44  	WritersPolicyKey = "Writers"
    45  
    46  	// EndorsementPolicyKey is the key used for the endorsement policy.
    47  	EndorsementPolicyKey = "Endorsement"
    48  
    49  	// LifecycleEndorsementPolicyKey is the key used for the lifecycle endorsement
    50  	// policy.
    51  	LifecycleEndorsementPolicyKey = "LifecycleEndorsement"
    52  
    53  	// BlockValidationPolicyKey is the key used for the block validation policy in
    54  	// the OrdererOrgGroup.
    55  	BlockValidationPolicyKey = "BlockValidation"
    56  
    57  	// ChannelCreationPolicyKey is the key used in the consortium config to denote
    58  	// the policy to be used in evaluating whether a channel creation request
    59  	// is authorized.
    60  	ChannelCreationPolicyKey = "ChannelCreationPolicy"
    61  
    62  	// ChannelGroupKey is the group name for the channel config.
    63  	ChannelGroupKey = "Channel"
    64  
    65  	// ConsortiumsGroupKey is the group name for the consortiums config.
    66  	ConsortiumsGroupKey = "Consortiums"
    67  
    68  	// OrdererGroupKey is the group name for the orderer config.
    69  	OrdererGroupKey = "Orderer"
    70  
    71  	// ApplicationGroupKey is the group name for the Application config.
    72  	ApplicationGroupKey = "Application"
    73  
    74  	// ACLsKey is the name of the ACLs config.
    75  	ACLsKey = "ACLs"
    76  
    77  	// AnchorPeersKey is the key name for the AnchorPeers ConfigValue.
    78  	AnchorPeersKey = "AnchorPeers"
    79  
    80  	// ImplicitMetaPolicyType is the 'Type' string for implicit meta policies.
    81  	ImplicitMetaPolicyType = "ImplicitMeta"
    82  
    83  	// SignaturePolicyType is the 'Type' string for signature policies.
    84  	SignaturePolicyType = "Signature"
    85  
    86  	ordererAdminsPolicyName = "/Channel/Orderer/Admins"
    87  
    88  	// OrdererAddressesKey is the key for the ConfigValue of OrdererAddresses.
    89  	OrdererAddressesKey = "OrdererAddresses"
    90  )