MCPcopy Create free account

hub / github.com/deroproject/derohe / functions

Functions1,541 in github.com/deroproject/derohe

↓ 7 callersFunctionGenerate_Genesis_Block
generates a genesis block
blockchain/genesis.go:27
↓ 7 callersMethodGet_Difficulty_At_Tips
when creating a new block, current_time in utc + chain_block_time must be added while verifying the block, expected time stamp should be replaced from
blockchain/difficulty.go:135
↓ 7 callersMethodHadamard
(exponents FieldVector)
cryptography/crypto/algebra_elgamal.go:159
↓ 7 callersFunctionInitialize_LookupTable
with some more smartness table can be condensed more to contain 16.3% more entries within the same size
walletapi/balance_decoder.go:61
↓ 7 callersFunctionIsDaemonOnline
this is as simple as it gets single threaded communication to get the daemon status and height this will tell whether the wallet can connection succes
walletapi/daemon_communication.go:239
↓ 7 callersFunctionLoadSCAssetValue
(data_tree *Tree_Wrapper, scid crypto.Hash, asset crypto.Hash)
dvm/sc.go:340
↓ 7 callersMethodLocatePruneTopo
exported from chain
blockchain/storetopo.go:186
↓ 7 callersMethodMarshalBinary
pack more deeply
rpc/rpc.go:187
↓ 7 callersMethodMulScalar
(a *gfP6, b *gfP2)
cryptography/bn256/gfp6.go:124
↓ 7 callersMethodNonce
this is based on roothash, scid etc and user's secret key thus is the basis of protection from a number of double spending attacks
cryptography/crypto/proof_generate.go:72
↓ 7 callersMethodRandom
()
dvm/deterministic_random_number.go:44
↓ 7 callersFunctionReadConfirmedPassword
(l *readline.Instance, first_prompt string, second_prompt string)
cmd/dero-wallet-cli/prompt.go:872
↓ 7 callersFunctionSC_Code_Key
(scid crypto.Hash)
dvm/sc.go:79
↓ 7 callersMethodSendTransaction
this is as simple as it gets single threaded communication to relay TX to daemon if this is successful, then daemon is in control
walletapi/daemon_communication.go:317
↓ 7 callersMethodSerialize
serialize entire block ( 64 bytes )
block/miniblock.go:140
↓ 7 callersMethodSet
(a *gfP2)
cryptography/bn256/gfp2.go:24
↓ 7 callersFunctionbenchmark_TX_Proof_Generation
(b *testing.B, ringsize int)
cmd/simulator/blockchain_sim_test.go:426
↓ 7 callersFunctionbenchmark_TX_Proof_Generation
(b *testing.B, ringsize int)
walletapi/tx_creation_test.go:434
↓ 7 callersFunctionbenchmark_TX_Proof_Verification
(b *testing.B, ringsize int)
cmd/simulator/blockchain_sim_test.go:458
↓ 7 callersFunctionbenchmark_TX_Proof_Verification
(b *testing.B, ringsize int)
walletapi/tx_creation_test.go:466
↓ 7 callersFunctiondecodeHex
(s string)
dvm/dvm_functions_test.go:271
↓ 7 callersFunctionsimulator_chain_mineblock
(chain *blockchain.Blockchain, miner_address rpc.Address, t *testing.T)
cmd/simulator/blockchain_sim_test.go:101
↓ 6 callersMethodConsumeStorageGas
consume and check storage gas
dvm/dvm.go:449
↓ 6 callersFunctionConvolution
(exponent *FieldVector, base *PointVector)
cryptography/crypto/fieldvector.go:282
↓ 6 callersFunctionCreate_Encrypted_Wallet_Memory
when smart contracts are implemented, each will have it's own universe to track and maintain transactions this file implements the encrypted data stor
walletapi/wallet_memory.go:93
↓ 6 callersMethodGetMode
return current mode
walletapi/wallet.go:418
↓ 6 callersMethodGet_Block_Past
all the immediate past of a block
blockchain/store.go:182
↓ 6 callersFunctionInitialize
()
globals/globals.go:188
↓ 6 callersFunctionInitialize_RND
make sure 2 SCs cannot ever generate same series of random numbers
dvm/deterministic_random_number.go:36
↓ 6 callersMethodIsAddressHashValid
it is USED by consensus and p2p whether the miners has is valid
blockchain/miner_block.go:616
↓ 6 callersFunctionIsAddressInBanList
check whether an IP is in the map already we should loop and search in subnets also TODO make it fast, however we are not expecting millions of ban
p2p/bans.go:170
↓ 6 callersMethodIsIntegratedAddress
tells whether address is mainnet address
rpc/address.go:112
↓ 6 callersMethodIsPremine
()
transaction/transaction.go:205
↓ 6 callersFunctionKeep_Connectivity
this function continously turns connectivity online/offline avoid connectivity calls when possible
walletapi/daemon_connectivity_loop.go:36
↓ 6 callersMethodLength
()
cryptography/crypto/polynomial.go:40
↓ 6 callersMethodMempool_Delete_TX
delete specific tx from pool and return it if nil is returned Tx was not found in pool
blockchain/mempool/mempool.go:218
↓ 6 callersMethodMempool_Get_TX
get specific tx from mem pool without removing it
blockchain/mempool/mempool.go:251
↓ 6 callersMethodMulScalar
(a *gfP2, b *gfP)
cryptography/bn256/gfp2.go:94
↓ 6 callersMethodRandom_ring_members
sync history of wallet from blockchain
walletapi/daemon_communication.go:484
↓ 6 callersFunctionReadString
(l *readline.Instance, cprompt string, default_value string)
cmd/dero-wallet-cli/prompt.go:738
↓ 6 callersMethodRegpool_Delete_TX
delete specific tx from pool and return it if nil is returned Tx was not found in pool
blockchain/regpool/regpool.go:290
↓ 6 callersMethodSeed
(_ int64)
globals/random.go:39
↓ 6 callersMethodSet
(a *gfP12)
cryptography/bn256/gfp12.go:21
↓ 6 callersMethodSetNetwork
(mainnet bool)
walletapi/wallet.go:408
↓ 6 callersMethodShutdown
before shutdown , make sure p2p is confirmed stopped
blockchain/blockchain.go:358
↓ 6 callersFunctionUniqueConnections
unique connection list since 2 nodes may be connected in both directions, we need to deliver new blocks/tx to only one thereby saving NW/computing cos
p2p/connection_pool.go:193
↓ 6 callersFunctionmarshal
(xb []byte, yi *big.Int)
cryptography/bn256/changes.go:37
↓ 5 callersMethodAdd
(a, b *gfP12)
cryptography/bn256/gfp12.go:82
↓ 5 callersFunctionBigEndian_Uint64
(b []byte)
astrobwt/astrobwtv3/optimized_sort.go:41
↓ 5 callersMethodBlock_Exists
confirm whether the block exist in the data this only confirms whether the block has been downloaded a separate check is required, whether the block i
blockchain/store.go:126
↓ 5 callersMethodBytes
Bytes returns the data over which the index was created. It must not be modified.
astrobwt/astrobwtv3/suffixarray.go:232
↓ 5 callersMethodCheckPack
this function will pack the args into buffer of specific limit, if it fails, it gives eroor
rpc/rpc.go:164
↓ 5 callersFunctionCreate_Encrypted_Wallet
when smart contracts are implemented, each will have it's own universe to track and maintain transactions this file implements the encrypted data stor
walletapi/wallet_disk.go:38
↓ 5 callersMethodDecodeEncryptedBalance_Memory
(el *crypto.ElGamal, hint uint64)
walletapi/daemon_communication.go:468
↓ 5 callersFunctionEncryptDecryptUserData
default discard all logs, someone needs to set this up this function is used to encrypt/decrypt payment id,srcid and other userdata as the operation i
cryptography/crypto/userdata.go:29
↓ 5 callersFunctionFormatMoneyPrecision
format money with specific precision
rpc/wallet_rpc.go:160
↓ 5 callersFunctionFormatMoneyPrecision
format money with specific precision
globals/globals.go:294
↓ 5 callersMethodFrobenius
(a *gfP6)
cryptography/bn256/gfp6.go:53
↓ 5 callersMethodInsertMiniBlock
insert a miniblock
block/miniblockdag.go:86
↓ 5 callersMethodIsRegistered
()
walletapi/wallet.go:387
↓ 5 callersFunctionIsZero
this can be used to check whether variable has a default value for uint64 , it is 0 for string , it is "" TODO Address, Blob
dvm/dvm.go:973
↓ 5 callersMethodLength
()
cryptography/crypto/fieldvector.go:39
↓ 5 callersMethodLoad_Block_Timestamp
(crypto.Hash)
blockchain/difficulty.go:188
↓ 5 callersMethodMarshalBinary
serialize the structure
dvm/sc.go:43
↓ 5 callersMethodMulTau
MulTau computes τ·(aτ²+bτ+c) = bτ²+cτ+aξ
cryptography/bn256/gfp6.go:139
↓ 5 callersFunctionNewPedersenVectorCommitment
()
cryptography/crypto/algebra_pedersen.go:94
↓ 5 callersFunctionNewPolynomial
(input []*big.Int)
cryptography/crypto/polynomial.go:33
↓ 5 callersFunctionPOW16
it is a prime
astrobwt/astrobwt.go:16
↓ 5 callersMethodParity
()
cryptography/crypto/proof_generate.go:76
↓ 5 callersFunctionParseAmount
this will covert an amount in string form to atomic units
globals/globals.go:328
↓ 5 callersFunctionPeer_Direction_Count
this returns count of peers in both directions
p2p/connection_pool.go:355
↓ 5 callersMethodProcessPayload
process and updates necessary fields in the entry
rpc/wallet_rpc.go:111
↓ 5 callersFunctionRandomG1
RandomG1 returns x and g₁ˣ where x is a random, non-zero number read from r.
cryptography/bn256/bn256.go:44
↓ 5 callersFunctionRandomScalar
()
cryptography/crypto/random.go:23
↓ 5 callersMethodRewind_Chain
this function will rewind the chain from the topo height one block at a time this function also runs the client protocol in reverse and also deletes t
blockchain/blockchain.go:1400
↓ 5 callersFunctionSegwitAddrDecode
SegwitAddrDecode decodes hrp(human-readable part) Segwit Address(string), returns version(int) and data(bytes array) / or error
rpc/bech32.go:172
↓ 5 callersMethodSetRingSize
by default a wallet opens in Offline Mode however, It can be made online by calling this
walletapi/wallet.go:446
↓ 5 callersMethodSquare
(a *gfP6)
cryptography/bn256/gfp6.go:149
↓ 5 callersMethodUnmarshalBinary
(data []byte)
rpc/rpc.go:217
↓ 5 callersFunctionWords_To_Key
this function converts a list of words to a key
walletapi/mnemonics/mnemonics.go:73
↓ 5 callersMethodbinarySearchHeight
(targetheight int64)
blockchain/storetopo.go:190
↓ 5 callersFunctionchoose_file_name
lets the user choose a filename or use default
cmd/dero-wallet-cli/main.go:572
↓ 5 callersFunctionchoose_seed_language
* // create a new wallet from hex seed provided func Create_New_Account_from_seed(l *readline.Instance) *walletapi.Account { var account *walletapi
cmd/dero-wallet-cli/main.go:547
↓ 5 callersFunctioncleanup
()
cmd/derod/rpc/websocket_getwork_server.go:91
↓ 5 callersFunctioncommon_processing
sets online mode, starts RPC server etc
cmd/dero-wallet-cli/easymenu_pre_open.go:219
↓ 5 callersFunctionconnect_with_endpoint
will try to connect with given endpoint will block until the connection dies or is killed
p2p/controller.go:305
↓ 5 callersFunctiondisplay_seed
display seed to the user in his preferred language
cmd/dero-wallet-cli/prompt.go:999
↓ 5 callersFunctionfill_common_info
(data map[string]interface{}, extra_data bool)
cmd/explorer/explorerlib/explorerlib.go:917
↓ 5 callersMethodget
(i int)
astrobwt/suffixarray.go:51
↓ 5 callersMethodget
(i int)
astrobwt/astrobwtv3/suffixarray.go:51
↓ 5 callersFunctionload_block_from_rpc
load and setup block_info from rpc if hash is less than 64 bytes then it is considered a height parameter
cmd/explorer/explorerlib/explorerlib.go:348
↓ 5 callersFunctiontestLookups
(t *testing.T, tc *testCase, x *Index, n int)
astrobwt/suffixarray_test.go:202
↓ 5 callersFunctiontestLookups
(t *testing.T, tc *testCase, x *Index, n int)
astrobwt/astrobwtv3/suffixarray_test.go:202
↓ 4 callersFunctionBlockchain_Start
default discard all logs All blockchain activity is store in a single * do initialisation , setup storage, put genesis block and chain in store Thi
blockchain/blockchain.go:112
↓ 4 callersFunctionByteCountIEC
write 100000 account chunks, actually we should be writing atleast 100,000 accounts
blockchain/prune_history.go:37
↓ 4 callersFunctionCommitElGamal
(key *bn256.G1, value *big.Int)
cryptography/crypto/algebra_elgamal.go:44
↓ 4 callersMethodConcat
(addendum *PointVector)
cryptography/crypto/algebra_pointvector.go:162
↓ 4 callersFunctionCreateMiniBlockCollection
create a collection
block/miniblockdag.go:29
↓ 4 callersMethodCreate_new_block_template_mining
(miniblock_miner_address rpc.Address)
blockchain/miner_block.go:393
↓ 4 callersFunctionDecryptWithKey
extract 12 byte nonce from the data and deseal the data
walletapi/cipher.go:44
← previousnext →201–300 of 1,541, ranked by callers