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
↓ 4 callers
Function
DirSize
(path string)
blockchain/prune_history.go:51
↓ 4 callers
Function
ErrorRevert
any error during this will panic
dvm/simulator.go:244
↓ 4 callers
Method
ExpandMiniBlockTip
this expands the 12 byte tip to full 32 byte tip it is not used in consensus but used by p2p for safety checks
blockchain/miner_block.go:587
↓ 4 callers
Method
Extract
(parity bool)
cryptography/crypto/algebra_pointvector.go:145
↓ 4 callers
Function
GenerateProof
these can be pregenerated similarly as in DERO project
cryptography/crypto/proof_generate.go:453
↓ 4 callers
Function
GenerateSharedSecret
does an ECDH and generates a shared secret https://en.wikipedia.org/wiki/Elliptic_curve_Diffie%E2%80%93Hellman
cryptography/crypto/userdata.go:45
↓ 4 callers
Function
GetBlockHeader
this function is only used by the RPC and is not used by the core and should be moved to RPC interface * fill up the above structure from the blockcha
cmd/derod/rpc/blockheader.go:29
↓ 4 callers
Method
GetFeeMultiplier
gets current fee multiplier
walletapi/wallet.go:479
↓ 4 callers
Function
Get_Daemon_Height
return daemon height
walletapi/daemon_communication.go:66
↓ 4 callers
Method
Get_Stable_Height
get height where chain is now stable
blockchain/blockchain.go:1138
↓ 4 callers
Method
HeaderHash
()
p2p/wire_structs.go:165
↓ 4 callers
Method
InnerProduct
(exponent *FieldVector)
cryptography/crypto/algebra_fieldvector.go:137
↓ 4 callers
Method
Invert
(f *gfP)
cryptography/bn256/gfp.go:33
↓ 4 callers
Method
IsRegistrationValid
()
transaction/transaction.go:250
↓ 4 callers
Method
Length
()
dvm/dvm_store.go:187
↓ 4 callers
Method
Mempool_Add_TX
a tx should only be added to pool after verification is complete
blockchain/mempool/mempool.go:148
↓ 4 callers
Method
Mempool_List_TX_SortedInfo
passes back sorting information and length information for easier new block forging
blockchain/mempool/mempool.go:295
↓ 4 callers
Method
Mempool_TX_Exist
check whether a tx exists in the pool
blockchain/mempool/mempool.go:195
↓ 4 callers
Function
New
New creates a new Index for data. Index creation time is O(N) for N = len(data).
astrobwt/suffixarray.go:75
↓ 4 callers
Function
New
New creates a new Index for data. Index creation time is O(N) for N = len(data).
astrobwt/astrobwtv3/suffixarray.go:75
↓ 4 callers
Function
New
(conn *websocket.Conn)
glue/rwc/rwc.go:17
↓ 4 callers
Function
NewAddressFromCompressedKeys
creates a new address from a compressed 33 byte key
rpc/address.go:205
↓ 4 callers
Function
NewCryptoRandSource
()
globals/random.go:28
↓ 4 callers
Function
Open_Encrypted_Wallet
(filename string, password string)
walletapi/wallet_disk.go:98
↓ 4 callers
Function
Peer_Add
add connection to map
p2p/peer_pool.go:161
↓ 4 callers
Method
RPCServer_Stop
shutdown the rpc server component
cmd/derod/rpc/websocket_server.go:171
↓ 4 callers
Function
RandomScalarBNRed
()
cryptography/crypto/bnred.go:31
↓ 4 callers
Function
Read_Data_Frame
reads our data, length prefix blocks
p2p/rpc_cbor_codec.go:33
↓ 4 callers
Method
Regpool_Add_TX
a tx should only be added to pool after verification is complete
blockchain/regpool/regpool.go:215
↓ 4 callers
Method
Regpool_Get_TX
get specific tx from mem pool without removing it
blockchain/regpool/regpool.go:321
↓ 4 callers
Method
Save_Wallet
save updated copy of wallet
walletapi/wallet_disk.go:130
↓ 4 callers
Method
Save_Wallet
save updated copy of wallet
walletapi/wallet_memory.go:268
↓ 4 callers
Method
Serialize
()
cryptography/crypto/algebra_elgamal.go:87
↓ 4 callers
Method
SetTrackRecentBlocks
Ability to set wallet scanning a negative set value, will return existing value, 0 is a valid value and is set to default and will scan entire history
walletapi/wallet.go:536
↓ 4 callers
Method
Set_Encrypted_Wallet_Password
wallet must already be open
walletapi/wallet_disk.go:90
↓ 4 callers
Method
Size
Size returns total size of the file system
metrics/diskusage.go:33
↓ 4 callers
Method
SliceRaw
(start, end int)
cryptography/crypto/algebra_fieldvector.go:67
↓ 4 callers
Function
StoreSCValue
store the value in the chain
dvm/sc.go:392
↓ 4 callers
Method
String
stringifier
rpc/address.go:84
↓ 4 callers
Method
Sync_Wallet_Memory_With_Daemon_internal
sync the wallet with daemon, this is instantaneous and can be done with a single call we have now the apis to avoid polling
walletapi/daemon_communication.go:248
↓ 4 callers
Function
TimeSkipP2P
skip p2p offset
globals/globals.go:74
↓ 4 callers
Method
Validate_Arguments
used to validata arguments whether the type is proper
rpc/rpc.go:305
↓ 4 callers
Method
Verify
these can be pregenerated similarly as in DERO project verify proof first generate supporting structures
cryptography/crypto/proof_verify.go:98
↓ 4 callers
Method
VerifyMiniblockPoW
(bl *block.Block, mbl block.MiniBlock)
blockchain/difficulty.go:154
↓ 4 callers
Function
Write_Data_Frame
reads our data, length prefix blocks
p2p/rpc_cbor_codec.go:75
↓ 4 callers
Function
ban_clean_up
* used for manual simulation once to track a hard to find bug func init() { load_ban_list() Ban_Address("188.191.128.64/24",600) IsAddressInBanLi
p2p/bans.go:132
↓ 4 callers
Function
bucketMax_16
(text []int16, freq, bucket []int16)
astrobwt/sais16.go:206
↓ 4 callers
Function
bucketMax_32
(text []int32, freq, bucket []int32)
astrobwt/sais2.go:294
↓ 4 callers
Function
bucketMax_32
(text []int32, freq, bucket []int32)
astrobwt/astrobwtv3/sais2.go:294
↓ 4 callers
Function
bucketMax_64
(text []int64, freq, bucket []int64)
astrobwt/sais2.go:303
↓ 4 callers
Function
bucketMax_64
(text []int64, freq, bucket []int64)
astrobwt/astrobwtv3/sais2.go:303
↓ 4 callers
Function
bucketMax_8_16
(text []byte, freq, bucket []int16)
astrobwt/sais16.go:195
↓ 4 callers
Function
bucketMax_8_32
bucketMax_8_32 stores into bucket[c] the maximum index in the bucket for character c in a bucket-sort of text. The bucket indexes for c are [min, max)
astrobwt/sais.go:248
↓ 4 callers
Function
bucketMax_8_32
bucketMax_8_32 stores into bucket[c] the maximum index in the bucket for character c in a bucket-sort of text. The bucket indexes for c are [min, max)
astrobwt/astrobwtv3/sais.go:248
↓ 4 callers
Function
bucketMax_8_64
(text []byte, freq, bucket []int64)
astrobwt/sais2.go:283
↓ 4 callers
Function
bucketMax_8_64
(text []byte, freq, bucket []int64)
astrobwt/astrobwtv3/sais2.go:283
↓ 4 callers
Method
check
(blid crypto.Hash)
p2p/chain_sync.go:63
↓ 4 callers
Method
check
tx must be in expanded form check and insert cannot should be used 2 time, one time use for check, second time use for insert
blockchain/block_verify.go:31
↓ 4 callers
Method
checknil
()
cryptography/crypto/balance_serdes.go:34
↓ 4 callers
Function
clean_up
clean up by discarding entries which are too much into future
p2p/peer_pool.go:120
↓ 4 callers
Function
convertbits
(data []int, frombits, tobits uint, pad bool)
rpc/bech32.go:143
↓ 4 callers
Function
gfpCarry
(a *gfP, head uint64)
cryptography/bn256/gfp_generic.go:6
↓ 4 callers
Function
hashratetostring
(hash_rate uint64)
cmd/derod/main.go:1106
↓ 4 callers
Function
hextobytes
(input string)
cryptography/crypto/hashtopoint.go:84
↓ 4 callers
Function
is_chunk_exist
return whether chunk exist
p2p/chunk_server.go:50
↓ 4 callers
Function
lineFunctionAdd
(r, p *twistPoint, q *curvePoint, r2 *gfP2)
cryptography/bn256/optate.go:3
↓ 4 callers
Function
load_tx_from_rpc
load and setup txinfo from rpc
cmd/explorer/explorerlib/explorerlib.go:544
↓ 4 callers
Function
makestring64
(input string)
cryptography/crypto/hashtopoint.go:70
↓ 4 callers
Function
mul
(a, b [4]uint64)
cryptography/bn256/gfp_generic.go:70
↓ 4 callers
Function
mulLine
(ret *gfP12, a, b, c *gfP2)
cryptography/bn256/optate.go:94
↓ 4 callers
Function
show_page
(w http.ResponseWriter, page int)
cmd/explorer/explorerlib/explorerlib.go:754
↓ 4 callers
Method
slice
(i, j int)
astrobwt/suffixarray.go:66
↓ 4 callers
Method
slice
(i, j int)
astrobwt/astrobwtv3/suffixarray.go:66
↓ 4 callers
Function
test_connectivity
tests connectivity when connectivity to daemon
walletapi/daemon_communication.go:143
↓ 4 callers
Function
valid_registration_or_display_error
(l *readline.Instance, wallet *walletapi.Wallet_Disk)
cmd/dero-wallet-cli/prompt.go:1027
↓ 3 callers
Method
Accept_new_block
accept work given by us we should verify that the transaction list supplied back by the miner exists in the mempool otherwise the miner is trying to a
blockchain/miner_block.go:442
↓ 3 callers
Method
BaseAddress
base address if its integrated address
rpc/address.go:90
↓ 3 callers
Method
CheckSignature
(input []byte)
walletapi/wallet.go:636
↓ 3 callers
Method
Clone
()
rpc/address.go:96
↓ 3 callers
Function
Connect
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
cmd/explorer/explorerlib/explorerlib.go:126
↓ 3 callers
Function
Connect
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_connectivity.go:54
↓ 3 callers
Method
ConsumeGas
consumr and check compute gas
dvm/dvm.go:439
↓ 3 callers
Function
Create_Encrypted_Wallet_From_Recovery_Words_Memory
create an encrypted wallet using electrum recovery words
walletapi/wallet_memory.go:130
↓ 3 callers
Method
DecodeEncryptedBalanceNow
decode encrypted balance now it may take a long time, its currently sing threaded, need to parallelize
walletapi/daemon_communication.go:344
↓ 3 callers
Method
DeleteBlock
on windows, we see an odd behaviour where some files could not be deleted, since they may exist only in cache
blockchain/storefs.go:94
↓ 3 callers
Function
EncryptWithKey
all data in encrypted within the storage using this, PERIOD all data has a new nonce, appended to the the data , last 12 bytes
walletapi/cipher.go:26
↓ 3 callers
Function
Execute_sc_function
this will process the SC transaction the tx should only be processed , if it has been processed
dvm/sc.go:122
↓ 3 callers
Function
Extract_signer
func extract signer from a tx, if possible extract signer is only possible if ring size is 2
blockchain/transaction_execute.go:424
↓ 3 callers
Function
FormatMoney
never do any division operation on money due to floating point issues newbies, see type the next in python interpretor "3.33-3.13"
rpc/wallet_rpc.go:135
↓ 3 callers
Function
FormatMoney
never do any division operation on money due to floating point issues newbies, see type the next in python interpretor "3.33-3.13"
walletapi/wallet.go:598
↓ 3 callers
Method
FrobeniusP2
FrobeniusP2 computes (xτ²+yτ+z)^(p²) = xτ^(2p²) + yτ^(p²) + z
cryptography/bn256/gfp6.go:64
↓ 3 callers
Function
Generate_Account_From_Recovery_Words
generate user account using recovery seeds
walletapi/wallet.go:165
↓ 3 callers
Function
Generate_Key
generate key from password
walletapi/wallet_memory.go:323
↓ 3 callers
Function
Generate_Keys_From_Seed
generate keys from seed which is from the recovery words or we feed in direct
walletapi/wallet.go:155
↓ 3 callers
Method
GetAllKeys
get all the tips from the map, this is atleast O(n)
block/miniblockdag.go:114
↓ 3 callers
Method
GetAllMiniBlocks
get all the genesis blocks
block/miniblockdag.go:103
↓ 3 callers
Function
GetBNRed
converts big.Int to BNRed
cryptography/crypto/bnred.go:36
↓ 3 callers
Method
GetDecryptedBalanceAtTopoHeight
(scid crypto.Hash, topoheight int64, accountaddr string)
walletapi/daemon_communication.go:474
↓ 3 callers
Method
GetKey
()
block/miniblock.go:65
↓ 3 callers
Method
GetNetwork
()
walletapi/wallet.go:413
← previous
next →
301–400 of 1,541, ranked by callers