© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Blockchain Service 활용 가이드
HyeYoung Park
Solutions Architect
June Park
Solutions Architect
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS 에서 바라보는 블록체인?
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
중앙 집중화된 원장의 필요
탈 중앙화 트랜잭션2
DMV
Track vehicle title
history
Manufacturers
Track distribution of a recalled product
HR & Payroll
Track changes to an
individual’s profile
Healthcare
Verify and track hospital equipment
inventory
중앙화 원장1
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
고객이 겪는 어려움
기존 데이터 베이스로 원장 구성
확장성과 운영의
어려움
검증 불가능오류 발생 빈도가
높고 불완전
과도한 리소스 사용
블록체인으로 접근
다른 목적으로
설계됨
불필요한 복잡성
추가
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Quantum
Ledger Database (QLDB)
Fully managed ledger database
with a central trusted authority
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Quantum Ledger Database (QLDB) (Preview)
완전 관리형 원장 데이터 베이스
어플리케이션의 데이터 히스토리를 트래킹 및 검증
모든 데이터에 대한
임의 변조 불가
완전 무결한 데이터
기록된 데이터의
안전한 출력 파일 생성
암호화를 통하여 검증
SQL API를 사용한
데이터 쿼리
쉬운 사용성고도의 확장성
기존 대비 2-3배
높은 성능
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
원장 데이터 베이스 개념
C | H
J Journal
C | H Current | History
J
L
Ledger databaseL
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
탈 중앙화된 트랜잭션의 필요
Financial institutions
Peer-to-peer payments
Mortgage lenders
Process syndicated
loans
Supply Chain
Transact with suppliers
and distributers
탈 중앙화 트랜잭션2중앙화된 원장1
Retail
Streamline customer
rewards
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blockchain builds trust in a network
• 비즈니스 네트워크에서 중앙 기관의 필요 제거
• 분산 원장과 합의 메커니즘, "스마트 계약" 실행 환경 등 3가지 주요 구성요소
• 이러한 요소들을 함께 사용하여 두개 이상의 대상이 거래에 대한 합의를 보장하고
거래를 기록 및 불변성과 신뢰를 제공함
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Setup is hard Hard to scale ExpensiveComplicated to
manage
기존 블록체인 솔루션의 문제점
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon
Managed Blockchain
Fully managed blockchain service,
supporting both Hyperledger Fabric and Ethereum frameworks
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
기존 블록체인 시스템의 문제점
설치 및 구성의 어려움 확장의 어려움 다른 서비스나 외부와의
연계의 어려움
개발의 어려윰
Amazon Managed Blockchain 선택 이유
높은 안정성
확장성
완전 관리형 자세한
개발 가이드 제공
다른 서비스와
쉬운 연계
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Managed Blockchain 기능
Low cost
Only pay for resources used
오픈 소스 기반
Support for two frameworks
연동 가능
Send data to Amazon QLDB
for secure analytics
완전 관리형
Create a blockchain network in minutes
안정성 및 확장성
Backed with Amazon QLDB technology
탈 중앙화
Democratically govern the network
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
완전 관리형
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Hyperledger Fabric 네트워크 구축 (1/2)
member == Hyperledger Fabric organization
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Hyperledger Fabric 네트워크 구축 (2/2)
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Account A
Orderer
Member A Member B Member C
Fabric CA
Peer
Peer
Fabric CA
Peer
Peer
Fabric CA
Peer
Peer
AWS
PrivateLink
VPC Endpoints
VPC Endpoints
Account B
Network1 Managed Blockchain
ca.memberA.network1.managed
blockchain.amazonaws.com
nodeidmemberA.network1.managed
blockchain.amazonaws.com
nodeidmemberA.network1.managed
blockchain.amazonaws.com
ca.memberB.network1.managed
blockchain.amazonaws.com
nodeidmemberA.network1.managed
blockchain.amazonaws.com
nodeidmemberA.network1.managed
blockchain.amazonaws.com
ca.memberC.network1.managed
blockchain.amazonaws.com
nodeidmemberA.network1.managed
blockchain.amazonaws.com
nodeidmemberA.network1.managed
blockchain.amazonaws.com
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
높은 안정성
확장성
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Hyperledger Fabric 대비 주요 개선 사항
❖ Ordering Service
• 트랜잭션의 전달 및 순서를 보장
• 기존 Apache Kafka를 Amazon QLDB 기술을 이용하여 향상된 내구성과 신뢰성을 제공
❖ Certificate Authority
• 기존 “soft” HSM 을 AMS KMS를 이용하여 Certificate Authority 서비스의 안정성을 제공
❖ Voting Mechanism for Members
• 새로운 멤버의 네트워크 초대/삭제는 기존 멤버들의 합의(Voting)을 통해 가능
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Account A
Orderer
Member A Member B Member C
Fabric CA
Peer
Peer
Fabric CA
Peer
Peer
Fabric CA
Peer
Peer
AWS
PrivateLink
VPC Endpoints
VPC Endpoints
Account B
Network1 Managed Blockchain
ca.memberA.network1.managed
blockchain.amazonaws.com
nodeidmemberA.network1.managed
blockchain.amazonaws.com
nodeidmemberA.network1.managed
blockchain.amazonaws.com
ca.memberB.network1.managed
blockchain.amazonaws.com
nodeidmemberA.network1.managed
blockchain.amazonaws.com
nodeidmemberA.network1.managed
blockchain.amazonaws.com
ca.memberC.network1.managed
blockchain.amazonaws.com
nodeidmemberA.network1.managed
blockchain.amazonaws.com
nodeidmemberA.network1.managed
blockchain.amazonaws.com
QLDB
AWS KMS
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
다른 서비스와
쉬운 연계
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Blockchain Solution Building Blocks
Use AWS’s managed blockchain service or other compute services as the
foundation for your blockchain infrastructure
Amazon API Gateway lets you create
custom REST API to power your
blockchain apps
Use CloudHSM to manage
blockchain participant’s secret
keys
Connect IoT devices with
unique identities to a common underlying
data layer
Utilize S3 as your
off-chain data storage
for high availability
Perform analytics and gain insights
from your blockchain’s data in near real
time
Leverage off-chain database solutions to
support blockchain applications and store
metadata
Send notifications or leverage serverless compute to
respond to events programmed into blockchain smart
contracts
AMAZON EC2 AMAZON
ECS
AMAZON
S3
AMAZON
EBS
AWS
CLOUDHSM
AMAZON
REDSHIFT
AWS
LAMBDAAMAZON
DYNAMODB
AMAZON
KINESIS
AMAZON
API GATEWAY*
AMAZON
SQS
AMAZON
SNS
AMAZON
IOT
AMAZON
Managed
Blockchain
AMAZON QLDB
Blockchain Services
Analytics Services
IoT & Serverless
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blockchain Data Analytics
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
자세한
개발 가이드 제공
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Beer Supply Chain
Demo
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Beer Supply chain
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario
② Supply Beers (3)
Block 2 Block 3
③ Deliver Beers (2)
Block 4
④ Receive Beers
Alert!
Miss!!
⑤ Alert!
맥주 공장
① Order Beers (3)
Block 1
냉장고비어 펍배송 트럭
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Fabric CA
Orderer
Peer
사전준비. 개발 환경 세팅
AWS
Managed Blockchain
CloudFormation Fabric Client
(Fabric CLI)
handle
chaincode
/channels
개발자
개발 환경
(Cloud9)
VPC Endpoints
RESTful API
(Fabric SDK)
Call
RESTful API
Connect via
Fabric SDK
Interact with
application
사용자 애플리케이션 VPC Endpoints
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
사전준비. Fabric Client Flow
❶ Register / Enroll User
Fabric Client
CLI
Developer
Fabric CA
Channel
Orderer
Peer
Ledger
World
State
Blockchain
0 1 2 3 4
getput/delete
Chaincode
❷ Channel create / Peer join
❸ Install/Instantiate
❹ Query/Invoke
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Step1. Chaincode Design
2
Pending
3
InTransit
4
Completed
5
OutOfCompliance
2
Pending
3
InTransit
2
Pending
1
Created
3
InTransit
accept requeststart accept request accept Completeinit
맥주 공장냉장고 비어 펍배송 트럭
State
Function
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Ledger
Step2. Ledger 데이터 구조
Blockchain (Immutable)
0 1 2 3 4
World
State
"Key" : "ORDER0",
”Value" : { "state":"2", "count":"0", "owner":"Manufacturer",…}
World States (Latest)
const (
Created = "1"
Pending= "2"
InTransit = "3"
Completed = "4"
OutOfCompliance = "5"
)
type Order struct {
State string `json:"state"`
Count string `json:"count"`
Owner string `json:"owner"`
Ctime string `json:"ctime"`
Utime string `json:"utime"`
}
getput/delete
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Step3. Chaincode 작성 : query
func (s *SmartContract) queryOrder(APIstub shim.ChaincodeStubInterface, args []string) sc.Response {
if len(args) != 1 {
return shim.Error( "Incorrect number of arguments. Expecting 1” )
}
orderAsBytes, _ := APIstub.GetState(args[0])
return shim.Success(orderAsBytes)
}
Ledger
queryOrder(‘ORDER0’)
맥주 공장
Ledger
Blockchain
0 1 2 3 4
getStateput/delete
Chaincode
getquery
ORDER0
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
func (s *SmartContract) request (APIstub shim.ChaincodeStubInterface, args []string) sc.Response {
…
order.Owner = args[0];
order.Count = args[1]
order.State = Pending;
orderAsBytes, _ = json.Marshal(order)
APIstub.PutState ("ORDER0” , orderAsBytes)
return shim.Success([]byte(order.State))
}
Step3. Chaincode 작성 : invoke
Ledger
Blockchain
0 1 2 3 4 5
put
Ledger
Owner: Retailer
Count: 2
State: pending
ORDER0
Invoke
request (‘비어펍’, 9병)
배송 트럭 Chaincode
put
ORDER0ORDER0ORDER0ORDER0
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Step4. RESTful API Design
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
start①
DeepLens
Restful API
Fabric SDK
④ accept / complete
③ accept / request
Alert!
⑤ alert
② accept / request
Propose transaction❶
Endorsement signature❷
❸ Submit endorsement
Amazon
Managed Blockchain
Peer
• Verify client signature
• Simulate transaction
Endorsing Peers
Peer
❹ Deliver batch
to peers
Orderer
CA
Register / Enroll users
Committing Peers
• Commit to the ledger
Response❺
• Create batch(block) of transactions
⓪
Step5. Transaction Flow 연결
맥주 공장
냉장고
비어 펍
배송 트럭
Restful API
Fabric SDK
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
다른 서비스와
쉬운 연계
AMB EC2
Fabric SDK
S3
Data Lake
DeepLens
Object Detection
IoT Core Lambda
S3
Static Web
Glue Athena QuickSight
DynamoDB
Offchain
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Expanded Architecture
AWS Cloud
sendN
otification
SNS Mobile Client
AWS Glue
Amazon Athena Amazon QuickSight
Administrator
Device
AWS
DeepLens
sendTransaction
IoT Core Lambda
Manufacturer
Amazon Managed
Blockchain
Shipping Company
Retailer
query/invoke
RESTful API
(Fabric SDK)
S3
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Blockchain
Customer References
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
실시간 입찰 시장 투명성 확보
“이 서비스는 변경 불가능하며, 암호화
방식으로 검증 가능한 원장을 제공하므로
모든 경매의 완전하고 감사 가능한
레코드를 유지할 수 있습니다.”
- Ragnar Kruse, CEO, Smaato
광고주 실시간 경매 애플리케이션
bid
AdRequestimpression
온라인 광고 경매의 전체 수명주기에 대해
초기 경매부터 낙찰에 이르기까지 투명성이
필요함
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
보험 비지니스에 블록체인을 도입, 손쉬운 운용
생명보험 및 상해보험, 복리후생 및 치과보험 등을
제공하는 금융 서비스 및 보험 회사
“블록체인 프레임워크는 복잡하고 운영이
어려운 것이 문제입니다. 이제는 Amazon
Managed Blockchain을 통해 Hyperledger
Fabric 블록체인 네트워크를 손쉽게 생성하여
기반 인프라, 네트워킹 및 소프트웨어 구성을
관리할 걱정 없이 테스트 및 학습을 수행할 수
있습니다.”
- Daniel Johnson, CTO and Head of Innovation,
Guardian Life Insurance Company
블록체인 프레임워크 운영 불편에 대한
손쉬운 블록체인 생성 및 관리 요구 증대
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
블록체인 인프라 확장을 통한 스마트 의료 시스템 구축
5,500개의 병원, 800,000명의 의사, 60,000개의
약국의 데이터 및 분석 기반 솔루션을 제공하는
선도적인 독립 의료 기술 기업
“Hyperledger Fabric를 지원하는 것 외에도,
Amazon Managed Blockchain은 유연한
스토리지 연동과 Peer 관리 기능을 추가할 수
있게 해줍니다. 이는 우리의 Intelligent
Healthcare Network™ 의 블록체인 인프라를
확장시키고, 보다 협력 가능하고 효율적인 의료
시스템을 만들고자 하는 우리의 목표 달성에
도움이 될 것입니다.”
- Aaron Symanski, Chief Technology Officer, Change Healthcare
행정비용 절감, 실시간 검사 필요
협력 가능하고 기존 의료시스템과 연계를 통한
스마트 의료 혁신 필요
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Blockchain ISVs
Please
Come Join Us!
? ? ?
감사합니다!
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWS의 블록체인 서비스 활용 방법 - 박혜영 솔루션즈 아키텍트, AWS / 박선준 솔루션즈 아키텍트, AWS :: AWS Summit Seoul 2019

  • 1.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Amazon Blockchain Service 활용 가이드 HyeYoung Park Solutions Architect June Park Solutions Architect
  • 2.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. AWS 에서 바라보는 블록체인?
  • 3.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. 중앙 집중화된 원장의 필요 탈 중앙화 트랜잭션2 DMV Track vehicle title history Manufacturers Track distribution of a recalled product HR & Payroll Track changes to an individual’s profile Healthcare Verify and track hospital equipment inventory 중앙화 원장1
  • 4.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. 고객이 겪는 어려움 기존 데이터 베이스로 원장 구성 확장성과 운영의 어려움 검증 불가능오류 발생 빈도가 높고 불완전 과도한 리소스 사용 블록체인으로 접근 다른 목적으로 설계됨 불필요한 복잡성 추가
  • 5.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Amazon Quantum Ledger Database (QLDB) Fully managed ledger database with a central trusted authority
  • 6.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Amazon Quantum Ledger Database (QLDB) (Preview) 완전 관리형 원장 데이터 베이스 어플리케이션의 데이터 히스토리를 트래킹 및 검증 모든 데이터에 대한 임의 변조 불가 완전 무결한 데이터 기록된 데이터의 안전한 출력 파일 생성 암호화를 통하여 검증 SQL API를 사용한 데이터 쿼리 쉬운 사용성고도의 확장성 기존 대비 2-3배 높은 성능
  • 7.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. 원장 데이터 베이스 개념 C | H J Journal C | H Current | History J L Ledger databaseL
  • 8.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. 탈 중앙화된 트랜잭션의 필요 Financial institutions Peer-to-peer payments Mortgage lenders Process syndicated loans Supply Chain Transact with suppliers and distributers 탈 중앙화 트랜잭션2중앙화된 원장1 Retail Streamline customer rewards
  • 9.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Blockchain builds trust in a network • 비즈니스 네트워크에서 중앙 기관의 필요 제거 • 분산 원장과 합의 메커니즘, "스마트 계약" 실행 환경 등 3가지 주요 구성요소 • 이러한 요소들을 함께 사용하여 두개 이상의 대상이 거래에 대한 합의를 보장하고 거래를 기록 및 불변성과 신뢰를 제공함
  • 10.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Setup is hard Hard to scale ExpensiveComplicated to manage 기존 블록체인 솔루션의 문제점
  • 11.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Amazon Managed Blockchain Fully managed blockchain service, supporting both Hyperledger Fabric and Ethereum frameworks
  • 12.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. 기존 블록체인 시스템의 문제점 설치 및 구성의 어려움 확장의 어려움 다른 서비스나 외부와의 연계의 어려움 개발의 어려윰 Amazon Managed Blockchain 선택 이유 높은 안정성 확장성 완전 관리형 자세한 개발 가이드 제공 다른 서비스와 쉬운 연계
  • 13.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Amazon Managed Blockchain 기능 Low cost Only pay for resources used 오픈 소스 기반 Support for two frameworks 연동 가능 Send data to Amazon QLDB for secure analytics 완전 관리형 Create a blockchain network in minutes 안정성 및 확장성 Backed with Amazon QLDB technology 탈 중앙화 Democratically govern the network
  • 14.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. 완전 관리형
  • 15.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Hyperledger Fabric 네트워크 구축 (1/2) member == Hyperledger Fabric organization
  • 16.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Hyperledger Fabric 네트워크 구축 (2/2)
  • 17.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Account A Orderer Member A Member B Member C Fabric CA Peer Peer Fabric CA Peer Peer Fabric CA Peer Peer AWS PrivateLink VPC Endpoints VPC Endpoints Account B Network1 Managed Blockchain ca.memberA.network1.managed blockchain.amazonaws.com nodeidmemberA.network1.managed blockchain.amazonaws.com nodeidmemberA.network1.managed blockchain.amazonaws.com ca.memberB.network1.managed blockchain.amazonaws.com nodeidmemberA.network1.managed blockchain.amazonaws.com nodeidmemberA.network1.managed blockchain.amazonaws.com ca.memberC.network1.managed blockchain.amazonaws.com nodeidmemberA.network1.managed blockchain.amazonaws.com nodeidmemberA.network1.managed blockchain.amazonaws.com
  • 18.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. 높은 안정성 확장성
  • 19.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Hyperledger Fabric 대비 주요 개선 사항 ❖ Ordering Service • 트랜잭션의 전달 및 순서를 보장 • 기존 Apache Kafka를 Amazon QLDB 기술을 이용하여 향상된 내구성과 신뢰성을 제공 ❖ Certificate Authority • 기존 “soft” HSM 을 AMS KMS를 이용하여 Certificate Authority 서비스의 안정성을 제공 ❖ Voting Mechanism for Members • 새로운 멤버의 네트워크 초대/삭제는 기존 멤버들의 합의(Voting)을 통해 가능
  • 20.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Account A Orderer Member A Member B Member C Fabric CA Peer Peer Fabric CA Peer Peer Fabric CA Peer Peer AWS PrivateLink VPC Endpoints VPC Endpoints Account B Network1 Managed Blockchain ca.memberA.network1.managed blockchain.amazonaws.com nodeidmemberA.network1.managed blockchain.amazonaws.com nodeidmemberA.network1.managed blockchain.amazonaws.com ca.memberB.network1.managed blockchain.amazonaws.com nodeidmemberA.network1.managed blockchain.amazonaws.com nodeidmemberA.network1.managed blockchain.amazonaws.com ca.memberC.network1.managed blockchain.amazonaws.com nodeidmemberA.network1.managed blockchain.amazonaws.com nodeidmemberA.network1.managed blockchain.amazonaws.com QLDB AWS KMS
  • 21.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. 다른 서비스와 쉬운 연계
  • 22.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. AWS Blockchain Solution Building Blocks Use AWS’s managed blockchain service or other compute services as the foundation for your blockchain infrastructure Amazon API Gateway lets you create custom REST API to power your blockchain apps Use CloudHSM to manage blockchain participant’s secret keys Connect IoT devices with unique identities to a common underlying data layer Utilize S3 as your off-chain data storage for high availability Perform analytics and gain insights from your blockchain’s data in near real time Leverage off-chain database solutions to support blockchain applications and store metadata Send notifications or leverage serverless compute to respond to events programmed into blockchain smart contracts AMAZON EC2 AMAZON ECS AMAZON S3 AMAZON EBS AWS CLOUDHSM AMAZON REDSHIFT AWS LAMBDAAMAZON DYNAMODB AMAZON KINESIS AMAZON API GATEWAY* AMAZON SQS AMAZON SNS AMAZON IOT AMAZON Managed Blockchain AMAZON QLDB Blockchain Services Analytics Services IoT & Serverless
  • 23.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Blockchain Data Analytics
  • 24.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. 자세한 개발 가이드 제공
  • 25.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Beer Supply Chain Demo
  • 26.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Beer Supply chain
  • 27.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Scenario ② Supply Beers (3) Block 2 Block 3 ③ Deliver Beers (2) Block 4 ④ Receive Beers Alert! Miss!! ⑤ Alert! 맥주 공장 ① Order Beers (3) Block 1 냉장고비어 펍배송 트럭
  • 28.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Fabric CA Orderer Peer 사전준비. 개발 환경 세팅 AWS Managed Blockchain CloudFormation Fabric Client (Fabric CLI) handle chaincode /channels 개발자 개발 환경 (Cloud9) VPC Endpoints RESTful API (Fabric SDK) Call RESTful API Connect via Fabric SDK Interact with application 사용자 애플리케이션 VPC Endpoints
  • 29.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. 사전준비. Fabric Client Flow ❶ Register / Enroll User Fabric Client CLI Developer Fabric CA Channel Orderer Peer Ledger World State Blockchain 0 1 2 3 4 getput/delete Chaincode ❷ Channel create / Peer join ❸ Install/Instantiate ❹ Query/Invoke
  • 30.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Step1. Chaincode Design 2 Pending 3 InTransit 4 Completed 5 OutOfCompliance 2 Pending 3 InTransit 2 Pending 1 Created 3 InTransit accept requeststart accept request accept Completeinit 맥주 공장냉장고 비어 펍배송 트럭 State Function
  • 31.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Ledger Step2. Ledger 데이터 구조 Blockchain (Immutable) 0 1 2 3 4 World State "Key" : "ORDER0", ”Value" : { "state":"2", "count":"0", "owner":"Manufacturer",…} World States (Latest) const ( Created = "1" Pending= "2" InTransit = "3" Completed = "4" OutOfCompliance = "5" ) type Order struct { State string `json:"state"` Count string `json:"count"` Owner string `json:"owner"` Ctime string `json:"ctime"` Utime string `json:"utime"` } getput/delete
  • 32.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Step3. Chaincode 작성 : query func (s *SmartContract) queryOrder(APIstub shim.ChaincodeStubInterface, args []string) sc.Response { if len(args) != 1 { return shim.Error( "Incorrect number of arguments. Expecting 1” ) } orderAsBytes, _ := APIstub.GetState(args[0]) return shim.Success(orderAsBytes) } Ledger queryOrder(‘ORDER0’) 맥주 공장 Ledger Blockchain 0 1 2 3 4 getStateput/delete Chaincode getquery ORDER0
  • 33.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. func (s *SmartContract) request (APIstub shim.ChaincodeStubInterface, args []string) sc.Response { … order.Owner = args[0]; order.Count = args[1] order.State = Pending; orderAsBytes, _ = json.Marshal(order) APIstub.PutState ("ORDER0” , orderAsBytes) return shim.Success([]byte(order.State)) } Step3. Chaincode 작성 : invoke Ledger Blockchain 0 1 2 3 4 5 put Ledger Owner: Retailer Count: 2 State: pending ORDER0 Invoke request (‘비어펍’, 9병) 배송 트럭 Chaincode put ORDER0ORDER0ORDER0ORDER0
  • 34.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Step4. RESTful API Design
  • 35.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. start① DeepLens Restful API Fabric SDK ④ accept / complete ③ accept / request Alert! ⑤ alert ② accept / request Propose transaction❶ Endorsement signature❷ ❸ Submit endorsement Amazon Managed Blockchain Peer • Verify client signature • Simulate transaction Endorsing Peers Peer ❹ Deliver batch to peers Orderer CA Register / Enroll users Committing Peers • Commit to the ledger Response❺ • Create batch(block) of transactions ⓪ Step5. Transaction Flow 연결 맥주 공장 냉장고 비어 펍 배송 트럭 Restful API Fabric SDK
  • 36.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. 다른 서비스와 쉬운 연계 AMB EC2 Fabric SDK S3 Data Lake DeepLens Object Detection IoT Core Lambda S3 Static Web Glue Athena QuickSight DynamoDB Offchain
  • 37.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. Expanded Architecture AWS Cloud sendN otification SNS Mobile Client AWS Glue Amazon Athena Amazon QuickSight Administrator Device AWS DeepLens sendTransaction IoT Core Lambda Manufacturer Amazon Managed Blockchain Shipping Company Retailer query/invoke RESTful API (Fabric SDK) S3
  • 38.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. AWS Blockchain Customer References
  • 39.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. 실시간 입찰 시장 투명성 확보 “이 서비스는 변경 불가능하며, 암호화 방식으로 검증 가능한 원장을 제공하므로 모든 경매의 완전하고 감사 가능한 레코드를 유지할 수 있습니다.” - Ragnar Kruse, CEO, Smaato 광고주 실시간 경매 애플리케이션 bid AdRequestimpression 온라인 광고 경매의 전체 수명주기에 대해 초기 경매부터 낙찰에 이르기까지 투명성이 필요함
  • 40.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. 보험 비지니스에 블록체인을 도입, 손쉬운 운용 생명보험 및 상해보험, 복리후생 및 치과보험 등을 제공하는 금융 서비스 및 보험 회사 “블록체인 프레임워크는 복잡하고 운영이 어려운 것이 문제입니다. 이제는 Amazon Managed Blockchain을 통해 Hyperledger Fabric 블록체인 네트워크를 손쉽게 생성하여 기반 인프라, 네트워킹 및 소프트웨어 구성을 관리할 걱정 없이 테스트 및 학습을 수행할 수 있습니다.” - Daniel Johnson, CTO and Head of Innovation, Guardian Life Insurance Company 블록체인 프레임워크 운영 불편에 대한 손쉬운 블록체인 생성 및 관리 요구 증대
  • 41.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. 블록체인 인프라 확장을 통한 스마트 의료 시스템 구축 5,500개의 병원, 800,000명의 의사, 60,000개의 약국의 데이터 및 분석 기반 솔루션을 제공하는 선도적인 독립 의료 기술 기업 “Hyperledger Fabric를 지원하는 것 외에도, Amazon Managed Blockchain은 유연한 스토리지 연동과 Peer 관리 기능을 추가할 수 있게 해줍니다. 이는 우리의 Intelligent Healthcare Network™ 의 블록체인 인프라를 확장시키고, 보다 협력 가능하고 효율적인 의료 시스템을 만들고자 하는 우리의 목표 달성에 도움이 될 것입니다.” - Aaron Symanski, Chief Technology Officer, Change Healthcare 행정비용 절감, 실시간 검사 필요 협력 가능하고 기존 의료시스템과 연계를 통한 스마트 의료 혁신 필요
  • 42.
    © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved. AWS Blockchain ISVs Please Come Join Us! ? ? ?
  • 43.
    감사합니다! © 2019, AmazonWeb Services, Inc. or its affiliates. All rights reserved.