You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nprimo 4fa5c876a7 docs: run prettify and move h1 to h2 12 months ago
..
README.md docs: run prettify and move h1 to h2 12 months ago

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