MCPcopy Create free account

hub / github.com/dddengyunjie/fabric / functions

Functions19,835 in github.com/dddengyunjie/fabric

↓ 65 callersMethodSatisfiesPrincipal
SatisfiesPrincipal checks whether the identity matches the description supplied in MSPPrincipal. The check may involve a byte-by-byte comparison (if t
msp/msp.go:96
↓ 64 callersMethodOrderer
Orderer returns the information about the named Orderer.
integration/nwo/network.go:1096
↓ 63 callersMethodAdd
Add adds a GossipMessage to the Mediator
gossip/gossip/pull/pullstore.go:101
↓ 63 callersMethodAddWrapper
AddWrapper binds the passed type to the passed wrapper. Notice that that wrapper must be an instance of one of the following interfaces: KeyGenerator,
bccsp/sw/impl.go:312
↓ 61 callersMethodClose
()
orderer/consensus/kafka/chain.go:91
↓ 60 callersMethodDone
Done releases resources occupied by the QueryExecutor
core/cclifecycle/lifecycle.go:73
↓ 60 callersMethodGetPubSimulationBytes
GetPubSimulationBytes returns the serialized bytes of public readwrite set
core/ledger/ledger_interface.go:320
↓ 60 callersMethodNew
()
core/handlers/validation/api/validation.go:37
↓ 59 callersMethodHandle
(*pb.ChaincodeMessage, *TransactionContext)
core/chaincode/handler.go:238
↓ 59 callersMethodParse
(data []byte)
core/chaincode/persistence/package_provider.go:35
↓ 59 callersMethodSum
()
orderer/consensus/kafka/mock/metrics_histogram.go:523
↓ 58 callersMethodContains
(peer *testPeer)
discovery/test/integration_test.go:733
↓ 57 callersMethodHash
Hash hashes messages msg using options opts. If opts is nil, the default hash function will be used.
bccsp/bccsp.go:119
↓ 57 callersMethodKeyImport
KeyImport imports a key from its raw representation using opts. The opts argument should be appropriate for the primitive used.
bccsp/sw/internals.go:45
↓ 57 callersMethodPublicKey
PublicKey returns the corresponding public key part of an asymmetric public/private key pair. This method returns an error in symmetric key schemes.
bccsp/bccsp.go:44
↓ 57 callersMethodWithCallCount
()
orderer/consensus/etcdraft/chain_test.go:217
↓ 57 callersMethodinit
(t *testing.T, testLedgerID string, btlPolicy pvtdatapolicy.BTLPolicy)
core/ledger/kvledger/txmgmt/txmgr/lockbasedtxmgr/pkg_test.go:40
↓ 56 callersMethodGetStateInfo
()
protos/discovery/protocol.pb.go:1214
↓ 56 callersMethodValidateNew
ValidateNew should return an error if a new set of configuration resources is incompatible with the current one
common/channelconfig/api.go:231
↓ 55 callersFunctioncleanup
(database string)
core/ledger/util/couchdb/couchdb_test.go:36
↓ 55 callersFunctionremotePeer
(port int)
gossip/comm/comm_test.go:942
↓ 54 callersMethodServer
Server returns the grpc.Server for the GRPCServer instance
core/comm/server.go:180
↓ 54 callersMethodStat
(string)
core/chaincode/persistence/persistence.go:32
↓ 54 callersFunctionnewPeer
(i int, env *gossip.Envelope, properties *gossip.Properties)
discovery/client/client_test.go:919
↓ 53 callersMethodClose
Close closes the ChainPuller
orderer/common/cluster/replication.go:412
↓ 53 callersMethodFlag
Flag returns validation code at specified transaction
core/ledger/util/txvalidationflags.go:43
↓ 53 callersMethodGet
get returns all messages in the store
gossip/gossip/msgstore/msgs.go:91
↓ 53 callersMethodProcessTx
ProcessTx parses ttx to generate a RW set
token/transaction/tms.go:24
↓ 53 callersMethodSymmetric
Symmetric returns true if this key is a symmetric key, false is this key is asymmetric
bccsp/bccsp.go:36
↓ 53 callersMethodToGossipMessage
ToGossipMessage un-marshals a given envelope and creates a SignedGossipMessage out of it. Returns an error if un-marshaling fails.
protos/gossip/extensions.go:442
↓ 52 callersMethodPrivate
Private returns true if this key is a private key, false otherwise.
bccsp/bccsp.go:40
↓ 50 callersMethodAddress
Address returns the listen address for this GRPCServer instance
core/comm/server.go:170
↓ 50 callersMethodToArray
ToArray returns a slice with items at the point in time the method was invoked
gossip/util/misc.go:114
↓ 50 callersFunctioncomputeTestHashKVReads
(t *testing.T, kvReads []*kvrwset.KVRead)
core/ledger/kvledger/txmgmt/rwsetutil/query_results_helper_test.go:210
↓ 50 callersFunctionmarshalOrPanic
marshalOrPanic serializes a protobuf message and panics if this operation fails
orderer/consensus/etcdraft/chain_test.go:3434
↓ 50 callersFunctionpolicyErr
(err error)
core/handlers/validation/builtin/v12/validation_logic.go:791
↓ 49 callersMethodValidate
Validate checks whether the supplied identity is valid
msp/msp.go:90
↓ 48 callersMethodCreateNextBlock
CreateNextBlock takes a list of messages and creates the next block based on the block with highest block number committed to the ledger Note that eit
orderer/consensus/consensus.go:93
↓ 48 callersMethodGetConnectionInfo
GetConnectionInfo returns information about the remote peer that sent the message
protos/gossip/extensions.go:332
↓ 48 callersMethodHalt
Halt frees the resources which were allocated for this Chain.
orderer/consensus/consensus.go:68
↓ 48 callersMethodPeerUserSession
PeerUserSession starts a gexec.Session as a peer user for the provided peer command. This is intended to be used by short running peer cli commands th
integration/nwo/network.go:1051
↓ 48 callersFunctioncreateStateInfoMsg
(ledgerHeight int, pkiID common.PKIidType, channel common.ChainID)
gossip/gossip/channel/channel_test.go:1951
↓ 48 callersMethodexec
(f func(c *chain), ids ...uint64)
orderer/consensus/etcdraft/chain_test.go:3854
↓ 47 callersMethodConfigure
(channel string, newNodes []cluster.RemoteNode)
orderer/consensus/etcdraft/chain.go:68
↓ 47 callersMethodDo
(v VM)
core/container/controller.go:110
↓ 47 callersMethodErr
()
core/chaincode/handler_registry.go:41
↓ 46 callersMethodVerify
Verify verifies signature against key k and digest The opts argument should be appropriate for the algorithm used.
bccsp/sw/internals.go:81
↓ 46 callersFunctionnewPeer
(i int)
discovery/endorsement/endorsement_test.go:624
↓ 45 callersMethodConfigure
Configure configures the communication to connect to all given members, and disconnect from any members not among the given members.
orderer/common/cluster/comm.go:84
↓ 45 callersMethodMockInit
Initialise this chaincode, also starts and ends a transaction.
core/chaincode/shim/mockstub.go:127
↓ 44 callersMethodClose
Close releases all resources acquired by the factory
common/ledger/blockledger/ledger.go:24
↓ 44 callersMethodDeserializeIdentity
DeserializeIdentity deserializes an identity. Deserialization will fail if the identity is associated to an msp that is different from this one that i
msp/msp.go:21
↓ 44 callersMethodNewGauge
NewGauge creates a new instance of a Gauge.
common/metrics/provider.go:15
↓ 44 callersMethodNewSystemChaincodeProvider
()
common/mocks/scc/sccprovider.go:36
↓ 44 callersMethodOrdererAddress
OrdererAddress returns the address (host and port) exposed by the Orderer for the named port. Command line tools should use the returned address when
integration/nwo/network.go:1289
↓ 44 callersMethodaddExpectProbeAssert
()
orderer/common/cluster/deliver_test.go:248
↓ 43 callersFunctionEcpFromProto
EcpFromProto converts a proto struct *ECP into an *amcl.ECP
idemix/util.go:109
↓ 43 callersMethodNewCounter
NewCounter creates a new instance of a Counter.
common/metrics/provider.go:13
↓ 43 callersMethodSetCallCount
()
orderer/consensus/kafka/mock/metrics_gauge.go:120
↓ 43 callersMethodSetup
Setup the MSP instance according to configuration information
msp/msp.go:66
↓ 43 callersFunctionSignedBy
SignedBy creates a SignaturePolicy requiring a given signer's signature
common/cauthdsl/cauthdsl_builder.go:71
↓ 43 callersMethodstop
()
orderer/common/cluster/comm_test.go:193
↓ 42 callersMethodID
ID returns the ID of the peer
gossip/election/election.go:116
↓ 42 callersMethodProvider
(t *testing.T)
bccsp/sw/impl_test.go:58
↓ 42 callersMethodRemove
Remove removes a GossipMessage from the Mediator with a matching digest, if such a message exits
gossip/gossip/pull/pullstore.go:105
↓ 42 callersMethodSetFlag
SetFlag assigns validation code to specified transaction
core/ledger/util/txvalidationflags.go:38
↓ 42 callersFunctioninvoke
Invoke a chaincode.
core/chaincode/exectransaction_test.go:479
↓ 41 callersMethodActivateSpec
(spec string)
common/flogging/httpadmin/spec.go:20
↓ 41 callersMethodFromBytes
FromBytes populates the instance from the supplied byte array
core/chaincode/shim/ext/entities/message.go:75
↓ 41 callersMethodGetState
GetState gets the value for given namespace and key. For a chaincode, the namespace corresponds to the chaincodeId
core/ledger/kvledger/txmgmt/statedb/statedb.go:32
↓ 41 callersMethoddiscoveryImpl
()
gossip/discovery/discovery_test.go:237
↓ 41 callersFunctionpolicyErr
(err error)
core/handlers/validation/builtin/v13/validation_logic.go:194
↓ 40 callersMethodCreate
(txParams *ccprovider.TransactionParams)
core/chaincode/handler.go:69
↓ 40 callersMethodMockTransactionEnd
End a mocked transaction, clearing the UUID.
core/chaincode/shim/mockstub.go:114
↓ 40 callersMethodMockTransactionStart
Used to indicate to a chaincode that it is part of a transaction. This is important when chaincodes invoke each other. MockStub doesn't support concur
core/chaincode/shim/mockstub.go:107
↓ 40 callersMethodNext
Next blocks until there is a new block available, or returns an error if the next block is no longer retrievable
common/ledger/blockledger/ledger.go:31
↓ 39 callersMethodClose
Close closes the iterator. This should be called when done reading from the iterator to free up resources.
core/chaincode/shim/interfaces.go:355
↓ 39 callersMethodClose
Close closes the ledger
common/ledger/ledger_interface.go:35
↓ 39 callersMethodCommand
Command adds a new top-level command to the CLI
discovery/cmd/cmd.go:54
↓ 39 callersMethodSerialize
Serialize converts an identity to bytes
msp/msp.go:160
↓ 39 callersFunctionnewMockConsumerMessage
(wrappedMessage *ab.KafkaMessage)
orderer/consensus/kafka/consenter_test.go:170
↓ 38 callersMethodAddToWriteSet
AddToWriteSet adds a key and value to the write-set
core/ledger/kvledger/txmgmt/rwsetutil/rwset_builder.go:83
↓ 38 callersFunctionNewComparablePrincipal
NewComparablePrincipal creates a ComparablePrincipal out of the given MSPPrincipal. Returns nil if a failure occurs.
common/policies/inquire/compare.go:28
↓ 38 callersMethodSetArgsForCall
(i int)
common/metrics/metricsfakes/gauge.go:126
↓ 38 callersMethodStep
Step evaluates the migration state machine of a particular chain. It returns whether the block should be committed to the ledger or dropped (commitBlo
orderer/consensus/migration/migration.go:41
↓ 37 callersMethodApplyUpdates
ApplyUpdates applies the batch to the underlying db. height is the height of the highest transaction in the Batch that a state db implementation is ex
core/ledger/kvledger/txmgmt/statedb/statedb.go:57
↓ 37 callersMethodObserve
(value float64)
common/metrics/provider.go:118
↓ 37 callersMethodSetArgsForCall
(i int)
orderer/consensus/kafka/mock/metrics_gauge.go:126
↓ 37 callersMethodcreate
()
gossip/privdata/util.go:125
↓ 37 callersFunctionpeerRole
(pkiID string)
discovery/endorsement/endorsement_test.go:644
↓ 36 callersMethodCommitWithPvtData
CommitWithPvtData commits the block and the corresponding pvt data in an atomic operation
core/ledger/ledger_interface.go:81
↓ 36 callersMethodPutState
PutState puts the specified `key` and `value` into the transaction's writeset as a data-write proposal. PutState doesn't effect the ledger until the t
core/chaincode/shim/interfaces.go:92
↓ 36 callersMethodStop
Stop stops the gossip component
gossip/gossip/gossip.go:85
↓ 36 callersFunctionnewTestNode
(t *testing.T)
orderer/common/cluster/comm_test.go:284
↓ 36 callersMethodrecordInvocation
(key string, args []interface{})
core/scc/lscc/mock/chaincode_stub.go:2788
↓ 36 callersMethodrecordInvocation
(key string, args []interface{})
core/chaincode/lifecycle/mock/chaincode_stub.go:2788
↓ 35 callersFunctionDeepMarshalJSON
DeepMarshalJSON marshals msg to w as JSON, but instead of marshaling bytes fields which contain nested marshaled messages as base64 (like the standard
common/tools/protolator/json.go:411
↓ 35 callersMethodDelete
(chainID, txID string)
core/chaincode/handler.go:71
↓ 35 callersMethodSend
(*pb.ChaincodeMessage)
core/chaincode/shim/handler.go:29
↓ 35 callersMethodStart
Start should allocate whatever resources are needed for staying up to date with the chain. Typically, this involves creating a thread which reads from
orderer/consensus/consensus.go:65
← previousnext →101–200 of 19,835, ranked by callers