Invenger

Aug 11, 2024

🧠

Built to explore the fusion of traditional backend logic with decentralized technologies.

Project Overview

Invenger is a decentralized inventory management application that seamlessly integrates Java-based services with the Ethereum blockchain.

  • Developed secure data handling with IPFS.
  • Architected for efficient blockchain transaction processing.
  • Decentralized yet performant.

Tools Used

TechnologyPurpose
JavaCore backend logic and services
JavaFXGUI interface for inventory operations
EthereumSmart contract deployment and interaction
HardhatLocal Ethereum testing environment
IPFSDecentralized file storage

Code Snippet

public void storeToIPFS(String data) {
  IPFS ipfs = new IPFS("/ip4/127.0.0.1/tcp/5001");
  NamedStreamable.ByteArrayWrapper file = new NamedStreamable.ByteArrayWrapper(data.getBytes());
  MerkleNode addResult = ipfs.add(file).get(0);
  System.out.println("Stored at hash: " + addResult.hash);
}
Ismail Drissi