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.
 
 
 
 
 
 

622 B

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