github.com/true-sqn/fabric@v2.1.1+incompatible/gossip/privdata/common/common.go (about)

     1  /*
     2  Copyright IBM Corp. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package common
     8  
     9  import (
    10  	"github.com/hyperledger/fabric-protos-go/gossip"
    11  	"github.com/hyperledger/fabric-protos-go/peer"
    12  )
    13  
    14  // privdata_common holds types that are used both in privdata and mocks packages.
    15  // needed in order to avoid cyclic dependencies
    16  
    17  // DigKey defines a digest that
    18  // specifies a specific hashed RWSet
    19  type DigKey struct {
    20  	TxId       string
    21  	Namespace  string
    22  	Collection string
    23  	BlockSeq   uint64
    24  	SeqInBlock uint64
    25  }
    26  
    27  type Dig2CollectionConfig map[DigKey]*peer.StaticCollectionConfig
    28  
    29  // FetchedPvtDataContainer container for pvt data elements
    30  // returned by Fetcher
    31  type FetchedPvtDataContainer struct {
    32  	AvailableElements []*gossip.PvtDataElement
    33  	PurgedElements    []*gossip.PvtDataDigest
    34  }