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
↓ 5 callers
Method
Serve
()
telemetry/prometheus.go:20
↓ 5 callers
Method
SignP2PMessage
(message P2PMessage)
dkgnode/service_library.go:806
↓ 5 callers
Method
ToKeygenID
()
keygennofsm/types.go:85
↓ 5 callers
Function
UnsigncryptShare
(signcryption pcmn.Signcryption, privKey big.Int, sendingNodePubKey common.Point)
pvss/pvss.go:312
↓ 5 callers
Method
Validate
(existingPubKey common.Point)
dealer/types.go:51
↓ 5 callers
Function
VerifyNIZKPK
(c, u1, u2 big.Int, gs, gshr common.Point)
pvss/nizkpk.go:77
↓ 5 callers
Function
VerifyShareCommitment
VerifyShareCommitment - checks if a dlog commitment matches the original pubpoly
pvss/gennaro2006.go:89
↓ 5 callers
Function
getCommonNodesFromNodeRefArray
(nodeRefs []NodeReference)
dkgnode/pss.go:255
↓ 5 callers
Function
pt
(x, y *big.Int)
pvss/verenc.go:99
↓ 4 callers
Function
AVSSVerifyPoly
AVSSVerifyPoly - verify-poly as described in Cachin et al 2002
pvss/avss.go:99
↓ 4 callers
Method
Abs
(a *big.Int)
pvss/verenc.go:308
↓ 4 callers
Function
CreateAndPrepareShares
deprecated: use CreateShares and let client handle signcryption. Client may need to add more information before signcrypting (eg. broadcast id)
pvss/pvss.go:294
↓ 4 callers
Function
CreateSharesGen
CreateSharesGen - Creating shares for gennaro DKG
pvss/gennaro2006.go:23
↓ 4 callers
Method
Deserialize
(serializedNodeRef SerializedNodeReference)
dkgnode/ethereum.go:112
↓ 4 callers
Function
ECDSAVerifyBytes
(b []byte, pubKey *common.Point, signature []byte)
pvss/pvss.go:200
↓ 4 callers
Method
Exists
(key string)
dkgnode/cache.go:37
↓ 4 callers
Method
FromNodeDetailsID
(nodeDetailsID NodeDetailsID)
dkgnode/abci_app.go:560
↓ 4 callers
Function
GenerateDKGID
(index big.Int)
keygennofsm/types.go:518
↓ 4 callers
Method
GetEpochInfo
(epoch int, skipCache bool)
dkgnode/ethereum.go:646
↓ 4 callers
Method
GetIndex
()
pss/types.go:215
↓ 4 callers
Method
GetIndex
GetIndex - get index from dkgid
keygennofsm/types.go:69
↓ 4 callers
Function
IncGauge
(name string)
telemetry/gauge.go:22
↓ 4 callers
Method
IsOwner
IsOwner is a free data retrieval call binding the contract method 0x8f32d59b. Solidity: function isOwner() constant returns(bool)
solidity/goContracts/NodeList.go:1232
↓ 4 callers
Function
LagrangePolys
LagrangePolys is used in PSS When each share is subshared, each share is associated with a commitment polynomial we then choose k such subsharings to
pvss/pss.go:41
↓ 4 callers
Method
ListMutableConfigs
()
config/config.go:159
↓ 4 callers
Method
MappingInstanceExists
(mappingID mapping.MappingID)
dkgnode/mapping.go:211
↓ 4 callers
Function
NewClient
NewClient - create a client object with the address and server path
eventbus/client.go:32
↓ 4 callers
Function
NewServer
NewServer - create a new Server at the address and path
eventbus/server.go:46
↓ 4 callers
Method
Next
Next moves the iterator to the next sequential key in the database, as defined by order of iteration. If Valid returns false, this method will panic.
db/types.go:106
↓ 4 callers
Method
NodeDetails
NodeDetails is a free data retrieval call binding the contract method 0x859da85f. Solidity: function nodeDetails(address ) constant returns(string de
solidity/goContracts/NodeList.go:490
↓ 4 callers
Method
Output
(interface{})
keygennofsm/types.go:113
↓ 4 callers
Method
Owner
Owner is a free data retrieval call binding the contract method 0x8da5cb5b. Solidity: function owner() constant returns(address)
solidity/goContracts/NodeList.go:1258
↓ 4 callers
Method
Receive
(NodeDetails, PSSMessage)
pss/types.go:468
↓ 4 callers
Method
RetrieveIndexToPublicKey
(keyIndex big.Int)
dkgnode/service_library.go:1339
↓ 4 callers
Method
RetrieveKeyMapping
(keyIndex big.Int)
dkgnode/service_library.go:513
↓ 4 callers
Method
Send
(NodeDetails, MappingMessage)
mapping/types.go:70
↓ 4 callers
Method
Serialize
()
dkgnode/ethereum.go:86
↓ 4 callers
Function
SetupTestNodes
( keys int, nOld int, kOld int, tOld int, nNew int, kNew int, tNew int, sameNodes bool, )
pss/keygen_pss_test.go:947
↓ 4 callers
Method
Start
()
dkgnode/service.go:23
↓ 4 callers
Function
SumScalars
(scalars ...big.Int)
pvss/pvss.go:494
↓ 4 callers
Method
ToMappingID
()
mapping/types.go:119
↓ 4 callers
Method
UnsubscribeAll
(topic string)
eventbus/event_bus.go:18
↓ 4 callers
Method
VerifierMethods
()
dkgnode/service_library.go:45
↓ 4 callers
Function
VerifyPedersonCommitment
Verify Pederson commitment, Equation (4) in Gennaro 2006
pvss/gennaro2006.go:46
↓ 4 callers
Function
VerifyShare
VerifyShare - verifies share against public polynomial
pvss/gennaro2006.go:68
↓ 4 callers
Method
assertNoError
()
db/level_db.go:308
↓ 4 callers
Function
bindNodeList
bindNodeList binds a generic wrapper to an already deployed contract.
solidity/goContracts/NodeList.go:185
↓ 4 callers
Function
bindOwnable
bindOwnable binds a generic wrapper to an already deployed contract.
solidity/goContracts/NodeList.go:1183
↓ 4 callers
Method
doSubscribe
doSubscribe handles the subscription logic and is utilized by the public Subscribe functions
eventbus/event_bus.go:69
↓ 4 callers
Function
getShares
(polynomial pcmn.PrimaryPolynomial, nodes []pcmn.Node)
pvss/pvss.go:57
↓ 4 callers
Function
keyvalsToFields
(keyvals []interface{})
tmlog/tmlog.go:30
↓ 4 callers
Function
validateNode
Checks if status update is from a valid node in a particular epoch
dkgnode/bftruleset.go:656
↓ 3 callers
Function
AESdecrypt
(key []byte, cipherText []byte)
pvss/AES.go:40
↓ 3 callers
Function
AESencrypt
(key []byte, plainText []byte)
pvss/AES.go:13
↓ 3 callers
Method
Acquire
()
common/utils.go:47
↓ 3 callers
Method
AddMiddleware
(*func(string, interface{}) interface{})
eventbus/event_bus.go:28
↓ 3 callers
Method
AuthenticateMessage
(p2pBasicMsg P2PBasicMsg)
dkgnode/service_library.go:803
↓ 3 callers
Method
Complete
(dkgID DKGID)
keygennofsm/types.go:324
↓ 3 callers
Method
ConnectToP2PNode
(nodeP2PConnection string, nodePeerID peer.ID)
dkgnode/service_library.go:808
↓ 3 callers
Function
ECDSASign
Signs using Ethereum ECDSA (where randomness is deterministic)
pvss/pvss.go:158
↓ 3 callers
Function
GenerateNIZKPK
Generates NIZK Proof with the aims of increasing asynchronicity within AVSS Returns proof in the form of c, u1, u2
pvss/nizkpk.go:25
↓ 3 callers
Method
Get
Implements DB.
db/level_db.go:34
↓ 3 callers
Function
GetCIDFromPointMatrix
(pm [][]common.Point)
pss/types.go:320
↓ 3 callers
Function
GetCIDFromPointMatrix
(pm [][]common.Point)
keygennofsm/types.go:481
↓ 3 callers
Method
GetEpochParams
GetEpochParams - returns values for epochOld, nOld, kOld, tOld, epochNew, nNew, kNew, tNew
pss/types.go:241
↓ 3 callers
Method
GetI
(key string)
config/config.go:135
↓ 3 callers
Method
GetIndexesFromVerifierID
(verifier, veriferID string)
dkgnode/service_library.go:514
↓ 3 callers
Method
GetKeygenID
()
pss/types.go:230
↓ 3 callers
Method
GetKeygenStarted
(keygenID string)
dkgnode/service_library.go:1343
↓ 3 callers
Method
GetNodes
GetNodes is a free data retrieval call binding the contract method 0x47de074f. Solidity: function getNodes(uint256 epoch) constant returns(address[])
solidity/goContracts/NodeList.go:386
↓ 3 callers
Function
GetPeerIDFromP2pListenAddress
(p2pListenAddress string)
dkgnode/utils.go:79
↓ 3 callers
Method
GetPssStatus
GetPssStatus is a free data retrieval call binding the contract method 0xc7aa8ff7. Solidity: function getPssStatus(uint256 oldEpoch, uint256 newEpoch
solidity/goContracts/NodeList.go:412
↓ 3 callers
Function
HashToString
HashToString hashes the first 6 chars to a hex string
dkgnode/utils.go:143
↓ 3 callers
Method
Inc
()
telemetry/prometheus.go:123
↓ 3 callers
Method
Init
()
mapping/types.go:66
↓ 3 callers
Method
IsWhitelisted
IsWhitelisted is a free data retrieval call binding the contract method 0x7d22c35c. Solidity: function isWhitelisted(uint256 epoch, address nodeAddre
solidity/goContracts/NodeList.go:464
↓ 3 callers
Method
ListVerifiers
()
dkgnode/service_library.go:1563
↓ 3 callers
Function
NewGoLevelDB
(name string)
db/level_db.go:18
↓ 3 callers
Function
NewMappingNode
( nodeDetails pcmn.Node, oldEpoch int, oldNodeList []pcmn.Node, oldNodesT int, oldNodesK int, newEpoch i
mapping/mapping.go:254
↓ 3 callers
Function
NewPSSNode
NewPSSNode creates a new pss node instance
pss/keygen_pss.go:926
↓ 3 callers
Method
NodeRegistered
NodeRegistered is a free data retrieval call binding the contract method 0x86470e9e. Solidity: function nodeRegistered(uint256 epoch, address nodeAdd
solidity/goContracts/NodeList.go:542
↓ 3 callers
Method
Output
(interface{})
pss/types.go:471
↓ 3 callers
Function
Pad
pkcs7Pad right-pads the given byte slice with 1 to n bytes, where n is the block size. The size of the result is x times n, where x is at least 1.
pkcs7/pkcs7.go:24
↓ 3 callers
Method
ReceiveBFTMessage
(protocolPrefix PSSProtocolPrefix, pssMessage pss.PSSMessage)
dkgnode/service_library.go:1000
↓ 3 callers
Function
Register
Register registers the metrics to be collected for the default telemetry.
telemetry/prometheus.go:197
↓ 3 callers
Method
RemoveMiddleware
(*func(string, interface{}) interface{})
eventbus/event_bus.go:29
↓ 3 callers
Method
RenounceOwnership
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. Solidity: function renounceOwnership() returns()
solidity/goContracts/NodeList.go:1291
↓ 3 callers
Method
RetrieveCompletedShare
(keyIndex big.Int)
dkgnode/service_library.go:1341
↓ 3 callers
Method
SendBroadcast
(MappingMessage)
mapping/types.go:72
↓ 3 callers
Method
SetFreezeState
(mappingID mapping.MappingID, freezeState int, lastUnassignedIndex uint)
dkgnode/service_library.go:1206
↓ 3 callers
Method
SetKeygenStarted
(keygenID string, started bool)
dkgnode/service_library.go:1344
↓ 3 callers
Method
SetMappingNode
(*MappingNode)
mapping/types.go:68
↓ 3 callers
Method
SetPSSNode
(*PSSNode)
pss/types.go:465
↓ 3 callers
Method
Sign
([]byte)
pss/types.go:466
↓ 3 callers
Method
Start
Start - starts a service for remote clients to subscribe to events
eventbus/server.go:92
↓ 3 callers
Method
Stop
Stop - signal for the service to stop serving
eventbus/server.go:121
↓ 3 callers
Method
StoreCompletedPSSShare
(keyIndex big.Int, si big.Int, siprime big.Int)
dkgnode/service_library.go:1335
↓ 3 callers
Method
StorePSSCommitmentMatrix
(keyIndex big.Int, c [][]common.Point)
dkgnode/service_library.go:1333
↓ 3 callers
Method
StorePublicKeyToIndex
(publicKey common.Point, keyIndex big.Int)
dkgnode/service_library.go:1336
↓ 3 callers
Method
SubscribeOnce
(topic string, fn func(interface{}))
eventbus/event_bus.go:15
← previous
next →
101–200 of 1,344, ranked by callers