MCPcopy Index your code

hub / github.com/Savjee/SavjeeCoin / functions

Functions19 in github.com/Savjee/SavjeeCoin

↓ 23 callersFunctioncreateSignedTx
(amount = 10)
tests/helpers.js:6
↓ 20 callersMethodaddTransaction
* Add a new transaction to the list of pending transactions (to be added * next time the mining process starts). This verifies that the given *
src/blockchain.js:201
↓ 12 callersMethodminePendingTransactions
* Takes all the pending transactions, puts them in a Block and starts the * mining process. It also adds a transaction to send the mining reward to
src/blockchain.js:173
↓ 10 callersMethodgetBalanceOfAddress
* Returns the balance of a given wallet address. * * @param {string} address * @returns {number} The balance of the wallet
src/blockchain.js:252
↓ 8 callersMethodcalculateHash
* Returns the SHA256 of this block (by processing all the data stored * inside this block) * * @returns {string}
src/blockchain.js:95
↓ 7 callersFunctioncreateBlockchainWithTx
()
tests/helpers.js:21
↓ 7 callersMethodisValid
* Checks if the signature is valid (transaction has not been tampered with). * It uses the fromAddress as the public key. * * @returns {boole
src/blockchain.js:60
↓ 6 callersMethodisChainValid
* Loops over all the blocks in the chain and verify if they are properly * linked together and nobody has tampered with the hashes. By checking
src/blockchain.js:300
↓ 6 callersMethodsign
* Signs a transaction with the given signingKey (which is an Elliptic keypair * object that contains a private key). The signature is then stored i
src/blockchain.js:39
↓ 3 callersFunctioncreateBCWithMined
()
tests/helpers.js:14
↓ 3 callersMethodcreateGenesisBlock
* @returns {Block}
src/blockchain.js:152
↓ 3 callersMethodgetAllTransactionsForWallet
* Returns a list of all transactions that happened * to and from the given wallet address. * * @param {string} address * @return {Transac
src/blockchain.js:278
↓ 3 callersMethodhasValidTransactions
* Validates all the transactions inside this block (signature + hash) and * returns true if everything checks out. False if the block is invalid.
src/blockchain.js:130
↓ 2 callersMethodcalculateHash
* Creates a SHA256 hash of the transaction * * @returns {string}
src/blockchain.js:25
↓ 2 callersMethodmineBlock
* Starts the mining process on the block. It changes the 'nonce' until the hash * of the block starts with enough zeros (= difficulty) * * @p
src/blockchain.js:113
↓ 1 callersMethodgetLatestBlock
* Returns the latest block on our chain. Useful when you want to create a * new Block and you need the hash of the previous Block. * * @retur
src/blockchain.js:162
Methodconstructor
* @param {string} fromAddress * @param {string} toAddress * @param {number} amount
src/blockchain.js:13
Methodconstructor
* @param {number} timestamp * @param {Transaction[]} transactions * @param {string} previousHash
src/blockchain.js:81
Methodconstructor
()
src/blockchain.js:142