Skip to content
Damien Morattel, home
Back to the portfolio

School project for Softcom Technologies SA

Registered mail, tracked on a blockchain

A proof of concept for Softcom Technologies: every delivery of a digital document is recorded on a blockchain, from sending to receipt.

Illustration: a document checked under a magnifying glass

A proof of concept commissioned by Softcom Technologies SA, in Givisiez, as part of a school project. I built it with my friend Maxime Genilloud.

The brief

Define a use case, pick the right technologies, then build a web application that records the delivery of digital documents on a blockchain: who sends, to whom, which document, and where the delivery stands.

How it works

The document itself never goes through the blockchain. It is uploaded to E-Sign, an existing cloud service for secure document storage, which identifies it by a fingerprint (a hash). That fingerprint is what travels:

  1. The sender uploads the document to E-Sign.
  2. E-Sign returns the hash that gives access to the document.
  3. The sender logs into the web app and sends that hash to the recipient.
  4. The transaction for this delivery is recorded on the blockchain.
  5. The recipient logs in and sees a document has arrived.
  6. The state of the delivery is updated on the blockchain.

Who did what

I developed the smart contract with Hyperledger Composer and the application back-end in .NET Core. Maxime took care of the front-end, in Angular.

Composer generates a REST server from the blockchain’s business model: that is how the back-end reads and writes transactions on Hyperledger Fabric. User accounts live in a regular database.

Diagram: the sender uploads the document to E-Sign, passes its ID through the web app, the blockchain records the shipment, the recipient receives it
The proof-of-concept scope (“POC Scope” frame): the document stays on E-Sign, only its trail goes through the blockchain.
Component diagram: front-end, back-end and user database, Composer REST server and Hyperledger Fabric blockchain
The components: the back-end talks to the blockchain through the REST server Composer generates from the business model.
VideoThe demo of the result.