public/subjects/blockchain/send-hash
nprimo 4fa5c876a7 docs: run prettify and move h1 to h2 2023-06-09 09:17:48 +01:00
..
README.md docs: run prettify and move h1 to h2 2023-06-09 09:17:48 +01:00

README.md

Send Hash

In this exercise, you will register the hash of a document on the blockchain.

Instructions

Write a node script that provides a function sendHash() that:

  • creates a hash sha256 of a string provided as parameter
  • connects to a local node (http://localhost:8545)
  • sends a transaction to an address with the hash of the document in the data field
function sendHash(text) {
  //...
}
module.exports = sendHash

Notions