1. 程式人生 > >Build a blockchain insurance app

Build a blockchain insurance app

Summary

With its distributed ledger, smart contracts, and non-repudiation capabilities, blockchain is revolutionizing the way financial organizations do business, and the insurance industry is no exception. This code pattern shows you how to implement a web-based blockchain app using Hyperledger Fabric to facilitate insurance sales and claims.

Description

This pattern has been updated to support Hyperledger Fabric V1.1.

Most of us have been there: you’ve just had a fender-bender and now you’re dreading the time and effort it is going to take to deal with your insurance company, the police, and the other driver. Even if things go relatively smoothly, it is still a major disruption of your schedule.

But what if you as a developer could turn things around and actually disrupt the insurance industry? What if you could improve not only your own experience but also that of millions of people around the world dealing with the same inconveniences, delays, and administrative frustrations? Well, this is your chance.

Blockchain presents a huge opportunity for the insurance industry. It offers the chance to innovate around the way data is exchanged, claims are processed, and fraud is prevented. Blockchain can bring together developers from tech companies, regulators, and insurance companies to create a valuable new insurance management asset.

A natural pairing

Through its distributed ledger, smart contracts, and non-repudiation capabilities that act as a shared infrastructure, blockchain can transform all kinds of insurance processes. Currently, many insurance processes are manual, error prone, and can require long processing times. There are often different versions of the same data in multiple systems of record, leading to added costs and lengthy disputes.

With blockchain, manual processes are automated by sharing information on plan participants, entitlements, and claim data. Smart contracts are computationally encoded with participant registration and verification rules. Shared data and smart contract computations reduce downstream disputes. Benefits verification is based on multiple data sources that are readily available to all service providers.

Here is the bottom line: blockchain technology provides an opportunity for the insurance industry to improve their operating efficiency, lower the costs of transaction processing, enhance the customer experience, improve data quality, and increase trust between parties.

When you complete this code pattern, you will know how to build a functional blockchain insurance app. The app will have four participants, or peers:

  • Insurance
  • Police
  • Repair shop
  • Shop

The Insurance peer is the company that provides the insurance for the product (in our example, the car) and who is responsible for processing the claims. The Police peer is responsible for verifying the accident or theft claims. The Repair shop peer is responsible for repairs of the product. The Shop peer sells the products to a consumer.

How it works

So how does the app actually work? Imagine a sport enthusiast, Susie, decides she wants to purchase a new bike. She goes to the bike shop and finds an amazing deal on a road racer. As part of the purchase process, she is offered an insurance contract, which she agrees is important to have. She signs up for it, providing her personal data along with a start and end date for the contract. The daily price is calculated by a formula in the chaincode once the contract is processed. When all the paperwork is complete, Suzie is given credentials so she can log in at any time if she needs to file a claim. At this point, a block is written to the blockchain to maintain the transaction.

As luck would have it, ten days later her bike is stolen when she rides up to the Berkeley Hills. After reporting the theft to the police, she opens the self-service tab on the app, logs in, describes the theft, and files her claim with the insurance company. When she submits the claim, it is written onto the block as another transaction. The claim is first processed by the police, who can either confirm or deny the theft; in this case, the theft is confirmed, the police attach a file reference number, and another block is written to the chain. (In the same manner, if Suzie had filed a claim for a bike accident that resulted in damage to the bike, it would be a repair shop that processed the claim instead of the police.) The insurance company monitors all active claims on the blockchain, so when the police submit their verification, the company receives that confirmation and submits a reimbursement for the claim. Just as with the previous transactions, the reimbursement is written to the blockchain. Susie is happy to see that the insurance company has paid her claim, although not quite as happy as she would be if she had her bike back!

Note that insurance companies have the option to activate or deactivate certain contracts. This does not mean that contracts that have already been signed by customers will no longer be valid; it simply does not allow new signings for these types of contracts. In addition, the insurance company can create new contract templates with different terms and conditions, or a different pricing structure.

The web-based application is written in Node.js and Reacts. The application chaincode (that is, the smart contracts) is written in the Go language.

So do not fret about possible disruptions to your routine the next time you have a bit of automotive, or cycling, bad luck. Complete this code pattern, build your blockchain skills, and help disrupt an entire industry!

Flow

flow

  1. Generate certificates for peers.
  2. Build Docker images for the network.
  3. Start the insurance network.

Instructions

To put this code pattern to use, see the complete details for running and using this application in the README.

相關推薦

Build a blockchain insurance app

Summary With its distributed ledger, smart contracts, and non-repudiation capabilities, blockchain is revolutionizing the way financi

Build a File Metadata App in Electron

Build a File Metadata App in ElectronIn this tutorial, we will build a simple file metadata app in Electron, covering creating the main process, browser pr

Build a Decentralized Chat App with Knockout and IPFS

Build a Decentralized Chat App with Knockout and IPFSHow to build a fully decentralized chat app in under an hour with <100 lines of codeThe final produ

Build a MERN web app

Description This code pattern will deploy a Mongo, Express, React, and Node (MERN) web app to IBM Cloud. Deploy from a starter kit in

Build a MEAN web app

Description This developer pattern presents code to create a web app that is pre-configured with the MongoDB, Express.js, AngularJS,

Build a Modern Web App

The application architecture diagrams provide a structural representation of the services that make up Mythical Mysfits and how these services

Build a blockchain network

Summary Blockchain is a secure, distributed, and open technology that is lowering costs, speeding up processes, and building a new le

Apps without privacy issues: Creating a blockchain wellness app on the cloud

Are you heading to DockerCon next week? We are and we’re bringing back our popular blockchain on Kubernetes app, Kubecoin. Hopefully we see you there, b

Build a task app with Hapi, MongoDB and Vue.js

The idea for this tutorial is we’re going to build a task app with Node.js, MongoDB and Vue.js. Users will be able to read, create and delete tasks from th

Why build a dapp or blockchain on Tendermint consensus?

Tendermint is fast. I mean really fast: my tests showed thousands of transaction per second. It’s possible because it doesn’t use Proof of Work, but implem

Create a blockchain app for loyalty points with Hyperledger Fabric Ethereum Virtual Machine

Summary Hyperledger Fabric provides a blockchain network with a modular architecture and consensus protocols that do not require a na

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.android.build.a

原 Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.android.build.a

使用ConstraintLayout構建響應式UI(Build a Responsive UI with ConstraintLayout)

垂直 邊緣 ddn style 元素 package ext tle font 原文:https://weiyf.cn/2017/03/10/Build%20a%20Responsive%20UI%20with%20ConstraintLayout/ 原文:http://w

hdu6121 Build a tree 模擬

題目 get -1 前綴 思路 n-1 void span oid /** 題目:hdu6121 Build a tree 鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=6121 題意:n個點標號為0~n-1;節點i的父節點為f

HDU 6121 Build a tree —— 2017 Multi-University Training 7

color thml 二叉樹 滿二叉樹 rst def 位置 實現 es2017 HazelFan wants to build a rooted tree. The tree has nn nodes labeled 0 to n?1, and the father of

SDN實戰: Build a mini-lab environment and practice SDN-IP/ONOS with GNS3, Mininet and VMware

sdn-ip onos mininet gns3 vmwareSDN IN ACTION: Build a mini-lab environment and practice SDN-IP/ONOS with GNS3, Mininet and VMware 薛國鋒 [email protect

SDN實戰:Build a VXLAN Tunnel by Making Python-based API Calls for DCI

python restful api vxlan ovsdbSDN IN ACTION: Build a VXLAN tunnel by making Python-based API Calls on OpenDaylight and Provide the DCI service 薛國鋒

[Recompose] Merge RxJS Button Event Streams to Build a React Counter Component

wal with count blog value ble ack sso map Combining input streams then using scan to track the results is a common scenario when coding w

《Let's Build A Simple Interpreter》之 Golang 版

OS advance esp n) indicate javascrip value 龍書 use   一直以來對編譯器/解釋器等都較有興趣。我非科班出身,當初還在大學時,只是馬馬虎虎看完了《編譯原理》之類教材,上機非常少,對龍書之類聖經也只是淺嘗輒止而已。工作至今,基本已

1099. Build A Binary Search Tree (30)

output eve algo keys inter c ++ numbers pac none A Binary Search Tree (BST) is recursively defined as a binary tree which has the follo