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
↓ 65 callers
Method
SatisfiesPrincipal
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 callers
Method
Orderer
Orderer returns the information about the named Orderer.
integration/nwo/network.go:1096
↓ 63 callers
Method
Add
Add adds a GossipMessage to the Mediator
gossip/gossip/pull/pullstore.go:101
↓ 63 callers
Method
AddWrapper
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 callers
Method
Close
()
orderer/consensus/kafka/chain.go:91
↓ 60 callers
Method
Done
Done releases resources occupied by the QueryExecutor
core/cclifecycle/lifecycle.go:73
↓ 60 callers
Method
GetPubSimulationBytes
GetPubSimulationBytes returns the serialized bytes of public readwrite set
core/ledger/ledger_interface.go:320
↓ 60 callers
Method
New
()
core/handlers/validation/api/validation.go:37
↓ 59 callers
Method
Handle
(*pb.ChaincodeMessage, *TransactionContext)
core/chaincode/handler.go:238
↓ 59 callers
Method
Parse
(data []byte)
core/chaincode/persistence/package_provider.go:35
↓ 59 callers
Method
Sum
()
orderer/consensus/kafka/mock/metrics_histogram.go:523
↓ 58 callers
Method
Contains
(peer *testPeer)
discovery/test/integration_test.go:733
↓ 57 callers
Method
Hash
Hash hashes messages msg using options opts. If opts is nil, the default hash function will be used.
bccsp/bccsp.go:119
↓ 57 callers
Method
KeyImport
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 callers
Method
PublicKey
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 callers
Method
WithCallCount
()
orderer/consensus/etcdraft/chain_test.go:217
↓ 57 callers
Method
init
(t *testing.T, testLedgerID string, btlPolicy pvtdatapolicy.BTLPolicy)
core/ledger/kvledger/txmgmt/txmgr/lockbasedtxmgr/pkg_test.go:40
↓ 56 callers
Method
GetStateInfo
()
protos/discovery/protocol.pb.go:1214
↓ 56 callers
Method
ValidateNew
ValidateNew should return an error if a new set of configuration resources is incompatible with the current one
common/channelconfig/api.go:231
↓ 55 callers
Function
cleanup
(database string)
core/ledger/util/couchdb/couchdb_test.go:36
↓ 55 callers
Function
remotePeer
(port int)
gossip/comm/comm_test.go:942
↓ 54 callers
Method
Server
Server returns the grpc.Server for the GRPCServer instance
core/comm/server.go:180
↓ 54 callers
Method
Stat
(string)
core/chaincode/persistence/persistence.go:32
↓ 54 callers
Function
newPeer
(i int, env *gossip.Envelope, properties *gossip.Properties)
discovery/client/client_test.go:919
↓ 53 callers
Method
Close
Close closes the ChainPuller
orderer/common/cluster/replication.go:412
↓ 53 callers
Method
Flag
Flag returns validation code at specified transaction
core/ledger/util/txvalidationflags.go:43
↓ 53 callers
Method
Get
get returns all messages in the store
gossip/gossip/msgstore/msgs.go:91
↓ 53 callers
Method
ProcessTx
ProcessTx parses ttx to generate a RW set
token/transaction/tms.go:24
↓ 53 callers
Method
Symmetric
Symmetric returns true if this key is a symmetric key, false is this key is asymmetric
bccsp/bccsp.go:36
↓ 53 callers
Method
ToGossipMessage
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 callers
Method
Private
Private returns true if this key is a private key, false otherwise.
bccsp/bccsp.go:40
↓ 50 callers
Method
Address
Address returns the listen address for this GRPCServer instance
core/comm/server.go:170
↓ 50 callers
Method
ToArray
ToArray returns a slice with items at the point in time the method was invoked
gossip/util/misc.go:114
↓ 50 callers
Function
computeTestHashKVReads
(t *testing.T, kvReads []*kvrwset.KVRead)
core/ledger/kvledger/txmgmt/rwsetutil/query_results_helper_test.go:210
↓ 50 callers
Function
marshalOrPanic
marshalOrPanic serializes a protobuf message and panics if this operation fails
orderer/consensus/etcdraft/chain_test.go:3434
↓ 50 callers
Function
policyErr
(err error)
core/handlers/validation/builtin/v12/validation_logic.go:791
↓ 49 callers
Method
Validate
Validate checks whether the supplied identity is valid
msp/msp.go:90
↓ 48 callers
Method
CreateNextBlock
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 callers
Method
GetConnectionInfo
GetConnectionInfo returns information about the remote peer that sent the message
protos/gossip/extensions.go:332
↓ 48 callers
Method
Halt
Halt frees the resources which were allocated for this Chain.
orderer/consensus/consensus.go:68
↓ 48 callers
Method
PeerUserSession
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 callers
Function
createStateInfoMsg
(ledgerHeight int, pkiID common.PKIidType, channel common.ChainID)
gossip/gossip/channel/channel_test.go:1951
↓ 48 callers
Method
exec
(f func(c *chain), ids ...uint64)
orderer/consensus/etcdraft/chain_test.go:3854
↓ 47 callers
Method
Configure
(channel string, newNodes []cluster.RemoteNode)
orderer/consensus/etcdraft/chain.go:68
↓ 47 callers
Method
Do
(v VM)
core/container/controller.go:110
↓ 47 callers
Method
Err
()
core/chaincode/handler_registry.go:41
↓ 46 callers
Method
Verify
Verify verifies signature against key k and digest The opts argument should be appropriate for the algorithm used.
bccsp/sw/internals.go:81
↓ 46 callers
Function
newPeer
(i int)
discovery/endorsement/endorsement_test.go:624
↓ 45 callers
Method
Configure
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 callers
Method
MockInit
Initialise this chaincode, also starts and ends a transaction.
core/chaincode/shim/mockstub.go:127
↓ 44 callers
Method
Close
Close releases all resources acquired by the factory
common/ledger/blockledger/ledger.go:24
↓ 44 callers
Method
DeserializeIdentity
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 callers
Method
NewGauge
NewGauge creates a new instance of a Gauge.
common/metrics/provider.go:15
↓ 44 callers
Method
NewSystemChaincodeProvider
()
common/mocks/scc/sccprovider.go:36
↓ 44 callers
Method
OrdererAddress
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 callers
Method
addExpectProbeAssert
()
orderer/common/cluster/deliver_test.go:248
↓ 43 callers
Function
EcpFromProto
EcpFromProto converts a proto struct *ECP into an *amcl.ECP
idemix/util.go:109
↓ 43 callers
Method
NewCounter
NewCounter creates a new instance of a Counter.
common/metrics/provider.go:13
↓ 43 callers
Method
SetCallCount
()
orderer/consensus/kafka/mock/metrics_gauge.go:120
↓ 43 callers
Method
Setup
Setup the MSP instance according to configuration information
msp/msp.go:66
↓ 43 callers
Function
SignedBy
SignedBy creates a SignaturePolicy requiring a given signer's signature
common/cauthdsl/cauthdsl_builder.go:71
↓ 43 callers
Method
stop
()
orderer/common/cluster/comm_test.go:193
↓ 42 callers
Method
ID
ID returns the ID of the peer
gossip/election/election.go:116
↓ 42 callers
Method
Provider
(t *testing.T)
bccsp/sw/impl_test.go:58
↓ 42 callers
Method
Remove
Remove removes a GossipMessage from the Mediator with a matching digest, if such a message exits
gossip/gossip/pull/pullstore.go:105
↓ 42 callers
Method
SetFlag
SetFlag assigns validation code to specified transaction
core/ledger/util/txvalidationflags.go:38
↓ 42 callers
Function
invoke
Invoke a chaincode.
core/chaincode/exectransaction_test.go:479
↓ 41 callers
Method
ActivateSpec
(spec string)
common/flogging/httpadmin/spec.go:20
↓ 41 callers
Method
FromBytes
FromBytes populates the instance from the supplied byte array
core/chaincode/shim/ext/entities/message.go:75
↓ 41 callers
Method
GetState
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 callers
Method
discoveryImpl
()
gossip/discovery/discovery_test.go:237
↓ 41 callers
Function
policyErr
(err error)
core/handlers/validation/builtin/v13/validation_logic.go:194
↓ 40 callers
Method
Create
(txParams *ccprovider.TransactionParams)
core/chaincode/handler.go:69
↓ 40 callers
Method
MockTransactionEnd
End a mocked transaction, clearing the UUID.
core/chaincode/shim/mockstub.go:114
↓ 40 callers
Method
MockTransactionStart
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 callers
Method
Next
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 callers
Method
Close
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 callers
Method
Close
Close closes the ledger
common/ledger/ledger_interface.go:35
↓ 39 callers
Method
Command
Command adds a new top-level command to the CLI
discovery/cmd/cmd.go:54
↓ 39 callers
Method
Serialize
Serialize converts an identity to bytes
msp/msp.go:160
↓ 39 callers
Function
newMockConsumerMessage
(wrappedMessage *ab.KafkaMessage)
orderer/consensus/kafka/consenter_test.go:170
↓ 38 callers
Method
AddToWriteSet
AddToWriteSet adds a key and value to the write-set
core/ledger/kvledger/txmgmt/rwsetutil/rwset_builder.go:83
↓ 38 callers
Function
NewComparablePrincipal
NewComparablePrincipal creates a ComparablePrincipal out of the given MSPPrincipal. Returns nil if a failure occurs.
common/policies/inquire/compare.go:28
↓ 38 callers
Method
SetArgsForCall
(i int)
common/metrics/metricsfakes/gauge.go:126
↓ 38 callers
Method
Step
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 callers
Method
ApplyUpdates
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 callers
Method
Observe
(value float64)
common/metrics/provider.go:118
↓ 37 callers
Method
SetArgsForCall
(i int)
orderer/consensus/kafka/mock/metrics_gauge.go:126
↓ 37 callers
Method
create
()
gossip/privdata/util.go:125
↓ 37 callers
Function
peerRole
(pkiID string)
discovery/endorsement/endorsement_test.go:644
↓ 36 callers
Method
CommitWithPvtData
CommitWithPvtData commits the block and the corresponding pvt data in an atomic operation
core/ledger/ledger_interface.go:81
↓ 36 callers
Method
PutState
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 callers
Method
Stop
Stop stops the gossip component
gossip/gossip/gossip.go:85
↓ 36 callers
Function
newTestNode
(t *testing.T)
orderer/common/cluster/comm_test.go:284
↓ 36 callers
Method
recordInvocation
(key string, args []interface{})
core/scc/lscc/mock/chaincode_stub.go:2788
↓ 36 callers
Method
recordInvocation
(key string, args []interface{})
core/chaincode/lifecycle/mock/chaincode_stub.go:2788
↓ 35 callers
Function
DeepMarshalJSON
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 callers
Method
Delete
(chainID, txID string)
core/chaincode/handler.go:71
↓ 35 callers
Method
Send
(*pb.ChaincodeMessage)
core/chaincode/shim/handler.go:29
↓ 35 callers
Method
Start
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
← previous
next →
101–200 of 19,835, ranked by callers