Advertisment

In many parts of the world today, public transportation is faced by the problem of seemingly inconvenient ticketing processes. Bitcoin is a decentralized currency that can easily solve such problem. A group of developers from Liverpool University proposed a novel ticketing system for public transportation, which is comprised of an automatic ticketing vending machine that supports bitcoin payments. An essential part of this ticketing system is a bitcoin hardware wallet, which records private keys and their matching public keys throughout bitcoin transaction processes. The developers created a demo ticketing vending machine and experimented it to prove the performance and feasibility of the ticketing system.

System Architecture:

As shown in the below figure, the proposed ticketing system is divided into two parts: the main processor and the bitcoin transaction module:

1. The main processor is comprised of modules to manage fiat money payments and deliver tickets, in addition to a user interface module.

2. The bitcoin transaction module enables bitcoin payments and is comprised of a bitcoin wallet, an ECC chip and a secondary processor.

3. ECC chip represents an encryption chip of the Atmel ATECC108 model, that is utilized to manage bitcoin transactions.

4. The secondary processor is controlled by the primary processor and handles the process of tickets’ delivery.

Public 1.PNG

Public 1.PNG

Wallet Generation:

Throughout the transaction process, the ticketing vending machine firstly creates pairs of public keys and their matching private keys. One of those is the RSA algorithm to cipher and decipher transaction related data. The private key is used to digitally sign transaction related info, while the public key acts as an account address that allow others to send their bitcoins.

Throughout the wallet generation process, initially, a random number is picked up to act as the private key for the ECC algorithm. Afterwards, the private key will be encrypted via the AES algorithm, before being stored onto the chip’s configuration area. Thereafter, the crypto chip can use the NIST standard P256 along with the private key to formulating the public key in the form of a 32 byte X coordinate, in addition to a 32-byte Y coordinate. Following this process, the public key is firstly hashed via SHA256. The results of this last step will also act as the RIPEMD-160 algorithm to formulate the final address.

When a user chooses the destination and the number of tickets wanted, the ticketing vending machine will show a QR code that includes its account address. The user is then required to provide his/her signature formulated by ECDSA algorithm to validate ownership of the coins. After the ticketing machine communicates with the bitcoin network and receives a response, it will deliver tickets.

Performance Analysis:

To evaluate the performance of the process of wallet generation, Arduino board is used along with a crypto shield to stimulate the bitcoin module of the ticketing vending machine to measure the overall performance of the ticketing system. The developers measure the following parameters:

1. Key generation time for the ECC algorithm. For hardware implementation, the crypto chip will set its private keys once the personalization process is finished. Thereafter, it will generate a public key that matches the generated private key and specific NIST standard P256 elliptic curve.

2. AES encryption time to cipher the private keys.

3. SHA256 hash function time.

The Arduino board was connected to the crypto shield via the ATECC108 chip to perform the ECC key generation processes. Both hardware and software implementation times were measured along these two processes. Moreover, other algorithm’s time durations are also demonstrated in the below table:

Public 2.PNG

Public 2.PNG

According to the table, the ECC key pair generation is the most crucial factor determining the overall performance of the system. When comparing this with the software library approach, the process’s time duration decreased sharply. Accordingly, hardware represents a better approach due to the fact that it decreases the duration time of the process of key pair generation, which represents more in all software library algorithms. As such, we can safely say that the bitcoin model’s crypto chip is the most important element that affects the overall performance of the proposed ticketing system.

Get the latest Bitcoin News on The Bitcoin News
Our Social Networks:
Facebook Instagram Pinterest Reddit Telegram Twitter Youtube