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
↓ 1 callers
Method
ReadBlockHeight
(h [32]byte)
blockchain/storefs.go:226
↓ 1 callers
Method
ReadBlockHeight
(h [32]byte)
blockchain/storefs.go:239
↓ 1 callers
Function
ReadFloat64
(l *readline.Instance, cprompt string, default_value float64)
cmd/dero-wallet-cli/prompt.go:611
↓ 1 callers
Function
ReadInt64
(l *readline.Instance, cprompt string, default_value int64)
cmd/dero-wallet-cli/prompt.go:698
↓ 1 callers
Method
Regpool_Address_Present
check whether a keyimage exists in the pool
blockchain/regpool/regpool.go:278
↓ 1 callers
Method
Run
setup handlers
walletapi/rpcserver/rpc_websocket_server.go:132
↓ 1 callers
Method
SerializeCoreStatement
TXID excludes proof, rest everything is included
transaction/transaction.go:503
↓ 1 callers
Function
SetDaemonAddress
(endpoint string)
walletapi/wallet.go:427
↓ 1 callers
Method
SetIntegratorAddress
(addr rpc.Address)
blockchain/blockchain.go:330
↓ 1 callers
Method
SetOfflineMode
by default a wallet opens in Offline Mode however, if the wallet is in online mode, it can be made offline instantly using this
walletapi/wallet.go:402
↓ 1 callers
Method
SetOne
()
cryptography/bn256/gfp12.go:33
↓ 1 callers
Function
SetThreadAffinityMask
currently we suppport upto 64 cores
cmd/dero-miner/thread_windows.go:51
↓ 1 callers
Method
SetZero
()
cryptography/bn256/gfp12.go:27
↓ 1 callers
Method
Set_Encrypted_Wallet_Password
wallet must already be open
walletapi/wallet_memory.go:158
↓ 1 callers
Method
SignFile
this basically does a Schnorr Signature on random information for registration NOTE: this function brings entire file to RAM 2 times, this could be r
walletapi/wallet.go:681
↓ 1 callers
Method
Slice
slice and return
cryptography/crypto/algebra_fieldvector.go:50
↓ 1 callers
Function
SliceUniqTopoRecord
SliceUniq removes duplicate values in given slice
blockchain/storetopo.go:241
↓ 1 callers
Method
SortTips
this will sort the tips based on cumulative difficulty and/or block ids the tips will sorted in descending order
blockchain/miner_block.go:77
↓ 1 callers
Method
String
stringifier
block/block.go:80
↓ 1 callers
Method
StringHex
()
cryptography/crypto/group.go:58
↓ 1 callers
Method
SyncHistory
make sync history single threaded
walletapi/daemon_communication.go:507
↓ 1 callers
Method
Times
(multiplier *big.Int)
cryptography/crypto/algebra_fieldvector.go:160
↓ 1 callers
Method
TokenAdd
(scid crypto.Hash)
walletapi/wallet.go:131
↓ 1 callers
Method
TreeSection
get parts of the specified balance tree chunk by chunk
p2p/rpc_treesection.go:22
↓ 1 callers
Function
UnBan_Address
* /// ban a peer only if it can be banned func Peer_Ban_Internal(address string, ban_seconds uint64) (err error){ p := GetPeerInList(address)
p2p/bans.go:242
↓ 1 callers
Method
UnmarshalHeaderStatement
(r *bytes.Reader)
transaction/transaction.go:137
↓ 1 callers
Method
UnmarshalProofs
(r *bytes.Reader)
transaction/transaction.go:167
↓ 1 callers
Method
UnmarshalText
(text []byte)
rpc/address.go:121
↓ 1 callers
Method
Used
Used returns total bytes used in file system
metrics/diskusage.go:38
↓ 1 callers
Method
Used
Used returns total bytes used in file system
metrics/diskusage_windows.go:48
↓ 1 callers
Function
Verify_Checksum
for verification, we need all 25 words calculate checksum and verify whether match
walletapi/mnemonics/mnemonics.go:266
↓ 1 callers
Function
Verify_MiniBlocks
verifies the consensus rules completely for miniblocks
blockchain/miniblocks_consensus.go:53
↓ 1 callers
Method
Verify_MiniBlocks_HashCheck
last miniblock must be extra checked for corruption/attacks
blockchain/miniblocks_consensus.go:32
↓ 1 callers
Method
Verify_Transaction_Coinbase
Coinbase transactions need to verify registration
blockchain/transaction_verify.go:62
↓ 1 callers
Function
WriteBlockChainTree
(chain *blockchain.Blockchain, filename string, start_height, stop_height int64)
cmd/derod/main.go:1124
↓ 1 callers
Function
assemblepolynomials
* func (proof *Proof) String() string { klog.V(1).Infof("proof BA %s\n", proof.BA.String()) klog.V(1).Infof("proof BS %s\n", proof.BS.String())
cryptography/crypto/proof_verify.go:522
↓ 1 callers
Function
assignID_16
(text []int16, sa []int16, numLMS int)
astrobwt/sais16.go:762
↓ 1 callers
Function
assignID_32
(text []int32, sa []int32, numLMS int)
astrobwt/sais2.go:1110
↓ 1 callers
Function
assignID_32
(text []int32, sa []int32, numLMS int)
astrobwt/astrobwtv3/sais2.go:1110
↓ 1 callers
Function
assignID_64
(text []int64, sa []int64, numLMS int)
astrobwt/sais2.go:1146
↓ 1 callers
Function
assignID_64
(text []int64, sa []int64, numLMS int)
astrobwt/astrobwtv3/sais2.go:1146
↓ 1 callers
Function
assignID_8_16
(text []byte, sa []int16, numLMS int)
astrobwt/sais16.go:726
↓ 1 callers
Function
assignID_8_32
assignID_8_32 assigns a dense ID numbering to the set of LMS-substrings respecting string ordering and equality, returning the maximum assigned ID. Fo
astrobwt/sais.go:593
↓ 1 callers
Function
assignID_8_32
assignID_8_32 assigns a dense ID numbering to the set of LMS-substrings respecting string ordering and equality, returning the maximum assigned ID. Fo
astrobwt/astrobwtv3/sais.go:593
↓ 1 callers
Function
assignID_8_64
(text []byte, sa []int64, numLMS int)
astrobwt/sais2.go:1074
↓ 1 callers
Function
assignID_8_64
(text []byte, sa []int64, numLMS int)
astrobwt/astrobwtv3/sais2.go:1074
↓ 1 callers
Function
avoidHT
(i int)
cmd/dero-miner/thread_windows.go:78
↓ 1 callers
Function
avoidHT
(i int)
cmd/dero-miner/thread_linux.go:39
↓ 1 callers
Function
ban_clean_up_goroutine
clean up ban list every 20 seconds
p2p/bans.go:108
↓ 1 callers
Function
benchmarkbatchedinverts
(count int, b *testing.B)
cryptography/bn256/changes_test.go:48
↓ 1 callers
Function
benchmarksingleinverts
(count int, b *testing.B)
cryptography/bn256/changes_test.go:31
↓ 1 callers
Method
bootstrap_chain
import "github.com/deroproject/derosuite/blockchain" we are expecting other side to have a heavier PoW chain this is for the case when the chain only
p2p/chain_bootstrap.go:45
↓ 1 callers
Function
broadcast_Block_Coded
(cbl *block.Complete_Block, PeerID uint64, first_seen int64)
p2p/connection_pool.go:382
↓ 1 callers
Function
broadcast_Chunk
broad cast a block to all connected peers in cut up in chunks with erasure coding we can only broadcast a block which is in our db this function is tr
p2p/connection_pool.go:483
↓ 1 callers
Method
calculate_avg_offset
calculate avg offset
p2p/common.go:92
↓ 1 callers
Function
calculate_network_time
update P2P time
p2p/connection_pool.go:753
↓ 1 callers
Function
check_update
()
cmd/derod/update.go:152
↓ 1 callers
Function
clone_snapshot
clone a snapshot, this is a dero arch dependent since the trees can be large in the long term, we do them in chunks
blockchain/prune_history.go:152
↓ 1 callers
Function
convert_block_to_chunks
note we do not send complete block, since other nodes already have most of the mempool, let the mempool be used as much as possible
p2p/chunk_server.go:299
↓ 1 callers
Function
createChecksum
(hrp string, data []int)
rpc/bech32.go:65
↓ 1 callers
Function
create_genesis_wallet
()
cmd/simulator/wallets.go:93
↓ 1 callers
Function
dial_random_read_response
(in []byte)
cmd/derod/update.go:85
↓ 1 callers
Function
diff_snapshot
diff a snapshot from block to block, this is a dero arch dependent entire block is done in a single commit
blockchain/prune_history.go:266
↓ 1 callers
Function
discard_blocks_and_transactions
first lets free space by discarding blocks, and txs before the historical point any error while deleting should be considered non fatal
blockchain/prune_history.go:118
↓ 1 callers
Function
display_easymenu_post_open_command
import "github.com/deroproject/derohe/address" handle menu if a wallet is currently opened
cmd/dero-wallet-cli/easymenu_post_open.go:40
↓ 1 callers
Function
display_easymenu_pre_open_command
display menu before a wallet is opened
cmd/dero-wallet-cli/easymenu_pre_open.go:35
↓ 1 callers
Function
doGetProcAddress
(lib uintptr, name string)
cmd/dero-miner/thread_windows.go:33
↓ 1 callers
Function
doLoadLibrary
(name string)
cmd/dero-miner/thread_windows.go:28
↓ 1 callers
Function
dump
(filename string)
cmd/derod/main.go:96
↓ 1 callers
Method
evalBinaryExpr
(exp *ast.BinaryExpr)
dvm/dvm.go:992
↓ 1 callers
Method
eval_identifier
only returns identifiers
dvm/dvm.go:842
↓ 1 callers
Function
exists
(path string)
cmd/simulator/simulator.go:554
↓ 1 callers
Function
expand_16
(text []int16, freq, bucket, sa []int16, numLMS int)
astrobwt/sais16.go:957
↓ 1 callers
Function
expand_32
(text []int32, freq, bucket, sa []int32, numLMS int)
astrobwt/sais2.go:1367
↓ 1 callers
Function
expand_32
(text []int32, freq, bucket, sa []int32, numLMS int)
astrobwt/astrobwtv3/sais2.go:1367
↓ 1 callers
Function
expand_64
(text []int64, freq, bucket, sa []int64, numLMS int)
astrobwt/sais2.go:1398
↓ 1 callers
Function
expand_64
(text []int64, freq, bucket, sa []int64, numLMS int)
astrobwt/astrobwtv3/sais2.go:1398
↓ 1 callers
Function
expand_8_16
(text []byte, freq, bucket, sa []int16, numLMS int)
astrobwt/sais16.go:925
↓ 1 callers
Function
expand_8_32
expand_8_32 distributes the compacted, sorted LMS-suffix indexes from sa[:numLMS] into the tops of the appropriate buckets in sa, preserving the sorte
astrobwt/sais.go:757
↓ 1 callers
Function
expand_8_32
expand_8_32 distributes the compacted, sorted LMS-suffix indexes from sa[:numLMS] into the tops of the appropriate buckets in sa, preserving the sorte
astrobwt/astrobwtv3/sais.go:757
↓ 1 callers
Function
expand_8_64
(text []byte, freq, bucket, sa []int64, numLMS int)
astrobwt/sais2.go:1335
↓ 1 callers
Function
expand_8_64
(text []byte, freq, bucket, sa []int64, numLMS int)
astrobwt/astrobwtv3/sais2.go:1335
↓ 1 callers
Function
extract_parse_version
our version are TXT record of following format version=base64 encoded json
cmd/derod/update.go:260
↓ 1 callers
Method
feed_chunk
feed a chunk until we are able to fully decode a chunk
p2p/chunk_server.go:61
↓ 1 callers
Function
fft_FieldVector
(input *FieldVector, inverse bool)
cryptography/crypto/fieldvector.go:172
↓ 1 callers
Function
fill_common_skip_topoheight
used while sendint TX ASAP this also skips statehash
p2p/common.go:42
↓ 1 callers
Function
find
find all occurrences of s in source; report at most n occurrences
astrobwt/suffixarray_test.go:113
↓ 1 callers
Function
find
find all occurrences of s in source; report at most n occurrences
astrobwt/astrobwtv3/suffixarray_test.go:113
↓ 1 callers
Function
findYforX
* * Given X, find Y * * where y = sqrt(x^3 + b) * * Returns: (x^3 + b), y **/
cryptography/crypto/hashtopoint.go:152
↓ 1 callers
Function
fix
(v []byte, indices []uint32, i int)
astrobwt/astrobwtv3/sa_fast.go:37
↓ 1 callers
Function
fix
(v []byte, indices []uint32, i int)
astrobwt/astrobwt_fast/astrobwt_optimized.go:76
↓ 1 callers
Function
fix_startup
()
cmd/simulator/wallets.go:98
↓ 1 callers
Method
flip_top
this will flip chain top, depending on which block has more work more worked block is normally identified in < 2 secs
blockchain/blockchain.go:1578
↓ 1 callers
Method
gFpToBigInt
Convert a gfP into a big.Int
cryptography/bn256/changes.go:201
↓ 1 callers
Method
generateInnerProductProof
(base *GeneratorParams, P *bn256.G1, as, bs *FieldVector, prev_challenge *big.Int)
cryptography/crypto/proof_innerproduct.go:110
↓ 1 callers
Method
generateInnerProductProofNew
(p *PedersenVectorCommitment, as, bs *FieldVector, prev_challenge *big.Int)
cryptography/crypto/proof_innerproduct.go:176
↓ 1 callers
Function
generate_random_tls_cert
generate default tls cert to encrypt everything NOTE: this does NOT protect from individual active man-in-the-middle attacks
p2p/controller.go:719
↓ 1 callers
Function
generate_random_tls_cert
generate default tls cert to encrypt everything NOTE: this does NOT protect from individual active man-in-the-middle attacks
cmd/derod/rpc/websocket_getwork_server.go:399
↓ 1 callers
Function
getYFromMontEncodedX
Takes a MontEncoded x and finds the corresponding y (one of the two possible y's)
cryptography/bn256/changes.go:109
↓ 1 callers
Function
get_peer_list
return white listed peer list for use in handshake
p2p/peer_pool.go:316
← previous
next →
801–900 of 1,541, ranked by callers