Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0xs34n/blockchain
/ functions
Functions
41 in github.com/0xs34n/blockchain
⨍
Functions
41
◇
Types & classes
8
↓ 5 callers
Method
write
(peer, message)
P2p.js:72
↓ 3 callers
Method
calculateHash
(index, previousHash, timestamp, data, nonce)
Blockchain.js:38
↓ 2 callers
Method
addBlock
(newBlock)
Blockchain.js:91
↓ 2 callers
Method
isValidHashDifficulty
(hash)
Blockchain.js:18
↓ 2 callers
Method
isValidNextBlock
(nextBlock, previousBlock)
Blockchain.js:99
↓ 2 callers
Method
sendLatestBlock
(block)
Messages.js:18
↓ 1 callers
Method
broadcast
(message)
P2p.js:68
↓ 1 callers
Method
broadcastLatest
()
P2p.js:64
↓ 1 callers
Method
calculateHashForBlock
(block)
Blockchain.js:27
↓ 1 callers
Method
connectToPeer
(host, port)
P2p.js:46
↓ 1 callers
Method
discoverPeers
()
P2p.js:36
↓ 1 callers
Method
generateNextBlock
(data)
Blockchain.js:54
↓ 1 callers
Method
get
()
Blockchain.js:10
↓ 1 callers
Method
getBlockchain
()
Messages.js:25
↓ 1 callers
Method
getLatestBlock
()
Messages.js:12
↓ 1 callers
Method
handleMessage
(peer, message)
P2p.js:96
↓ 1 callers
Method
handleReceivedBlockchain
(message)
P2p.js:132
↓ 1 callers
Method
handleReceivedLatestBlock
(message, peer)
P2p.js:115
↓ 1 callers
Method
initErrorHandler
(connection)
P2p.js:90
↓ 1 callers
Method
initMessageHandler
(connection)
P2p.js:83
↓ 1 callers
Method
isChainLonger
(chain)
Blockchain.js:131
↓ 1 callers
Method
isValidChain
(chain)
Blockchain.js:115
↓ 1 callers
Method
mine
(data)
Blockchain.js:45
↓ 1 callers
Method
replaceChain
(newChain)
Blockchain.js:135
↓ 1 callers
Method
sendBlockchain
(blockchain)
Messages.js:31
↓ 1 callers
Method
startServer
(port)
P2p.js:22
Function
blockchainCommand
(vorpal)
cli.js:58
Function
cli
(vorpal)
cli.js:7
Method
closeConnection
()
P2p.js:58
Function
connectCommand
(vorpal)
cli.js:28
Method
constructor
(index, previousHash, timestamp, data, hash, nonce)
Block.js:2
Method
constructor
(blockchain)
P2p.js:17
Method
constructor
()
Blockchain.js:5
Function
discoverCommand
(vorpal)
cli.js:44
Method
genesis
()
Block.js:11
Method
initConnection
(connection)
P2p.js:76
Method
latestBlock
()
Blockchain.js:14
Function
mineCommand
(vorpal)
cli.js:80
Function
openCommand
(vorpal)
cli.js:93
Function
peersCommand
(vorpal)
cli.js:68
Function
welcome
(vorpal)
cli.js:23