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
↓ 3 callers
Function
GetPowerof2
tell what power a number is
cryptography/crypto/const.go:41
↓ 3 callers
Method
GetRandomIAddress8
get a random integrated address
walletapi/wallet.go:210
↓ 3 callers
Method
GetRingSize
by default a wallet opens in Offline Mode however, It can be made online by calling this
walletapi/wallet.go:460
↓ 3 callers
Method
Get_Blocks_At_Height
(height int64)
blockchain/storetopo.go:255
↓ 3 callers
Method
Get_Daemon_Height
()
walletapi/wallet.go:378
↓ 3 callers
Method
Get_Ideal_Version_at_Height
used to cast vote
blockchain/hardfork_core.go:241
↓ 3 callers
Method
Hadamard
(exponent *FieldVector)
cryptography/crypto/algebra_fieldvector.go:124
↓ 3 callers
Function
HashrateEstimatePercent
this will calcuate amount of hashrate based on the number of minis note this calculation is very crude note it will always be lagging, since NW condit
cmd/derod/rpc/websocket_getwork_server.go:109
↓ 3 callers
Method
IS_TX_Valid
this will return the tx combination as valid/invalid this is not used as core consensus but reports only to user that his tx though in the blockchain
blockchain/blockchain.go:1341
↓ 3 callers
Method
Initialise_Chain_From_DB
this function is called to read blockchain state from DB It is callable at any point in time
blockchain/blockchain.go:337
↓ 3 callers
Method
IntegratorAddress
return integrator address
blockchain/blockchain.go:327
↓ 3 callers
Method
IsCollision
check if collision will occur
block/miniblockdag.go:67
↓ 3 callers
Method
IsDERONetwork
tells whether address belongs to DERO Network
rpc/address.go:117
↓ 3 callers
Method
IsInfinity
()
cryptography/bn256/twist.go:72
↓ 3 callers
Method
IsOnCurve
IsOnCurve returns true iff c is on the curve.
cryptography/bn256/curve.go:39
↓ 3 callers
Function
IsPowerOf2
checks a number is power of 2
cryptography/crypto/const.go:30
↓ 3 callers
Function
IsRegisteredAtTopoHeight
(addr []byte, topoheight int64)
cmd/derod/rpc/rpc_dero_getencryptedbalance.go:170
↓ 3 callers
Function
IsSimulator
tells whether we are in simulator mode ( both mainnet and testnet coud be simulated)
globals/globals.go:234
↓ 3 callers
Function
Key_To_Words
this will map the key to recovery words from the spcific language language must exist,if not we return english
walletapi/mnemonics/mnemonics.go:138
↓ 3 callers
Method
Load_Block_Timestamp
(h crypto.Hash)
blockchain/store.go:155
↓ 3 callers
Method
Lookup
Lookup returns an unsorted list of at most n indices where the byte string s occurs in the indexed data. If n < 0, all occurrences are returned. The r
astrobwt/suffixarray.go:256
↓ 3 callers
Method
Lookup
Lookup returns an unsorted list of at most n indices where the byte string s occurs in the indexed data. If n < 0, all occurrences are returned. The r
astrobwt/astrobwtv3/suffixarray.go:256
↓ 3 callers
Method
MakeAffine
()
cryptography/bn256/curve.go:209
↓ 3 callers
Method
MakeAffine
()
cryptography/bn256/twist.go:179
↓ 3 callers
Function
Mine_block_single
all wallets will rpc activated on ports this is a crude function used during tests
cmd/simulator/simulator.go:100
↓ 3 callers
Method
Mul
(scalar *big.Int)
cryptography/crypto/algebra_elgamal.go:76
↓ 3 callers
Method
NameToAddress
(name string)
walletapi/daemon_communication.go:289
↓ 3 callers
Method
Negate
()
cryptography/crypto/algebra_pointvector.go:125
↓ 3 callers
Function
POW_optimized
(inputdata []byte, data *ScratchData)
astrobwt/astrobwt_fast/astrobwt_optimized.go:34
↓ 3 callers
Method
PurgeHeight
purge all heights less than this height
block/miniblockdag.go:34
↓ 3 callers
Function
RandomG2
RandomG2 returns x and g₂ˣ where x is a random, non-zero number read from r.
cryptography/bn256/bn256.go:176
↓ 3 callers
Method
ReadBlock
the filename stores the following information hex block id (64 chars).block._ rewards (decimal) _ difficulty _ cumulative difficulty
blockchain/storefs.go:56
↓ 3 callers
Function
ReadSC
reads SC, balance
dvm/sc.go:296
↓ 3 callers
Method
RunSC
(incoming_values map[crypto.Hash]uint64, SCDATA rpc.Arguments, signer_addr *rpc.Address, fees uint64)
dvm/simulator.go:121
↓ 3 callers
Method
SetInfinity
()
cryptography/bn256/curve.go:54
↓ 3 callers
Method
SetSaveDuration
Ability to set save frequency to lower disc write frequency a negative set value, will return existing value, 0 is a valid value and is set to default
walletapi/wallet.go:520
↓ 3 callers
Method
SetSeedLanguage
Ability to change seed lanaguage
walletapi/wallet.go:496
↓ 3 callers
Method
Show_Transfers
finds all inputs which have been received/spent etc TODO this code can be easily parallelised and need to be parallelised if only the availble is requ
walletapi/wallet.go:245
↓ 3 callers
Method
Sort
sort the arguments by their name
rpc/rpc.go:349
↓ 3 callers
Method
String
()
transaction/transaction.go:40
↓ 3 callers
Method
Sub
(a, b *gfP12)
cryptography/bn256/gfp12.go:88
↓ 3 callers
Method
Verify_Transaction_NonCoinbase_CheckNonce_Tips
this checks the nonces of a tx agains the current chain state, this basically does a comparision of state trees in limited form
blockchain/transaction_verify.go:71
↓ 3 callers
Method
WriteBlock
(h [32]byte, data []byte, difficulty *big.Int, ss_version uint64, height uint64)
blockchain/storefs.go:277
↓ 3 callers
Method
WriteTX
(h [32]byte, data []byte)
blockchain/storefs.go:306
↓ 3 callers
Function
benchmark
(b *testing.B, size int64)
astrobwt/astrobwtv3/rc4_test.go:136
↓ 3 callers
Function
check_valid_name
checks whether a function name is valid a valid name starts with a non digit and does not contain .
dvm/dvm.go:152
↓ 3 callers
Function
check_valid_type
(name string)
dvm/dvm.go:160
↓ 3 callers
Function
convert_uint32_to_crypto_hash
used by tip
blockchain/miner_block.go:100
↓ 3 callers
Method
decompose
decompose takes a scalar mod Order as input and finds a short, positive decomposition of it wrt to the lattice basis.
cryptography/bn256/lattice.go:44
↓ 3 callers
Function
equal
(x, y *Index)
astrobwt/suffixarray_test.go:234
↓ 3 callers
Function
equal
(x, y *Index)
astrobwt/astrobwtv3/suffixarray_test.go:234
↓ 3 callers
Function
fill_tx_structure
if there is any error, we return back empty if pos is wrong we return back pos is descending order
cmd/explorer/explorerlib/explorerlib.go:732
↓ 3 callers
Function
finalExponentiation
finalExponentiation computes the (p¹²-1)/Order-th power of an element of GF(p¹²) to obtain an element of GT (steps 13-15 of algorithm 1 from http://cr
cryptography/bn256/optate.go:212
↓ 3 callers
Method
getpathtx
(h [32]byte)
blockchain/storefs.go:46
↓ 3 callers
Function
hasbasicauthfailed
check basic authrizaion
walletapi/rpcserver/rpc_websocket_server.go:104
↓ 3 callers
Function
miller
miller implements the Miller loop for calculating the Optimal Ate pairing. See algorithm 1 from http://cryptojedi.org/papers/dclxvi-20100714.pdf
cryptography/bn256/optate.go:122
↓ 3 callers
Function
record_changes
this will record all the changes
p2p/rpc_changeset.go:137
↓ 3 callers
Method
serialize
this function serializes a block and skips miniblocks is requested
block/block.go:99
↓ 3 callers
Method
setEncryptedBalanceresult
(scid crypto.Hash, entry rpc.GetEncryptedBalance_Result)
walletapi/wallet.go:91
↓ 3 callers
Function
show_transfers
show the transfers to the user originating from this account
cmd/dero-wallet-cli/prompt.go:1035
↓ 3 callers
Function
testSA
testSA tests the suffix array build function on the input x. It constructs the suffix array and then checks that it is correct.
astrobwt/suffixarray_test.go:443
↓ 3 callers
Function
testSA
testSA tests the suffix array build function on the input x. It constructs the suffix array and then checks that it is correct.
astrobwt/astrobwtv3/suffixarray_test.go:443
↓ 3 callers
Function
text_32
text_32 returns the suffix array for the input text. It requires that len(text) fit in an int32 and that the caller zero sa.
astrobwt/sais.go:128
↓ 3 callers
Function
text_32
text_32 returns the suffix array for the input text. It requires that len(text) fit in an int32 and that the caller zero sa.
astrobwt/astrobwtv3/sais.go:128
↓ 3 callers
Function
text_64
(text []byte, sa []int64)
astrobwt/astrobwtv3/sais2.go:9
↓ 2 callers
Function
Abs
go:noinline
p2p/connection_pool.go:729
↓ 2 callers
Method
Add
(a, b *curvePoint)
cryptography/bn256/curve.go:65
↓ 2 callers
Method
AddConstant
(c *big.Int)
cryptography/crypto/algebra_fieldvector.go:112
↓ 2 callers
Function
Ban_Address
ban a peer for specific time manual bans are always placed address can be an address or a subnet
p2p/bans.go:211
↓ 2 callers
Function
Best_Peer_Height
for continuos update on command line, get the maximum height of all peers show the average network status
p2p/connection_pool.go:321
↓ 2 callers
Function
Broadcast_Block
(cbl *block.Complete_Block, PeerID uint64)
p2p/connection_pool.go:370
↓ 2 callers
Function
Calculate_Checksum_Index
calculate a checksum on first 24 words checksum is calculated as follows take prefix_len chars ( not bytes) from first 24 words and concatenate them c
walletapi/mnemonics/mnemonics.go:240
↓ 2 callers
Method
CheckDagStructure
this is part of consensus rule, 2 tips cannot refer to different parents
blockchain/blockchain.go:1444
↓ 2 callers
Function
CheckPowHashBig
this function check whether the pow hash meets difficulty criteria however, it take diff in bigint format
cmd/dero-miner/difficulty.go:76
↓ 2 callers
Function
CheckPowHashBig
this function check whether the pow hash meets difficulty criteria however, it take diff in bigint format
blockchain/difficulty.go:90
↓ 2 callers
Method
Check_Password
check whether the already opened wallet can use this password
walletapi/wallet_disk.go:121
↓ 2 callers
Method
Clean
delete most of the data and prepare for rescan TODO we must save tokens list and reuse, them, but will be created on-demand when using shows transfers
walletapi/wallet.go:348
↓ 2 callers
Method
Clone
copy and return
cryptography/crypto/algebra_fieldvector.go:59
↓ 2 callers
Method
Compress
Compress G1 by dropping the Y (but retaining its most significant non-zero byte). It returns a [33]byte
cryptography/bn256/changes.go:19
↓ 2 callers
Function
Connection_Delete
add connection to map
p2p/connection_pool.go:129
↓ 2 callers
Function
Create_Encrypted_Wallet_Random
create an encrypted wallet using using random data
walletapi/wallet_disk.go:79
↓ 2 callers
Method
DecodeUncompressed
(input []byte)
cryptography/bn256/changes.go:310
↓ 2 callers
Method
DeleteTX
(h [32]byte)
blockchain/storefs.go:317
↓ 2 callers
Method
Double
(a *curvePoint)
cryptography/bn256/curve.go:152
↓ 2 callers
Method
Double
(a *twistPoint)
cryptography/bn256/twist.go:135
↓ 2 callers
Method
EncodeUncompressed
()
cryptography/bn256/changes.go:306
↓ 2 callers
Method
Evaluate
(x *big.Int)
cryptography/crypto/fieldvector.go:43
↓ 2 callers
Method
Expand_Transaction_NonCoinbase
(tx *transaction.Transaction)
blockchain/transaction_verify.go:203
↓ 2 callers
Method
Fill
()
p2p/rpc_handshake.go:48
↓ 2 callers
Function
FillBytes
(x *big.Int, xbytes []byte)
cryptography/crypto/bnred.go:70
↓ 2 callers
Function
FormatMoney5
5 precision
globals/globals.go:279
↓ 2 callers
Method
GetAccount
()
walletapi/wallet_memory.go:333
↓ 2 callers
Method
GetHash
this function gets the block identifier hash, this is only used to deduplicate mini blocks
block/miniblock.go:99
↓ 2 callers
Function
GetPeerInList
(address string)
p2p/peer_pool.go:150
↓ 2 callers
Method
GetPoWHash
Get PoW hash , this is very slow function
block/miniblock.go:113
↓ 2 callers
Method
GetSeed
convert key to seed using language
walletapi/wallet.go:188
↓ 2 callers
Method
GetTimestamp
get timestamp, it has millisecond granularity
block/block.go:75
↓ 2 callers
Method
Get_Balance_scid
get the unlocked balance ( amounts which are mature and can be spent at this time ) offline wallets may get this wrong, since they may not have latest
walletapi/wallet.go:228
↓ 2 callers
Function
Get_Difficulty_At_Tips
(source DiffProvider, tips []crypto.Hash)
blockchain/difficulty.go:192
↓ 2 callers
Method
Get_HF_info
this func will recount votes, set whether the version is voted in only the main chain blocks are counted in this func must be called with chain in loc
blockchain/hardfork_core.go:156
← previous
next →
401–500 of 1,541, ranked by callers