하이퍼렛져 페브릭 hyper ledger fabric

IT/Blockchain|2021. 9. 30. 22:04

 

Blockchain 

 

 

 

Hyperledger fabric 

 A platform for the blockchain operation 

It Hyperledger fabric system contains distributed ledger (분산원장)   ,  consensus  , pubulication , certification , smart contract ... etc 

 

Hyperledger Fabric is an open source  permissioned distributed ledger technology platform that can be used in the real enterprises. 

Hyperledger was established under the Linux Foundation.  Hyperledger is governed by a diverse technical steering committee and maintained by multiple developers. 

 

https://hyperledger-fabric.readthedocs.io/en/release-2.2/whatis.html

 

Introduction — hyperledger-fabricdocs master documentation

Docs » Introduction Edit on GitHub Introduction In general terms, a blockchain is an immutable transaction ledger, maintained within a distributed network of peer nodes. These nodes each maintain a copy of the ledger by applying transactions that have bee

hyperledger-fabric.readthedocs.io

 

1. Main characteristic of Hyperledger fabric 

 

1.  컨소시엄형 참가방식 

컨소시엄형은 각 조직내의 사용자와 노드를 관리하고 , 블록체인 네트워크에는 허가를 받아야만 참가할수있는구조,  좀더 신뢰성 높은 블록체인 네트워크 구축이 가능 

 

The Fabric platform is also permissioned, meaning that, unlike with a public permissionless network, the participants are known to each other, rather than anonymous and therefore fully untrusted.

 

 

2. 빠른 합의방식 

특정 조직만 참가할수있는 블록체인 네트워크로 참여 기관이 가볍고 빠르게  합의 와 파이널리티를 확보할수있음.

하지만 다른 오픈된 블록체인 네트워크 ex BTC ETH , 는 poW(작업증명)을 통해 블록이 생성된다.

 pluggable consensus protocols that enable the platform to be more effectively customized to fit particular use cases and trust models

 

 

3. Chaincode 

Smart contract과 같은 개념 

스마트게약을 체인코드를 통해 여러가지 업무로직을 만들고 실행가능 

A smart contract, or what Fabric calls “chaincode”, functions as a trusted distributed application that gains its security/trust from the blockchain and the underlying consensus among the peers. It is the business logic of a blockchain application.

 

 

4. 트랜젝션 실행 직후의 상태보존

State DB를 사용하여 트랜잭션후 상태를 기록한다.  사용자는 모든 블록을 참조할 필요없이 해당시점의 상태를  DB를통해 바로 확인 가능.

5. 채널을 이용한 네트워크분할 

하나의 블록체인 네트워크를 독립된 여러 네트워크로 (Channel)로  분리할수있다. 

분리된 채널간의 체인코드와 분산원장은 공유되지않는다.

 

 

 

2. Hyperledger Architecture

하이퍼레저 패브릭 철저 입문 -위키북스 

 

1. Hyperledger Fabric Clined SDK 

클라이언트용 Software Development Kit (SDK) 을 통해 하이퍼레저 패브릭의 기능을 이용한 API를 사용할수있다. 

 

2. Organization

peer and orderer are inside Organization 

 

3. Peer

노드는 나타내는 단위 , 블록체인 , 상태DB,  체인코드를 가지고있다.

Peer 는  Endorser(보증인) 및 Committer(커미터) 역할을 가진다. 

 

4. Orderer

Endorsement(보증된)  트랜잭션 결과를 블로게인과 상태DB에  기록하는걸 관리한다. 

 

5. 체인코드

스마트 컨트랙을 구현하기위한 프로그램. 

체인코드에서 다른 체인코드를 호출하거나, 용도에 따른 체인코드를 만들수있다.

트랜잭션의 요청의 따라 실행된다. 상태 DB르 읽고쓰고 과서의 상태 내역 을 조회할수있지만,

다른체인코드에서 저장한 상태DB는 읽을수없다.

 

 

6. Channel    

한개의 하이퍼레저 패브릭 네트워크를 분리한 단위. 

 

 

3. Transaction Process 

 

1. Register  user

2. Registered user get Ecertification 

3. Transaction 

    - Client user Hyperledger fabric client SDK to request to run chaincode   (Transaction proposal)

    - Endorser simulate the chaincode and generate RWSet (read/write set)

    - Endorser's sign on RWSet back to client 

    -  Hyperledger fabric SDK  get all the singed RWSet and check if this meet the requirements and  submit the transaction to Orderer's 

    - It distributes the transaction to. (commiters)  peers 

    - Peers verify the transaction RWSet and commit to blockchain

    - 

 

계속 추가 예정 - 

반응형

댓글()