Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MetaMask/torus-node
/ functions
Functions
1,344 in github.com/MetaMask/torus-node
⨍
Functions
1,344
◇
Types & classes
457
↓ 337 callers
Method
Error
(msg string, keyvals ...interface{})
tmlog/tmlog.go:56
↓ 221 callers
Function
IncrementCounter
IncrementCounter ... A public method which increments the counter for the specified counter name
telemetry/wrapper.go:104
↓ 211 callers
Method
Debug
(msg string, keyvals ...interface{})
tmlog/tmlog.go:50
↓ 182 callers
Function
castOrUnmarshal
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 callers
Method
Add
(bftTxBytes []byte)
msgqueue/msg_queue.go:28
↓ 90 callers
Function
ServiceMethod
(eventBus eventbus.Bus, caller string, service string, method string, data ...interface{})
dkgnode/services.go:185
↓ 87 callers
Method
EthereumMethods
()
dkgnode/service_library.go:36
↓ 68 callers
Method
Get
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 callers
Method
Lock
Uncomment the code below for debugging deadlocks
idmutex/idmutex.go:23
↓ 61 callers
Method
Unlock
()
idmutex/idmutex.go:32
↓ 59 callers
Function
NewServiceLibrary
(eventBus eventbus.Bus, owner string)
dkgnode/service_library.go:54
↓ 56 callers
Function
RandomBigInt
()
pvss/pvss.go:25
↓ 53 callers
Method
ToNodeDetailsID
()
pss/types.go:425
↓ 49 callers
Function
stringify
(i interface{})
dkgnode/utils.go:45
↓ 48 callers
Method
Set
Set sets the key. A nil key is interpreted as an empty byteslice. CONTRACT: key, value readonly []byte
db/types.go:19
↓ 44 callers
Method
ID
()
dkgnode/service_library.go:800
↓ 41 callers
Method
Info
(req types.RequestInfo)
dkgnode/abci_app.go:322
↓ 41 callers
Method
ToNodeDetailsID
()
keygennofsm/types.go:25
↓ 37 callers
Function
LagrangeScalar
(shares []pcmn.PrimaryShare, target int)
pvss/pvss.go:446
↓ 37 callers
Method
String
()
dkgnode/service.go:27
↓ 36 callers
Function
polyEval
Eval computes the private share v = p(i).
pvss/pvss.go:36
↓ 28 callers
Method
P2PMethods
()
dkgnode/service_library.go:40
↓ 27 callers
Method
DatabaseMethods
()
dkgnode/service_library.go:44
↓ 26 callers
Function
PolyEval
Exported function to evaluate polys
pvss/pvss.go:31
↓ 21 callers
Method
Call
(method string, args ...interface{})
dkgnode/service.go:14
↓ 21 callers
Method
Publish
(topic string, data interface{})
eventbus/event_bus.go:23
↓ 19 callers
Function
New
New returns new EventBus with empty handlers.
eventbus/event_bus.go:58
↓ 17 callers
Method
GetSharingID
(epochOld, nOld, kOld, tOld, epochNew, nNew, kNew, tNew int)
pss/types.go:260
↓ 17 callers
Function
LagrangeInterpolatePolynomial
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 callers
Function
GenerateRandomBivariatePolynomial
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 callers
Method
GetS
(key string)
config/config.go:123
↓ 16 callers
Function
isFlagPassed
Source: https://stackoverflow.com/a/54747682
config/config.go:275
↓ 15 callers
Function
EvaluateBivarPolyAtX
EvaluateBivarPolyAtX - evaluate bivar poly at given x
pvss/avss.go:59
↓ 15 callers
Method
GetEpochInfo
(epoch int, skipCache bool)
dkgnode/service_library.go:129
↓ 15 callers
Method
ToNodeDetailsID
()
mapping/types.go:163
↓ 15 callers
Function
rejectResponse
(w http.ResponseWriter, errLog error)
dkgnode/middleware.go:294
↓ 14 callers
Method
Close
Closes the connection.
db/types.go:45
↓ 14 callers
Function
CreatePSSMessage
(r PSSMessageRaw)
pss/types.go:366
↓ 14 callers
Method
GetCurrentEpoch
()
dkgnode/service_library.go:126
↓ 13 callers
Function
CreateKeygenMessage
(r KeygenMessageRaw)
keygennofsm/types.go:387
↓ 13 callers
Method
GetSelfPublicKey
()
dkgnode/service_library.go:132
↓ 13 callers
Method
Subscribe
(topic string, fn func(interface{}))
eventbus/event_bus.go:13
↓ 12 callers
Method
GetEventBus
()
dkgnode/service_library.go:63
↓ 12 callers
Function
NewBaseService
NewBaseService returns a base service that wraps an implementation of ServiceCore and handles starting and stopping.
dkgnode/service.go:74
↓ 12 callers
Function
pad
(b []byte)
pvss/nizkpk.go:14
↓ 11 callers
Method
GetSelfIndex
()
dkgnode/service_library.go:130
↓ 11 callers
Method
MappingMethods
()
dkgnode/service_library.go:43
↓ 11 callers
Method
Send
(NodeDetails, PSSMessage)
pss/types.go:467
↓ 11 callers
Method
ToPSSID
()
pss/types.go:402
↓ 11 callers
Method
Transact
Transact invokes the (paid) contract method with params as input values.
solidity/goContracts/NodeList.go:1206
↓ 11 callers
Method
Unsubscribe
(topic string, handler func(interface{}))
eventbus/event_bus.go:17
↓ 11 callers
Function
generateRandomZeroPolynomial
(secret big.Int, threshold int)
pvss/pvss.go:106
↓ 10 callers
Function
CreateMappingMessage
(r MappingMessageRaw)
mapping/types.go:84
↓ 10 callers
Method
Name
()
dkgnode/service.go:11
↓ 10 callers
Function
createRandomNodes
(number int)
pvss/pvss_test.go:27
↓ 9 callers
Method
Err
()
tcontext/tcontext.go:31
↓ 9 callers
Function
EvaluateBivarPolyAtY
EvaluateBivarPolyAtY - evaluate bivar poly at given y
pvss/avss.go:79
↓ 9 callers
Method
FromKeygenID
(keygenID KeygenID)
keygennofsm/types.go:88
↓ 9 callers
Method
ToNodeDetailsID
()
dkgnode/abci_app.go:552
↓ 9 callers
Method
Value
Value returns the value of the cursor. If Valid returns false, this method will panic. CONTRACT: value readonly []byte
db/types.go:116
↓ 8 callers
Method
Delete
Delete deletes the key. A nil key is interpreted as an empty byteslice. CONTRACT: key readonly []byte
db/types.go:25
↓ 8 callers
Method
FromPSSID
(pssID PSSID)
pss/types.go:405
↓ 8 callers
Method
GetB
(key string)
config/config.go:147
↓ 8 callers
Function
GetPointArrayFromMap
(m map[NodeDetailsID]common.Point)
pss/types.go:352
↓ 8 callers
Function
GetPointArrayFromMap
(m map[NodeDetailsID]common.Point)
keygennofsm/types.go:495
↓ 8 callers
Method
PSSInstanceExists
(pssProtocolPrefix PSSProtocolPrefix)
dkgnode/pss.go:268
↓ 8 callers
Method
Send
(NodeDetails, KeygenMessage)
keygennofsm/types.go:109
↓ 8 callers
Method
TendermintMethods
()
dkgnode/service_library.go:38
↓ 7 callers
Method
ABCIMethods
()
dkgnode/service_library.go:37
↓ 7 callers
Method
AwaitCompleteNodeList
(epoch int)
dkgnode/service_library.go:137
↓ 7 callers
Method
CacheMethods
()
dkgnode/service_library.go:46
↓ 7 callers
Method
Done
()
tcontext/tcontext.go:27
↓ 7 callers
Function
ECDSAVerify
func ECDSAValidateRaw(ecdsaPubBytes []byte, messageHash []byte, signature []byte) bool { return ethCrypto.VerifySignature(ecdsaPubBytes, messageHash,
pvss/pvss.go:180
↓ 7 callers
Function
GetCommit
Commit creates a public commitment polynomial
pvss/pvss.go:66
↓ 7 callers
Function
GetCommitmentMatrix
GetCommitmentMatrix - get a pedersen commitment matrix from two bivar polys
pvss/avss.go:40
↓ 7 callers
Method
GetSelfPrivateKey
()
dkgnode/service_library.go:131
↓ 7 callers
Method
HasCallback
(topic string)
eventbus/event_bus.go:30
↓ 7 callers
Method
getMappingID
()
mapping/mapping.go:247
↓ 7 callers
Function
getType
(myvar interface{})
dkgnode/bft_tx.go:109
↓ 7 callers
Function
nonNilBytes
We defensively turn nil keys or values into []byte{} for most operations.
db/types.go:124
↓ 6 callers
Function
AVSSVerifyPoint
AVSSVerifyPoint - verify-point as described in Cachin et al 2002
pvss/avss.go:152
↓ 6 callers
Method
Broadcast
(tx interface{})
dkgnode/service_library.go:618
↓ 6 callers
Function
ECDSASignBytes
(b []byte, privKey *big.Int)
pvss/pvss.go:153
↓ 6 callers
Method
GetNodeDetailsByAddress
(address ethCommon.Address)
dkgnode/service_library.go:139
↓ 6 callers
Function
LagrangeScalarCP
(pts []common.Point, target int)
pvss/pvss.go:435
↓ 6 callers
Method
Register
(metrics ...Metric)
telemetry/prometheus.go:21
↓ 6 callers
Method
SetStreamHandler
(protoName string, handler func(StreamMessage))
dkgnode/service_library.go:801
↓ 6 callers
Method
SubscribeAsync
(topic string, fn func(interface{}), transactional bool)
eventbus/event_bus.go:14
↓ 6 callers
Method
ToBytes
()
keygennofsm/types.go:139
↓ 5 callers
Function
CreateAndRegister
CreateAndRegister Creates a metric and registers it
telemetry/wrapper.go:31
↓ 5 callers
Method
GetId
()
dkgnode/p2p.go:98
↓ 5 callers
Method
GetNodePubKey
()
dkgnode/p2p.go:40
↓ 5 callers
Method
Key
Key returns the key of the cursor. If Valid returns false, this method will panic. CONTRACT: key readonly []byte
db/types.go:111
↓ 5 callers
Function
LagrangeCurvePts
LagrangeCurvePts finds the ^0 coefficient for points given in points an indexes given
pvss/pvss.go:483
↓ 5 callers
Method
NewP2PMessage
(messageId string, gossip bool, payload []byte, msgType string)
dkgnode/service_library.go:805
↓ 5 callers
Method
PSSMethods
()
dkgnode/service_library.go:42
↓ 5 callers
Method
ProcessBroadcastMessage
ProcessBroadcastMessage is called when the node receives a message via broadcast (eg. Tendermint)
pss/keygen_pss.go:780
↓ 5 callers
Method
ProcessMessage
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 callers
Method
ReceiveBroadcast
(PSSMessage)
pss/types.go:470
↓ 5 callers
Method
SendP2PMessage
(id peer.ID, p protocol.ID, msg P2PMessage)
dkgnode/service_library.go:807
next →
1–100 of 1,344, ranked by callers