This repository contains a Blockchain approach of the eReuse system.
$npm install //install necessary node modules
$node_modules/.bin/truffle compile --all --reset //compile Solidity contractsIn a different terminal or a screen start a ganache instance by executing node_modules/.bin/ganache
and then deploy locally the smart contracts by executing
$node_modules/.bin/truffle migrate --network development //deploy Solidity contractsTo export in Go :
- Install abigen
- Deploy locally the smart contracts (so that truffle generates the bytecode)
- Run
node abigen - In the
godirectory you should find the.gofile with the Ethereum bindings