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
↓ 14 callers
Function
HashToPoint
(seed *big.Int)
cryptography/crypto/hashtopoint.go:105
↓ 14 callers
Method
Load
this will load the variable, and if the key is found loads are cheaper
dvm/dvm_store.go:88
↓ 14 callers
Method
Load_Block_Topological_order_at_index
(index_pos int64)
blockchain/store.go:282
↓ 14 callers
Function
NewAddressFromKeys
create a new address from decompressed point
rpc/address.go:196
↓ 14 callers
Method
String
()
blockchain/storetopo.go:42
↓ 14 callers
Method
Text
(base int)
cryptography/crypto/bnred.go:57
↓ 14 callers
Method
update
update some common properties quickly
p2p/common.go:49
↓ 13 callers
Method
Close
Close closes the underlying connection.
p2p/rpc_cbor_codec.go:124
↓ 13 callers
Function
Create_Encrypted_Wallet_From_Recovery_Words
create an encrypted wallet using electrum recovery words
walletapi/wallet_disk.go:62
↓ 13 callers
Function
Encode
Encode encodes hrp(human-readable part) and data(32bit data array), returns Bech32 / or error if hrp is uppercase, return uppercase Bech32
rpc/bech32.go:77
↓ 13 callers
Method
Mempool_List_TX
return list of all txs in pool
blockchain/mempool/mempool.go:271
↓ 13 callers
Method
Neg
Neg sets e to -a and then returns e.
cryptography/bn256/bn256.go:86
↓ 13 callers
Method
Reset
Reset zeros the key data and makes the Cipher unusable. Deprecated: Reset can't guarantee that the key will be entirely removed from the process's me
astrobwt/astrobwtv3/rc4.go:51
↓ 13 callers
Method
Serialize
()
cryptography/crypto/balance_serdes.go:51
↓ 13 callers
Method
XORKeyStream
XORKeyStream sets dst to the result of XORing src with the key stream. Dst and src must overlap entirely or not at all.
astrobwt/astrobwtv3/rc4.go:60
↓ 13 callers
Function
simulator_chain_mineblock
(chain *blockchain.Blockchain, miner_address rpc.Address, t *testing.T)
walletapi/tx_creation_test.go:105
↓ 12 callers
Method
GetRegistrationTX
retrieve secret key for any tx we may have created
walletapi/wallet.go:546
↓ 12 callers
Method
Get_TIPS
we should be holding lock at this time, atleast read only
blockchain/blockchain.go:1144
↓ 12 callers
Method
Load_Merkle_Hash
load store hash from 2 tree
blockchain/store.go:297
↓ 12 callers
Method
MakeAffine
()
cryptography/bn256/changes.go:322
↓ 12 callers
Method
MarshalBinaryPanic
()
dvm/dvm_store.go:168
↓ 12 callers
Method
Open
(basedir string)
blockchain/storetopo.go:46
↓ 12 callers
Method
Read
reasonable for BenchmarkSaveRestore Read reads the index from r into x; x must not be nil.
astrobwt/astrobwtv3/suffixarray.go:154
↓ 12 callers
Method
ReadTX
(h [32]byte)
blockchain/storefs.go:286
↓ 12 callers
Function
SegwitAddrEncode
SegwitAddrEncode encodes hrp(human-readable part) , version(int) and data(bytes array), returns Segwit Address / or error
rpc/bech32.go:200
↓ 12 callers
Method
Set
(a *gfP6)
cryptography/bn256/gfp6.go:17
↓ 12 callers
Method
SetOnlineMode
by default a wallet opens in Offline Mode however, It can be made online by calling this
walletapi/wallet.go:434
↓ 12 callers
Function
ValidateCurrentPassword
confirms whether user knows the current password for the wallet this is triggerred while transferring amount, changing settings and so on
cmd/dero-wallet-cli/prompt.go:824
↓ 12 callers
Method
len
()
astrobwt/suffixarray.go:47
↓ 12 callers
Method
len
()
astrobwt/astrobwtv3/suffixarray.go:47
↓ 11 callers
Method
Add
(a, b *twistPoint)
cryptography/bn256/twist.go:76
↓ 11 callers
Method
Call
(method string, params interface{}, result interface{})
cmd/explorer/explorerlib/explorerlib.go:78
↓ 11 callers
Method
Conjugate
(a *gfP2)
cryptography/bn256/gfp2.go:52
↓ 11 callers
Function
Decode
Decode decodes bechString(Bech32) returns hrp(human-readable part) and data(32bit data array) / or error
rpc/bech32.go:111
↓ 11 callers
Method
DecodeCompressed
(i []byte)
cryptography/crypto/group.go:43
↓ 11 callers
Method
Delete
(dkey DataKey)
dvm/dvm_store.go:81
↓ 11 callers
Method
Get_Current_Version_at_Height
(height int64)
blockchain/hardfork_core.go:217
↓ 11 callers
Method
Get_Top_ID
()
blockchain/store.go:224
↓ 11 callers
Function
HashHexToHash
convert a hash of hex form to binary form, returns a zero hash if any error TODO this should be in crypto
cryptography/crypto/hash.go:53
↓ 11 callers
Method
IsRegistration
()
transaction/transaction.go:201
↓ 11 callers
Function
Keccak256
quick keccak wrapper
cryptography/crypto/keccak.go:23
↓ 11 callers
Method
Load_Block_Topological_order
(blid crypto.Hash)
blockchain/storetopo.go:276
↓ 11 callers
Function
NewPointVector
(input []*bn256.G1)
cryptography/crypto/algebra_pointvector.go:34
↓ 11 callers
Method
ReadBlockSnapshotVersion
(h [32]byte)
blockchain/storefs.go:177
↓ 11 callers
Method
Regpool_List_TX
return list of all txs in pool
blockchain/regpool/regpool.go:341
↓ 11 callers
Method
Set
Set sets e to a and then returns e.
cryptography/bn256/bn256.go:95
↓ 11 callers
Method
Write
Write writes the index x to w.
astrobwt/astrobwtv3/suffixarray.go:204
↓ 11 callers
Function
handle_connection_panic
(c *Connection)
p2p/controller.go:621
↓ 10 callers
Method
Add_Complete_Block
this is the only entrypoint for new / old blocks even for genesis block this will add the entire block atomically to the chain this is the only functi
blockchain/blockchain.go:378
↓ 10 callers
Method
BigInt
convert BNRed to BigInt
cryptography/crypto/bnred.go:44
↓ 10 callers
Method
Create_new_miner_block
NOTE: this function is quite big since we do a lot of things in preparation of next blocks
blockchain/miner_block.go:107
↓ 10 callers
Method
Get_Network_HashRate
()
blockchain/blockchain.go:1165
↓ 10 callers
Method
Mul
(a, b *gfP12)
cryptography/bn256/gfp12.go:94
↓ 10 callers
Function
RunSmartContract
it is similar to internal functions, however it enforces the condition that only Exportable functions are callable any function which has first charac
dvm/dvm.go:344
↓ 10 callers
Method
String
()
cryptography/bn256/bn256.go:53
↓ 10 callers
Method
UnmarshalBinary
(buf []byte)
dvm/dvm_store.go:228
↓ 10 callers
Function
convertdatatovariable
we should migrate to generics ASAP
dvm/dvm_functions.go:152
↓ 9 callers
Function
Address
(c *Connection)
p2p/connection_pool.go:111
↓ 9 callers
Function
InitializeLog
(console, logfile io.Writer)
globals/globals.go:135
↓ 9 callers
Method
IsCoinbase
returns whether the tx is coinbase
transaction/transaction.go:197
↓ 9 callers
Method
IsInfinity
()
cryptography/bn256/curve.go:61
↓ 9 callers
Method
MulXi
MulXi sets e=ξa where ξ=i+9 and then returns e.
cryptography/bn256/gfp2.go:101
↓ 9 callers
Method
MultiExponentiate
(exponents *FieldVector)
cryptography/crypto/algebra_elgamal.go:131
↓ 9 callers
Method
Plus
(value *big.Int)
cryptography/crypto/algebra_elgamal.go:80
↓ 9 callers
Function
PressAnyKey
confirms user to press a key this is triggerred while transferring amount, changing settings and so on
cmd/dero-wallet-cli/prompt.go:916
↓ 9 callers
Function
RandomScalarFixed
this will return fixed random scalar
cryptography/crypto/random.go:35
↓ 9 callers
Method
ReadBlockSnapshotVersion
this cannot be cached
blockchain/storefs.go:174
↓ 9 callers
Method
Set
(a *curvePoint)
cryptography/bn256/curve.go:31
↓ 9 callers
Method
Set
(a *twistPoint)
cryptography/bn256/twist.go:39
↓ 9 callers
Method
Store
store variable
dvm/dvm_store.go:128
↓ 9 callers
Method
String
stringifier
cryptography/crypto/hash.go:42
↓ 9 callers
Function
fromContext
(ctx context.Context)
walletapi/rpcserver/rpc_websocket_server.go:332
↓ 9 callers
Method
getpath
TODO we need to enable big support or shift to object store at some point in time
blockchain/storefs.go:39
↓ 9 callers
Function
gfpNeg
go:noescape
cryptography/bn256/gfp_decl.go:17
↓ 8 callers
Function
CalcBlockReward
convert bitcoin reward system to our block CalcBlockSubsidy returns the subsidy amount a block at the provided height should have. This is mainly used
blockchain/transaction_execute.go:58
↓ 8 callers
Method
Close_Encrypted_Wallet
close the wallet
walletapi/wallet_disk.go:149
↓ 8 callers
Method
Compressed
()
rpc/address.go:102
↓ 8 callers
Function
ConvertBlockToMiniblock
(bl block.Block, miniblock_miner_address rpc.Address)
blockchain/miner_block.go:348
↓ 8 callers
Function
IsAddressConnected
map[string]*Connection{} check whether an IP is in the map already
p2p/connection_pool.go:166
↓ 8 callers
Method
IsClean
whether record is clean
blockchain/storetopo.go:117
↓ 8 callers
Method
Is_Block_Topological_order
since topological order might mutate, instead of doing cleanup, we double check the pointers we first locate the block and its height, then we locate
blockchain/storetopo.go:263
↓ 8 callers
Method
Load_Block_Difficulty
(crypto.Hash)
blockchain/difficulty.go:187
↓ 8 callers
Method
Load_Block_Height
(h crypto.Hash)
blockchain/store.go:164
↓ 8 callers
Function
Median
we sort descending by inversing the condition Median gets the median number in a slice of uint64 numbers this function is used in so many checks that
p2p/median.go:31
↓ 8 callers
Function
NewCipher
NewCipher creates and returns a new Cipher. The key argument should be the RC4 key, at least 1 byte and at most 256 bytes.
astrobwt/astrobwtv3/rc4.go:30
↓ 8 callers
Function
ParseValidateAddress
this will parse and validate an address, in reference to the current main/test mode
globals/globals.go:303
↓ 8 callers
Function
ReducedHash
(input []byte)
cryptography/crypto/hashtopoint.go:66
↓ 8 callers
Function
SC_Meta_Key
(scid crypto.Hash)
dvm/sc.go:76
↓ 8 callers
Method
SetZero
()
cryptography/bn256/gfp2.go:30
↓ 8 callers
Function
Wrapped_tree
checks cache and returns a wrapped tree if possible
dvm/sc.go:107
↓ 8 callers
Function
benchmark_AstroBWTv3
(b *testing.B, length int)
astrobwt/astrobwtv3/pow_test.go:100
↓ 8 callers
Function
getc
(client *rpc2.Client)
p2p/controller.go:643
↓ 8 callers
Function
read_line_with_prompt
read a line from the prompt since we cannot query existing, we can get away by using password mode with
cmd/dero-wallet-cli/main.go:590
↓ 8 callers
Method
save_if_disk
()
walletapi/wallet_memory.go:340
↓ 8 callers
Function
set_handler
(base interface{}, methodname string, handler interface{})
p2p/controller.go:629
↓ 7 callers
Method
Add
(addendum *FieldVector)
cryptography/crypto/algebra_fieldvector.go:96
↓ 7 callers
Function
AstroBWTv3
this will generate a hash
astrobwt/astrobwtv3/pow.go:34
↓ 7 callers
Method
Calculate_Height_At_Tips
This will get the biggest height of tip for hardfork version and other calculations get biggest height of parent, add 1
blockchain/store.go:135
↓ 7 callers
Function
ConfirmYesNoDefaultNo
confirms whether the user wants to confirm NO
cmd/dero-wallet-cli/prompt.go:800
↓ 7 callers
Method
Deserialize
parse entire block completely
block/miniblock.go:176
← previous
next →
101–200 of 1,541, ranked by callers