MCPcopy Create free account

hub / github.com/MetaMask/torus-node / functions

Functions1,344 in github.com/MetaMask/torus-node

↓ 337 callersMethodError
(msg string, keyvals ...interface{})
tmlog/tmlog.go:56
↓ 221 callersFunctionIncrementCounter
IncrementCounter ... A public method which increments the counter for the specified counter name
telemetry/wrapper.go:104
↓ 211 callersMethodDebug
(msg string, keyvals ...interface{})
tmlog/tmlog.go:50
↓ 182 callersFunctioncastOrUnmarshal
castOrUnmarshal allows us to pass in any interface and it will either cast dataInter to v or unmarshal bytes to v it does so by detecting if dataInter
dkgnode/utils.go:160
↓ 90 callersMethodAdd
(bftTxBytes []byte)
msgqueue/msg_queue.go:28
↓ 90 callersFunctionServiceMethod
(eventBus eventbus.Bus, caller string, service string, method string, data ...interface{})
dkgnode/services.go:185
↓ 87 callersMethodEthereumMethods
()
dkgnode/service_library.go:36
↓ 68 callersMethodGet
Get returns nil iff key doesn't exist. A nil key is interpreted as an empty byteslice. CONTRACT: key, value readonly []byte
db/types.go:9
↓ 61 callersMethodLock
Uncomment the code below for debugging deadlocks
idmutex/idmutex.go:23
↓ 61 callersMethodUnlock
()
idmutex/idmutex.go:32
↓ 59 callersFunctionNewServiceLibrary
(eventBus eventbus.Bus, owner string)
dkgnode/service_library.go:54
↓ 56 callersFunctionRandomBigInt
()
pvss/pvss.go:25
↓ 53 callersMethodToNodeDetailsID
()
pss/types.go:425
↓ 49 callersFunctionstringify
(i interface{})
dkgnode/utils.go:45
↓ 48 callersMethodSet
Set sets the key. A nil key is interpreted as an empty byteslice. CONTRACT: key, value readonly []byte
db/types.go:19
↓ 44 callersMethodID
()
dkgnode/service_library.go:800
↓ 41 callersMethodInfo
(req types.RequestInfo)
dkgnode/abci_app.go:322
↓ 41 callersMethodToNodeDetailsID
()
keygennofsm/types.go:25
↓ 37 callersFunctionLagrangeScalar
(shares []pcmn.PrimaryShare, target int)
pvss/pvss.go:446
↓ 37 callersMethodString
()
dkgnode/service.go:27
↓ 36 callersFunctionpolyEval
Eval computes the private share v = p(i).
pvss/pvss.go:36
↓ 28 callersMethodP2PMethods
()
dkgnode/service_library.go:40
↓ 27 callersMethodDatabaseMethods
()
dkgnode/service_library.go:44
↓ 26 callersFunctionPolyEval
Exported function to evaluate polys
pvss/pvss.go:31
↓ 21 callersMethodCall
(method string, args ...interface{})
dkgnode/service.go:14
↓ 21 callersMethodPublish
(topic string, data interface{})
eventbus/event_bus.go:23
↓ 19 callersFunctionNew
New returns new EventBus with empty handlers.
eventbus/event_bus.go:58
↓ 17 callersMethodGetSharingID
(epochOld, nOld, kOld, tOld, epochNew, nNew, kNew, tNew int)
pss/types.go:260
↓ 17 callersFunctionLagrangeInterpolatePolynomial
func lagrangeNormal(shares []pcmn.PrimaryShare) *big.Int { secret := new(big.Int) for _, share := range shares { //when x =0 delta := new(big.In
pvss/pvss.go:370
↓ 16 callersFunctionGenerateRandomBivariatePolynomial
GenerateRandomBivariatePolynomial - create a bivariate polynomial which is defined by coeffs of all possible combinations of powers of x and y, such t
pvss/avss.go:22
↓ 16 callersMethodGetS
(key string)
config/config.go:123
↓ 16 callersFunctionisFlagPassed
Source: https://stackoverflow.com/a/54747682
config/config.go:275
↓ 15 callersFunctionEvaluateBivarPolyAtX
EvaluateBivarPolyAtX - evaluate bivar poly at given x
pvss/avss.go:59
↓ 15 callersMethodGetEpochInfo
(epoch int, skipCache bool)
dkgnode/service_library.go:129
↓ 15 callersMethodToNodeDetailsID
()
mapping/types.go:163
↓ 15 callersFunctionrejectResponse
(w http.ResponseWriter, errLog error)
dkgnode/middleware.go:294
↓ 14 callersMethodClose
Closes the connection.
db/types.go:45
↓ 14 callersFunctionCreatePSSMessage
(r PSSMessageRaw)
pss/types.go:366
↓ 14 callersMethodGetCurrentEpoch
()
dkgnode/service_library.go:126
↓ 13 callersFunctionCreateKeygenMessage
(r KeygenMessageRaw)
keygennofsm/types.go:387
↓ 13 callersMethodGetSelfPublicKey
()
dkgnode/service_library.go:132
↓ 13 callersMethodSubscribe
(topic string, fn func(interface{}))
eventbus/event_bus.go:13
↓ 12 callersMethodGetEventBus
()
dkgnode/service_library.go:63
↓ 12 callersFunctionNewBaseService
NewBaseService returns a base service that wraps an implementation of ServiceCore and handles starting and stopping.
dkgnode/service.go:74
↓ 12 callersFunctionpad
(b []byte)
pvss/nizkpk.go:14
↓ 11 callersMethodGetSelfIndex
()
dkgnode/service_library.go:130
↓ 11 callersMethodMappingMethods
()
dkgnode/service_library.go:43
↓ 11 callersMethodSend
(NodeDetails, PSSMessage)
pss/types.go:467
↓ 11 callersMethodToPSSID
()
pss/types.go:402
↓ 11 callersMethodTransact
Transact invokes the (paid) contract method with params as input values.
solidity/goContracts/NodeList.go:1206
↓ 11 callersMethodUnsubscribe
(topic string, handler func(interface{}))
eventbus/event_bus.go:17
↓ 11 callersFunctiongenerateRandomZeroPolynomial
(secret big.Int, threshold int)
pvss/pvss.go:106
↓ 10 callersFunctionCreateMappingMessage
(r MappingMessageRaw)
mapping/types.go:84
↓ 10 callersMethodName
()
dkgnode/service.go:11
↓ 10 callersFunctioncreateRandomNodes
(number int)
pvss/pvss_test.go:27
↓ 9 callersMethodErr
()
tcontext/tcontext.go:31
↓ 9 callersFunctionEvaluateBivarPolyAtY
EvaluateBivarPolyAtY - evaluate bivar poly at given y
pvss/avss.go:79
↓ 9 callersMethodFromKeygenID
(keygenID KeygenID)
keygennofsm/types.go:88
↓ 9 callersMethodToNodeDetailsID
()
dkgnode/abci_app.go:552
↓ 9 callersMethodValue
Value returns the value of the cursor. If Valid returns false, this method will panic. CONTRACT: value readonly []byte
db/types.go:116
↓ 8 callersMethodDelete
Delete deletes the key. A nil key is interpreted as an empty byteslice. CONTRACT: key readonly []byte
db/types.go:25
↓ 8 callersMethodFromPSSID
(pssID PSSID)
pss/types.go:405
↓ 8 callersMethodGetB
(key string)
config/config.go:147
↓ 8 callersFunctionGetPointArrayFromMap
(m map[NodeDetailsID]common.Point)
pss/types.go:352
↓ 8 callersFunctionGetPointArrayFromMap
(m map[NodeDetailsID]common.Point)
keygennofsm/types.go:495
↓ 8 callersMethodPSSInstanceExists
(pssProtocolPrefix PSSProtocolPrefix)
dkgnode/pss.go:268
↓ 8 callersMethodSend
(NodeDetails, KeygenMessage)
keygennofsm/types.go:109
↓ 8 callersMethodTendermintMethods
()
dkgnode/service_library.go:38
↓ 7 callersMethodABCIMethods
()
dkgnode/service_library.go:37
↓ 7 callersMethodAwaitCompleteNodeList
(epoch int)
dkgnode/service_library.go:137
↓ 7 callersMethodCacheMethods
()
dkgnode/service_library.go:46
↓ 7 callersMethodDone
()
tcontext/tcontext.go:27
↓ 7 callersFunctionECDSAVerify
func ECDSAValidateRaw(ecdsaPubBytes []byte, messageHash []byte, signature []byte) bool { return ethCrypto.VerifySignature(ecdsaPubBytes, messageHash,
pvss/pvss.go:180
↓ 7 callersFunctionGetCommit
Commit creates a public commitment polynomial
pvss/pvss.go:66
↓ 7 callersFunctionGetCommitmentMatrix
GetCommitmentMatrix - get a pedersen commitment matrix from two bivar polys
pvss/avss.go:40
↓ 7 callersMethodGetSelfPrivateKey
()
dkgnode/service_library.go:131
↓ 7 callersMethodHasCallback
(topic string)
eventbus/event_bus.go:30
↓ 7 callersMethodgetMappingID
()
mapping/mapping.go:247
↓ 7 callersFunctiongetType
(myvar interface{})
dkgnode/bft_tx.go:109
↓ 7 callersFunctionnonNilBytes
We defensively turn nil keys or values into []byte{} for most operations.
db/types.go:124
↓ 6 callersFunctionAVSSVerifyPoint
AVSSVerifyPoint - verify-point as described in Cachin et al 2002
pvss/avss.go:152
↓ 6 callersMethodBroadcast
(tx interface{})
dkgnode/service_library.go:618
↓ 6 callersFunctionECDSASignBytes
(b []byte, privKey *big.Int)
pvss/pvss.go:153
↓ 6 callersMethodGetNodeDetailsByAddress
(address ethCommon.Address)
dkgnode/service_library.go:139
↓ 6 callersFunctionLagrangeScalarCP
(pts []common.Point, target int)
pvss/pvss.go:435
↓ 6 callersMethodRegister
(metrics ...Metric)
telemetry/prometheus.go:21
↓ 6 callersMethodSetStreamHandler
(protoName string, handler func(StreamMessage))
dkgnode/service_library.go:801
↓ 6 callersMethodSubscribeAsync
(topic string, fn func(interface{}), transactional bool)
eventbus/event_bus.go:14
↓ 6 callersMethodToBytes
()
keygennofsm/types.go:139
↓ 5 callersFunctionCreateAndRegister
CreateAndRegister Creates a metric and registers it
telemetry/wrapper.go:31
↓ 5 callersMethodGetId
()
dkgnode/p2p.go:98
↓ 5 callersMethodGetNodePubKey
()
dkgnode/p2p.go:40
↓ 5 callersMethodKey
Key returns the key of the cursor. If Valid returns false, this method will panic. CONTRACT: key readonly []byte
db/types.go:111
↓ 5 callersFunctionLagrangeCurvePts
LagrangeCurvePts finds the ^0 coefficient for points given in points an indexes given
pvss/pvss.go:483
↓ 5 callersMethodNewP2PMessage
(messageId string, gossip bool, payload []byte, msgType string)
dkgnode/service_library.go:805
↓ 5 callersMethodPSSMethods
()
dkgnode/service_library.go:42
↓ 5 callersMethodProcessBroadcastMessage
ProcessBroadcastMessage is called when the node receives a message via broadcast (eg. Tendermint)
pss/keygen_pss.go:780
↓ 5 callersMethodProcessMessage
ProcessMessage is called when the transport for the node receives a message via direct send. It works similar to a router, processing different messag
pss/keygen_pss.go:38
↓ 5 callersMethodReceiveBroadcast
(PSSMessage)
pss/types.go:470
↓ 5 callersMethodSendP2PMessage
(id peer.ID, p protocol.ID, msg P2PMessage)
dkgnode/service_library.go:807
next →1–100 of 1,344, ranked by callers