BANKEX NFC Ethereum smart contract based accounting.
NFC card's unique identifier are being used as a key in ERC-20-like smart contract.
- NFC tag reader (tested with ACR122U USB).
- Raspberry Pi (recommended) or any Linux-based PC (Debian/Ubuntu is recommended)
sudo apt update
sudo apt -y install subversion autoconf debhelper flex libusb-dev libpcsclite-dev libpcsclite1 libccid pcscd pcsc-tools libpcsc-perl libusb-1.0-0-dev libtool libssl-dev cmake checkinstall
- Follow the instruction to install NVM
- Install node-gyp module
npm install -g node-gyp
###libnfc
Download actual release of nfclib library, e.g. libnfc-1.7.1.tar.bz2. Unzip it to temp directory and cd
into it.
./configure --with-drivers=acr122_usb
make
sudo make install
Clone git and cd
to project directory.
npm install
- Deploy contract ./contracts/nfctoken.sol to Ethereum
- Add your local address to whitelist in deployed contract
- Place local geth keystore json key file to ./keystore/key.json
- Place plain text password to file ./keystore/password.txt
cp config-example.yml config.yml
- Edit config.yml to set up correct geth/parity node RPC address
Clone git and cd
to project directory.
npm install
npm start