Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Amazon Managed Blockchain Web3 最新Update

Amazon Managed Blockchain Web3 最新Update

bc/web3@loft

November 02, 2023
Tweet

More Decks by bc/web3@loft

Other Decks in Technology

Transcript

  1. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Web3 Startup Loft #05 AMB Web3 Update
  2. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 名前 中武 優樹(なかたけ ゆうき) aka ザビオ Twitter: @zabbiozabbio 所属 Sr. Blockchain/Web3 Specialist Solutions Architect 前職 DeNA -> スタートアップ -> AWS 好きなAWSサービス Amazon Managed Blockchain, AWS Fargate ⾃⼰紹介
  3. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Amazon Managed Blockchainって知っ てる︖
  4. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Introducing Amazon Managed Blockchain (AMB) • Web3の導入を簡素化するフルマ ネージドサービス • スケーラブルなブロックチェーン インフラストラクチャの構築と管 理を合理化 • パブリックブロックチェーンAPIを 利用したアプリケーション構築の 時間と複雑さを軽減
  5. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. How Amazon Managed Blockchain works Amazon Managed Blockchain (Hyperledger) Create a network Choose an open-source blockchain framework, set up a new blockchain network and your membership in your AWS account with just a few clicks Invite members Invite other AWS accounts to join the network Add nodes Create and configure blockchain peer nodes that store a copy of the distributed ledger Deploy applications Create and deploy decentralized applications to your network through your peer nodes. Transact with other members on the network Amazon Managed Blockchain (Ethereum) Create Ethereum Node Select the Ethereum blockchain framework and create one or more nodes in your AWS account with just a few clicks Sync your node(s) Your node(s) will sync with the public testnet or mainnet rapidly using FastSync Connect Configure other AWS services to connect to your blockchain node(s) in minutes Deploy applications Create and deploy decentralized applications to the public blockchain network through your managed node(s). Transact with other users on the network
  6. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Challenges organizations face adopting Web3 technologies Managing complex blockchain infrastructure Navigating digital asset custody and regulations Smart contract development and security Sustainability and cost optimization Indexing, querying, and analyzing raw blockchain data
  7. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Managed Blockchain Access
  8. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Amazon Managed Blockchain (AMB) Access AMB Access provides serverless blockchain infrastructure that allows customers to build blockchain applications without managing underlying compute, storage, and networking for public and private blockchains. Compute, storage, networking and blockchain-specific software
  9. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. AMB Access – Key Features 予測可能な価格設定によるフルマネージド・ブロックチェーン・インフラストラクチャ • パブリックブロックチェーンとプライベートブロックチェーンの両方を簡単に作成/接続可能 • APIへのリクエストや専用ノードの計算/ストレージコストなど、使用するリソースに対してのみ支払い • AWSの価格計算ツールやドキュメントを使用して、見積もり費用を計算できます。 機関レベルの高可用性と信頼性 • ブロックチェーンノードとAPIをサポートするインフラストラクチャは、可用性と信頼性に関するAWS の高い基準に基づいて構築されています。 • 自動化されたヘルスチェックとノード交換により、ブロックチェーンノードの可用性を維持 さまざまなユースケースのニーズに対応する多様なサービス • マルチテナントAPIアクセスとパブリックブロックチェーン専用ノードから選択可能 • Hyperledger Fabricを使えば、数分で自分専用の許可制ブロックチェーンを作成可能 • 顧客の需要に基づき、サポートするブロックチェーンを継続的に拡大
  10. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Dedicated vs Serverless Blockchain Infrastructure • Blockchain infrastructure available only for your AWS account use • Single tenant • Costs allocated exclusively to the AWS account that deployed the resource • Blockchain infrastructure accessible by many AWS accounts through API providing access to shared set of nodes • Multi-tenant • Costs derivative of API usage Dedicated Serverless
  11. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. AMB Access – Bitcoin Public Blockchain - Serverless Always-on Remote Procedure Call (RPC) endpoint Priced per million API calls based on complexity of API Bitcoin Mainnet and Testnet AWS Cloud Amazon PrivateLink Public Rest API Bitcoin non-mining, full Core Nodes AMB Access Customer Application Bitcoin network RPC Call
  12. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. AMB Access – Ethereum Public Blockchain - Dedicated Dedicated Ethereum full node for JSON-RPC API calls Priced by compute, storage, and request volume Ethereum Mainnet and testnet support AWS Cloud HTTP / WebSocket Endpoints Ethereum full node AMB Access Customer Application Ethereum network RPC Call Availability Zone 1
  13. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. AMB Access – Chain Support Bitcoin, Bitcoin testnet Ethereum, Ethereum testnets Hyperledger Fabric (v2.2) Public Blockchain - Serverless Public Blockchain - Dedicated Private Blockchain - Dedicated
  14. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. AMB Access – Pricing Dimensions Public Blockchain - Serverless Public Blockchain - Dedicated Private Blockchain - Dedicated Membership Tier: Fixed cost billed hourly for Starter (dev) or Standard (prod) edition network tiers Compute: Per second billing, with 1-minute minimum for compute instances used to host peer nodes (price depends on number of peers and instance type selected) Storage: Monthly cost per GB to store ledger data per peer node Requests: Cost per GB written to the blockchain (payload size) Compute: Per second billing, with 1-minute minimum for compute instances used to host nodes (price depends on instance type selected) Storage: Monthly cost per GB to store ledger state data Requests: Cost per million requests to the blockchain node Tiered API price buckets: Pay per million API requests priced based on each API’s price bucket Example for us-east-1 region *** Pricing varies depending on AWS Region
  15. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Managed Blockchain Query
  16. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Amazon Managed Blockchain Query AMB Query provides standardized APIs to retrieve data from one or more public blockchains, without the overhead of maintaining specialized indexing infrastructure, transforming blockchain data, and tracing smart contracts.
  17. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Common application data delivery pipeline Data Warehouse(s) Data Mart 1 Data Mart 2 REST APIS Data Sources Data Mart N Applications ETL ETL
  18. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Challenges of serving blockchain data to applications Data Source ETL フルノードとアーカイブノードを含む、弾力性のあるノード群を セットアップする オンチェーンの全履歴データをダウンロード、インデックス化、保存 スマート・コントラクトのログを解析して情報を得る スマートコントラクトを呼び出し、残高などの情報を得る 非標準イベントなどのコントラクト例外を処理する Full Nodes Archive Nodes Smart Contract Relog などのファイナリティを処理する
  19. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Amazon Managed Blockchain Query – Key Features マルチブロックチェーンデータセットにアクセスするための標準化された開発者フレンド リーなAPI • パブリックブロックチェーンデータを即座に照会し、FTやNFTの過去のトークン残高を分析したり、指定し たウォレットアドレスの取引履歴を閲覧するなどのユースケースに対応。 Lower total cost of ownership and predictable pricing • 特定のAPIリクエストの結果をレンダリングするために必要な計算リソースとデータリソースに基づいて、 階層化された価格バケットで透過的に価格設定されます。 • ブロックチェーンデータのニーズにQuery APIを使用することで、自己管理型のブロックチェーンインデク サーや、データを有用なものにするための抽出・変換・ロード(ETL)パイプラインと比較して、総所有コ ストを100桁以上節約できます。 ブロックチェーンデータインフラのオーバーヘッドなしでアプリケーションを迅速に出荷 • ブロックチェーンデータAPIを使用することで、カスタムインデキシングインフラストラクチャやETLパイ プラインの複雑性を排除したスケールのアプリケーションを構築し、ブロックチェーンアプリケーション の価値実現までの時間を短縮します。 • 顧客の需要に基づき、サポートするパブリック・ブロックチェーンを継続的に拡大
  20. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Amazon Managed Blockchain Query – How It Works Public Blockchain - Serverless 6 APIs: Token balance & transactions; current and historical Priced per million API calls based on complexity of API AWS Cloud Amazon PrivateLink Public Rest API AMB Query Customer Application Query Database Bitcoin network Ethereum network High-speed ingestion , ETL, and indexing Supports native, standard ERC-20, ER-721, and ERC-1155 tokens
  21. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Amazon Managed Blockchain Query – Chain Support Bitcoin – query native BTC balances, transaction history, and more. Ethereum – query native ETH balances, fungible and non-fungible token balances, transaction history, and more.
  22. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. AMB Query – Pricing Dimensions Query is a highly scalable blockchain data API service that provides you with seamless access to real- time and historical data from multiple public blockchains. You pay only for the number of data APIs that you request with no subscriptions, no minimum quotas, and no overage charges. Example for us-east-1 region Query API Pricing Tiered API price buckets: Pay per million API requests priced based on each API’s price bucket, ranging from XS to XL. The price bucket of each API is dependent on the compute and data resources required render the response.
  23. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Building a digital asset tracker with AMB Access and Query AWS Cloud APIs AMB Access Bal. History Current 0.0245 BTC 2 ETH 150 USDC Transfer Exchange AMB Query AWS KMS Wallet Keys AWS Nitro Enclaves Amazon EC2 Signing Instance Signing transactions for transfers Read chain info Construct transaction Read balance, tx history AWS Lambda Bitcoin network Ethereum network
  24. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Web3 Development Stack (high level) 25 Distributed Applications Managed Data Providers Protocol Infrastructure Data Application Block Explorers DIY Centralized Applications More Off-Chain Storage DIY Nodes Disclaimer: Logos shown are intended for industry mapping, is not exclusive, and DO NOT represent AWS customers. Decentralized Data Protocols
  25. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. AWS is prioritizing foundational components for developers 26 Distributed Applications Protocol Infrastructure Data Application Block Explorers DIY Centralized Applications More Off-Chain Storage Decentralized Data Protocols Disclaimer: Logos shown are intended for industry mapping, is not exclusive, and DO NOT represent AWS customers. DIY Nodes AMB Query AMB Access
  26. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. AWS Blockchain/Web3 Solution Building Blocks 27 Core compute and infrastructure Core Amazon CloudFront Security APIs, security, blockchain services Amazon API Gateway AWS AppSync API/network Storage systems AWS PrivateLink Big data and analytics Amazon Kinesis Amazon SageMaker Managed nodes AWS Lake Formation Amazon EMR AWS Nitro Enclaves AWS KMS AWS CloudHSM Amazon Managed Blockchain (Ethereum & Bitcoin) Amazon EC2 AWS Lambda Amazon ECS AWS IoT 1-click Amazon S3 AWS DynamoDB Amazon Managed Blockchain (Query) Amazon Relational Database Service (Amazon RDS)
  27. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. © 2022, Amazon Web Services, Inc. or its affiliates. The AWS Web3 Mission Empower BUIDLers to redefine the Internet © 2022, Amazon Web Services, Inc. or its affiliates.
  28. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. © 2022, Amazon Web Services, Inc. or its affiliates. AWS drives growth for Web3 companies with infrastructure, Go-to-Market support, and visibility with stringent security and compliance requirements With 200+ Services, AWS has the broadest and deepest solutions for Compute, Storage, Analytics, and AI/ML purpose built to suit the wide variety of Web3 companies’ infrastructure needs. By 2025, All AWS Services will be powered by 100% renewable energy AWS is designed to meet the most stringent security requirements and offers 15+ security services, including a comprehensive AWS Security Hub, to help customers build with confidence. AWS has 98 security standards, more than any other cloud provider With a global infrastructure spanning 87 Availability Zones and 27 geographic regions, AWS enables Web3 companies to build and grow with high availability and reach AWS has deep startup expertise for Web3 natives and specialist teams dedicated to relevant industries in the ecosystem, including Fintech, TradFi, GameFi, Sports, and Media & Entertainment, built through years of partnering with organizations and investors globally Strengthen security and compliance Go global and gain visibility in minutes Make decisions faster with world-class infrastructure Build GTM and partnerships across the Web3 ecosystem
  29. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. © 2022, Amazon Web Services, Inc. or its affiliates. AWS Partner Network (APN) The fabric that connects an expansive partner community AWS Partner Network (APN) offers unique support to help you go to market together with AWS. As AWS APN partners, companies gain access to a variety of co-selling and co-marketing resources, training, tools, and support to build, market, and sell with AWS. Co-Build Co-Market Co-Sell
  30. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. © 2022, Amazon Web Services, Inc. or its affiliates. 32 AWS Marketplace Making it easy to discover and co-sell Web3 solutions AWS Marketplace is a growing digital catalog with thousands of software listings from ISVs that make it easy to find, test, buy, and deploy solutions that runs on AWS. • Deploy software on demand • 1,500+ ISVs • Over 7,000+ product listings • 260,000 active customers • 1M+ Active subscriptions • Deployed in 20 regions • Offers 39 categories • Blockchain nodes • Wallet-as-a-service • Asset custody • Interoperability for bridges QUICK STATS TOP WEB3 USE CASES
  31. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. © 2022, Amazon Web Services, Inc. or its affiliates. AWS MarketplaceでAvalancheが使用可能に AWS Marketplace でAvalancheのサブネットのデプ ロイをマネージドサービスとして提供する機能 を提供。 数回クリックするだけでサブネットを起動でき るようにする予定です。 https://medium.com/avalancheavax/ava-labs-and-aws-bring-scalable-blockchain-solutions-to- enterprises-and-governments-295040a34263
  32. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. • アーキテクチャレビュー • 技術的なご相談 • 他社事例の共有 • 業界動向の共有 • ワークショップ • Best effortで対応 AWSが提供する支援内容 技術相談会 プロトタイピング • お客様の技術的課題解決を支援 - AWSからお客様の課題にあわせた サンプルコードを開発しご提供 - 技術的な知識を提供 • 無償 (NDA締結と事例化のご協力を お願いします) • 約1ヶ月の期間で対応。 ProServe • AWSの有償コンサル ティングサービス パートナー • お客様の開発にAWS のパートナー企業が 支援する • 大規模SIから小口の PoCまで紹介可能 • 期間,体制,費用は パートナーによる
  33. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Blockchain の代表的な課題と要件 1. ウォレット, 秘密鍵管理 2. Blockchainのエンドポイント 3. スマートコントラクト 4. NFTのメタデータ記録用DB/Storage 5. アプリとブロックチェーンの接続 6. ウォレットを使った認証 7. NFT/DID/DeFi/DAO 8. サプライチェーン/トレーサビリティ 6. ガス代を誰が負担するか 7. どのチェーンを使うべきか 8. 取引内容の分析 9. スケーラビリティ 10. クロスチェーンブリッジ 11. 相互運用性(Interoperability) 12. 他システム連携 13. プライベートブロックチェーン 14. フルノード構築/運用 15. Mining/Validating
  34. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. プロトタイピング事例(NFT, マーケットプレイス) NFTを活用したマーケットプレイスを構築したいが、ブロック チェーンの知見がない。オンチェーンでの売買と、2次流通で 権利者に一定のインセンティブを発生させたい。 自社のアカウント管理システムでユーザー管理をする想定のた め、ユーザー名とパスワードでログインする従来型の方式とし て欲しい。 背景と要望 プロトタイピングの概要 NFTの発行と売買が可能なサンプルコードを開発してご提供した。 売買代金の一部が権利者にインセンティブとして自動的に分配される。 ウォレットと秘密鍵についてはWeb3ネイティブであればユーザー管理型のウォレッ トであるMetamaskを使用するが、お客様要望に合わせてCognitoでユーザーを識別し 、DynamoDBにある秘密鍵を使用してNFTの操作が可能とな仕組みとした。
  35. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. プロトタイピング事例(NFT, 暗号資産, Carbon Neutral) CO2排出量の削減が社会的な課題になっている中で、 個⼈の活動によるCO2削減に対してインセンティブを与えたい。 背景と要望 プロトタイピングの概要 ユーザーの活動で削減できたCO2排出量をポイントに換算し、 ポイントが貯まるとカーボンオフセット商品(NFT)と交換が可能。 NFTは外部のマーケットで販売したり、J-クレジット経由で企業に販売ができる。 企業は購⼊したカーボンオフセット商品で⾃社のCO2排出量と相殺ができる。 トークンはユーザー間で売買できる。
  36. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. プロトタイピング事例(NFT, 暗号資産, Carbon Neutral)
  37. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. プロトタイピング事例(NFT, アクセス管理) NFTの保有者にだけがアクセス可能な特別なサイトを作りたい 背景と要望 プロトタイピングの概要 ユーザー管理型のウォレットであるMetamaskを使⽤して、ウォレットの電⼦署名機 能を使っている。 AWS AppSyncのCustom Authorizer機能を使⽤して、NFTの保有者であることをリ クエストの電⼦署名からブロックチェーンに問い合わせることで検証をする仕組みを 実装した。 Web2的なログイン機構が必要なく、NFTの保有者が動的に変更に追従できる仕組み となっている。
  38. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. プロトタイピング事例(データ分析) 「ブロックチェーンのトークンの移転記録」「オフチェーンの 売買記録」「オフチェーンのNFTのメタデータ」を全て使⽤し たデータ分析を⾏いたい。 しかし、ブロックチェーンの知⾒が少なく、ブロックチェーン 上で⾏われた取引記録の取得やメタデータの取得⽅法がわから なかった。また、複数のデータセットを組み合わせた分析を簡 単に⾏うための⽅法を模索していた。 背景と要望 プロトタイピングの概要 ブロックチェーンからERC20(暗号資産),ERC721(NFT)の取引記録を、 収集し、Amazon Simple Storage Service(Amazon S3)に保存する。 メタデータはAWS Lambdaを使⽤して各メタデータのサーバから取得 し、Amazon DynamoDBに保存する。 Amazon Athenaを使⽤して、DB、Amazon DynamoDB、S3のデータ をSQLを⽤いて横断的に分析を⾏うことができるようなプラットフォー ムを実装した。
  39. © 2022, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Thank You!