Node.js implementation of Merkel tree and Patricia Tree used in Ethereum blockchain
A classe possuiu os seguintes métodos:
-
createTree(transactionList)
Adds layers to the tree for the passed transaction list
-
verify(transaction)
Checks if the transaction is valid or not
A classe possui os seguintes métodos:
-
add(transaction)
Add transaction to the trie
-
get(hash)
Get transaction from the trie for the passed trie
-
remove(hash)
Remove the trnasaction with the hash if found
Feito com ❤️ por Matheus do Carmo