MCPcopy Create free account

hub / github.com/canopy-network/canopy / functions

Functions5,387 in github.com/canopy-network/canopy

↓ 5 callersFunctionHKDFSecretsAndChallenge
Big picture: DH is used to establish a shared secret, and then HKDF is used to derive multiple keys from that secret for encryption HKDFSecretsAndChal
lib/crypto/aead.go:45
↓ 5 callersMethodHash
Hash() creates a hash representative of the dex batch
lib/dex.go:17
↓ 5 callersMethodIndexQC
(qc *QuorumCertificate)
lib/store.go:50
↓ 5 callersMethodIsPacemakerMessage
IsPacemakerMessage() determines if the message should describe the View of a Validator for the Pacemaker logic
bft/msg.go:265
↓ 5 callersFunctionKeyForUnstaking
(height uint64, address crypto.AddressI)
fsm/key.go:81
↓ 5 callersMethodLoadBlock
LoadBlock() loads an indexed block at a specific height
fsm/state.go:377
↓ 5 callersMethodName
()
fsm/message_helpers.go:67
↓ 5 callersFunctionNew
New() creates a new instance of a StateMachine
fsm/state.go:48
↓ 5 callersFunctionNewETHSECP256K1PrivateKey
NewETHSECP256K1PrivateKey() generates a new ETHSECP256K1 private key
lib/crypto/secp256k1.go:37
↓ 5 callersMethodNewFromFile
NewFromFile() creates a new polls object from a file
fsm/gov_params.go:552
↓ 5 callersFunctionNewSECP256K1PrivateKey
NewSECP256K1PrivateKey() generates a new SECP256K1 private key
lib/crypto/secp256k1.go:28
↓ 5 callersFunctionNewSMT
NewSMT() creates a new abstraction of the SMT object
store/smt.go:144
↓ 5 callersFunctionNewStoreWithDB
NewStoreWithDB() returns a Store object given a DB and a logger NOTE: to read the state commit store i.e. for merkle proofs, use NewReadOnly()
store/store.go:156
↓ 5 callersMethodSelfIsProposer
SelfIsPropose() returns true if this node is the Leader
bft/bft.go:809
↓ 5 callersMethodSelfSend
SelfSend() executes an internal pipe send to self
p2p/p2p.go:425
↓ 5 callersMethodSendToReplicas
SendToReplicas() is a P2P call to directly send a Consensus message to all Replicas
bft/bft.go:951
↓ 5 callersMethodSetBitmap
SetBitmap() loads the values of a bitmap into the MultiPublicKey
lib/crypto/key.go:67
↓ 5 callersMethodSetCommitteeMember
SetCommitteeMember() sets the address as a 'member' of the committee in the state
fsm/committee.go:320
↓ 5 callersMethodSetDeadline
(t time.Time)
p2p/encrypt.go:257
↓ 5 callersMethodSetDexBatch
HELPERS BELOW SetDexBatch() sets a sell batch in the state store
fsm/dex.go:599
↓ 5 callersMethodSetParamsCons
SetParamsCons() sets Consensus params into state
fsm/gov.go:244
↓ 5 callersMethodSetValidatorPaused
SetValidatorPaused() updates a Validator as 'paused' with a MaxPausedHeight (height at which the Validator is force-unstaked for being paused too long
fsm/validator.go:385
↓ 5 callersFunctionSharedSecret
https://cr.yp.to/ecdh.html Big picture: DH is used to establish a shared secret, and then HKDF is used to derive multiple keys from that secret for en
lib/crypto/ecdh.go:19
↓ 5 callersMethodStateRead
StateRead() executes a 'read request' to the state store
lib/plugin.go:23
↓ 5 callersMethodStateWrite
StateWrite() executes a 'write request' to the state store
lib/plugin.go:25
↓ 5 callersMethodStop
Stop gracefully terminates the CLI process
cmd/auto-update/coordinator.go:84
↓ 5 callersFunctionStringToBLS12381PrivateKey
StringToBLS12381PrivateKey() creates a new PrivateKeyI interface from a BLS Private Key hex string
lib/crypto/bls.go:45
↓ 5 callersMethodTimeToReset
TimeToReset() returns the channel that signals when the limiter may be reset This channel is called by the time.Ticker() set in NewLimiter
lib/peer.go:405
↓ 5 callersFunctionUnmarshal
(protoBytes: Uint8Array | Buffer, MessageType: any)
plugin/typescript/src/contract/plugin.ts:375
↓ 5 callersFunctionUnmarshal
Unmarshal() deserializes a byte slice into a proto.Message
plugin/go/contract/plugin.go:316
↓ 5 callersMethodUpdateMustConnects
UpdateMustConnects() updates the list of peers that 'must be connected to' Ex. the peers needed to complete committee consensus
p2p/set.go:123
↓ 5 callersFunctionUpscaleTo18Decimals
UpscaleTo18Decimals converts a 6-decimal unit (Canopy native) to 18-decimal (Ethereum RPC)
fsm/ethereum.go:231
↓ 5 callersMethod_check_message_send
CheckMessageSend statelessly validates a 'send' message.
plugin/python/contract/contract.py:251
↓ 5 callersFunctionargGetAddr
(arg string)
cmd/cli/admin.go:415
↓ 5 callersFunctionbytesFromArgs
bytesFromArgs() extracts a hash from the first argument
cmd/rpc/eth.go:1324
↓ 5 callersFunctionbytesToHex
(bytes: Uint8Array)
plugin/typescript/tutorial/src/rpc_test.ts:53
↓ 5 callersFunctionbytes_to_hex
Convert bytes to hex string.
plugin/python/tutorial/rpc_test.py:63
↓ 5 callersFunctioncleanHex
cleanHex() strips the 0x prefix from a hex string
cmd/rpc/eth.go:1458
↓ 5 callersFunctioncolorStringWithFormat
colorStringWithFormat() returns a formatted string with color applied
lib/log.go:256
↓ 5 callersFunctionconvertTransactions
(txs)
cmd/rpc/web/explorer/components/modal.jsx:63
↓ 5 callersMethodcopy
txn() returns a copy of the current transaction txn
store/txn.go:291
↓ 5 callersMethodcopy
copy() returns a shallow copy of the node
store/smt.go:1102
↓ 5 callersFunctioncpyObj
(v)
cmd/rpc/web/explorer/components/util.js:121
↓ 5 callersFunctionfile_p2p_proto_rawDescGZIP
()
p2p/p2p.pb.go:319
↓ 5 callersFunctiongetAdminRPCURL
()
cmd/rpc/web/wallet/components/api.js:17
↓ 5 callersMethodgreatestCommonPrefix
greatestCommonPrefix() calculates the greatest common prefix (GCP) between the current key and another key. - Starts at a given bit position (`bitPos`
store/smt.go:899
↓ 5 callersMethodheightPaginated
heightPaginated is a helper function to abstract common workflows around a callback requiring a state machine and page parameters
cmd/rpc/query.go:673
↓ 5 callersFunctionintFromArgs
intFromArgs() extracts an integer from the first argument
cmd/rpc/eth.go:1333
↓ 5 callersMethodkeystoreHandler
keystoreHandler is a helper function that abstracts common workflows of keystore operations
cmd/rpc/admin.go:753
↓ 5 callersMethodmakeVersionedKey
makeVersionedKey() creates a versioned key with inverted version encoding k = [length-prefixed-key][InvertedVersion]
store/versioned_store.go:489
↓ 5 callersFunctionnewClassGroup
NewClassGroupFromABDiscriminant() calculates c using D = b^2 - 4ac and returns a class group object
lib/crypto/classgroup.go:50
↓ 5 callersFunctionnewNode
NODE CODE BELOW newNode() is a constructor for the node object
store/smt.go:1058
↓ 5 callersMethodnewTestDoubleSignEvidence
newTestDoubleSignEvidence() fabricates double sign evidence for the testing suite
bft/mock_test.go:412
↓ 5 callersFunctionnewTestOrderId
(_ *testing.T, variant int)
lib/certificate_test.go:443
↓ 5 callersFunctionnewTestP2PConfig
(t *testing.T)
p2p/p2p_test.go:558
↓ 5 callersFunctionnewTestP2PNodeWithConfig
(t *testing.T, c lib.Config, noLog ...bool)
p2p/p2p_test.go:539
↓ 5 callersFunctionrenderBasicTable
(tab)
cmd/rpc/web/explorer/components/modal.jsx:234
↓ 5 callersMethodsendToPluginSync
sendToPluginSync() sends to the plugin and waits for a response, tracking FSM context
lib/plugin.go:430
↓ 5 callersMethodsimPrecommitPhase
simPrecommitPhase() simulates the PRECOMMIT phase of the BFT lifecycle
bft/mock_test.go:170
↓ 5 callersMethodsize
()
store/smt.go:1006
↓ 5 callersMethodtraverse
traverse: navigates the tree downward to locate the target or its closest position
store/smt.go:329
↓ 5 callersMethodupdate
update() modifies or adds an operation to the txn
store/txn.go:143
↓ 5 callersMethodurl
(routeName, param string, admin ...bool)
cmd/rpc/client.go:1075
↓ 4 callersFunctionAccountPrefix
* - Prefixes are used to allow 'grouping' and organization in a schemaless key-value database environment - Segments are used to allow 'sub-groupings
fsm/key.go:63
↓ 4 callersMethodAddPeer
AddPeer() takes an ephemeral tcp connection and an incomplete peerInfo and attempts to create a E2E encrypted channel with a fully authenticated peer
p2p/p2p.go:272
↓ 4 callersMethodBlockTimeMS
BlockTimeMS() returns the expected block time in milliseconds
lib/config.go:213
↓ 4 callersMethodBytes
Bytes() returns the byte representation of the Public Key
lib/crypto/secp256k1.go:182
↓ 4 callersMethodBytes
Bytes() casts the address value back to a byte slice
lib/crypto/address.go:61
↓ 4 callersFunctionBytesToEthSECP256K1Public
BytesToEthSECP256K1Public() returns ETHSECP256K1PublicKey from bytes
lib/crypto/eth_secp256k1.go:47
↓ 4 callersFunctionCheckCache
CheckCache() is a convenience function that checks the signature cache for a combination and returns a callback for the caller to easily add the signa
lib/crypto/key_batch.go:212
↓ 4 callersMethodCheckMempool
CheckMempool() Checks each transaction in the mempool and caches a block proposal
controller/tx.go:214
↓ 4 callersMethodClose
retrieve value
lib/store.go:109
↓ 4 callersMethodCommitteeIsRetired
CommitteeIsRetired checks if a committee is marked as 'retired' which prevents it from being subsidized for eternity
fsm/committee.go:557
↓ 4 callersFunctionDefaultMempoolConfig
DefaultMempoolConfig() returns the developer created Mempool options
lib/config.go:307
↓ 4 callersFunctionDefaultStateMachineConfig
DefaultStateMachineConfig returns FSM defaults
lib/config.go:171
↓ 4 callersMethodDeleteTransaction
insert new unconfirmed transaction
lib/mempool.go:20
↓ 4 callersMethodDeleteValidator
DeleteValidator() completely removes a validator from the state
fsm/validator.go:232
↓ 4 callersFunctionErrCloseDB
(err error)
store/error.go:13
↓ 4 callersFunctionErrInsufficientSupply
()
fsm/error.go:95
↓ 4 callersFunctionErrInvalidBlockHash
()
lib/error.go:403
↓ 4 callersFunctionErrInvalidKey
()
store/error.go:45
↓ 4 callersFunctionErrInvalidPercentAllocation
()
lib/error.go:683
↓ 4 callersFunctionErrMismatchResultsHash
()
lib/error.go:667
↓ 4 callersFunctionErrNoValidators
()
lib/error.go:459
↓ 4 callersFunctionErrValidatorUnstaking
()
fsm/error.go:107
↓ 4 callersFunctionErrWrongChainId
()
lib/error.go:703
↓ 4 callersFunctionErrWrongNetworkID
()
lib/error.go:691
↓ 4 callersMethodFinish
Finish() signals the service to complete and returns the output - already running signals a stop in the running thread and returns - not running retur
lib/vdf.go:106
↓ 4 callersMethodFlush
gracefully stop the database
lib/store.go:25
↓ 4 callersFunctionFormatInputIntoSeed
FormatInputIntoSeed() returns the 'seed data' for the VRF function `seed = lastProposerAddresses + height + round`
lib/consensus.go:833
↓ 4 callersMethodGetBlockByHash
get Events for an event type
lib/store.go:70
↓ 4 callersMethodGetDexBatches
GetDexBatches() retrieves the lists for all dex batches
fsm/dex.go:645
↓ 4 callersMethodGetMajorityVote
GetMajorityVote() returns the Message and AggregateSignature with a VoteSet with a +2/3 majority from the Replicas NOTE: Votes for a specific Height-R
bft/vote.go:27
↓ 4 callersMethodGetOrderBook
GetOrderBook() retrieves the order book for a committee from the state db
fsm/swap.go:333
↓ 4 callersMethodGetRetiredCommittees
GetRetiredCommittees() returns a list of the retired chainIds
fsm/committee.go:568
↓ 4 callersMethodGetSubsidizedCommittees
GetSubsidizedCommittees() returns a list of chainIds that receive a portion of the 'block reward' Think of these committees as 'automatically subsidiz
fsm/committee.go:73
↓ 4 callersMethodGetTxByHash
(hash []byte)
lib/store.go:63
↓ 4 callersMethodGetValidatorExists
GetValidatorExists() checks if the Validator already exists in the state
fsm/validator.go:38
↓ 4 callersMethodHandleBatchDeposit
HandleBatchDeposit() handles local/remote liquidity deposits. local=true: x=local pool (actual token movement), y=counter mirror. local=false: x=count
fsm/dex.go:456
↓ 4 callersMethodHandleMessageChangeParameter
HandleMessageChangeParameter() is the proper handler for an `Change-Parameter` message
fsm/message.go:292
← previousnext →401–500 of 5,387, ranked by callers