Cross Border Payment is a private blockchain application based on Hyperledger. This project aims to facilitate the tracking and processing of cross-border payments.
This project is a blockchain application developed on the Hyperledger framework. It includes smart contracts used for tracking, validating, and processing cross-border payments. A network has been established for transactions between different banks, ensuring transparent monitoring of payment processes.
To run this project in a local development environment, you can follow the steps below:
Requirements:
cbps-network
directory:cd cbps-network
./network.sh up createChannel -c bankschannel -ca -s couchdb0
./network.sh deployCC -c bankschannel -ccn bank -ccp ../crossBorderPayment/chaincode-go/ -ccl go -ccep "OR('Org1MSP.peer','Org2MSP.peer')"
crossBorderPayment/application
directory:cd ../crossBorderPayment/application
npm install
node enrollAdmin.js org1
node enrollAdmin.js org2
node app.js
If there are no errors, the explorer interface will be accessible at http://localhost:3000
.
Modify the necessary files for the explorer:
cbps-network/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore
directory.adminPrivateKey
value in the explorer/cbps-network.json
file.Navigate to the explorer
directory:
cd explorer
docker-compose up
http://localhost:8080
.cbps-network
directory:cd cbps-network
./network.sh down
crossBorderPayment/application
directory:cd ../crossBorderPayment/application
wallet
and node-modules
directories:rm -rf wallet
rm -rf node-modules
Stopping and Removing Docker Containers:
```bash
docker stop $(docker ps -a -q)
docker rm -f $(docker ps -aq)
docker system prune -a
docker volume prune
Listing Docker Containers and Images:
docker ps -a
docker images -a
docker volume ls