44 Followers
·
Follow

I propose a realistic solution to using Ethereum as a public ledger

Image for post
Image for post

Problems are gas cost and capacity

We will face two problems with using Ethereum as a public ledger. The first one is the gas cost. Storing data to storage is the most expensive operation. (see SSTORE gas cost) The other one is capacity. Event solidity seems not have any data size limitation, we restricted by gas limit.

So, the current Ethereum is not suitable for large data or frequent storing.

Ethereum is a reference and IPFS is storage

Store data on distributed storage, like IPFS. IPFS doesn’t have any data size limitations. Then, store the hash to Ethereum for data integrity. …


Near future, our team will use IPFS for production service so I investigated lots about the configuration of it. I’m going to share my learned knowledge.

Image for post
Image for post

1. Preparation

At first, export “IPFS_PATH”.

export IPFS_PATH=/data/ipfsrep

The IPFS repository is created to this path. The default path is your $HOME. For later convenience, I highly recommend setting this path to the proper location.

2. Repository initialization

Initialize repository with “— profile server” option.

ipfs init —- profile server

This option optimizes IPFS configuration for a data center as disabling host and content discovery in local networks. See official document

If you are running on a server in a data center, you should initialize IPFS with the server profile. This will prevent IPFS from creating a lot of data center-internal traffic trying to discover local…


Setting ssl to Application Gateway using Ubuntu VM. I was so tired to achieve this, so I left my knowledge here.

In Azure, there are 2 types of load balancer. One is Load Balancer and the other is Application Gateway. If you want to support https, only Application Gateway is available. Load Balancer is a Layer 4 balancer. So it doesn’t support SSL offloading.

I break down the whole process as following steps.

  1. Build Application Gateway
  2. Build Ubuntu VM and install Nginx
  3. Obtain SSL certification from Let’s Encrypt
  4. Upload certifications to Application Gateway

1. Build Application Gateway

Basically, follow the official instruction. We are going to create Nginx web server on top of Ubuntu VM, so please skip later sections than “Create a virtual…

About

tak

Japanese software engineer. Like blockchain, sauna and manga. re795h@gmail.com

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