SlideShare a Scribd company logo
1 of 22
Hyperledger Fabric – v2.0
Alpha
FabToken Overview & Hands-On
Lab
Hyperledger Korea User Group
2
엔터프라이즈 블록체인 - Token
3
• R3 Corda – Tokens SDK
• JP Morgan Quorum – JPM Coin
- https://www.jpmorgan.com/global/news/digital-coin-payments
• Hyperledger Fabric v2 – FabToken
- Token Management Enablement in Hyperledger Fabric
 http://bit.ly/2KvVKb4
- Token (base support) - Support Issue, Transfer, and Redeem Token Operations
 https://jira.hyperledger.org/browse/FAB-11144
- Using FabToken
 https://hyperledger-fabric.readthedocs.io/en/latest/token/FabToken.html
FabToken
4
• Hyperledger Fabric v2.0
- https://github.com/hyperledger/fabric/tree/master/token
• Token Management System
• Unspent Transaction Output (UTXO) 모델
• 합의, 검증을 위해 Orderer, Peer 사용
• 토큰 생성, 관리를 위해 체인코드를 사용하지 않음.(Endorsement Policy X)
• s송/수신자 식별 – MSP
• Token Lifecycle: Issue, Transfer, Redeem, List
Unspent Transaction Output (UTXO)
5출처 - https://codechain.readthedocs.io/en/latest/transactions.html
Hyperledger Fabric – UTXO
6
• 패브릭에서는 상태(State)는 Key-Value 형태로 저장
Key : Namespace + TokenPrefix + Owner + TransactionId + Index
Value: Quantity
• Unspent Transaction(Output)은 Ledger(State DB)에 저장되고
Spent Transaction(Input)은 Ledger(State DB)에서 삭제됨.
Hyperledger Fabric – UTXO Transaction
7
Org1
100
IN OUT
Org1
100
IN OUT
Org1
50
Org2
50
Tx #1 Tx #2
{Org1-Tx#1, 100}
Issue to Org1(100) Transfer Org1 to Org2(50)
{Org1-Tx#2, 50}
{Org2-Tx#2-1, 50}
{Org1-Tx#1, 100}
Redeem from Org2(20)
Tx #3
Org2
50
IN OUT
Org2
30
20
{Org1-Tx#1, 100}
{Org1-Tx#2, 50}
{Org2-Tx#2-1, 50}
{Org2-Tx#3, 30}
{Tx#3-1, 20}
Token Transaction Flow
8
Client Prover Peer
① Request
(Issue,Transfer,Redeem)
② TokenTransaction
③ Envelope
④ Block
Peer
(Committer)
Validation(VSCC)
Commit(Simulation)
Prover Peer
9
• 연산(computation) 실행…
• 비밀정보 유지…
• 트랜잭션 상태, 토큰 몰록 질의 대응…
• 토큰 발행 및 전송 시 검증
- TokenTransaction 생성
Token Lifecycle
10
• Issue
• List
• Transfer
• Reedem
Token Lifecycle – issue (계속)
11
• 채널 내 허가 받은 MSP에 의해 토큰 생성
- IssuingPolicy : v2.0 alpha 버전에서는 ANY로 설정됨.
• 속성
- Owner: MSP
- Type: 토큰 이름. 예> FabCoin, HLKUGCoin,…
- Quantity
Token Lifecycle - issue
12
• SDK (node.js)
const tokenclient = client.newTokenClient(mychannel);
const txId = client.newTransactionID();
const param = {
owner: user1.getIdentity().serialize(),
type: 'USD',
quantity: '500',
};
const issueRequest = {
params: [param],
txId: txId,
};
const result = await tokenClient.issue(issueRequest);
Token Lifecycle – list (계속)
13
• Unspent 토큰에 대해 질의
- 권한: 토큰 소유자 MSP
• 질의 결과 값
- TokenID: 트랜잭션 ID, 인덱스
- Type: 토큰 이름. 예> FabCoin, HLKUGCoin,…
- Quantity
Token Lifecycle - list
14
• SDK (node.js)
const user1Tokenclient = client1.newTokenClient(mychannel);
const mytokens = await user1TokenClient.list();
for (const token of tokens) {
// get token.id, token.type, and token.quantity
// token.id will be used for transfer and redeem
}
Token Lifecycle – transfer (계속)
15
• 토크 전달, 토큰 소비
- 권한: 토큰 ID의 소유자(MSP)
• 파라미터
- Token ID: 토큰 ID
- Quantity
- Recipient: 수신자(MSP)
Token Lifecycle - transfer
16
• SDK (node.js)
const txId = client1.newTransactionID();
const param = {
owner: user2.getIdentity().serialize(),
quantity: '300',
};
// create the request for transfer
const transferRequest = {
tokenIds: [tokenid1],
params: [param],
txId: txId,
};
const mytokens = await user1TokenClient.transfer(transferRequest);
Token Lifecycle – redeem (계속)
17
• 비즈니스 네트워크(채널)에서 asset(token) 제거
- 권한: 토큰 ID의 소유자(MSP)
- Reedm된 토큰은 transfer/change되지 않음.
• 파라미터
- Token ID: 토큰 ID
- Quantity
Token Lifecycle - redeem
18
• SDK (node.js)
const user2Tokenclient = client2.newTokenClient(mychannel);
const txId = client2.newTransactionID();
const param = {
quantity: '100',
};
const redeemRequest = {
tokenIds: [tokenid2],
params: [param],
txId: txId,
};
const result = await user2TokenClient.redeem(redeemRequest);
핸즈온 랩 자료
19
http://bit.ly/hlkug_handson190
6
BYFN(Building Your First Network)
20
Peer Peer
Peer PeerOrderer
Org1
Org2peer0.org1.example.com
peer1.org1.example.com
peer0.org2.example.comorderer.example.com
fabric_byfn
peer1.org2.example.com
Future features
21
• non-fungible tokens
- Non fungible tokens cannot be merged or divided.
• chaincode interoperability
- allows tokens to be issued, transferred, and redeemed by chaincode
22
감사합니다.

More Related Content

What's hot

GitHub Actions - using Free Oracle Cloud Infrastructure (OCI)
GitHub Actions - using Free Oracle Cloud Infrastructure (OCI)GitHub Actions - using Free Oracle Cloud Infrastructure (OCI)
GitHub Actions - using Free Oracle Cloud Infrastructure (OCI)Phil Wilkins
 
Decentralised Exchanges - An Introduction
Decentralised Exchanges - An IntroductionDecentralised Exchanges - An Introduction
Decentralised Exchanges - An IntroductionPriyab Satoshi
 
Understanding private blockchains
Understanding private blockchainsUnderstanding private blockchains
Understanding private blockchainsCoin Sciences Ltd
 
What is Erc20 token? How it Works/
What is Erc20 token? How it Works/What is Erc20 token? How it Works/
What is Erc20 token? How it Works/Developcoins
 
Lifecycle of a pod
Lifecycle of a podLifecycle of a pod
Lifecycle of a podHarshal Shah
 
Blockchain - HyperLedger Fabric
Blockchain - HyperLedger FabricBlockchain - HyperLedger Fabric
Blockchain - HyperLedger FabricAraf Karsh Hamid
 
Getting Started in Web3 with MetaMask.pptx
Getting Started in Web3 with MetaMask.pptxGetting Started in Web3 with MetaMask.pptx
Getting Started in Web3 with MetaMask.pptxssuser455e28
 
What is NFT? | A Complete Use-Cases of Non-Fungible Token (NFT)
What is NFT? | A Complete Use-Cases of Non-Fungible Token (NFT)What is NFT? | A Complete Use-Cases of Non-Fungible Token (NFT)
What is NFT? | A Complete Use-Cases of Non-Fungible Token (NFT)Linda John
 
Intro to smart contract on blockchain en
Intro to smart contract on blockchain enIntro to smart contract on blockchain en
Intro to smart contract on blockchain enNicholas Lin
 
Instantly tradeable NFT contracts based on ERC-1155 standard
Instantly tradeable NFT contracts based on ERC-1155 standardInstantly tradeable NFT contracts based on ERC-1155 standard
Instantly tradeable NFT contracts based on ERC-1155 standardGene Leybzon
 
NFTs - Common Use Cases and Legal Considerations (Japan)
NFTs - Common Use Cases and Legal Considerations (Japan)NFTs - Common Use Cases and Legal Considerations (Japan)
NFTs - Common Use Cases and Legal Considerations (Japan)Joerg Schmidt
 
Blockchain Based Decentralized Cloud System
Blockchain Based Decentralized Cloud SystemBlockchain Based Decentralized Cloud System
Blockchain Based Decentralized Cloud SystemDhruvdoshi25071999
 
CoinGecko Q2 2022 Quarterly Report
CoinGecko Q2 2022 Quarterly ReportCoinGecko Q2 2022 Quarterly Report
CoinGecko Q2 2022 Quarterly ReportCoinGecko
 
Blockchain 101 + Use Cases + Why Blockchain As a Service
Blockchain 101 + Use Cases + Why Blockchain As a ServiceBlockchain 101 + Use Cases + Why Blockchain As a Service
Blockchain 101 + Use Cases + Why Blockchain As a ServiceKaleido
 
MobiliteaTime #7 : Blockchain
MobiliteaTime #7 : BlockchainMobiliteaTime #7 : Blockchain
MobiliteaTime #7 : BlockchainUSERADGENTS
 

What's hot (20)

Blockchain
BlockchainBlockchain
Blockchain
 
Bitcoin
BitcoinBitcoin
Bitcoin
 
BITCOIN
BITCOINBITCOIN
BITCOIN
 
Erc 721 tokens
Erc 721 tokensErc 721 tokens
Erc 721 tokens
 
GitHub Actions - using Free Oracle Cloud Infrastructure (OCI)
GitHub Actions - using Free Oracle Cloud Infrastructure (OCI)GitHub Actions - using Free Oracle Cloud Infrastructure (OCI)
GitHub Actions - using Free Oracle Cloud Infrastructure (OCI)
 
Decentralised Exchanges - An Introduction
Decentralised Exchanges - An IntroductionDecentralised Exchanges - An Introduction
Decentralised Exchanges - An Introduction
 
Understanding private blockchains
Understanding private blockchainsUnderstanding private blockchains
Understanding private blockchains
 
What is Erc20 token? How it Works/
What is Erc20 token? How it Works/What is Erc20 token? How it Works/
What is Erc20 token? How it Works/
 
Lifecycle of a pod
Lifecycle of a podLifecycle of a pod
Lifecycle of a pod
 
Blockchain - HyperLedger Fabric
Blockchain - HyperLedger FabricBlockchain - HyperLedger Fabric
Blockchain - HyperLedger Fabric
 
Getting Started in Web3 with MetaMask.pptx
Getting Started in Web3 with MetaMask.pptxGetting Started in Web3 with MetaMask.pptx
Getting Started in Web3 with MetaMask.pptx
 
What is NFT? | A Complete Use-Cases of Non-Fungible Token (NFT)
What is NFT? | A Complete Use-Cases of Non-Fungible Token (NFT)What is NFT? | A Complete Use-Cases of Non-Fungible Token (NFT)
What is NFT? | A Complete Use-Cases of Non-Fungible Token (NFT)
 
Intro to smart contract on blockchain en
Intro to smart contract on blockchain enIntro to smart contract on blockchain en
Intro to smart contract on blockchain en
 
Cryptocurrency
CryptocurrencyCryptocurrency
Cryptocurrency
 
Instantly tradeable NFT contracts based on ERC-1155 standard
Instantly tradeable NFT contracts based on ERC-1155 standardInstantly tradeable NFT contracts based on ERC-1155 standard
Instantly tradeable NFT contracts based on ERC-1155 standard
 
NFTs - Common Use Cases and Legal Considerations (Japan)
NFTs - Common Use Cases and Legal Considerations (Japan)NFTs - Common Use Cases and Legal Considerations (Japan)
NFTs - Common Use Cases and Legal Considerations (Japan)
 
Blockchain Based Decentralized Cloud System
Blockchain Based Decentralized Cloud SystemBlockchain Based Decentralized Cloud System
Blockchain Based Decentralized Cloud System
 
CoinGecko Q2 2022 Quarterly Report
CoinGecko Q2 2022 Quarterly ReportCoinGecko Q2 2022 Quarterly Report
CoinGecko Q2 2022 Quarterly Report
 
Blockchain 101 + Use Cases + Why Blockchain As a Service
Blockchain 101 + Use Cases + Why Blockchain As a ServiceBlockchain 101 + Use Cases + Why Blockchain As a Service
Blockchain 101 + Use Cases + Why Blockchain As a Service
 
MobiliteaTime #7 : Blockchain
MobiliteaTime #7 : BlockchainMobiliteaTime #7 : Blockchain
MobiliteaTime #7 : Blockchain
 

Similar to Hyperledger Fabric v2.0 Alpha - FabToken Overview, Hands-On Lab

Building a NFT Marketplace DApp
Building a NFT Marketplace DAppBuilding a NFT Marketplace DApp
Building a NFT Marketplace DAppThanh Nguyen
 
BlockchainDay "Ethereum Dapp - Asset Exchange YOSEMITE alpha" Session
BlockchainDay "Ethereum Dapp - Asset Exchange YOSEMITE alpha" Session BlockchainDay "Ethereum Dapp - Asset Exchange YOSEMITE alpha" Session
BlockchainDay "Ethereum Dapp - Asset Exchange YOSEMITE alpha" Session 병완 임
 
Presentation_Topalidis_Giorgos
Presentation_Topalidis_GiorgosPresentation_Topalidis_Giorgos
Presentation_Topalidis_GiorgosGiorgos Topalidis
 
Presentation topalidis giorgos
Presentation topalidis giorgosPresentation topalidis giorgos
Presentation topalidis giorgosGiorgos Topalidis
 
20221110 MetaCoin
20221110 MetaCoin20221110 MetaCoin
20221110 MetaCoinHu Kenneth
 
Securing Microservices using Play and Akka HTTP
Securing Microservices using Play and Akka HTTPSecuring Microservices using Play and Akka HTTP
Securing Microservices using Play and Akka HTTPRafal Gancarz
 
Tagcash Developers
Tagcash DevelopersTagcash Developers
Tagcash DevelopersMark Vernon
 
Corda Developer Bootcamp: Tokens
Corda Developer Bootcamp: TokensCorda Developer Bootcamp: Tokens
Corda Developer Bootcamp: TokensR3
 
Bitmark and Hyperledger Workshop: the Digital Assets and Property
Bitmark and Hyperledger Workshop: the Digital Assets and PropertyBitmark and Hyperledger Workshop: the Digital Assets and Property
Bitmark and Hyperledger Workshop: the Digital Assets and PropertyJollen Chen
 
Asset tokenization Real Estate Reinvented
Asset tokenization Real Estate ReinventedAsset tokenization Real Estate Reinvented
Asset tokenization Real Estate ReinventedJongseung Kim
 
“Technical Intro to Blockhain” by Yurijs Pimenovs from Paybis at CryptoCurren...
“Technical Intro to Blockhain” by Yurijs Pimenovs from Paybis at CryptoCurren...“Technical Intro to Blockhain” by Yurijs Pimenovs from Paybis at CryptoCurren...
“Technical Intro to Blockhain” by Yurijs Pimenovs from Paybis at CryptoCurren...Dace Barone
 
Cotopaxi - IoT testing toolkit (3rd release - Black Hat Europe 2019 Arsenal)
Cotopaxi - IoT testing toolkit (3rd release - Black Hat Europe 2019 Arsenal)Cotopaxi - IoT testing toolkit (3rd release - Black Hat Europe 2019 Arsenal)
Cotopaxi - IoT testing toolkit (3rd release - Black Hat Europe 2019 Arsenal)Jakub Botwicz
 
Corda Developer Bootcamp: Tokens
Corda Developer Bootcamp:  TokensCorda Developer Bootcamp:  Tokens
Corda Developer Bootcamp: TokensR3
 
Is there a token for that? Tokens demystified.
Is there a token for that? Tokens demystified.Is there a token for that? Tokens demystified.
Is there a token for that? Tokens demystified.Jan Brejcha
 
以太坊代幣付款委託 @ Open Source Developer Meetup #12
以太坊代幣付款委託 @ Open Source Developer Meetup #12以太坊代幣付款委託 @ Open Source Developer Meetup #12
以太坊代幣付款委託 @ Open Source Developer Meetup #12Aludirk Wong
 
Demystify blockchain development with hyperledger fabric
Demystify blockchain development with hyperledger fabricDemystify blockchain development with hyperledger fabric
Demystify blockchain development with hyperledger fabricBenjamin Fuentes
 
IBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger Workshop
IBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger WorkshopIBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger Workshop
IBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger WorkshopIBM France Lab
 

Similar to Hyperledger Fabric v2.0 Alpha - FabToken Overview, Hands-On Lab (20)

Building a NFT Marketplace DApp
Building a NFT Marketplace DAppBuilding a NFT Marketplace DApp
Building a NFT Marketplace DApp
 
Basics of Block Chain
Basics of Block ChainBasics of Block Chain
Basics of Block Chain
 
BlockchainDay "Ethereum Dapp - Asset Exchange YOSEMITE alpha" Session
BlockchainDay "Ethereum Dapp - Asset Exchange YOSEMITE alpha" Session BlockchainDay "Ethereum Dapp - Asset Exchange YOSEMITE alpha" Session
BlockchainDay "Ethereum Dapp - Asset Exchange YOSEMITE alpha" Session
 
Presentation_Topalidis_Giorgos
Presentation_Topalidis_GiorgosPresentation_Topalidis_Giorgos
Presentation_Topalidis_Giorgos
 
Presentation topalidis giorgos
Presentation topalidis giorgosPresentation topalidis giorgos
Presentation topalidis giorgos
 
20221110 MetaCoin
20221110 MetaCoin20221110 MetaCoin
20221110 MetaCoin
 
Securing Microservices using Play and Akka HTTP
Securing Microservices using Play and Akka HTTPSecuring Microservices using Play and Akka HTTP
Securing Microservices using Play and Akka HTTP
 
Tagcash Developers
Tagcash DevelopersTagcash Developers
Tagcash Developers
 
Corda Developer Bootcamp: Tokens
Corda Developer Bootcamp: TokensCorda Developer Bootcamp: Tokens
Corda Developer Bootcamp: Tokens
 
Bitmark and Hyperledger Workshop: the Digital Assets and Property
Bitmark and Hyperledger Workshop: the Digital Assets and PropertyBitmark and Hyperledger Workshop: the Digital Assets and Property
Bitmark and Hyperledger Workshop: the Digital Assets and Property
 
Asset tokenization Real Estate Reinvented
Asset tokenization Real Estate ReinventedAsset tokenization Real Estate Reinvented
Asset tokenization Real Estate Reinvented
 
Scalable IoT platform
Scalable IoT platformScalable IoT platform
Scalable IoT platform
 
“Technical Intro to Blockhain” by Yurijs Pimenovs from Paybis at CryptoCurren...
“Technical Intro to Blockhain” by Yurijs Pimenovs from Paybis at CryptoCurren...“Technical Intro to Blockhain” by Yurijs Pimenovs from Paybis at CryptoCurren...
“Technical Intro to Blockhain” by Yurijs Pimenovs from Paybis at CryptoCurren...
 
Cotopaxi - IoT testing toolkit (3rd release - Black Hat Europe 2019 Arsenal)
Cotopaxi - IoT testing toolkit (3rd release - Black Hat Europe 2019 Arsenal)Cotopaxi - IoT testing toolkit (3rd release - Black Hat Europe 2019 Arsenal)
Cotopaxi - IoT testing toolkit (3rd release - Black Hat Europe 2019 Arsenal)
 
Corda Developer Bootcamp: Tokens
Corda Developer Bootcamp:  TokensCorda Developer Bootcamp:  Tokens
Corda Developer Bootcamp: Tokens
 
Is there a token for that? Tokens demystified.
Is there a token for that? Tokens demystified.Is there a token for that? Tokens demystified.
Is there a token for that? Tokens demystified.
 
以太坊代幣付款委託 @ Open Source Developer Meetup #12
以太坊代幣付款委託 @ Open Source Developer Meetup #12以太坊代幣付款委託 @ Open Source Developer Meetup #12
以太坊代幣付款委託 @ Open Source Developer Meetup #12
 
Ethereum smart contracts - door Peter Reitsma
Ethereum smart contracts - door Peter ReitsmaEthereum smart contracts - door Peter Reitsma
Ethereum smart contracts - door Peter Reitsma
 
Demystify blockchain development with hyperledger fabric
Demystify blockchain development with hyperledger fabricDemystify blockchain development with hyperledger fabric
Demystify blockchain development with hyperledger fabric
 
IBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger Workshop
IBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger WorkshopIBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger Workshop
IBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger Workshop
 

More from Hyperledger Korea User Group

Hyperledger Meetup Korea #28 - HTS(Hedera Token Service), DeFi 스왑 및 유동성 프로토콜
Hyperledger Meetup Korea #28 - HTS(Hedera Token Service), DeFi 스왑 및 유동성 프로토콜Hyperledger Meetup Korea #28 - HTS(Hedera Token Service), DeFi 스왑 및 유동성 프로토콜
Hyperledger Meetup Korea #28 - HTS(Hedera Token Service), DeFi 스왑 및 유동성 프로토콜Hyperledger Korea User Group
 
1908 Hyperledger Fabric 소개 및 첫 네트워크 구축하기
1908 Hyperledger Fabric 소개 및 첫 네트워크 구축하기1908 Hyperledger Fabric 소개 및 첫 네트워크 구축하기
1908 Hyperledger Fabric 소개 및 첫 네트워크 구축하기Hyperledger Korea User Group
 
[2019.04] 쿠버네티스 기반 하이퍼레저 패브릭 네트워크 구축하기
[2019.04] 쿠버네티스 기반 하이퍼레저 패브릭 네트워크 구축하기[2019.04] 쿠버네티스 기반 하이퍼레저 패브릭 네트워크 구축하기
[2019.04] 쿠버네티스 기반 하이퍼레저 패브릭 네트워크 구축하기Hyperledger Korea User Group
 
[2019.03] 멀티 노드에서 Hyperledger Fabric 네트워크 구성하기
[2019.03] 멀티 노드에서 Hyperledger Fabric 네트워크 구성하기[2019.03] 멀티 노드에서 Hyperledger Fabric 네트워크 구성하기
[2019.03] 멀티 노드에서 Hyperledger Fabric 네트워크 구성하기Hyperledger Korea User Group
 
[2019.1] 하이퍼레저 패브릭 v1.3, v1.4 새로운 기능
[2019.1] 하이퍼레저 패브릭 v1.3, v1.4 새로운 기능[2019.1] 하이퍼레저 패브릭 v1.3, v1.4 새로운 기능
[2019.1] 하이퍼레저 패브릭 v1.3, v1.4 새로운 기능Hyperledger Korea User Group
 

More from Hyperledger Korea User Group (7)

Hyperledger Meetup Korea #28 - HTS(Hedera Token Service), DeFi 스왑 및 유동성 프로토콜
Hyperledger Meetup Korea #28 - HTS(Hedera Token Service), DeFi 스왑 및 유동성 프로토콜Hyperledger Meetup Korea #28 - HTS(Hedera Token Service), DeFi 스왑 및 유동성 프로토콜
Hyperledger Meetup Korea #28 - HTS(Hedera Token Service), DeFi 스왑 및 유동성 프로토콜
 
Hyperledger Fabric v2.0: 새로운 기능
Hyperledger Fabric v2.0: 새로운 기능Hyperledger Fabric v2.0: 새로운 기능
Hyperledger Fabric v2.0: 새로운 기능
 
1909 Hyperledger Besu(a.k.a pantheon) Overview
1909 Hyperledger Besu(a.k.a pantheon) Overview1909 Hyperledger Besu(a.k.a pantheon) Overview
1909 Hyperledger Besu(a.k.a pantheon) Overview
 
1908 Hyperledger Fabric 소개 및 첫 네트워크 구축하기
1908 Hyperledger Fabric 소개 및 첫 네트워크 구축하기1908 Hyperledger Fabric 소개 및 첫 네트워크 구축하기
1908 Hyperledger Fabric 소개 및 첫 네트워크 구축하기
 
[2019.04] 쿠버네티스 기반 하이퍼레저 패브릭 네트워크 구축하기
[2019.04] 쿠버네티스 기반 하이퍼레저 패브릭 네트워크 구축하기[2019.04] 쿠버네티스 기반 하이퍼레저 패브릭 네트워크 구축하기
[2019.04] 쿠버네티스 기반 하이퍼레저 패브릭 네트워크 구축하기
 
[2019.03] 멀티 노드에서 Hyperledger Fabric 네트워크 구성하기
[2019.03] 멀티 노드에서 Hyperledger Fabric 네트워크 구성하기[2019.03] 멀티 노드에서 Hyperledger Fabric 네트워크 구성하기
[2019.03] 멀티 노드에서 Hyperledger Fabric 네트워크 구성하기
 
[2019.1] 하이퍼레저 패브릭 v1.3, v1.4 새로운 기능
[2019.1] 하이퍼레저 패브릭 v1.3, v1.4 새로운 기능[2019.1] 하이퍼레저 패브릭 v1.3, v1.4 새로운 기능
[2019.1] 하이퍼레저 패브릭 v1.3, v1.4 새로운 기능
 

Recently uploaded

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 

Recently uploaded (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

Hyperledger Fabric v2.0 Alpha - FabToken Overview, Hands-On Lab

  • 1. Hyperledger Fabric – v2.0 Alpha FabToken Overview & Hands-On Lab Hyperledger Korea User Group
  • 2. 2
  • 3. 엔터프라이즈 블록체인 - Token 3 • R3 Corda – Tokens SDK • JP Morgan Quorum – JPM Coin - https://www.jpmorgan.com/global/news/digital-coin-payments • Hyperledger Fabric v2 – FabToken - Token Management Enablement in Hyperledger Fabric  http://bit.ly/2KvVKb4 - Token (base support) - Support Issue, Transfer, and Redeem Token Operations  https://jira.hyperledger.org/browse/FAB-11144 - Using FabToken  https://hyperledger-fabric.readthedocs.io/en/latest/token/FabToken.html
  • 4. FabToken 4 • Hyperledger Fabric v2.0 - https://github.com/hyperledger/fabric/tree/master/token • Token Management System • Unspent Transaction Output (UTXO) 모델 • 합의, 검증을 위해 Orderer, Peer 사용 • 토큰 생성, 관리를 위해 체인코드를 사용하지 않음.(Endorsement Policy X) • s송/수신자 식별 – MSP • Token Lifecycle: Issue, Transfer, Redeem, List
  • 5. Unspent Transaction Output (UTXO) 5출처 - https://codechain.readthedocs.io/en/latest/transactions.html
  • 6. Hyperledger Fabric – UTXO 6 • 패브릭에서는 상태(State)는 Key-Value 형태로 저장 Key : Namespace + TokenPrefix + Owner + TransactionId + Index Value: Quantity • Unspent Transaction(Output)은 Ledger(State DB)에 저장되고 Spent Transaction(Input)은 Ledger(State DB)에서 삭제됨.
  • 7. Hyperledger Fabric – UTXO Transaction 7 Org1 100 IN OUT Org1 100 IN OUT Org1 50 Org2 50 Tx #1 Tx #2 {Org1-Tx#1, 100} Issue to Org1(100) Transfer Org1 to Org2(50) {Org1-Tx#2, 50} {Org2-Tx#2-1, 50} {Org1-Tx#1, 100} Redeem from Org2(20) Tx #3 Org2 50 IN OUT Org2 30 20 {Org1-Tx#1, 100} {Org1-Tx#2, 50} {Org2-Tx#2-1, 50} {Org2-Tx#3, 30} {Tx#3-1, 20}
  • 8. Token Transaction Flow 8 Client Prover Peer ① Request (Issue,Transfer,Redeem) ② TokenTransaction ③ Envelope ④ Block Peer (Committer) Validation(VSCC) Commit(Simulation)
  • 9. Prover Peer 9 • 연산(computation) 실행… • 비밀정보 유지… • 트랜잭션 상태, 토큰 몰록 질의 대응… • 토큰 발행 및 전송 시 검증 - TokenTransaction 생성
  • 10. Token Lifecycle 10 • Issue • List • Transfer • Reedem
  • 11. Token Lifecycle – issue (계속) 11 • 채널 내 허가 받은 MSP에 의해 토큰 생성 - IssuingPolicy : v2.0 alpha 버전에서는 ANY로 설정됨. • 속성 - Owner: MSP - Type: 토큰 이름. 예> FabCoin, HLKUGCoin,… - Quantity
  • 12. Token Lifecycle - issue 12 • SDK (node.js) const tokenclient = client.newTokenClient(mychannel); const txId = client.newTransactionID(); const param = { owner: user1.getIdentity().serialize(), type: 'USD', quantity: '500', }; const issueRequest = { params: [param], txId: txId, }; const result = await tokenClient.issue(issueRequest);
  • 13. Token Lifecycle – list (계속) 13 • Unspent 토큰에 대해 질의 - 권한: 토큰 소유자 MSP • 질의 결과 값 - TokenID: 트랜잭션 ID, 인덱스 - Type: 토큰 이름. 예> FabCoin, HLKUGCoin,… - Quantity
  • 14. Token Lifecycle - list 14 • SDK (node.js) const user1Tokenclient = client1.newTokenClient(mychannel); const mytokens = await user1TokenClient.list(); for (const token of tokens) { // get token.id, token.type, and token.quantity // token.id will be used for transfer and redeem }
  • 15. Token Lifecycle – transfer (계속) 15 • 토크 전달, 토큰 소비 - 권한: 토큰 ID의 소유자(MSP) • 파라미터 - Token ID: 토큰 ID - Quantity - Recipient: 수신자(MSP)
  • 16. Token Lifecycle - transfer 16 • SDK (node.js) const txId = client1.newTransactionID(); const param = { owner: user2.getIdentity().serialize(), quantity: '300', }; // create the request for transfer const transferRequest = { tokenIds: [tokenid1], params: [param], txId: txId, }; const mytokens = await user1TokenClient.transfer(transferRequest);
  • 17. Token Lifecycle – redeem (계속) 17 • 비즈니스 네트워크(채널)에서 asset(token) 제거 - 권한: 토큰 ID의 소유자(MSP) - Reedm된 토큰은 transfer/change되지 않음. • 파라미터 - Token ID: 토큰 ID - Quantity
  • 18. Token Lifecycle - redeem 18 • SDK (node.js) const user2Tokenclient = client2.newTokenClient(mychannel); const txId = client2.newTransactionID(); const param = { quantity: '100', }; const redeemRequest = { tokenIds: [tokenid2], params: [param], txId: txId, }; const result = await user2TokenClient.redeem(redeemRequest);
  • 20. BYFN(Building Your First Network) 20 Peer Peer Peer PeerOrderer Org1 Org2peer0.org1.example.com peer1.org1.example.com peer0.org2.example.comorderer.example.com fabric_byfn peer1.org2.example.com
  • 21. Future features 21 • non-fungible tokens - Non fungible tokens cannot be merged or divided. • chaincode interoperability - allows tokens to be issued, transferred, and redeemed by chaincode