Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/conradoqg/naivecoin
/ functions
Functions
99 in github.com/conradoqg/naivecoin
⨍
Functions
99
◇
Types & classes
42
↓ 15 callers
Method
fromJson
(data)
lib/operator/wallet.js:68
↓ 7 callers
Method
hash
(any)
lib/util/cryptoUtil.js:4
↓ 6 callers
Method
getDifficulty
(index)
lib/blockchain/index.js:59
↓ 6 callers
Method
write
(data)
lib/util/db.js:19
↓ 5 callers
Method
broadcast
(fn, ...args)
lib/node/index.js:163
↓ 5 callers
Method
getWalletById
(walletId)
lib/operator/index.js:43
↓ 5 callers
Method
randomId
(size = 64)
lib/util/cryptoUtil.js:10
↓ 4 callers
Method
getLastBlock
()
lib/blockchain/index.js:55
↓ 4 callers
Method
toHex
(data)
lib/util/cryptoEdDSAUtil.js:34
↓ 3 callers
Method
addBlock
(newBlock, emit = true)
lib/blockchain/index.js:117
↓ 3 callers
Method
addTransaction
(newTransaction, emit = true)
lib/blockchain/index.js:134
↓ 3 callers
Function
createNaivecoin
(name, host, port, peers, removeData = true)
test/integrationTest.js:19
↓ 3 callers
Method
getAllBlocks
()
lib/blockchain/index.js:43
↓ 3 callers
Method
getUnspentTransactionsForAddress
(address)
lib/blockchain/index.js:245
↓ 3 callers
Method
read
(prototype)
lib/util/db.js:10
↓ 3 callers
Method
stop
()
lib/httpServer/index.js:262
↓ 3 callers
Method
toHash
()
lib/blockchain/block.js:28
↓ 2 callers
Method
check
()
lib/blockchain/transaction.js:53
↓ 2 callers
Method
checkBlock
(newBlock, previousBlock, referenceBlockchain = this.blocks)
lib/blockchain/index.js:153
↓ 2 callers
Method
checkReceivedBlock
(block)
lib/node/index.js:183
↓ 2 callers
Method
checkReceivedBlocks
(blocks)
lib/node/index.js:187
↓ 2 callers
Method
checkWalletPassword
(walletId, passwordHash)
lib/operator/index.js:32
↓ 2 callers
Method
connectToPeers
(newPeers)
lib/node/index.js:37
↓ 2 callers
Method
generateKeyPairFromSecret
(secret)
lib/util/cryptoEdDSAUtil.js:14
↓ 2 callers
Method
generateSecret
()
lib/operator/wallet.js:33
↓ 2 callers
Method
getAllTransactions
()
lib/blockchain/index.js:64
↓ 2 callers
Method
getDifficulty
()
lib/blockchain/block.js:33
↓ 2 callers
Method
getTransactionById
(id)
lib/blockchain/index.js:68
↓ 2 callers
Method
getTransactionFromBlocks
(transactionId)
lib/blockchain/index.js:72
↓ 2 callers
Method
listen
(host, port)
lib/httpServer/index.js:252
↓ 2 callers
Method
sign
(secretKey)
lib/operator/transactionBuilder.js:39
↓ 2 callers
Method
toHash
()
lib/blockchain/transaction.js:48
↓ 1 callers
Method
addWallet
(wallet)
lib/operator/index.js:21
↓ 1 callers
Method
build
()
lib/operator/transactionBuilder.js:48
↓ 1 callers
Method
change
(changeAddress)
lib/operator/transactionBuilder.js:29
↓ 1 callers
Method
checkChain
(blockchainToValidate)
lib/blockchain/index.js:98
↓ 1 callers
Method
checkTransaction
(transaction, referenceBlockchain = this.blocks)
lib/blockchain/index.js:210
↓ 1 callers
Method
connectToPeer
(newPeer)
lib/node/index.js:32
↓ 1 callers
Method
createTransaction
(walletId, fromAddressId, toAddressId, amount, changeAddressId)
lib/operator/index.js:71
↓ 1 callers
Method
createWalletFromPassword
(password)
lib/operator/index.js:27
↓ 1 callers
Method
fee
(amount)
lib/operator/transactionBuilder.js:34
↓ 1 callers
Method
from
(listOfUTXO)
lib/operator/transactionBuilder.js:18
↓ 1 callers
Method
fromJson
(data)
lib/blockchain/block.js:43
↓ 1 callers
Method
fromPassword
(password)
lib/operator/wallet.js:54
↓ 1 callers
Method
generateAddress
()
lib/operator/wallet.js:13
↓ 1 callers
Method
generateAddressForWallet
(walletId)
lib/operator/index.js:47
↓ 1 callers
Method
generateNextBlock
(rewardAddress, feeAddress, blockchain)
lib/miner/index.js:54
↓ 1 callers
Method
getAddresses
()
lib/operator/wallet.js:50
↓ 1 callers
Method
getAddressesForWallet
(walletId)
lib/operator/index.js:56
↓ 1 callers
Method
getBalanceForAddress
(addressId)
lib/operator/index.js:64
↓ 1 callers
Method
getBlockByHash
(hash)
lib/blockchain/index.js:51
↓ 1 callers
Method
getBlockByIndex
(index)
lib/blockchain/index.js:47
↓ 1 callers
Method
getConfirmation
(peer, transactionId)
lib/node/index.js:138
↓ 1 callers
Method
getConfirmations
(transactionId)
lib/node/index.js:152
↓ 1 callers
Method
getLatestBlock
(peer)
lib/node/index.js:72
↓ 1 callers
Method
getSecretKeyByAddress
(address)
lib/operator/wallet.js:46
↓ 1 callers
Method
getTransactions
(peer)
lib/node/index.js:124
↓ 1 callers
Method
getWallets
()
lib/operator/index.js:39
↓ 1 callers
Method
hookBlockchain
()
lib/node/index.js:17
↓ 1 callers
Method
init
()
lib/blockchain/index.js:30
↓ 1 callers
Method
initConnection
(peer)
lib/node/index.js:55
↓ 1 callers
Method
mine
(rewardAddress, feeAddress)
lib/miner/index.js:14
↓ 1 callers
Method
proveWorkFor
(jsonBlock, difficulty)
lib/miner/index.js:163
↓ 1 callers
Method
removeBlockTransactionsFromTransactions
(newBlock)
lib/blockchain/index.js:148
↓ 1 callers
Method
replaceChain
(newBlockchain)
lib/blockchain/index.js:76
↓ 1 callers
Method
sendPeer
(peer, peerToSend)
lib/node/index.js:61
↓ 1 callers
Method
signHash
(keyPair, messageHash)
lib/util/cryptoEdDSAUtil.js:21
↓ 1 callers
Method
syncTransactions
(transactions)
lib/node/index.js:171
↓ 1 callers
Method
to
(address, amount)
lib/operator/transactionBuilder.js:23
↓ 1 callers
Method
verifySignature
(publicKey, signature, messageHash)
lib/util/cryptoEdDSAUtil.js:27
Method
construct
()
lib/blockchain/transaction.js:38
Method
constructor
()
lib/operator/wallet.js:6
Method
constructor
(dbName, blockchain)
lib/operator/index.js:13
Method
constructor
()
lib/operator/transactionBuilder.js:8
Method
constructor
(dbName)
lib/blockchain/index.js:17
Method
constructor
(blockchain, logLevel)
lib/miner/index.js:9
Method
constructor
(message, context, original)
lib/util/extendedError.js:4
Method
constructor
(filePath, defaultData)
lib/util/db.js:5
Method
constructor
(node, blockchain, operator, miner)
lib/httpServer/index.js:17
Method
constructor
(status, message, context, original)
lib/httpServer/httpError.js:5
Method
constructor
(host, port, peers, blockchain)
lib/node/index.js:8
Method
fromHash
(passwordHash)
lib/operator/wallet.js:61
Method
fromJson
(data)
lib/operator/wallets.js:5
Method
fromJson
(data)
lib/blockchain/blocks.js:5
Method
fromJson
(data)
lib/blockchain/transactions.js:5
Method
fromJson
(data)
lib/blockchain/transaction.js:116
Method
generateSecret
(password)
lib/util/cryptoEdDSAUtil.js:8
Method
genesis
()
lib/blockchain/block.js:38
Method
getAddressByIndex
(index)
lib/operator/wallet.js:38
Method
getAddressByPublicKey
(publicKey)
lib/operator/wallet.js:42
Method
getBlocks
(peer)
lib/node/index.js:98
Method
projectWallet
(wallet)
lib/httpServer/index.js:20
Method
selectTxs
(transaction)
lib/blockchain/index.js:246
Method
sendLatestBlock
(peer, block)
lib/node/index.js:87
Method
sendTransaction
(peer, transaction)
lib/node/index.js:113
Function
simpleWrapper
(typeDescriptor, ...args)
lib/util/consoleWrapper.js:6
Method
toJSON
()
lib/util/extendedError.js:10
Method
toJSON
()
lib/httpServer/httpError.js:11
Method
type
(type)
lib/operator/transactionBuilder.js:44