MCPcopy Create free account

hub / github.com/deroproject/derohe / functions

Functions1,541 in github.com/deroproject/derohe

↓ 382 callersMethodError
()
astrobwt/astrobwtv3/rc4.go:24
↓ 128 callersMethodString
()
rpc/rpc.go:60
↓ 127 callersMethodString
String returns view in hexadecimal
cmd/explorer/explorerlib/explorerlib.go:980
↓ 120 callersMethodAdd
(addendum *ElGamal)
cryptography/crypto/algebra_elgamal.go:69
↓ 117 callersMethodSet
(f *gfP)
cryptography/bn256/gfp.go:26
↓ 95 callersMethodScalarMult
ScalarMult with chainable API
cryptography/crypto/group.go:33
↓ 84 callersMethodAdd
Add sets e to a+b and then returns e.
cryptography/bn256/bn256.go:77
↓ 78 callersMethodGetHash
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 callersMethodGetAddress
()
walletapi/wallet.go:197
↓ 75 callersMethodWrite
Write writes the index x to w.
astrobwt/suffixarray.go:204
↓ 72 callersMethodSub
(a, b *gfP2)
cryptography/bn256/gfp2.go:70
↓ 70 callersMethodRead
reasonable for BenchmarkSaveRestore Read reads the index from r into x; x must not be nil.
astrobwt/suffixarray.go:154
↓ 68 callersMethodMul
(m *Polynomial)
cryptography/crypto/polynomial.go:44
↓ 59 callersMethodGet
(key []byte)
dvm/sc.go:93
↓ 58 callersMethodSerialize
serialize entire block ( block_header + miner_tx + tx_list )
block/block.go:66
↓ 58 callersFunctiongfpMul
go:noescape
cryptography/bn256/gfp_decl.go:26
↓ 55 callersMethodSet
(x *Point)
cryptography/crypto/group.go:50
↓ 52 callersMethodString
()
cryptography/bn256/gfp.go:22
↓ 49 callersMethodScalarMult
ScalarMult sets e to a*k and then returns e.
cryptography/bn256/bn256.go:68
↓ 48 callersMethodMarshal
(out []byte)
cryptography/bn256/gfp.go:53
↓ 47 callersMethodMarshal
()
cryptography/crypto/balance_serdes.go:39
↓ 43 callersMethodeval
(exp ast.Expr)
dvm/dvm.go:851
↓ 42 callersMethodGet_Height
return height of wallet
walletapi/wallet.go:367
↓ 42 callersMethodPut
(key []byte, value []byte)
dvm/sc.go:101
↓ 42 callersFunctionbigFromBase10
(s string)
cryptography/bn256/constants.go:11
↓ 40 callersMethodMul
See "Multiplication and Squaring in Pairing-Friendly Fields", http://eprint.iacr.org/2006/471.pdf
cryptography/bn256/gfp2.go:78
↓ 39 callersMethodexit
()
p2p/connection_pool.go:118
↓ 37 callersMethodDeserialize
(buf []byte)
transaction/transaction.go:276
↓ 37 callersMethodIsZero
()
cryptography/bn256/gfp2.go:42
↓ 37 callersMethodLoad_TOPO_HEIGHT
()
blockchain/store.go:256
↓ 35 callersMethodValue
return value wrapped in an interface
rpc/rpc.go:145
↓ 35 callersFunctioncheckargscount
checks whether necessary number of arguments have been provided
dvm/dvm_functions.go:164
↓ 34 callersMethodDecodeCompressed
(encoding []byte)
cryptography/bn256/changes.go:290
↓ 34 callersMethodDeserialize
parse entire block completely
block/block.go:189
↓ 34 callersMethodSquare
(a *gfP2)
cryptography/bn256/gfp2.go:124
↓ 34 callersMethodSync_Wallet_Memory_With_Daemon
()
walletapi/daemon_communication.go:283
↓ 33 callersMethodBytes
Bytes returns the data over which the index was created. It must not be modified.
astrobwt/suffixarray.go:232
↓ 33 callersFunctiongfpAdd
go:noescape
cryptography/bn256/gfp_decl.go:20
↓ 32 callersFunctionConstructElGamal
(left, right *bn256.G1)
cryptography/crypto/algebra_elgamal.go:52
↓ 32 callersMethodGetHash
this excludes the proof part, so it can pruned
transaction/transaction.go:185
↓ 32 callersFunctionIsMainnet
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 callersMethodScalarBaseMult
ScalarBaseMult sets e to g*k where g is the generator of the group and then returns e.
cryptography/bn256/bn256.go:59
↓ 31 callersMethodSetBytes
(buf []byte)
cryptography/crypto/bnred.go:48
↓ 31 callersMethodUnmarshal
(in []byte)
cryptography/bn256/gfp.go:61
↓ 31 callersMethodWrite
(index int64, blid [32]byte, state_version uint64, height int64)
blockchain/storetopo.go:85
↓ 30 callersMethodRead
it basically represents Load_Block_Topological_order_at_index reads an entry at specific location
blockchain/storetopo.go:69
↓ 28 callersFunctionConvertBigIntToByte
converts a big int to 32 bytes, prepending zeroes
cryptography/crypto/hashtopoint.go:45
↓ 28 callersMethodEncodeCompressed
()
cryptography/crypto/group.go:39
↓ 27 callersMethodHas
tells whether the arguments have an argument of this type
rpc/rpc.go:115
↓ 27 callersFunctionnewGFp
(x int64)
cryptography/bn256/gfp.go:10
↓ 26 callersMethodGetAddress
convert a user account to address
walletapi/wallet.go:203
↓ 26 callersFunctionRecover
used to recover in case of panics
globals/globals.go:218
↓ 25 callersMethodCall
(method string, params interface{}, result interface{})
walletapi/daemon_communication.go:218
↓ 25 callersFunctionFormatMoney
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 callersFunctionParseIPNoError
(s string)
p2p/controller.go:792
↓ 24 callersMethodClose
()
glue/rwc/rwc.go:63
↓ 23 callersMethodEncodeCompressed
()
cryptography/bn256/changes.go:279
↓ 23 callersFunctionNewAddress
NewAddress decodes hrp(human-readable part) Address(string), returns address or error
rpc/address.go:187
↓ 23 callersMethodSlice
slice and return
cryptography/crypto/algebra_pointvector.go:43
↓ 23 callersFunctionfill_common
fill the common part from our chain
p2p/common.go:10
↓ 23 callersFunctionmontDecode
(c, a *gfP)
cryptography/bn256/gfp.go:82
↓ 22 callersFunctionTime
get current time with clock offset applied
globals/globals.go:62
↓ 22 callersMethodTimes
(scalar *big.Int)
cryptography/crypto/algebra_elgamal.go:171
↓ 21 callersMethodFees
()
transaction/transaction.go:219
↓ 21 callersMethodIndex
tells the index of the specific argument
rpc/rpc.go:135
↓ 21 callersMethodLoad_BL_FROM_ID
loads a block from disk, deserializes it
blockchain/store.go:102
↓ 21 callersMethodLoad_Height_for_BL_ID
(h crypto.Hash)
blockchain/store.go:177
↓ 21 callersFunctionNewFieldVector
(input []*big.Int)
cryptography/crypto/algebra_fieldvector.go:33
↓ 20 callersMethodAdd_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 callersMethodCommit
(blind *big.Int, gexps, hexps *FieldVector)
cryptography/crypto/generatorparams.go:61
↓ 20 callersMethodG1
()
cryptography/crypto/group.go:47
↓ 20 callersMethodGetEncryptedBalanceAtTopoHeight
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 callersMethodUnmarshal
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 callersFunctionmontEncode
(c, a *gfP)
cryptography/bn256/gfp.go:81
↓ 19 callersFunctionGetDataDirectory
return different directories for different networks ( mainly mainnet, testnet, simulation ) this function is specifically for daemon
globals/globals.go:243
↓ 19 callersFunctiongfpSub
go:noescape
cryptography/bn256/gfp_decl.go:23
↓ 18 callersMethodGet_Height
get top unstable height this is obtained by getting the highest topo block and getting its height
blockchain/blockchain.go:1127
↓ 18 callersMethodMul
(a *twistPoint, scalar *big.Int)
cryptography/bn256/twist.go:164
↓ 18 callersMethodRun
setup handlers
cmd/derod/rpc/websocket_server.go:187
↓ 18 callersFunctionreducedhash
calculate hash and reduce it by curve's order
cryptography/crypto/hashtopoint.go:62
↓ 17 callersMethodAdd
(a, b *gfP6)
cryptography/bn256/gfp6.go:80
↓ 17 callersMethodNeg
()
cryptography/crypto/algebra_elgamal.go:115
↓ 17 callersFunctionPair
Pair calculates an Optimal Ate pairing.
cryptography/bn256/bn256.go:317
↓ 17 callersMethodSerialize
serialize entire transaction include signature
transaction/transaction.go:488
↓ 17 callersMethodSum
()
cryptography/crypto/algebra_elgamal.go:139
↓ 16 callersMethodDial
(network, address string)
cmd/derod/update.go:77
↓ 16 callersFunctionHashtoNumber
the number if already reduced
cryptography/crypto/hashtopoint.go:52
↓ 16 callersMethodgetEncryptedBalanceresult
(scid crypto.Hash)
walletapi/wallet.go:82
↓ 15 callersMethodCount
()
blockchain/storetopo.go:51
↓ 15 callersMethodExp
(a *gfP12, power *big.Int)
cryptography/bn256/gfp12.go:113
↓ 15 callersFunctionGetPeerID
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 callersMethodMul
(a, b *gfP6)
cryptography/bn256/gfp6.go:94
↓ 15 callersFunctionParseSmartContract
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 callersMethodSerialize
(w *bytes.Buffer)
cryptography/crypto/proof_generate.go:84
↓ 15 callersMethodSetDaemonAddress
use the endpoint set by the program
walletapi/wallet.go:423
↓ 15 callersMethodSetOne
()
cryptography/bn256/gfp2.go:36
↓ 15 callersMethodSub
(a, b *gfP6)
cryptography/bn256/gfp6.go:87
↓ 15 callersMethodTransferPayload0
we should reply to an entry send amount to specific addresses
walletapi/wallet_transfer.go:85
↓ 15 callersMethodUnmarshal
any error should panic, because we can no longer do anything
cryptography/crypto/balance_serdes.go:56
↓ 14 callersMethodGet_Balance
get main balance directly
walletapi/wallet.go:233
next →1–100 of 1,541, ranked by callers