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
↓ 2 callers
Method
Verify
Verify reroutes the json request to the appropriate sub-verifier within generalVerifier Returns result, verifierID and error
auth/verifier.go:75
↓ 2 callers
Method
Verify
(rawMessage *bijson.RawMessage)
dkgnode/service_library.go:1561
↓ 2 callers
Method
Whitelist
Whitelist is a free data retrieval call binding the contract method 0x4b25bfce. Solidity: function whitelist(uint256 , address ) constant returns(boo
solidity/goContracts/NodeList.go:620
↓ 2 callers
Method
With
(keyvals ...interface{})
tmlog/tmlog.go:62
↓ 2 callers
Function
authenticateBftTx
authenticateBftTx - parse headers and authenticate message from nodelist
dkgnode/abci_app.go:590
↓ 2 callers
Function
cp
(bz []byte)
db/types.go:131
↓ 2 callers
Method
doPublish
(handler *eventHandler, topic string, origData interface{})
eventbus/event_bus.go:201
↓ 2 callers
Method
doSubscribe
(topic string, fn func(interface{}), serverAddr, serverPath string, subscribeType SubscribeType)
eventbus/client.go:46
↓ 2 callers
Function
ecThreshold
max(roundUp((n+t+1)/2), k)
pss/keygen_pss.go:24
↓ 2 callers
Function
ecThreshold
max(roundUp((n+t+1)/2), k)
keygennofsm/keygen_nofsm.go:21
↓ 2 callers
Function
formVerifierKey
Below are functions for the non-ABCI DB which acts as a cache Using TorusDB
dkgnode/abci_app.go:139
↓ 2 callers
Function
genPolyForTarget
(x int, threshold int)
pvss/pss.go:25
↓ 2 callers
Method
isThawed
(mappingID mapping.MappingID)
dkgnode/abci_app.go:302
↓ 2 callers
Function
mapFromNodeList
(nodeList []pcmn.Node)
mapping/types.go:194
↓ 2 callers
Function
mapFromNodeList
(nodeList []pcmn.Node)
pss/types.go:595
↓ 2 callers
Function
newGoLevelDBIterator
(source iterator.Iterator, start, end []byte, isReverse bool)
db/level_db.go:201
↓ 2 callers
Method
newStandardEthCallOpts
()
dkgnode/ethereum.go:627
↓ 2 callers
Function
padPrivKeyBytes
SetStreamHandler sets up listeners and triggers a query over to the P2P service which forwards P2P messages to the event bus.
dkgnode/p2p.go:205
↓ 2 callers
Function
prefixKeyMapping
(key []byte)
dkgnode/abci_app.go:156
↓ 2 callers
Function
randIndexes
(min int, max int, length int)
pss/keygen_pss_test.go:825
↓ 2 callers
Method
runReceiveMiddleware
(pssMessage pss.PSSMessage)
dkgnode/pss.go:372
↓ 2 callers
Method
runSendMiddleware
(pssMessage pss.PSSMessage)
dkgnode/pss.go:356
↓ 2 callers
Function
setupTestNodes
(o, oN, oK, oT, n, nN, nK, nT, numberOfKeys int, mockTMEngineState *MockTMEngineState)
mapping/mapping_test.go:190
↓ 2 callers
Function
signcryptShare
(nodePubKey common.Point, share big.Int, privKey big.Int)
pvss/pvss.go:236
↓ 2 callers
Method
stagger
stagger - delays/blocks for a duration depending on key index and node index used as an optimization to delay execution of broadcasts to bft seed is u
keygennofsm/p2p_messages.go:742
↓ 2 callers
Method
startPSSMonitor
()
dkgnode/ethereum.go:321
↓ 2 callers
Method
storeVerifierToKeyIndex
(verifier, verifierID string, keyIndexes []big.Int)
dkgnode/abci_app.go:195
↓ 2 callers
Function
tx
(result, call)
solidity/migrations/3_configure_whitelist.js:4
↓ 2 callers
Function
verifySigOnMsg
verifySigOnMsg - verifies that the corresponding message signature corresponds to the provided nodePubKey provided
dkgnode/p2p.go:420
↓ 1 callers
Function
AVSSAddCommitment
To add commitments together
pvss/avss.go:203
↓ 1 callers
Function
AddPolynomials
AddPolynomials add two polynomials (modulo generator order Q)
pvss/pvss.go:86
↓ 1 callers
Method
AddRequestMiddleware
(middleware *func(methodRequest MethodRequest) MethodRequest)
dkgnode/services.go:49
↓ 1 callers
Method
AddResponseMiddleware
(middleware *func(methodResponse MethodResponse) MethodResponse)
dkgnode/services.go:60
↓ 1 callers
Function
AwaitTopic
(eventBus eventbus.Bus, topic string)
dkgnode/services.go:173
↓ 1 callers
Method
Call
Query implements Service
dkgnode/service.go:89
↓ 1 callers
Method
CheckIfNIZKPProcessed
For Storage Optimization of NIZKP
keygennofsm/types.go:116
↓ 1 callers
Method
CleanToken
CleanToken - ensure that incoming token conforms to strict format to prevent replay attacks
auth/test_verifier.go:28
↓ 1 callers
Method
CleanToken
(token string)
auth/twitch_verifier.go:37
↓ 1 callers
Method
CleanToken
(token string)
auth/facebook_verifier.go:42
↓ 1 callers
Method
CleanToken
(string)
auth/verifier.go:38
↓ 1 callers
Method
CleanToken
CleanToken - ensure that incoming token conforms to strict format to prevent replay attacks
auth/demo_verifier.go:27
↓ 1 callers
Method
CleanToken
CleanToken - trim spaces to prevent replay attacks
auth/google_verifier.go:58
↓ 1 callers
Method
Close
Implements DB.
db/level_db.go:94
↓ 1 callers
Method
Commit
()
dkgnode/abci_app.go:389
↓ 1 callers
Method
ConnectToP2PNode
(nodeP2PConnection string, nodePeerID peer.ID)
dkgnode/p2p.go:489
↓ 1 callers
Function
CreateP2PBasicMsg
(r P2PBasicMsgRaw)
dkgnode/p2p.go:50
↓ 1 callers
Function
CreateShares
use this instead of CreateAndPrepareShares
pvss/pvss.go:280
↓ 1 callers
Method
Dec
()
telemetry/prometheus.go:127
↓ 1 callers
Function
DecGauge
(name string)
telemetry/gauge.go:26
↓ 1 callers
Method
DecodeBFTTx
Decode byte type
dkgnode/bft_tx.go:34
↓ 1 callers
Method
Decrypt
(u, e, v, label *big.Int)
pvss/verenc.go:257
↓ 1 callers
Method
DeregisterQuery
(query string)
dkgnode/service_library.go:746
↓ 1 callers
Method
DeregisterQuery
(query string)
dkgnode/tendermint.go:447
↓ 1 callers
Method
EventBus
EventBus - returns wrapped event bus
eventbus/server.go:57
↓ 1 callers
Method
ForwardP2PToEventBus
(proto string)
dkgnode/p2p.go:169
↓ 1 callers
Function
From
(parent context.Context)
tcontext/tcontext.go:47
↓ 1 callers
Method
FromNodeDetailsID
(nodeDetailsID NodeDetailsID)
pss/types.go:432
↓ 1 callers
Method
FromVerifierDetailsID
(vID VerifierDetailsID)
auth/verifier.go:22
↓ 1 callers
Function
GenerateDLEQProof
(G common.Point, H common.Point, x big.Int)
pvss/verenc.go:24
↓ 1 callers
Function
GenerateKeygenID
(i int)
pss/types.go:211
↓ 1 callers
Method
GetChallenge
()
pvss/verenc.go:623
↓ 1 callers
Method
GetHostAddress
()
dkgnode/service_library.go:809
↓ 1 callers
Method
GetId
()
dkgnode/p2p.go:37
↓ 1 callers
Method
GetIdentifier
()
auth/verifier.go:37
↓ 1 callers
Method
GetKeygenProtocolPrefix
(currEpoch int)
dkgnode/keygen_nofsm.go:134
↓ 1 callers
Method
GetMappingID
(oldEpoch int, newEpoch int)
dkgnode/service_library.go:1203
↓ 1 callers
Method
GetMappingProtocolPrefix
(oldEpoch, newEpoch int)
dkgnode/mapping.go:215
↓ 1 callers
Method
GetMappingProtocolPrefix
(oldEpoch int, newEpoch int)
dkgnode/service_library.go:1209
↓ 1 callers
Method
GetNodeDetailsByEpochAndIndex
(epoch int, index int)
dkgnode/service_library.go:140
↓ 1 callers
Method
GetNodeKey
()
dkgnode/service_library.go:615
↓ 1 callers
Method
GetNodeList
(epoch int)
dkgnode/service_library.go:138
↓ 1 callers
Method
GetNodeRef
(nodeAddress ethCommon.Address)
dkgnode/ethereum.go:132
↓ 1 callers
Method
GetOpeningMsg
Returns l = g1^m * h1^s where s is a random integer smaller than n/4.
pvss/verenc.go:420
↓ 1 callers
Method
GetOrSet
(pssid PSSID, input *PSS)
pss/types.go:518
↓ 1 callers
Method
GetOrSet
(sharingID SharingID, input *Recover)
pss/types.go:554
↓ 1 callers
Method
GetOrSet
(keygenID KeygenID, input *Keygen)
keygennofsm/types.go:350
↓ 1 callers
Method
GetP2PConnection
()
dkgnode/service_library.go:147
↓ 1 callers
Method
GetPSSProtocolPrefix
(oldEpoch int, newEpoch int)
dkgnode/service_library.go:999
↓ 1 callers
Method
GetPSSStatus
(oldEpoch int, newEpoch int)
dkgnode/service_library.go:142
↓ 1 callers
Method
GetPreviousEpoch
()
dkgnode/service_library.go:127
↓ 1 callers
Method
GetProofData
Prover should use this function to compute data for second (last) sigma protocol message.
pvss/verenc.go:503
↓ 1 callers
Method
GetProofRandomData
Prover (encryptor) should use this function to generate values for the first sigma protocol message.
pvss/verenc.go:441
↓ 1 callers
Method
GetSerializedBody
()
dkgnode/bft_tx.go:100
↓ 1 callers
Method
GetSharing
(keygenID KeygenID)
pss/types.go:458
↓ 1 callers
Method
GetSign
()
dkgnode/p2p.go:41
↓ 1 callers
Method
GetStatus
()
dkgnode/service_library.go:616
↓ 1 callers
Method
GetTMP2PConnection
()
dkgnode/service_library.go:146
↓ 1 callers
Method
GetTokenCommitKey
(verifier string, tokenCommitment string)
dkgnode/service_library.go:1635
↓ 1 callers
Function
GetVIDFromPointArray
(ptArr []common.Point)
pss/types.go:148
↓ 1 callers
Method
Has
Has checks if a key exists. A nil key is interpreted as an empty byteslice. CONTRACT: key, value readonly []byte
db/types.go:14
↓ 1 callers
Method
HasClientSubscribed
HasClientSubscribed - True if a client subscribed to this server with the same topic
eventbus/server.go:80
↓ 1 callers
Method
Inc
IncGauge adds one to a given Counter.
telemetry/prometheus.go:91
↓ 1 callers
Method
IndexToPublicKeyExists
(keyIndex big.Int)
dkgnode/service_library.go:1340
↓ 1 callers
Method
Init
()
keygennofsm/types.go:105
↓ 1 callers
Function
InitMutableConfig
(c *Config)
config/config.go:178
↓ 1 callers
Method
IsRunning
()
dkgnode/service.go:25
↓ 1 callers
Method
IsSelfRegistered
(epoch int)
dkgnode/ethereum.go:634
↓ 1 callers
Method
KeyIndexToPublicKeyExists
(keyIndex big.Int)
db/torus.go:185
↓ 1 callers
Function
LoadConfig
(configPath string)
config/config.go:306
↓ 1 callers
Method
LoadState
()
dkgnode/abci_app.go:204
← previous
next →
301–400 of 1,344, ranked by callers