Bit Warrior
Oct 6, 2017 · 2 min read

Certificate on IPFS and Ethereum

We are going through a very exciting phase of technological transformation. Blockchain community is re-designing a lot of existing use cases and trying to solve a lot of unsolved use cases with the help of decentralized, peer-to-peer technology.

Certificate generation and verification is one of the uses cases which is being attempted to be gracefully handled by blockchain. Here is one of the possible approach using Ethereum and IPFS.

Step 1: Every certificate issuer is required to have an address on Ethereum blockchain and only issuer can initiate a transaction from this address.

Step 2: Issuer initiates a zero Ether transaction to any arbitrary address with a payload of binary of the certificate. (There is big problem with this approach, we will look into it shortly)

Step 3: Transaction form Step 2 if goes through successfully will generate a transaction id which is printed on the certificate and given to the candidate.

Step 4: Authenticity of the certificate can be verified by any third part on the block chain with the help of Transaction hash. Now there is serious problem with above approach as I mentioned in Step 2, writing anything on block chain is extremely expensive, so if we trying to upload the whole certificate on blockchain, then cost of issuing certificate will go up significantly. But don’t worry, we have IPFS to rescue us. IPFS is cool decentralized technology for storing content on peer-to-peer network where content can be retrieved by addressing the hash of the content. You can read more about it here.

I have put together a small project on GitHub to show case the concept in action.

1. Make a clone of the project and install the dependency “npm install

2. Create wallet on Ethereum to issue the certificate, We recently released an awesome wallet , you can use it to generate the wallet.

Image for post
Image for post

3. You need some Kovan test ether to run the certificate generation, feel free to join our slack and ask for test ether

4. run “node generate.js” form root folder? Enter private key of issuer wallet==> 0x49043370f575051f4885823e58cd6605f2a0eed5ba751a1ebd351f7af78c6eeeTransaction hash, you need this to verify the certificate on blockchain::::0xd3e3afcc919d13d8e81bd4d1270af4567738ddffe5243a398d132e13423ab8b3 Certicate generated in Certificate folder

5. you can check generated certificate in “Certificate” folder.

Image for post
Image for post

6. Verify node verify.js ? Enter Transaction hash==> 0xd3e3afcc919d13d8e81bd4d1270af4567738ddffe5243a398d132e13423ab8b3

It will open certificate on Firefox browser.

Thanks for reading the article. If you have any questions, write me on

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store