Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deroproject/derohe
/ functions
Functions
1,541 in github.com/deroproject/derohe
⨍
Functions
1,541
◇
Types & classes
222
↓ 7 callers
Function
Generate_Genesis_Block
generates a genesis block
blockchain/genesis.go:27
↓ 7 callers
Method
Get_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 callers
Method
Hadamard
(exponents FieldVector)
cryptography/crypto/algebra_elgamal.go:159
↓ 7 callers
Function
Initialize_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 callers
Function
IsDaemonOnline
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 callers
Function
LoadSCAssetValue
(data_tree *Tree_Wrapper, scid crypto.Hash, asset crypto.Hash)
dvm/sc.go:340
↓ 7 callers
Method
LocatePruneTopo
exported from chain
blockchain/storetopo.go:186
↓ 7 callers
Method
MarshalBinary
pack more deeply
rpc/rpc.go:187
↓ 7 callers
Method
MulScalar
(a *gfP6, b *gfP2)
cryptography/bn256/gfp6.go:124
↓ 7 callers
Method
Nonce
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 callers
Method
Random
()
dvm/deterministic_random_number.go:44
↓ 7 callers
Function
ReadConfirmedPassword
(l *readline.Instance, first_prompt string, second_prompt string)
cmd/dero-wallet-cli/prompt.go:872
↓ 7 callers
Function
SC_Code_Key
(scid crypto.Hash)
dvm/sc.go:79
↓ 7 callers
Method
SendTransaction
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 callers
Method
Serialize
serialize entire block ( 64 bytes )
block/miniblock.go:140
↓ 7 callers
Method
Set
(a *gfP2)
cryptography/bn256/gfp2.go:24
↓ 7 callers
Function
benchmark_TX_Proof_Generation
(b *testing.B, ringsize int)
cmd/simulator/blockchain_sim_test.go:426
↓ 7 callers
Function
benchmark_TX_Proof_Generation
(b *testing.B, ringsize int)
walletapi/tx_creation_test.go:434
↓ 7 callers
Function
benchmark_TX_Proof_Verification
(b *testing.B, ringsize int)
cmd/simulator/blockchain_sim_test.go:458
↓ 7 callers
Function
benchmark_TX_Proof_Verification
(b *testing.B, ringsize int)
walletapi/tx_creation_test.go:466
↓ 7 callers
Function
decodeHex
(s string)
dvm/dvm_functions_test.go:271
↓ 7 callers
Function
simulator_chain_mineblock
(chain *blockchain.Blockchain, miner_address rpc.Address, t *testing.T)
cmd/simulator/blockchain_sim_test.go:101
↓ 6 callers
Method
ConsumeStorageGas
consume and check storage gas
dvm/dvm.go:449
↓ 6 callers
Function
Convolution
(exponent *FieldVector, base *PointVector)
cryptography/crypto/fieldvector.go:282
↓ 6 callers
Function
Create_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 callers
Method
GetMode
return current mode
walletapi/wallet.go:418
↓ 6 callers
Method
Get_Block_Past
all the immediate past of a block
blockchain/store.go:182
↓ 6 callers
Function
Initialize
()
globals/globals.go:188
↓ 6 callers
Function
Initialize_RND
make sure 2 SCs cannot ever generate same series of random numbers
dvm/deterministic_random_number.go:36
↓ 6 callers
Method
IsAddressHashValid
it is USED by consensus and p2p whether the miners has is valid
blockchain/miner_block.go:616
↓ 6 callers
Function
IsAddressInBanList
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 callers
Method
IsIntegratedAddress
tells whether address is mainnet address
rpc/address.go:112
↓ 6 callers
Method
IsPremine
()
transaction/transaction.go:205
↓ 6 callers
Function
Keep_Connectivity
this function continously turns connectivity online/offline avoid connectivity calls when possible
walletapi/daemon_connectivity_loop.go:36
↓ 6 callers
Method
Length
()
cryptography/crypto/polynomial.go:40
↓ 6 callers
Method
Mempool_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 callers
Method
Mempool_Get_TX
get specific tx from mem pool without removing it
blockchain/mempool/mempool.go:251
↓ 6 callers
Method
MulScalar
(a *gfP2, b *gfP)
cryptography/bn256/gfp2.go:94
↓ 6 callers
Method
Random_ring_members
sync history of wallet from blockchain
walletapi/daemon_communication.go:484
↓ 6 callers
Function
ReadString
(l *readline.Instance, cprompt string, default_value string)
cmd/dero-wallet-cli/prompt.go:738
↓ 6 callers
Method
Regpool_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 callers
Method
Seed
(_ int64)
globals/random.go:39
↓ 6 callers
Method
Set
(a *gfP12)
cryptography/bn256/gfp12.go:21
↓ 6 callers
Method
SetNetwork
(mainnet bool)
walletapi/wallet.go:408
↓ 6 callers
Method
Shutdown
before shutdown , make sure p2p is confirmed stopped
blockchain/blockchain.go:358
↓ 6 callers
Function
UniqueConnections
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 callers
Function
marshal
(xb []byte, yi *big.Int)
cryptography/bn256/changes.go:37
↓ 5 callers
Method
Add
(a, b *gfP12)
cryptography/bn256/gfp12.go:82
↓ 5 callers
Function
BigEndian_Uint64
(b []byte)
astrobwt/astrobwtv3/optimized_sort.go:41
↓ 5 callers
Method
Block_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 callers
Method
Bytes
Bytes returns the data over which the index was created. It must not be modified.
astrobwt/astrobwtv3/suffixarray.go:232
↓ 5 callers
Method
CheckPack
this function will pack the args into buffer of specific limit, if it fails, it gives eroor
rpc/rpc.go:164
↓ 5 callers
Function
Create_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 callers
Method
DecodeEncryptedBalance_Memory
(el *crypto.ElGamal, hint uint64)
walletapi/daemon_communication.go:468
↓ 5 callers
Function
EncryptDecryptUserData
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 callers
Function
FormatMoneyPrecision
format money with specific precision
rpc/wallet_rpc.go:160
↓ 5 callers
Function
FormatMoneyPrecision
format money with specific precision
globals/globals.go:294
↓ 5 callers
Method
Frobenius
(a *gfP6)
cryptography/bn256/gfp6.go:53
↓ 5 callers
Method
InsertMiniBlock
insert a miniblock
block/miniblockdag.go:86
↓ 5 callers
Method
IsRegistered
()
walletapi/wallet.go:387
↓ 5 callers
Function
IsZero
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 callers
Method
Length
()
cryptography/crypto/fieldvector.go:39
↓ 5 callers
Method
Load_Block_Timestamp
(crypto.Hash)
blockchain/difficulty.go:188
↓ 5 callers
Method
MarshalBinary
serialize the structure
dvm/sc.go:43
↓ 5 callers
Method
MulTau
MulTau computes τ·(aτ²+bτ+c) = bτ²+cτ+aξ
cryptography/bn256/gfp6.go:139
↓ 5 callers
Function
NewPedersenVectorCommitment
()
cryptography/crypto/algebra_pedersen.go:94
↓ 5 callers
Function
NewPolynomial
(input []*big.Int)
cryptography/crypto/polynomial.go:33
↓ 5 callers
Function
POW16
it is a prime
astrobwt/astrobwt.go:16
↓ 5 callers
Method
Parity
()
cryptography/crypto/proof_generate.go:76
↓ 5 callers
Function
ParseAmount
this will covert an amount in string form to atomic units
globals/globals.go:328
↓ 5 callers
Function
Peer_Direction_Count
this returns count of peers in both directions
p2p/connection_pool.go:355
↓ 5 callers
Method
ProcessPayload
process and updates necessary fields in the entry
rpc/wallet_rpc.go:111
↓ 5 callers
Function
RandomG1
RandomG1 returns x and g₁ˣ where x is a random, non-zero number read from r.
cryptography/bn256/bn256.go:44
↓ 5 callers
Function
RandomScalar
()
cryptography/crypto/random.go:23
↓ 5 callers
Method
Rewind_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 callers
Function
SegwitAddrDecode
SegwitAddrDecode decodes hrp(human-readable part) Segwit Address(string), returns version(int) and data(bytes array) / or error
rpc/bech32.go:172
↓ 5 callers
Method
SetRingSize
by default a wallet opens in Offline Mode however, It can be made online by calling this
walletapi/wallet.go:446
↓ 5 callers
Method
Square
(a *gfP6)
cryptography/bn256/gfp6.go:149
↓ 5 callers
Method
UnmarshalBinary
(data []byte)
rpc/rpc.go:217
↓ 5 callers
Function
Words_To_Key
this function converts a list of words to a key
walletapi/mnemonics/mnemonics.go:73
↓ 5 callers
Method
binarySearchHeight
(targetheight int64)
blockchain/storetopo.go:190
↓ 5 callers
Function
choose_file_name
lets the user choose a filename or use default
cmd/dero-wallet-cli/main.go:572
↓ 5 callers
Function
choose_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 callers
Function
cleanup
()
cmd/derod/rpc/websocket_getwork_server.go:91
↓ 5 callers
Function
common_processing
sets online mode, starts RPC server etc
cmd/dero-wallet-cli/easymenu_pre_open.go:219
↓ 5 callers
Function
connect_with_endpoint
will try to connect with given endpoint will block until the connection dies or is killed
p2p/controller.go:305
↓ 5 callers
Function
display_seed
display seed to the user in his preferred language
cmd/dero-wallet-cli/prompt.go:999
↓ 5 callers
Function
fill_common_info
(data map[string]interface{}, extra_data bool)
cmd/explorer/explorerlib/explorerlib.go:917
↓ 5 callers
Method
get
(i int)
astrobwt/suffixarray.go:51
↓ 5 callers
Method
get
(i int)
astrobwt/astrobwtv3/suffixarray.go:51
↓ 5 callers
Function
load_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 callers
Function
testLookups
(t *testing.T, tc *testCase, x *Index, n int)
astrobwt/suffixarray_test.go:202
↓ 5 callers
Function
testLookups
(t *testing.T, tc *testCase, x *Index, n int)
astrobwt/astrobwtv3/suffixarray_test.go:202
↓ 4 callers
Function
Blockchain_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 callers
Function
ByteCountIEC
write 100000 account chunks, actually we should be writing atleast 100,000 accounts
blockchain/prune_history.go:37
↓ 4 callers
Function
CommitElGamal
(key *bn256.G1, value *big.Int)
cryptography/crypto/algebra_elgamal.go:44
↓ 4 callers
Method
Concat
(addendum *PointVector)
cryptography/crypto/algebra_pointvector.go:162
↓ 4 callers
Function
CreateMiniBlockCollection
create a collection
block/miniblockdag.go:29
↓ 4 callers
Method
Create_new_block_template_mining
(miniblock_miner_address rpc.Address)
blockchain/miner_block.go:393
↓ 4 callers
Function
DecryptWithKey
extract 12 byte nonce from the data and deseal the data
walletapi/cipher.go:44
← previous
next →
201–300 of 1,541, ranked by callers