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
↓ 382 callers
Method
Error
()
astrobwt/astrobwtv3/rc4.go:24
↓ 128 callers
Method
String
()
rpc/rpc.go:60
↓ 127 callers
Method
String
String returns view in hexadecimal
cmd/explorer/explorerlib/explorerlib.go:980
↓ 120 callers
Method
Add
(addendum *ElGamal)
cryptography/crypto/algebra_elgamal.go:69
↓ 117 callers
Method
Set
(f *gfP)
cryptography/bn256/gfp.go:26
↓ 95 callers
Method
ScalarMult
ScalarMult with chainable API
cryptography/crypto/group.go:33
↓ 84 callers
Method
Add
Add sets e to a+b and then returns e.
cryptography/bn256/bn256.go:77
↓ 78 callers
Method
GetHash
this function gets the block identifier hash this has been simplified and varint length has been removed keccak hash of entire block including miniblo
block/block.go:57
↓ 77 callers
Method
GetAddress
()
walletapi/wallet.go:197
↓ 75 callers
Method
Write
Write writes the index x to w.
astrobwt/suffixarray.go:204
↓ 72 callers
Method
Sub
(a, b *gfP2)
cryptography/bn256/gfp2.go:70
↓ 70 callers
Method
Read
reasonable for BenchmarkSaveRestore Read reads the index from r into x; x must not be nil.
astrobwt/suffixarray.go:154
↓ 68 callers
Method
Mul
(m *Polynomial)
cryptography/crypto/polynomial.go:44
↓ 59 callers
Method
Get
(key []byte)
dvm/sc.go:93
↓ 58 callers
Method
Serialize
serialize entire block ( block_header + miner_tx + tx_list )
block/block.go:66
↓ 58 callers
Function
gfpMul
go:noescape
cryptography/bn256/gfp_decl.go:26
↓ 55 callers
Method
Set
(x *Point)
cryptography/crypto/group.go:50
↓ 52 callers
Method
String
()
cryptography/bn256/gfp.go:22
↓ 49 callers
Method
ScalarMult
ScalarMult sets e to a*k and then returns e.
cryptography/bn256/bn256.go:68
↓ 48 callers
Method
Marshal
(out []byte)
cryptography/bn256/gfp.go:53
↓ 47 callers
Method
Marshal
()
cryptography/crypto/balance_serdes.go:39
↓ 43 callers
Method
eval
(exp ast.Expr)
dvm/dvm.go:851
↓ 42 callers
Method
Get_Height
return height of wallet
walletapi/wallet.go:367
↓ 42 callers
Method
Put
(key []byte, value []byte)
dvm/sc.go:101
↓ 42 callers
Function
bigFromBase10
(s string)
cryptography/bn256/constants.go:11
↓ 40 callers
Method
Mul
See "Multiplication and Squaring in Pairing-Friendly Fields", http://eprint.iacr.org/2006/471.pdf
cryptography/bn256/gfp2.go:78
↓ 39 callers
Method
exit
()
p2p/connection_pool.go:118
↓ 37 callers
Method
Deserialize
(buf []byte)
transaction/transaction.go:276
↓ 37 callers
Method
IsZero
()
cryptography/bn256/gfp2.go:42
↓ 37 callers
Method
Load_TOPO_HEIGHT
()
blockchain/store.go:256
↓ 35 callers
Method
Value
return value wrapped in an interface
rpc/rpc.go:145
↓ 35 callers
Function
checkargscount
checks whether necessary number of arguments have been provided
dvm/dvm_functions.go:164
↓ 34 callers
Method
DecodeCompressed
(encoding []byte)
cryptography/bn256/changes.go:290
↓ 34 callers
Method
Deserialize
parse entire block completely
block/block.go:189
↓ 34 callers
Method
Square
(a *gfP2)
cryptography/bn256/gfp2.go:124
↓ 34 callers
Method
Sync_Wallet_Memory_With_Daemon
()
walletapi/daemon_communication.go:283
↓ 33 callers
Method
Bytes
Bytes returns the data over which the index was created. It must not be modified.
astrobwt/suffixarray.go:232
↓ 33 callers
Function
gfpAdd
go:noescape
cryptography/bn256/gfp_decl.go:20
↓ 32 callers
Function
ConstructElGamal
(left, right *bn256.G1)
cryptography/crypto/algebra_elgamal.go:52
↓ 32 callers
Method
GetHash
this excludes the proof part, so it can pruned
transaction/transaction.go:185
↓ 32 callers
Function
IsMainnet
tells whether we are in mainnet mode if we are not mainnet, we are a testnet, we will only have a single mainnet ,( but we may have one or more testne
globals/globals.go:229
↓ 31 callers
Method
ScalarBaseMult
ScalarBaseMult sets e to g*k where g is the generator of the group and then returns e.
cryptography/bn256/bn256.go:59
↓ 31 callers
Method
SetBytes
(buf []byte)
cryptography/crypto/bnred.go:48
↓ 31 callers
Method
Unmarshal
(in []byte)
cryptography/bn256/gfp.go:61
↓ 31 callers
Method
Write
(index int64, blid [32]byte, state_version uint64, height int64)
blockchain/storetopo.go:85
↓ 30 callers
Method
Read
it basically represents Load_Block_Topological_order_at_index reads an entry at specific location
blockchain/storetopo.go:69
↓ 28 callers
Function
ConvertBigIntToByte
converts a big int to 32 bytes, prepending zeroes
cryptography/crypto/hashtopoint.go:45
↓ 28 callers
Method
EncodeCompressed
()
cryptography/crypto/group.go:39
↓ 27 callers
Method
Has
tells whether the arguments have an argument of this type
rpc/rpc.go:115
↓ 27 callers
Function
newGFp
(x int64)
cryptography/bn256/gfp.go:10
↓ 26 callers
Method
GetAddress
convert a user account to address
walletapi/wallet.go:203
↓ 26 callers
Function
Recover
used to recover in case of panics
globals/globals.go:218
↓ 25 callers
Method
Call
(method string, params interface{}, result interface{})
walletapi/daemon_communication.go:218
↓ 25 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"
globals/globals.go:269
↓ 25 callers
Function
ParseIPNoError
(s string)
p2p/controller.go:792
↓ 24 callers
Method
Close
()
glue/rwc/rwc.go:63
↓ 23 callers
Method
EncodeCompressed
()
cryptography/bn256/changes.go:279
↓ 23 callers
Function
NewAddress
NewAddress decodes hrp(human-readable part) Address(string), returns address or error
rpc/address.go:187
↓ 23 callers
Method
Slice
slice and return
cryptography/crypto/algebra_pointvector.go:43
↓ 23 callers
Function
fill_common
fill the common part from our chain
p2p/common.go:10
↓ 23 callers
Function
montDecode
(c, a *gfP)
cryptography/bn256/gfp.go:82
↓ 22 callers
Function
Time
get current time with clock offset applied
globals/globals.go:62
↓ 22 callers
Method
Times
(scalar *big.Int)
cryptography/crypto/algebra_elgamal.go:171
↓ 21 callers
Method
Fees
()
transaction/transaction.go:219
↓ 21 callers
Method
Index
tells the index of the specific argument
rpc/rpc.go:135
↓ 21 callers
Method
Load_BL_FROM_ID
loads a block from disk, deserializes it
blockchain/store.go:102
↓ 21 callers
Method
Load_Height_for_BL_ID
(h crypto.Hash)
blockchain/store.go:177
↓ 21 callers
Function
NewFieldVector
(input []*big.Int)
cryptography/crypto/algebra_fieldvector.go:33
↓ 20 callers
Method
Add_TX_To_Pool
this is the only entrypoint for new txs in the chain add a transaction to MEMPOOL, verifying everything means everything possible this only change me
blockchain/blockchain.go:1184
↓ 20 callers
Method
Commit
(blind *big.Int, gexps, hexps *FieldVector)
cryptography/crypto/generatorparams.go:61
↓ 20 callers
Method
G1
()
cryptography/crypto/group.go:47
↓ 20 callers
Method
GetEncryptedBalanceAtTopoHeight
this is as simple as it gets single threaded communication gets whether the the key image is spent in pool or in blockchain this can leak informtion
walletapi/daemon_communication.go:367
↓ 20 callers
Method
Unmarshal
Unmarshal sets e to the result of converting the output of Marshal back into a group element and then returns e.
cryptography/bn256/bn256.go:129
↓ 20 callers
Function
montEncode
(c, a *gfP)
cryptography/bn256/gfp.go:81
↓ 19 callers
Function
GetDataDirectory
return different directories for different networks ( mainly mainnet, testnet, simulation ) this function is specifically for daemon
globals/globals.go:243
↓ 19 callers
Function
gfpSub
go:noescape
cryptography/bn256/gfp_decl.go:23
↓ 18 callers
Method
Get_Height
get top unstable height this is obtained by getting the highest topo block and getting its height
blockchain/blockchain.go:1127
↓ 18 callers
Method
Mul
(a *twistPoint, scalar *big.Int)
cryptography/bn256/twist.go:164
↓ 18 callers
Method
Run
setup handlers
cmd/derod/rpc/websocket_server.go:187
↓ 18 callers
Function
reducedhash
calculate hash and reduce it by curve's order
cryptography/crypto/hashtopoint.go:62
↓ 17 callers
Method
Add
(a, b *gfP6)
cryptography/bn256/gfp6.go:80
↓ 17 callers
Method
Neg
()
cryptography/crypto/algebra_elgamal.go:115
↓ 17 callers
Function
Pair
Pair calculates an Optimal Ate pairing.
cryptography/bn256/bn256.go:317
↓ 17 callers
Method
Serialize
serialize entire transaction include signature
transaction/transaction.go:488
↓ 17 callers
Method
Sum
()
cryptography/crypto/algebra_elgamal.go:139
↓ 16 callers
Method
Dial
(network, address string)
cmd/derod/update.go:77
↓ 16 callers
Function
HashtoNumber
the number if already reduced
cryptography/crypto/hashtopoint.go:52
↓ 16 callers
Method
getEncryptedBalanceresult
(scid crypto.Hash)
walletapi/wallet.go:82
↓ 15 callers
Method
Count
()
blockchain/storetopo.go:51
↓ 15 callers
Method
Exp
(a *gfP12, power *big.Int)
cryptography/bn256/gfp12.go:113
↓ 15 callers
Function
GetPeerID
get peer id we make a peer id randomly at every program start first call to this will give you a unique peer id
p2p/peer.go:44
↓ 15 callers
Method
Mul
(a, b *gfP6)
cryptography/bn256/gfp6.go:94
↓ 15 callers
Function
ParseSmartContract
we have a rudimentary line by line parser SC authors must make sure code coverage is 100 % we are doing away with AST
dvm/dvm.go:82
↓ 15 callers
Method
Serialize
(w *bytes.Buffer)
cryptography/crypto/proof_generate.go:84
↓ 15 callers
Method
SetDaemonAddress
use the endpoint set by the program
walletapi/wallet.go:423
↓ 15 callers
Method
SetOne
()
cryptography/bn256/gfp2.go:36
↓ 15 callers
Method
Sub
(a, b *gfP6)
cryptography/bn256/gfp6.go:87
↓ 15 callers
Method
TransferPayload0
we should reply to an entry send amount to specific addresses
walletapi/wallet_transfer.go:85
↓ 15 callers
Method
Unmarshal
any error should panic, because we can no longer do anything
cryptography/crypto/balance_serdes.go:56
↓ 14 callers
Method
Get_Balance
get main balance directly
walletapi/wallet.go:233
next →
1–100 of 1,541, ranked by callers