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