Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dddengyunjie/fabric
/ functions
Functions
19,835 in github.com/dddengyunjie/fabric
⨍
Functions
19,835
◇
Types & classes
3,362
↓ 35 callers
Method
Validate
Validate returns nil if the action at the given position inside the transaction at the given position in the given block is valid, or an error if not.
core/handlers/validation/api/validation.go:29
↓ 35 callers
Method
close
()
common/ledger/blkstorage/fsblkstorage/block_stream.go:192
↓ 35 callers
Function
createGossipMsg
()
gossip/comm/comm_test.go:931
↓ 35 callers
Function
resetFlags
Explicitly define a method to facilitate tests
peer/channel/channel.go:72
↓ 34 callers
Method
Append
Append a new block to the ledger
common/ledger/blockledger/ledger.go:48
↓ 34 callers
Method
Apply
Apply applies the rule to the given Envelope, either successfully or returns error
orderer/common/msgprocessor/filter.go:21
↓ 34 callers
Method
HandleTransaction
HandleTransaction is a middleware function that obtains and verifies a transaction context prior to forwarding the message to the provided delegate. R
core/chaincode/handler.go:247
↓ 34 callers
Method
Hash
Hash hashes messages msg using options opts. If opts is nil, the default hash function will be used.
bccsp/sw/internals.go:89
↓ 34 callers
Method
Panic
(args ...interface{})
gossip/util/logging.go:46
↓ 34 callers
Method
PeerAddress
PeerAddress returns the address (host and port) exposed by the Peer for the named port. Command line tools should use the returned address when connec
integration/nwo/network.go:1306
↓ 34 callers
Method
Prepare
Prepare prepares the Store for commiting the pvt data and storing both eligible and ineligible missing private data --- `eligible` denotes that the mi
core/ledger/pvtdatastorage/store.go:58
↓ 34 callers
Method
SaveDoc
SaveDoc method provides a function to save a document, id and byte array
core/ledger/util/couchdb/couchdb.go:552
↓ 34 callers
Method
SharedConfig
SharedConfig provides the shared config from the channel's current config block.
orderer/consensus/consensus.go:89
↓ 34 callers
Function
generateMigrationBundle
(sysChan bool, cType string, cState ab.ConsensusType_MigrationState, cContext uint64)
common/channelconfig/bundle_test.go:506
↓ 34 callers
Method
newPuller
(id string, ps privdata.CollectionStore, factory CollectionAccessFactory, knownMembers ...discovery.NetworkMe
gossip/privdata/pull_test.go:287
↓ 34 callers
Function
produceSamplePvtdata
(t *testing.T, txNum uint64, nsColls []string)
core/ledger/pvtdatastorage/store_impl_test.go:896
↓ 33 callers
Method
Bootstrap
Bootstrap generates the cryptographic material, orderer system channel genesis block, and create channel transactions needed to run a fabric network.
integration/nwo/network.go:556
↓ 33 callers
Method
CertBytes
CertBytes returns the certificate of the CA in PEM encoding
common/crypto/tlsgen/ca.go:31
↓ 33 callers
Method
GenerateConfigTree
GenerateConfigTree generates the configuration documents required to bootstrap a fabric network. A configuration file will be generated for cryptogen,
integration/nwo/network.go:530
↓ 33 callers
Method
OrdererRunner
OrdererRunner returns an ifrit.Runner for the specified orderer. The runner can be used to start and manage an orderer process.
integration/nwo/network.go:940
↓ 33 callers
Method
Send
Send sends a message to remote peers
gossip/comm/comm.go:27
↓ 33 callers
Method
addExpectPullAssert
(seq uint64)
orderer/common/cluster/deliver_test.go:254
↓ 33 callers
Method
addPrincipal
(principal *msp.MSPPrincipal)
discovery/endorsement/endorsement_test.go:711
↓ 33 callers
Method
processMessagesToBlocks
processMessagesToBlocks drains the Kafka consumer for the given channel, and takes care of converting the stream of ordered messages into blocks for t
orderer/consensus/kafka/chain.go:377
↓ 32 callers
Method
Accept
Accept returns a dedicated read-only channel for messages sent by other nodes that match a certain predicate. Each message from the channel can be use
gossip/comm/comm.go:42
↓ 32 callers
Function
BigToBytes
BigToBytes takes an *amcl.BIG and returns a []byte representation
idemix/util.go:95
↓ 32 callers
Method
ReadDir
(string)
core/chaincode/persistence/persistence.go:29
↓ 32 callers
Method
Send
(*orderer.StepRequest)
orderer/common/cluster/rpc.go:25
↓ 31 callers
Method
Dial
(address string)
orderer/common/cluster/util.go:217
↓ 31 callers
Function
Error
(msg string)
core/chaincode/shim/response.go:41
↓ 31 callers
Method
Increment
()
orderer/common/cluster/util.go:603
↓ 31 callers
Method
Key
Key is the key this value should be stored in the *cb.ConfigGroup.Policies map.
common/policies/util.go:17
↓ 31 callers
Method
PeerAdminSession
PeerAdminSession starts a gexec.Session as a peer admin for the provided peer command. This is intended to be used by short running peer cli commands
integration/nwo/network.go:1044
↓ 31 callers
Function
ProtoMarshal
(m proto.Message)
token/server/server_suite_test.go:21
↓ 31 callers
Method
Value
Value is the backing policy implementation for this ConfigPolicy
common/policies/util.go:20
↓ 31 callers
Function
getEnv
(ccID string, event []byte, res []byte, t *testing.T)
core/committer/txvalidator/validator_test.go:175
↓ 31 callers
Method
getTxMgr
()
core/ledger/kvledger/txmgmt/txmgr/lockbasedtxmgr/pkg_test.go:42
↓ 31 callers
Function
newCommInstance
(t *testing.T, sec *naiveSecProvider)
gossip/comm/comm_test.go:161
↓ 31 callers
Method
withChaincode
(name, version string)
discovery/endorsement/endorsement_test.go:654
↓ 30 callers
Function
AddFlags
AddFlags adds flags for create and join
peer/channel/channel.go:61
↓ 30 callers
Method
Close
Close ledgerResources
gossip/state/state.go:122
↓ 30 callers
Function
DeepUnmarshalJSON
DeepUnmarshalJSON takes JSON output as generated by DeepMarshalJSON and decodes it into msg This includes re-marshaling the expanded nested elements t
common/tools/protolator/json.go:472
↓ 30 callers
Method
Delete
Delete deletes a Key and associated value
core/ledger/kvledger/txmgmt/statedb/statedb.go:176
↓ 30 callers
Method
GetName
()
core/ledger/kvledger/txmgmt/privacyenabledstate/test_exports.go:29
↓ 30 callers
Method
IsEnabledFor
(l zapcore.Level)
gossip/util/logging.go:50
↓ 30 callers
Function
NewGossipChannel
NewGossipChannel creates a new GossipChannel
gossip/gossip/channel/channel.go:186
↓ 30 callers
Function
appendBytesG1
(data []byte, index int, E *FP256BN.ECP)
idemix/util.go:58
↓ 30 callers
Function
newConfigEnv
sets the configEnv var declared above
orderer/consensus/etcdraft/chain_test.go:3958
↓ 30 callers
Function
pvtReadWriteSet
(ns string, collectionName string, data []byte)
gossip/privdata/dataretriever_test.go:661
↓ 30 callers
Function
testDataKeyExists
(t *testing.T, s Store, dataKey *dataKey)
core/ledger/pvtdatastorage/store_impl_test.go:872
↓ 30 callers
Function
updateConsensusType
(b2 *Bundle, cType string, cState ab.ConsensusType_MigrationState, cContext uint64)
common/channelconfig/bundle_test.go:500
↓ 30 callers
Function
waitUntilOrFail
(t *testing.T, pred func() bool)
gossip/gossip/gossip_test.go:1723
↓ 29 callers
Method
ApplyPrivacyAwareUpdates
(updates *UpdateBatch, height *version.Height)
core/ledger/kvledger/txmgmt/privacyenabledstate/db.go:41
↓ 29 callers
Method
ChainID
ChainID returns the ChannelID
orderer/common/msgprocessor/standardchannel.go:27
↓ 29 callers
Method
GetFunctionAndParameters
GetFunctionAndParameters returns the first argument as the function name and the rest of the arguments as parameters in a string array. Only use GetFu
core/chaincode/shim/interfaces.go:45
↓ 29 callers
Method
GetPKIidOfCert
GetPKIidOfCert returns the PKI-ID of a certificate
gossip/identity/identity.go:45
↓ 29 callers
Method
GetState
GetState gets the value for given namespace and key. For a chaincode, the namespace corresponds to the chaincodeId
core/cclifecycle/lifecycle.go:70
↓ 29 callers
Method
ProcessCommand
ProcessCommand processes the passed command ensuring proper access control. The returned response allows the client to understand if the operation was
protos/token/prover.pb.go:1427
↓ 29 callers
Function
RandModOrder
RandModOrder returns a random element in 0, ..., GroupOrder-1
idemix/util.go:38
↓ 29 callers
Method
Remote
Remote returns a RemoteContext for the given RemoteNode ID in the context of the given channel, or error if connection cannot be established, or the c
orderer/common/cluster/comm.go:80
↓ 29 callers
Method
SetResponses
SetResponses sets responses for an Init or Invoke
common/mocks/peer/mockccstream.go:123
↓ 29 callers
Method
Verify
Verify a signature over some message using this identity as reference
msp/msp.go:157
↓ 29 callers
Method
addBlocks
(blocks []*common.Block)
common/ledger/blkstorage/fsblkstorage/pkg_test.go:87
↓ 29 callers
Method
disconnect
(id uint64)
orderer/consensus/etcdraft/chain_test.go:3681
↓ 29 callers
Function
newGossipInstanceWithGRPC
(id int, port int, gRPCServer *corecomm.GRPCServer, certs *common.TLSCertificates, secureDialOpts api.PeerSec
gossip/gossip/gossip_test.go:276
↓ 29 callers
Function
resetFlags
Explicitly define a method to facilitate tests
peer/chaincode/chaincode.go:106
↓ 29 callers
Function
rwsetUpdatingMetadataFor
(cc, key string)
core/common/validation/statebased/vpmanager_test.go:110
↓ 29 callers
Function
setup
(configPath string, ID string)
msp/idemixmsp_test.go:19
↓ 29 callers
Function
signedByAnyMember
(ids []string)
core/committer/txvalidator/validator_test.go:53
↓ 28 callers
Method
AddCallCount
()
orderer/consensus/kafka/mock/metrics_gauge.go:96
↓ 28 callers
Method
Commit
Commit commits the pvt data passed in the previous invoke to the `Prepare` function
core/ledger/pvtdatastorage/store.go:60
↓ 28 callers
Method
Contains
Contains returns true if the given <ns,coll,key> tuple is present in the batch
core/ledger/kvledger/txmgmt/privacyenabledstate/db.go:147
↓ 28 callers
Function
CreateCouchInstance
CreateCouchInstance creates a CouchDB instance
core/ledger/util/couchdb/couchdbutil.go:36
↓ 28 callers
Method
Evaluate
Evaluate takes a set of SignedData and evaluates whether this set of signatures satisfies the policy
common/policies/policy.go:116
↓ 28 callers
Method
ExecuteQuery
ExecuteQuery executes the given query and returns an iterator that contains results of type *VersionedKV.
core/ledger/kvledger/txmgmt/statedb/statedb.go:49
↓ 28 callers
Function
FromString
FromString takes a string representation of the policy, parses it and returns a SignaturePolicyEnvelope that implements that policy. The supported lan
common/cauthdsl/policyparser.go:244
↓ 28 callers
Method
GetBlock
()
protos/orderer/ab.pb.go:500
↓ 28 callers
Method
GetKey
GetKey returns the key this CSP associates to the Subject Key Identifier ski.
bccsp/bccsp.go:115
↓ 28 callers
Method
GetMSPIdentifier
GetMSPIdentifier returns the MSP Id for this instance
msp/msp.go:130
↓ 28 callers
Method
IsPending
IsPending returns true if consensus-type migration is pending on the underlying chain. The definition of "pending" differs between the system and stan
orderer/consensus/migration/migration.go:28
↓ 28 callers
Method
Launch
(ccci *ccprovider.ChaincodeContainerInfo)
core/chaincode/chaincode_support.go:35
↓ 28 callers
Function
NewConf
NewConf constructs new `Conf`. blockStorageDir is the top level folder under which `FsBlockStore` manages its data
common/ledger/blkstorage/fsblkstorage/config.go:37
↓ 28 callers
Method
Publish
(stats Stats)
common/metrics/statsd/goruntime/collector.go:85
↓ 28 callers
Method
SetCallCount
()
common/metrics/metricsfakes/gauge.go:120
↓ 28 callers
Function
getDefaultSigner
(msp MSP)
msp/idemixmsp_test.go:41
↓ 28 callers
Function
newTestBlockfileWrapper
(env *testEnv, ledgerid string)
common/ledger/blkstorage/fsblkstorage/pkg_test.go:81
↓ 28 callers
Method
thatMapsTo
(peers ...string)
gossip/privdata/pull_test.go:122
↓ 28 callers
Method
withPolicy
(collection string, btl uint64)
gossip/privdata/pull_test.go:75
↓ 27 callers
Method
GetConfig
()
protos/msp/msp_config.pb.go:66
↓ 27 callers
Method
GetIdentifier
GetIdentifier returns the provider identifier
msp/msp.go:75
↓ 27 callers
Method
GetPath
()
protos/peer/query.pb.go:128
↓ 27 callers
Method
InitializeQueryContext
(queryID string, iter commonledger.ResultsIterator)
core/chaincode/transaction_context.go:42
↓ 27 callers
Method
NewHistogram
NewHistogram creates a new instance of a Histogram.
common/metrics/provider.go:17
↓ 27 callers
Function
NewRuleSet
NewRuleSet creates a new RuleSet with the given ordered list of Rules
orderer/common/msgprocessor/filter.go:51
↓ 27 callers
Method
Next
Next returns the next key and value in the range and execute query iterator.
core/chaincode/shim/interfaces.go:365
↓ 27 callers
Method
PullBlock
PullBlock pulls the given block from some orderer node
orderer/common/cluster/replication.go:406
↓ 27 callers
Method
Read
(p []byte)
gossip/util/misc_test.go:57
↓ 27 callers
Method
Stop
Stop terminates state transfer object
gossip/state/state.go:37
↓ 27 callers
Function
makeConfigPair
(id, modificationPolicy string, lastModified uint64, data []byte)
common/configtx/validator_test.go:33
↓ 27 callers
Function
member
(orgName string)
common/policies/inquire/compare_test.go:177
← previous
next →
201–300 of 19,835, ranked by callers