JP2022174127A - DAG-based transaction processing method and system in distributed ledger - Google Patents

DAG-based transaction processing method and system in distributed ledger Download PDF

Info

Publication number
JP2022174127A
JP2022174127A JP2022136003A JP2022136003A JP2022174127A JP 2022174127 A JP2022174127 A JP 2022174127A JP 2022136003 A JP2022136003 A JP 2022136003A JP 2022136003 A JP2022136003 A JP 2022136003A JP 2022174127 A JP2022174127 A JP 2022174127A
Authority
JP
Japan
Prior art keywords
transaction
transactions
bcs
fabric
ledger
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2022136003A
Other languages
Japanese (ja)
Other versions
JP7454616B2 (en
Inventor
ヤン,バオフア
Baohua Yang
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oracle International Corp
Original Assignee
Oracle International Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oracle International Corp filed Critical Oracle International Corp
Publication of JP2022174127A publication Critical patent/JP2022174127A/en
Application granted granted Critical
Publication of JP7454616B2 publication Critical patent/JP7454616B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2379Updates performed during online database operations; commit processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities

Abstract

PROBLEM TO BE SOLVED: To provide a DAG-based transaction processing system and a method in a distributed ledger.
SOLUTION: A method comprises the steps of: accessing, by a client 160, by use of a fabric SDK 162, a fabric certificate authority 172 to obtain a registration certificate; accessing a peer container 180 to obtain a signed read/write set from an endorser 182; submitting a signed transaction, including the read/write set and the signature of the endorser, to an ordering container 190; distributing, by the ordering container 190, a transaction batch to a committer 184 in the peer container 180; and modifying a ledger 186 and a world state 188 by the committer 184.
SELECTED DRAWING: Figure 1A
COPYRIGHT: (C)2023,JPO&INPIT

Description

著作権表示
この特許文献の開示の一部は、著作権によって保護される資料を含む。この特許文献または特許開示が特許商標庁の特許ファイルまたは記録に記載されているため、著作権保有者は、何人による複製に対して異議しないが、その他の場合には全ての著作権を保有する。
COPYRIGHT NOTICE A portion of the disclosure of this patent document contains material that is protected by copyright. As this patent document or patent disclosure appears in the Patent and Trademark Office patent file or records, the copyright holder has no objection to any reproduction by anyone, but otherwise reserves all copyright rights. .

優先権主張
本願は、2019年1月29日に出願され、「分散型元帳におけるDAGベースのトランザクション処理方法およびシステム」と題された米国特許出願第16/261371号、および2018年8月24日に出願され、「分散型元帳におけるDAGベースのトランザクション処理方法およびシステム」と題された米国仮特許出願第62/722595号に基づく優先権の利益を主張し、各々の出願の全体が参照により本明細書に組み込まれる。
PRIORITY CLAIM This application is filed on Jan. 29, 2019 and entitled "DAG-Based Transaction Processing Method And System In A Distributed Ledger," U.S. Patent Application No. 16/261,371 and dated Aug. 24, 2018. and claims the benefit of priority under U.S. Provisional Patent Application No. 62/722,595, entitled "DAG-Based Transaction Processing Method and System in Distributed Ledgers," each of which is incorporated herein by reference in its entirety. incorporated into the specification.

分野
本開示は、一般的に、分散型元帳(distributed ledger)を提供するためのシステムおよび方法に関する。より詳しくは、本開示は、分散型元帳における有向非循環グラフ(Directed Acyclic Graph:DAG)ベースのトランザクション処理方法およびシステム並びにそのコンポーネントを開示する。
FIELD The present disclosure relates generally to systems and methods for providing distributed ledgers. More particularly, this disclosure discloses a Directed Acyclic Graph (DAG) based transaction processing method and system and components thereof in a distributed ledger.

背景
分散型元帳は、大まかに、資産所有権のデジタル記録として称される。元帳は、中央管理者を有しなく、中央データストアを有しない。代わりに、元帳は、コンピューティング環境において、複数の場所、複数の国、または複数の施設にわたって地理的に分布され得る多くの参加ノードにわたって複製される。コンセンサスプロトコルは、元帳の各ノードのコピーと他の全てのノードのコピーとの同一性を保証する。同様に、1組のコピーは、1つの共有元帳として見なされてもよい。資産所有者は、分散型元帳を用いて、例えば、暗号署名技術に基づいて、一部の資産所有者の口座の負債を記入し、別の資産所有者の口座の信用度を評価することができる。
Background Distributed ledgers are loosely referred to as digital records of asset ownership. A ledger has no central administrator and no central data store. Instead, the ledger is replicated across many participating nodes that may be geographically distributed across multiple locations, multiple countries, or multiple facilities in the computing environment. Consensus protocols ensure the identity of each node's copy of the ledger with every other node's copy. Similarly, a set of copies may be viewed as one shared ledger. Asset owners can use the distributed ledger to post the liabilities of some asset owners' accounts and assess the creditworthiness of other asset owners' accounts, for example, based on cryptographic signature technology. .

ブロックチェーンは、改ざん防止の分散型元帳を実装するために使用することができるデータ構造である。複数のノードは、クライアントからのトランザクションをブロックにパッケージ化する共通プロトコルに従い、ノードは、コンセンサスプロトコルを使用して、次のブロックに合意する。ブロックは、累積暗号ハッシュを有するため、元帳の改ざんが困難である。各ブロックは、時間的に前のブロックの参照値(ハッシュ値)を有する。また、各ブロックは、自身のハッシュ値を有する。ブロックチェーンは、後方(例えば、チェーンの上方)にトラバースすることができる。 Blockchain is a data structure that can be used to implement a tamper-proof distributed ledger. Multiple nodes follow a common protocol that packages transactions from clients into blocks, and the nodes use a consensus protocol to agree on the next block. Blocks have a cumulative cryptographic hash, making it difficult to tamper with the ledger. Each block has a reference value (hash value) of the previous block in time. Each block also has its own hash value. A blockchain can be traversed backwards (e.g., up the chain).

許可無し分散型元帳は、任意の単一のエンティティによる制御を回避しながら、匿名参加者が元帳を管理することを可能にする。しかしながら、匿名の場合、アイデンティティ(identity)、説明責任(accountability)および監査能力(auditability)は、困難である。対照的に、許可有り分散型元帳は、明示的に許可された当事者が元帳を管理するこ
とを可能にすることによって、信用レベルおよび説明責任を可能にする。許可型元帳は、より柔軟な管理およびコンセンサスメカニズムのより広い選択をサポートする。他のトランザクションよりも一部のトランザクションを好む参加者は、2種類の分散型元帳を容易に操作することができる。しかしながら、許可有り元帳の基礎となる説明責任は、参加者に制約を与える機会を提供する。
A permissionless distributed ledger allows anonymous participants to manage the ledger while avoiding control by any single entity. However, in the case of anonymity, identity, accountability and auditability are difficult. In contrast, permissioned distributed ledgers enable trust levels and accountability by allowing explicitly authorized parties to manage the ledger. Permissioned ledgers support more flexible management and a wider choice of consensus mechanisms. Participants who prefer some transactions over others can easily operate two types of distributed ledgers. However, the underlying accountability of a permissioned ledger provides an opportunity to constrain participants.

ブロックチェーンは、線形記録構造を用いてトランザクション履歴を記録することによって、分散型元帳問題を解決するための潜在的な解決策を提供する。しかしながら、分散システムの基本的な特性によって、多くの場合、複数の当事者が複数のトランザクションを同一の共有元帳に送信する場合、トランザクション競合がしばしば発生する。競合を緩和するための方法は、いくつかがあるが、いずれの方法は、良好な性能を提供するものではない。 Blockchain offers a potential solution to the distributed ledger problem by recording transaction history using a linear record structure. However, due to the fundamental nature of distributed systems, transaction conflicts often arise when multiple parties send multiple transactions to the same shared ledger. There are several methods for mitigating contention, but none provide good performance.

典型的な公衆ブロックチェーン、暗号通貨に関連する公衆ブロックチェーンは、マイナー(miner)が順序付け(ordering)に基づいて維持すべきトランザクションまたは拒絶
すべきトランザクションを決定することを可能にする。これらのマイナーは、常により多くの報酬を有するトランザクションを好むため、事実上インセンティブモデルを選択する。しかしながら、部分的にインセンティブモデルによって、公衆ブロックチェーンは、非常に遅くなる。
A typical public blockchain, a public blockchain associated with cryptocurrencies, allows miners to decide which transactions to keep or which to reject based on ordering. These miners in effect opt for the incentive model because they always prefer transactions with more rewards. However, partly due to incentive models, public blockchains are very slow.

典型的なエンタープライズブロックチェーンファブリックは、各ピアが単にオーダリングサービスからの一連のトランザクションの時間順序に基づいてトランザクションを提出するタイミングモデルを選択する。この場合、時間順序によって、多くのトランザクションが拒否される可能性がある。 A typical enterprise blockchain fabric chooses a timing model in which each peer submits transactions simply based on the time order of a series of transactions from an ordering service. In this case, the chronological order may result in many transactions being rejected.

概要
本明細書は、一実施形態に従って、分散型元帳におけるDAGベースのトランザクション処理システムおよび方法およびそのコンポーネントを記載する。
Overview This specification describes a DAG-based transaction processing system and method and components thereof on a distributed ledger, according to one embodiment.

一実施形態によれば、本開示は、DAG構造を導入することによって、新しいトランザクション処理モデルを提供する。新しいモデルは、高いスループット性能を達成することができる。追加の重みメカニズムを用いて、様々なビジネス要件に基づいて最終性能を調節することができる。線形構造を使用した既存の作業とは異なり、より良好な性能を達成することができる。 According to one embodiment, the present disclosure provides a new transaction processing model by introducing a DAG structure. New models can achieve high throughput performance. Additional weighting mechanisms can be used to adjust the final performance based on various business requirements. Unlike existing work using linear structures, better performance can be achieved.

ハイパーレッジャプロジェクトは、オープンソースのエンタープライズ級の分散型元帳フレームワークおよびコードベースを作成するように、Linux(登録商標)財団のプロジ
ェクトとして達成された共同成果である。ハイパーレッジャファブリックは、スマートコントラクトを実行するための分散型元帳プラットフォームの実装である。ハイパーレッジャファブリックは、コンテナ技術を利用して、システムのアプリケーションロジックを含む「チェーンコード」と呼ばれるスマートコントラクトをホストする。
The Hyperledger Project is a collaborative effort accomplished as a Linux Foundation project to create an open source, enterprise-grade distributed ledger framework and codebase. Hyperledger Fabric is an implementation of a distributed ledger platform for executing smart contracts. Hyperledger Fabric utilizes container technology to host smart contracts called "chaincode" that contain the system's application logic.

一実施形態によれば、ハイパーレッジャの参加者は、元帳のコピーを複製する。元帳情報の共有に加えて、元帳を更新するプロセスも共有される。参加者のプライベートプログラムを用いて関連するプライベート元帳を更新する他のシステムとは異なり、ブロックチェーンシステムは、共有プログラムを用いて、共有元帳を更新する。共有元帳を介して参加者のビジネスネットワークを調整することによって、ブロックチェーンネットワークは、(信用性を増加しながら)プライベート情報を元帳に配布することに関連する時間、コストおよびリスク、並びに処理時間を低減することができる。ハイパーレッジャファブリックは、プライベートであり、許可型である。ハイパーレッジャファブリックネットワー
クのメンバが登録される。また、ハイパーレッジャファブリックは、チャネルを作成する機能を提供することができる。各チャネルは、特定のグループの参加者に可視である個別のトランザクション元帳を含むことができる。これによって、トランザクションプライバシを可能にする。
According to one embodiment, Hyperledger participants replicate copies of the ledger. In addition to sharing ledger information, the process of updating the ledger is also shared. Unlike other systems that use participants' private programs to update related private ledgers, blockchain systems use shared programs to update shared ledgers. By coordinating a business network of participants through a shared ledger, a blockchain network eliminates the time, costs and risks associated with distributing private information across ledgers (while increasing trust), as well as processing time. can be reduced. The Hyperledger Fabric is private and permissioned. A member of the Hyperledger Fabric network is registered. The hyperledger fabric can also provide the ability to create channels. Each channel may contain a separate transaction ledger that is visible to a particular group of participants. This allows transaction privacy.

一実施形態によれば、ファブリックの分散型元帳プロトコルは、ピア(peer)によって実行される。ファブリックは、2種類のピアを識別する。検証ピアは、ネットワーク上で、コンセンサスの実行、トランザクションの検証、および元帳の管理に関与するノードである。一方、非検証ピアは、(トランザクションを発行する)クライアントを検証ピアに接続するためのプロキシとして機能するノードである。非検証ピアは、トランザクションを実行しないが、トランザクションを検証することができる。ファブリックのいくつかの特徴は、即時最終性を有し、チェーンコードと呼ばれる任意のスマートコントラクトを実行する許可型ブロックチェーンを含む。ユーザによって定義されたチェーンコードのスマートコントラクトは、コンテナの中でカプセル化され、システムチェーンコードは、ピアと同様のプロセスに実行される。ネットワークの全体において元帳トランザクションを同期状態に保持する(例えば、適切な参加者がトランザクションを承認する場合のみ、元帳を更新し、元帳を更新する場合、同様のトランザクションと共に同様の順序で元帳を更新することを保証する)ためのプロセスは、コンセンサスと称されてもよい。ファブリックは、TLS(トランスポート層セキュリティ)証明書、登録証明書、およびトランザクション証明書を認証するための認証局(CA)をサポートすることによって、コンセンサスプロトコルおよびセキュリティを実装する。 According to one embodiment, Fabric's distributed ledger protocol is executed by peers. The fabric distinguishes between two types of peers. Validating peers are nodes on the network that are involved in executing consensus, validating transactions, and managing the ledger. Non-validating peers, on the other hand, are nodes that act as proxies to connect clients (that issue transactions) to validating peers. Non-verifying peers do not execute transactions, but are able to verify transactions. Some features of Fabric include a permissioned blockchain that has instant finality and executes arbitrary smart contracts called chaincodes. User-defined chaincode smart contracts are encapsulated in containers, and system chaincode runs in processes similar to peers. Keep ledger transactions in sync across the network (e.g., update the ledger only if the appropriate participants approve the transaction, and when updating the ledger, update the ledger in the same order with similar transactions) The process for ensuring that The fabric implements consensus protocols and security by supporting Certificate Authorities (CAs) for authenticating TLS (Transport Layer Security) certificates, registration certificates, and transaction certificates.

一実施形態に従って、ブロックチェーンクラウドサービスシステムのファブリック内のトランザクションフローを示す図である。FIG. 2 illustrates a transaction flow within the fabric of the blockchain cloud service system, according to one embodiment; 一実施形態に従って、ブロックチェーンクラウドサービスシステムを示す図である。1 illustrates a blockchain cloud service system, according to one embodiment; FIG. 一実施形態に従って、BCSシステムを示す図である。1 illustrates a BCS system, according to one embodiment; FIG. 一実施形態に従って、BCSシステムを示す図である。1 illustrates a BCS system, according to one embodiment; FIG. 一実施形態に従って、ブロックチェーンクラウドサービスシステムのゲートウェイを示す図である。FIG. 2 illustrates a gateway of a blockchain cloud service system, according to one embodiment; 一実施形態に従って、ブロックチェーンクラウドサービスシステムの永続化を示す図である。FIG. 2 illustrates persistence of a blockchain cloud service system, according to one embodiment; BCS上のファブリックの例示的な配置を示す図である。FIG. 4 illustrates an exemplary arrangement of fabrics on the BCS; 一実施形態に従って、チェーンコードアーキテクチャを示す図である。FIG. 4 illustrates a chaincode architecture, according to one embodiment. 一実施形態に従って、管理コンソールを提供するためのシステムを示す図である。1 illustrates a system for providing a management console, according to one embodiment; FIG. 一実施形態に従って、BCSコンソールUI内のユーザインターフェイスの一例を示す図である。[0014] Figure 4 illustrates an example user interface within the BCS console UI, according to one embodiment; 一実施形態に従って、BCSコンソールUI内のユーザインターフェイスの一例を示す図である。[0014] Figure 4 illustrates an example user interface within the BCS console UI, according to one embodiment; 一実施形態に従って、BCSインスタンスにおいてRESTプロキシを提供するためのシステムを示す図である。1 illustrates a system for providing REST proxies at a BCS instance, according to one embodiment; FIG. 一実施形態に従って、シングルサインオン用の典型的なIDCS使用ケースを示す図である。[0012] Figure 4 illustrates a typical IDCS use case for single sign-on, according to one embodiment; 一実施形態に従って、ファブリッククライアント認証用のIDCS使用ケースを示す図である。[0013] Figure 4 illustrates an IDCS use case for fabric client authentication, according to one embodiment; 一実施形態に従って、分散型元帳におけるDAGベースのトランザクション処理方法およびシステムを示す図である。1 illustrates a DAG-based transaction processing method and system in a distributed ledger, according to one embodiment; FIG. 一実施形態に従って、本開示の一実施形態に使用され得る例示的な関係グラフを示す図である。[0014] Figure 4 illustrates an exemplary relationship graph that may be used with an embodiment of the present disclosure, according to one embodiment; 一実施形態に従って、本開示の一実施形態に使用され得る例示的な関係グラフを示す図である。[0014] Figure 4 illustrates an exemplary relationship graph that may be used with an embodiment of the present disclosure, according to one embodiment; 一実施形態に従って、本開示の一実施形態に使用され得る例示的な関係グラフを示す図である。[0014] Figure 4 illustrates an exemplary relationship graph that may be used with an embodiment of the present disclosure, according to one embodiment; 一実施形態に従って、分散元帳における有向非循環グラフ(DAG)ベースのトランザクション処理方法の一例を示すフローチャートである。1 is a flowchart illustrating an example directed acyclic graph (DAG) based transaction processing method in a distributed ledger, according to one embodiment.

詳細な説明
一実施形態によれば、本明細書は、ブロックチェーンファブリックにおいてSQLベースのリッチクエリをサポートするためのシステムおよび方法を記載する。一実施形態によれば、本明細書に記載されたシステムおよび方法は、SQLクエリを実行することによって、より容易およびより管理可能な方法で複雑なスマートコントラクトを作成することができる。また、データ選別を(スマートコントラクトレベルで実行するではなく)ストレージエンジンに戻すことおよびデータの同時読み出しおよび書き込みアクセスをサポートするリレーショナルエンジンに依存することによって、性能を改善することができる。また、ワールドデータベースのステートは、同時読み出し/書き込みアクセスを提供することができる。
DETAILED DESCRIPTION According to one embodiment, the present specification describes a system and method for supporting SQL-based rich queries in blockchain fabric. According to one embodiment, the systems and methods described herein can create complex smart contracts in an easier and more manageable manner by executing SQL queries. Performance can also be improved by moving data culling back to the storage engine (rather than performing it at the smart contract level) and relying on a relational engine that supports concurrent read and write access of data. Also, the states of the world database can provide simultaneous read/write access.

一実施形態によれば、ブロックチェーンファブリックにおいてSQLベースのリッチクエリをサポートする例示的なブロックチェーンファブリックは、クラウドサービスとして提供することができる。一実施形態によれば、エンタープライズ級のフレームワークは、クラウド技術を使用する様々なクライアントアプリケーションの拡張性、管理、設定、永続化、および互換性を含む。特定の実施形態において、許可型ブロックチェーン元帳およびブロックチェーンファブリックは、ブロックチェーンクラウドサービス(BCS)として提供される。 According to one embodiment, an exemplary blockchain fabric that supports SQL-based rich queries on the blockchain fabric can be provided as a cloud service. According to one embodiment, an enterprise-grade framework includes extensibility, management, configuration, persistence, and compatibility of various client applications using cloud technologies. In certain embodiments, the permissioned blockchain ledger and blockchain fabric are provided as a blockchain cloud service (BCS).

以下の説明では、本開示は、限定ではなく例示として添付の図面に示される。本開示に言及された様々な実施形態は、必ずしも同様の実施形態を指すものではなく、このような言及は、少なくとも1つを意味する。具体的な実装例を説明するが、これらの実装例は、例示という目的のために提供される。当業者は、本開示の範囲および精神から逸脱することなく、他のコンポーネントおよび構成を使用できることを認識できるであろう。本開示の説明は、請求される方法をサポートおよび開示する例示および実施形態を提供する。 In the following description, the disclosure is illustrated by way of example and not by way of limitation in the accompanying drawings. References to various embodiments in this disclosure do not necessarily refer to similar embodiments, and such references imply at least one. Although specific implementations are described, these implementations are provided for purposes of illustration. A person skilled in the relevant art will recognize that other components and configurations can be used without departing from the scope and spirit of the disclosure. The description of this disclosure provides examples and embodiments that support and disclose the claimed method.

また、特定の場合に、多数の具体的な詳細を記載することによって、本開示の完全な説明を提供する。しかしながら、当業者なら、これらの具体的な詳細がなくても、本開示に教示された方法の結果および利点を達成することができ、本開示に教示された発想を実施することができることを理解するであろう。場合によって、本開示を曖昧にしないために、周知の特徴を詳細に記載しない。 Also, in certain instances, numerous specific details are given to provide a thorough description of the disclosure. One skilled in the art will understand, however, that the results and advantages of the methods taught in the present disclosure may be achieved and the concepts taught in the present disclosure may be practiced without these specific details. would do. In some instances, well-known features are not described in detail so as not to obscure the present disclosure.

特定の機能の性能およびそれらの関係を示す機能的な構築ブロックを用いて、本開示の教示を説明する。これらの機能的な構築ブロックの境界は、説明の都合上、本開示において任意に定義されることが多い。したがって、代替的な実施形態において、同様の要素によって実行される機能は、異なる要素によって実行されてもよい。機能を実行する各々の要素は、1つの要素に合併されてもよい。特定の機能およびそれらの関係を適切に実行できる限り、代替的な境界を定義してもよい。したがって、これらの任意の代替的な境界は、本開示の範囲および精神に含まれる。 The teachings of the present disclosure are described using functional building blocks that illustrate the capabilities of particular functions and their relationships. The boundaries of these functional building blocks are often arbitrarily defined in this disclosure for convenience of explanation. Thus, in alternative embodiments, functions performed by similar elements may be performed by different elements. Each element that performs a function may be merged into one element. Alternate boundaries may be defined so long as they adequately perform the specified functions and their relationships. Any of these alternate boundaries are therefore within the scope and spirit of the present disclosure.

図面および詳細な説明全体において、同様の参照番号を用いて、同様の要素を示す。し
たがって、要素が他の場所に記載されている場合、図面に使用された参照番号は、その図面に関連する詳細な説明において、言及されてもよく、言及されなくてもよい。
Like reference numbers are used throughout the drawings and detailed description to denote like elements. Thus, where an element is described elsewhere, a reference number used in a drawing may or may not be referenced in the detailed description relating to that drawing.

ブロックチェーン技術は、利用者のエコシステムにおいてトランザクションをほぼリアルタイムで分散し、安全で改ざん防止データ共有を可能にすることによって、企業ビジネス価値を劇的に向上させることができる。ハイパーレッジャファブリックブロックチェーンは、モジュラアーキテクチャ、平形/共通型産業技術サポート、および企業需要に対するサポートを組み込む。 Blockchain technology can dramatically increase enterprise business value by distributing transactions in near real-time and enabling secure, tamper-proof data sharing in the user ecosystem. The Hyperledger Fabric Blockchain incorporates modular architecture, flat/common industrial technology support, and support for enterprise demand.

序論
一実施形態によれば、ハイパーレッジャファブリック(hyperledger fabric)は、高度の機密性、回復性、柔軟性、および拡張性を提供するモジュラアーキテクチャによって支持される分散型元帳ソリューションのプラットフォームである。ハイパーレッジャファブリックは、異なるコンポーネントのプラグ可能な実装をサポートし、実用のエコシステムに存在する複雑性および混雑性に適応するように設計される。
Introduction According to one embodiment, the hyperledger fabric is a platform for distributed ledger solutions backed by a modular architecture that provides a high degree of confidentiality, resiliency, flexibility and scalability. The Hyperledger Fabric is designed to support pluggable implementations of different components and adapt to the complexity and congestion present in practical ecosystems.

一実施形態によれば、ハイパーレッジャファブリックは、代替的なブロックチェーン解決策と異なり、柔軟で拡張可能なアーキテクチャを提供する。 According to one embodiment, Hyperledger Fabric provides a flexible and scalable architecture unlike alternative blockchain solutions.

ブロックチェーン-分散型元帳
一実施形態によれば、ブロックチェーンネットワークは、ネットワーク上で行われている全てのトランザクションを記録する分散型元帳を含むことができる。
Blockchain - Distributed Ledger According to one embodiment, a blockchain network may include a distributed ledger that records all transactions taking place on the network.

ブロックチェーン元帳は、多くのネットワーク参加者によって複製され、各々のネットワーク参加者の協働によって管理されるため、しばしば分散型元帳と称される。分散および協働は、企業が実世界において商品およびサービスを交換する方法を反映する属性である。 Blockchain ledgers are often referred to as distributed ledgers because they are replicated by many network participants and managed by the cooperation of each network participant. Distribution and collaboration are attributes that reflect how businesses exchange goods and services in the real world.

分散および協働に加えて、ブロックチェーンに記録される情報は、暗号技術を用いて追加されるのみである。すなわち、いったんトランザクションを元帳に追加すると、このトランザクションは、変更できない。この不変性によって、情報の事後変更ができないため、参加者は、情報の出所を容易に決定することができる。したがって、ブロックチェーンは、証明システムとして考えられてもよい。 In addition to decentralization and collaboration, the information recorded on the blockchain is only added using cryptography. That is, once a transaction is added to the ledger, it cannot be changed. This immutability allows participants to easily determine the origin of information, as information cannot be changed after the fact. Blockchain may therefore be thought of as a proof system.

ブロックチェーン-スマートコントラクト
一実施形態によれば、情報の一貫した更新および特定の元帳機能(トランザクション、クエリなど)をサポートするために、ブロックチェーンネットワークは、スマートコントラクトを使用することによって、元帳へのアクセスを制御する。
Blockchain - Smart Contracts According to one embodiment, to support consistent updates of information and specific ledger functions (transactions, queries, etc.), the blockchain network uses smart contracts to provide access to ledgers. Control access.

一実施形態によれば、スマートコントラクトは、情報をカプセル化し、ネットワーク全体にわたってその情報を簡単に維持するための重要なメカニズムだけでなく、参加者がトランザクションの特定部分を自動的に実行できるように書かれてもよい。 According to one embodiment, smart contracts are an important mechanism for encapsulating information and easily maintaining that information across the network, as well as allowing participants to automatically execute certain parts of a transaction. may be written.

スマートコントラクトは、例えば、品物の到着時間に応じて出荷コストを変化するように書かれてもよい。両方の当事者によって合意され、元帳に記載された条件に基づいて、品物を受け取った時に、対応の資金が自動的に譲渡される。 A smart contract may be written, for example, to vary the shipping cost depending on the arrival time of the item. Corresponding funds will automatically be transferred upon receipt of the goods under the terms agreed upon by both parties and set forth in the ledger.

ブロックチェーン-コンセンサス
一実施形態によれば、ネットワークの全体において元帳トランザクションを同期状態に保持する(例えば、適切な参加者がトランザクションを承認する場合のみ、元帳を更新し
、元帳を更新する場合、同様のトランザクションと共に同様の順序で元帳を更新することを保証する)ためのプロセスは、コンセンサスと称されてもよい。
Blockchain - Consensus According to one embodiment, keep ledger transactions in sync across the network (e.g., update the ledger only if the appropriate participants approve the transaction, update the ledger, and so on). transactions) may be referred to as consensus.

一実施形態によれば、ブロックチェーンは、共有且つ複製されたトランザクションシステムとして考えられてもよい。このトランザクションシステムは、スマートコントラクトを介して更新され、コンセンサスと呼ばれる協働プロセスを介して一貫して同期状態に保持される。 According to one embodiment, a blockchain may be thought of as a shared and replicated transaction system. This transactional system is updated via smart contracts and kept consistently in sync via a collaborative process called consensus.

ブロックチェーンの利点
一実施形態によれば、現在利用可能なトランザクションネットワークは、ビジネス記録を保持する時に存在していたバージョンのネットワークである。ビジネスネットワークのメンバが互いに取引をするが、各メンバは、各自の取引記録を管理する。同様に、品物を販売する企業がその品物の所有権を確認するための権原連鎖を保有することを保証するために、取引の対象物を販売する度に、出所を確認することができる。
Advantages of Blockchain According to one embodiment, the currently available transaction network is the version of the network that existed when business records were kept. Members of a business network transact with each other, and each member maintains their own transaction records. Similarly, the provenance can be verified each time an item is sold to ensure that the company selling the item has a chain of title to verify ownership of the item.

現在のビジネスネットワークがコンピューティングシステムによって近代化されているにも関わらず、ネットワーク参加者のアイデンティティを管理するための統一システムが存在しておらず、(数兆ドルにも昇る世界規模の)証券取引を決済するのに数日がかかり、契約を手動で署名し実行しなければないため、出所の確認は、困難である。また、システム内の各データベースが固有の情報を含むため、1つの欠点を表す。 Despite modern business networks being modernized by computing systems, there is no unified system for managing the identities of network participants, and the (trillion-dollar global) securities Verification of provenance is difficult because it takes days to settle transactions and contracts must be manually signed and executed. It also presents a drawback because each database in the system contains unique information.

一実施形態によれば、ブロックチェーンは、ネットワーク上でアイデンティティを確立し、トランザクションを実行し、データを記憶するための標準方法を提供することによって、多くの非効率な標準トランザクションシステムの代替案を提供する。 Blockchain, according to one embodiment, replaces many inefficient standard transaction systems by providing a standard way to establish identities, conduct transactions, and store data on a network. offer.

一実施形態によれば、ブロックチェーンネットワークの各参加者は、各自の元帳のコピーを有する。元帳情報の共有に加えて、元帳を更新するプロセスも共有される。参加者のプライベートプログラムを用いて関連するプライベート元帳を更新する他のシステムとは異なり、ブロックチェーンシステムは、共有プログラムを用いて、共有元帳を更新する。 According to one embodiment, each participant in the blockchain network has its own copy of the ledger. In addition to sharing ledger information, the process of updating the ledger is also shared. Unlike other systems that use participants' private programs to update related private ledgers, blockchain systems use shared programs to update shared ledgers.

一実施形態によれば、共有元帳を介して参加者のビジネスネットワークを調整することによって、ブロックチェーンネットワークは、信用性および可視性を増加しながら、プライベート情報の配布に関連する時間、コストおよびリスク、並びに処理時間を低減することができる。 According to one embodiment, by coordinating a business network of participants via a shared ledger, a blockchain network increases trust and visibility while increasing the time, costs and risks associated with distributing private information. , as well as processing time can be reduced.

ハイパーレッジャファブリック
ハイパーレッジャファブリックは、他のブロックチェーン技術と同様に、元帳を有し、スマートコントラクトを使用し、参加者がトランザクションを管理するシステムである。
Hyperledger Fabric Hyperledger Fabric, like other blockchain technologies, is a system that has a ledger, uses smart contracts, and allows participants to manage transactions.

ハイパーレッジャファブリックは、プライベートであり許可型であるため、いくつかの他のブロックチェーンシステムとは異なる。いくつかのブロックチェーンネットワークは、「プルーフオブワーク」の代わりに、アイデンティティを使用して認証する(基準を満たす人がネットワークの参加を許可する)。ハイパーレッジャファブリックネットワークのメンバは、メンバシップサービスプロバイダを介して登録する。 Hyperledger Fabric differs from some other blockchain systems because it is private and permissioned. Some blockchain networks use identities instead of “proof of work” to authenticate (only those who meet the criteria are allowed to join the network). Members of the Hyperledger Fabric network register through membership service providers.

また、ハイパーレッジャファブリックは、いくつかのプラグ可能なオプションを提供する。元帳データを複数のフォーマットで格納することができ、コンセンサスメカニズムをインおよびアウトに切り替ることができ、異なるMSP(メンバシップサービスプロバイダ)をサポートすることができる。 Hyperledger Fabric also offers several pluggable options. Ledger data can be stored in multiple formats, the consensus mechanism can be switched in and out, and different MSPs (Membership Service Providers) can be supported.

さらに、ハイパーレッジャファブリックは、チャネルを作成する機能を提供することによって、参加者グループが別々のトランザクション元帳を作成することを可能にする。これによって、ネットワーク上の一部の参加者が競合者であり、全てのトランザクションを参加者の全員に公開しないこと(例えば、一部の参加者に特別価格を提供し、他の参加者に提供していないこと)を可能にする。2人の参加者がチャネルを作成する場合、他の参加者を除き、この2人の参加者は、そのチャネルの元帳のコピーを有する。 Additionally, the Hyperledger Fabric allows participant groups to create separate transaction ledgers by providing the ability to create channels. This prevents some participants on the network from being competitors and not exposing all transactions to all participants (e.g. offering special prices to some participants and not be done). When two participants create a channel, they have a copy of the channel's ledger, except for the other participants.

共有元帳
一実施形態によれば、ハイパーレッジャファブリックは、2つのコンポーネント、すなわち、ワールドステートおよびトランザクションログを含む元帳サブシステムを有する。各参加者は、所属する全てのハイパーレッジャファブリックネットワークの元帳のコピーを有する。
Shared Ledger According to one embodiment, the Hyperledger Fabric has a ledger subsystem that includes two components: world state and transaction log. Each participant has a copy of the ledger of all Hyperledger Fabric networks to which it belongs.

ワールドステートというコンポーネントは、所定の時点における元帳の状態を記述する。ワールドステートは、元帳のデータベースである。トランザクションログというコンポーネントは、ワールドステートの現在値をもたらした全てのトランザクションを記録する。トランザクションログは、ワールドステートの更新履歴である。したがって、元帳は、ワールドステートデータベースとトランザクションログ履歴との組み合わせである。 The world state component describes the state of the ledger at a given point in time. Worldstate is a ledger database. A component called the transaction log records all transactions that have resulted in the current value of the world state. The transaction log is the update history of the world state. A ledger is thus a combination of a world state database and a transaction log history.

共有元帳は、ワールドステートの交換可能なデータストアを有する。デフォルトでは、共有元帳は、レベルDBキー値ストアデータベースである。トランザクションログは、プラグ可能ではなくてもよい。トランザクションログは、単に、ブロックチェーンネットワークによって使用される前後の元帳データベースの値を記録するものである。 The shared ledger has a world state interchangeable data store. By default, the shared ledger is a level DB key-value store database. The transaction log does not have to be pluggable. A transaction log simply records the values of the ledger database before and after being used by the blockchain network.

スマートコントラクト
ハイパーレッジャファブリックスマートコントラクトは、チェーンコードで書かれ、ブロックチェーンの外部のアプリケーションが元帳と対話する必要があるときに、そのアプリケーションによって呼び出される。殆どの場合、チェーンコードは、トランザクションログではなく、ワールドステートである元帳のデータベースコンポーネントのみと対話する(例えば、データベースを検索する)。
Smart Contracts Hyperledger Fabric smart contracts are written in chaincode and invoked by applications outside the blockchain when they need to interact with the ledger. In most cases, the chaincode only interacts with the database component of the ledger, which is world state (eg, searches the database), not the transaction log.

コンセンサス
一実施形態によれば、トランザクションは、ネットワーク内の異なるセットの参加者の間に実行されても、実行される順序で元帳に書き込まれる。このため、トランザクションの順序が確立され、誤った(または悪意で)元帳に挿入される悪いトランザクションを拒否することができる。
Consensus According to one embodiment, transactions are written to the ledger in the order in which they are executed, even if they are executed between different sets of participants in the network. Thus, transaction ordering is established and bad transactions that are incorrectly (or maliciously) inserted into the ledger can be rejected.

ハイパーレッジャファブリックによって、ネットワークエンティティ(例えば、ネットワークユーザ、ピア、スタータ)は、参加者の間の関係を最もよく表すコンセンサスメカニズムを選択することができる。プライバシと同様に、参加者の間の関係で高度に構造化されたネットワークからよりピアツーピアであるネットワークまでの広範囲のネットワークが必要である。 The Hyperledger Fabric allows network entities (eg, network users, peers, starters) to choose a consensus mechanism that best represents the relationship between the participants. Similar to privacy, there is a need for networks that range from highly structured networks to more peer-to-peer networks with relationships between participants.

チェーンコード
一実施形態によれば、チェーンコードは、1つ以上の資産と、資産を変更するためのトランザクション命令(ビジネスロジック)とを定義するソフトウェアを含むことができる。チェーンコードは、キー値対または他の状態データベース情報を読み取るまたは変更するための規則を実行する。チェーンコードの機能は、元帳の現在の状態データベースに対して実行され、トランザクション提案によって作動される。チェーンコードの実行は、ネットワークに提出され、全てのピア上の元帳に適用される一組のキー値の書き込み(書き
込みセット)をもたらす。
Chaincode According to one embodiment, a chaincode may include software that defines one or more assets and transaction instructions (business logic) for modifying the assets. Chaincode implements rules for reading or modifying key-value pairs or other state database information. Chaincode functionality runs against the ledger's current state database and is driven by transaction proposals. Execution of the chaincode results in a set of key-value writes (writeset) that are submitted to the network and applied to the ledger on all peers.

元帳の特徴
一実施形態によれば、元帳は、ファブリック内の全ての状態遷移のひと続きの耐タンパー性の記録である。状態遷移は、参加者がチェーンコードを実行すること(トランザクション)によってもたらした結果である。各トランザクションは、作成、更新、または削除として元帳にコミットする一組の資産キー値対を生成する。
Ledger Characteristics According to one embodiment, a ledger is a continuous, tamper-resistant record of all state transitions in the fabric. A state transition is the result of a participant executing chaincode (a transaction). Each transaction produces a set of asset key-value pairs that are committed to the ledger as create, update, or delete.

元帳は、変更できないひと続きの記録をブロックに格納するブロックチェーン、および現在のファブリック状態を保持するための状態データベースから構成される。各チャネルは、1つの元帳を含み、各チャネルは、特定の参加者グループに可視であるトランザクションの別個の元帳を含む。各ピアは、メンバとして所属する各チャネルの元帳のコピーを保持する。 The ledger consists of a blockchain, which stores an immutable chain of records in blocks, and a state database, which holds the current fabric state. Each channel contains one ledger, and each channel contains a separate ledger of transactions visible to a particular group of participants. Each peer maintains a copy of the ledger for each channel of which it is a member.

チャネルのプライバシ
一実施形態によれば、ハイパーレッジャファブリックは、チャネルごとに不変の元帳、および資産の現在の状態を処理および変更する(すなわち、キー値対を更新する)ことができるチェーンコードを利用する。元帳は、チャネルの範囲に存在する。元帳は、(全ての参加者が1つの共通チャネル上で動作している場合)ネットワーク全体にわたって共有されてもよく、または特定組の参加者のみを含むように私有化されてもよい。
Channel Privacy According to one embodiment, the Hyperledger Fabric maintains an immutable ledger for each channel and a chaincode that can process and change the current state of assets (i.e., update key-value pairs). use. The ledger exists at the scope of the channel. The ledger may be shared across the network (if all participants are operating on one common channel) or may be privateized to include only a specific set of participants.

後者の場合、参加者は、別個のチャネルを作成することによって、トランザクションおよび元帳を分離/隔離することができる。完全な透明度とプライバシとの間のギャップを埋めることを可能にするために、チェーンコードは、読み取りおよび書き込みを実行するために資産状態にアクセスする必要があるピアのみにインストールされてもよい(すなわち、チェーンコードをピアにインストールしない場合、ピアは、元帳と適切にインターフェイスすることができない)。データをさらに不明瞭にするために、AES(高度暗号化標準)などの通常の暗号アルゴリズムを用いて、チェーンコード内の値を(部分的または全体的に)暗号化してから、元帳に追加する。 In the latter case, participants can separate/isolate transactions and ledgers by creating separate channels. To be able to bridge the gap between full transparency and privacy, chaincode may be installed only on peers that need access to the asset state to perform reads and writes (i.e. , if you do not install the chaincode on the peer, the peer will not be able to properly interface with the ledger). To further obfuscate the data, encrypt (partially or fully) the value in the chaincode using a normal cryptographic algorithm such as AES (Advanced Encryption Standard) before adding it to the ledger .

一実施形態によれば、チャネルプライバシよりも小さい概念である「プライベートコレクション」を用いて、プライバシを改善することができる。 According to one embodiment, privacy can be improved using a "private collection", which is a smaller concept than channel privacy.

セキュリティおよびメンバシップサービス
一実施形態によれば、ハイパーレッジャファブリックは、全ての参加者が既知のアイデンティティを有するトランザクションネットワークを提供する。パブリックキーインフラストラクチャを用いて、組織、ネットワークコンポーネント、およびエンドユーザまたはクライアントアプリケーションに関連付ける暗号化証明書を作成する。したがって、より広いネットワークおよびチャネル上でデータのアクセスを制御および管理することができる。ハイパーレッジャファブリックのこの「許可」概念は、チャネルの存在および特性と共に、プライバシおよび機密性が重要であるシナリオに対処することができる。
Security and Membership Services According to one embodiment, the Hyperledger Fabric provides a transaction network in which all participants have known identities. A public key infrastructure is used to create cryptographic certificates that are associated with organizations, network components, and end-users or client applications. Thus, access to data can be controlled and managed over wider networks and channels. This "permission" concept of the Hyperledger fabric, along with the presence and properties of channels, can address scenarios where privacy and confidentiality are important.

コンセンサス
一実施形態によれば、分散型元帳において、コンセンサスは、単にトランザクションの順序に対する合意よりも多くのものを含むことができる。この区別は、提案およびエンドースメントから、順序付け、検証およびコミットメントまでのハイパーレッジャファブリックのトランザクションフロー全体における基本的な役割によって強調される。コンセンサスは、ブロックを含む一組のトランザクションの正当性の完全検証として定義される。
Consensus According to one embodiment, in a distributed ledger, consensus can involve more than simply agreeing on the order of transactions. This distinction is underscored by its fundamental role in the entire transaction flow of the Hyperledger Fabric, from proposals and endorsements to ordering, verification and commitment. Consensus is defined as a complete verification of the correctness of a set of transactions containing blocks.

トランザクションブロックの順序および結果が明示的なポリシ基準チェックを満たした
ときに、コンセンサスが最終的に達成される。これらのチェックおよびバランスは、トランザクション中に行われ、特定のトランザクションに署名しなければならない特定のメンバを決定するためのエンドースメントポリシの使用、およびこれらのポリシを実行および遵守することを保証するためのシステムチェーンコードを含む。コミットメントの前に、ピアは、これらのシステムチェーンコードを利用して、エンドースメントが確実に存在し且つ適切なエンティティからのものであることを確認することができる。また、トランザクションを含む任意のブロックを元帳に付加する前に、元帳の現在の状態に合意または同意している間に、バージョンチェックを実行する。この最終チェックは、データの完全性を損なう可能性のある二重使用および他の脅威に対する保護を提供すると共に、非静的変数に対する関数の実行を可能にする。
Consensus is ultimately achieved when the order and outcome of transaction blocks satisfy explicit policy criteria checks. These checks and balances are made during a transaction, use endorsement policies to determine which specific members must sign a particular transaction, and to ensure that these policies are enforced and adhered to. contains the system chaincode of Prior to commitment, peers can utilize these system chaincodes to verify that the endorsement does exist and is from the proper entity. It also performs a version check before appending any block containing transactions to the ledger while agreeing or agreeing on the current state of the ledger. This final check provides protection against double-use and other threats that can compromise data integrity, and allows execution of functions on non-static variables.

エンドースメント、検証およびバージョンチェックに加えて、トランザクションフローに行われる継続的なアイデンティティ検証を含む。アクセス制御リストは、ネットワークの(オーダリングサービスからチャネルまでの)階層上で実装され、トランザクション提案が異なるアーキテクチャコンポーネントを通過する際に、ペイロードは、繰り返して署名され、検証され、認証される。コンセンサスは、合意された一連のトランザクションの順序に限定されず、むしろ、提案からコミットメントまでのトランザクションフローに行われる継続的な検証の副産物として達成されたプロセスである。 Includes endorsements, verifications and version checks as well as ongoing identity verification done to the transaction flow. Access control lists are implemented on the network hierarchy (from ordering service to channel), and payloads are iteratively signed, verified, and authenticated as transaction proposals pass through different architectural components. Consensus is not limited to an agreed-upon sequence of transactions, but rather is a process achieved as a by-product of ongoing validation of the flow of transactions from proposal to commitment.

ブロックチェーンクラウドサービス-アーキテクチャ
一実施形態によれば、クラウドシステム(例えば、ブロックチェーンクラウドサービス(BCS))などのシステムは、上述したハイパーレッジャファブリックを出発点として利用することができる。このようなシステムは、高度に進歩した特異なエンタープライズ級の分散型元帳クラウドプラットフォームを提供することによって、新しいブロックチェーンベースのアプリケーションの作成および/または既存のSaaS、PaaSおよびIaaS並びにオンプレミスアプリケーションの拡張を可能にする。
Blockchain Cloud Services—Architecture According to one embodiment, systems such as cloud systems (eg, Blockchain Cloud Services (BCS)) can utilize the hyperledger fabric described above as a starting point. Such systems enable the creation of new blockchain-based applications and/or the extension of existing SaaS, PaaS and IaaS and on-premise applications by providing a highly advanced and unique enterprise-grade distributed ledger cloud platform. to enable.

一実施形態によれば、システムは、拡張性、安全性、ロバスト性、統一性、およびパフォーマンスなどのミッションクリティカル企業需要をサポートすることによって、作成中ブロックチェーンアプリケーションの採択およびサポートに対する障壁を取り除くことができる。システムは、BCSをクラウドPaaS(Platform as a Service)として提供
することによって、ユーザがブロックチェーンを配置、設定、管理および監視することおよびブロックチェーンを企業に配置するためのコストを低減することを可能にする。また、システムは、ブロックチェーンアプリケーションの開発および他のプラットフォームとの統合を加速する。このシステムによって、SaaSクラウド利用者は、ブロックチェーンクラウドプラットフォームを使用する第三者アプリケーションおよび外部分散型元帳技術を用いて、調達、支払、貿易金融、会計、HR、CXなどの企業プロセスのデータを安全に共有することができ、分散トランザクションを実行することができる。
According to one embodiment, the system removes barriers to adoption and support of blockchain applications under construction by supporting mission-critical enterprise demands such as scalability, security, robustness, uniformity, and performance. can be done. By providing BCS as a cloud PaaS (Platform as a Service), the system enables users to deploy, configure, manage and monitor blockchains and reduce the cost of deploying blockchains in enterprises. to The system also accelerates the development of blockchain applications and integration with other platforms. The system allows SaaS cloud users to use third-party applications and external distributed ledger technology using the blockchain cloud platform to access data for enterprise processes such as procurement, payments, trade finance, accounting, HR, CX, etc. It can be shared safely and can perform distributed transactions.

一実施形態によれば、システムは、PaaSマネージャ(例えば、オラクル(登録商標)PaaSサービスマネージャ(PSM)プラットフォーム)に基づくクラウドサービスである。通常、このようなシステムは、計算スペース(例えば、外部計算スペース)に動作するクラウド管理サービスである。一実施形態において、システムは、オラクルアイデンティティクラウドサービス(IDCS)、オラクルロードバランササービス(LBaaS)、オラクルイベントハブクラウドサービス、およびオラクルクラウドストレージを用いて、階層化したオラクルアプリケーションコンテナクラウドサービス(ACCS)を含むPSMプラットフォームの特徴を利用する。各クライアントのブロックチェーンを作成することができ、テナントとして実行することができる。システムは、複数のブロックチェーンをサポートすることができ、各ブロックチェーンは、マルチテナント環境内の各々のテナントとして作成され、動作する。 According to one embodiment, the system is a cloud service based on a PaaS manager (eg, Oracle PaaS Service Manager (PSM) platform). Typically, such systems are cloud managed services that operate on computational spaces (eg, external computational spaces). In one embodiment, the system uses Oracle Identity Cloud Service (IDCS), Oracle Load Balancer Service (LBaaS), Oracle Event Hub Cloud Service, and Oracle Cloud Storage to provide tiered Oracle Application Container Cloud Service (ACCS). Take advantage of the features of the PSM platform, including: Each client's blockchain can be created and can be run as a tenant. The system can support multiple blockchains, with each blockchain created and operating as a respective tenant in a multi-tenant environment.

したがって、このシステムによって、アプリケーションまたはクライアントアプリケーションは、必要または所望に応じて、スマートコントラクトを含む分散型元帳を実装することができる。このようなシステムのクライアントおよびユーザは、クラウド(ブロックチェーン信用)の内部であってもよく、または外部であってもよい。いくつかのブロックチェーンネットワークは、クラウド環境外部のコンポーネントを含んでもよく、または特定のクラウドに限定されてもよい。 Thus, the system allows applications or client applications to implement distributed ledgers, including smart contracts, as needed or desired. Clients and users of such systems may be internal to the cloud (blockchain trust) or external. Some blockchain networks may include components outside the cloud environment, or may be limited to specific clouds.

一実施形態によれば、このシステムは、多種多様な応用、特に信用およびアイデンティティを解決しなければならないマルチパーティトランザクションに有用である。他のブロックチェーンシステムとは異なり、本開示のシステムサービスは、匿名ではない。実際に、アイデンティティおよび監査能力は、基本的な統合要素である。したがって、BCSは、例えば、資本市場、越境トランザクション、金融サービス、資産トランザクション、法律規制、ヘルスケア記録、公開、ロジスティック、変更追跡、および偽造防止において応用されてもよい。 According to one embodiment, the system is useful for a wide variety of applications, especially multi-party transactions where trust and identity must be resolved. Unlike other blockchain systems, the system services of the present disclosure are not anonymous. In fact, identity and auditability are fundamental integration factors. Thus, BCS may have applications in, for example, capital markets, cross-border transactions, financial services, asset transactions, legal regulation, healthcare records, publishing, logistics, change tracking, and anti-counterfeiting.

上述したように、ブロックチェーン上の各当事者は、(元帳が特定の当事者に作成/私有化されない限り)全てのデータベースおよび全ての履歴にアクセスすることができる。各当事者は、データまたは情報を制御することができない。また、全ての当事者は、仲介人なしで、トランザクション相手の記録を直接に検証することができる。通信は、中心ノードを介せず、ピア間で直接に行われる。各ノードは、情報を記憶すると共に、情報を全ての他のノードに転送する。いったんトランザクションがデータベースに入力され、アカウントが更新されると、記録は、その前に入力された全てのトランザクションの記録にリンクされる(したがって、「チェーン」と呼ばれる)ため、変更することができない。トランザクションにエラーが存在する場合、新しいトランザクションを用いてエラーを訂正することができる。両方のトランザクションは、提供されたユーザに可視である。新しい有効なトランザクションを追加するために、参加者は、コンセンサスメカニズムを介してトランザクションの有効性に合意することができる。ブロックチェーンの参加者は、資産の出所、および資産所有権の時間的な変化を検証することができる。デジタル署名を用いて文書を認証することができ、デジタル署名をアクセス制御(許可レベルの変更)およびプログラマビリティ(実行可能なビジネスルール)に追加することができる。 As mentioned above, each party on the blockchain has access to all databases and all histories (unless the ledger was created/privatized to a specific party). Neither party has control over the data or information. Also, all parties can directly verify the transaction partner's records without an intermediary. Communication occurs directly between peers without going through a central node. Each node stores information and forwards information to all other nodes. Once a transaction is entered into the database and the account is updated, the record is linked to the records of all previously entered transactions (hence the term "chain") and cannot be changed. If there is an error in the transaction, a new transaction can be used to correct the error. Both transactions are visible to the provided user. To add a new valid transaction, participants can agree on the validity of the transaction via a consensus mechanism. Blockchain participants can verify the provenance of assets and changes in asset ownership over time. Digital signatures can be used to authenticate documents and add to access control (change permission levels) and programmability (executable business rules).

多くのマルチパーティトランザクションにおいて、当事者は、資産またはサービスを受け取った時に、金銭を交換する。通常、トランザクション時間によって、一方の当事者は、他方の当事者よりも先に商品または金銭を提供しなければならない。いくつかの環境では、信用は、仲介人が契約の条件が成立するまで資金を預託することによって解決される。この方法は、当事者間の信用を解決する。しかしながら、この方法は、信用しなければならない別の集権者を追加するため、複雑性を増加すると共に、トランザクションのコストを増加する。本開示のシステムの一部としてスマートコントラクトを使用することによって、仲介人を排除することができる。これによって、当事者は、仲介人を介することなく、ブロックチェーン上で信用できるトランザクションを行うことができる。 In many multiparty transactions, parties exchange money upon receiving assets or services. Transaction time typically requires one party to provide goods or money before the other party. In some circumstances, credit is settled by an intermediary depositing funds until the terms of the contract are met. This method resolves the trust between the parties. However, this method adds another centralized party that must be trusted, thus increasing complexity and increasing the cost of the transaction. By using smart contracts as part of the system of the present disclosure, middlemen can be eliminated. This allows parties to conduct trusted transactions on the blockchain without an intermediary.

一実施形態によれば、BCSなどの本開示のシステムの利点は、システム内の情報を分散することを含む。監査能力を利用できると共に、アクセスを制御することができ、いくつかのプライバシを管理することができる。また、ブロックチェーン元帳は、本質的に変更することができず、拒否することができない。元帳は、複数のブロックから構成される。各トランザクションブロックは、ブロックID、過去のハッシュ、データハッシュ、タイムスタンプ、トランザクションIDリスト、動作(1~n)、チェーンコードID、チェーンコード提案、応答(r/wセット、イベント、成功または失敗)、およびエンドーサを含む。各ブロックは、過去のハッシュおよびそれ自体のハッシュを含むため、いった
ん公開/配布されると、本質的に順序付けられ、不変である(なお、現在ブロックのハッシュは、過去ブロックのハッシュと現在ブロック内の他のデータとのハッシュであるため、チェーン内のブロックをリンクする)。コンセンサスは、矛盾を解消することができる。集中型データベースまたは仲介人と比較して、集中型権威者に過度の権限を与える必要はない。また、元帳の分散性質は、分散コピーおよびコンセンサスを使用することによって、(アルゴリズム的に可能であっても)変更が難しいため、ブロックチェーン記録技術の基本的な不変性を強化する。したがって、トランザクションの順序が一定であるため、誰かがチェーンの最新のブロックのコピーを有する場合、元帳のハッキングは、ほぼ不可能である。
According to one embodiment, advantages of the disclosed system, such as the BCS, include distributing information within the system. Audit capabilities are available, access can be controlled, and some privacy can be managed. Also, the blockchain ledger is inherently immutable and irrevocable. A ledger is made up of blocks. Each transaction block has block id, past hash, data hash, timestamp, transaction id list, operation (1-n), chaincode id, chaincode proposal, response (r/w set, event, success or failure) , and endorsers. Each block contains a past hash and a hash of itself, so once published/distributed, it is inherently ordered and immutable (note that the hash of the current block is the hash of the past block and the hash of the current block). linking blocks in a chain, as it is a hash with other data in . Consensus can resolve contradictions. There is no need to give undue power to centralized authorities compared to centralized databases or intermediaries. The decentralized nature of the ledger also reinforces the fundamental immutability of blockchain recording technology, as it is difficult to change (albeit algorithmically possible) through the use of distributed copying and consensus. Therefore, hacking the ledger is nearly impossible if someone has a copy of the latest block on the chain because the order of transactions is constant.

特定の実施形態において、以下で説明するように、本開示のシステムは、オラクルPaaSサービスマネージャ(PSM)プラットフォームに基づくことができ、ファブリックベースのブロックチェーンの作成、監視および設定を単純化/容易化/自動化する管理コンソールを含むこによって強化される。また、アプリケーションとブロックチェーンファブリックとの間の接触を簡単化するために、1つのREST APIを含むRESTプロキシサービスが提供される。開発者は、スマートコントラクトを構築し、管理コンソールを用いてスマートコントラクトを配置し、次いで、アプリケーションを用いて、ブロックチェーン上でスマートコントラクトを(デフォルトの場合)非同期的にまたは(即時応答が要求される場合)同期的に呼び出すことができる。RESTプロキシサービスおよびAPIは、プラットフォームの需要に応じて、同期および非同期の両方の能力を提供する。 In certain embodiments, as described below, the system of the present disclosure can be based on the Oracle PaaS Service Manager (PSM) platform to simplify/facilitate fabric-based blockchain creation, monitoring and configuration /enhanced by including an automating management console. Also, to simplify the contact between applications and the blockchain fabric, a REST proxy service is provided that includes one REST API. A developer builds a smart contract, deploys the smart contract using the management console, and then uses an application to execute the smart contract on the blockchain either asynchronously (by default) or (immediate response is required). can be called synchronously. REST proxy services and APIs provide both synchronous and asynchronous capabilities, depending on the needs of the platform.

一実施形態によれば、ファブリックCAサーバは、ファブリックのメンバシップサービスを提供することができる。ファブリックCAサーバは、以下の3つの部分、すなわち、ユーザの認証、ブロックチェーン(ピアおよびオーダのグループ)にアクセスするための認可、並びにアプリケーションクライアント、ピア(peer)およびオーダ(order)に証
明書を配信するCAサーバを含むことができる。ファブリックCAは、証明書を利用して、認証および許可を実施することができる。証明書は、以下の2つの種類、すなわち、認証用登録証明書および認可用トランザクション証明書を含む。一実施形態によれば、IDCSなどのアイデンティティサービスは、認証および認可を提供することもできる。
According to one embodiment, the fabric CA server can provide membership services for the fabric. The Fabric CA server has three parts: authentication of users, authorization to access the blockchain (groups of peers and orders), and provision of certificates to application clients, peers and orders. It can include a CA server that distributes. The Fabric CA can utilize certificates to enforce authentication and authorization. Certificates include two types: registration certificates for authentication and transaction certificates for authorization. According to one embodiment, an identity service such as IDCS may also provide authentication and authorization.

ハイパーレッジャファブリック
上述したように、一実施形態において、本開示のシステムは、スマートコントラクトを実行するための分散型元帳プラットフォームを提供するハイパーレッジャファブリックを実装することができる。ハイパーレッジャファブリックは、コンテナ技術を利用して、システムのアプリケーションロジックを含む「チェーンコード」と呼ばれるスマートコントラクトをホストする。代替的な実施形態において、ブロックチェーンクラウドサービスは、例えば、2016年5月31日に出願され、参照により本明細書に組み込まれる米国特許出願第15/169622号「分散型元帳システムにおける説明責任および信用」に記載された「Tendermint」元帳システムを含む代替的な分散型元帳プラットフォームを実装する。
Hyperledger Fabric As noted above, in one embodiment, the system of the present disclosure may implement a hyperledger fabric that provides a distributed ledger platform for executing smart contracts. Hyperledger Fabric utilizes container technology to host smart contracts called "chaincode" that contain the system's application logic. In an alternative embodiment, the blockchain cloud service is, for example, U.S. patent application Ser. No. 15/169,622, "Accountability and Implement alternative distributed ledger platforms, including the “Tendermint” ledger system described in Trust.

ハイパーレッジャファブリックの分散型元帳プロトコルは、ピアによって実行される。従来のブロックチェーン技術の1つの欠点は、全てのピアが全てのトランザクションを記録する必要があることである。このことは、実質的にI/Oおよびプロセッサのオーバーヘッドを引き起こし、エンタープライズ級のシステムに応じて簡便に拡張することができない。ハイパーレッジャファブリックは、2種類のピアを識別する。コミッタピアは、エンドースメントを確認し、トランザクションをブロックチェーンにコミットする前にトランザクション結果を検証し、および元帳を管理するためのネットワーク上のノードである。一方、非検証ピアは、(トランザクションを発行する)クライアントを検証ピアに接続するためのプロキシとして機能するノードである。非検証ピア(またはエンドーサピア)
は、トランザクションを実行しないが、トランザクションをシミュレートし、署名することができる。ピアの種類/機能の分離は、システムの拡張性を改善する。オーダリングサービスは、署名済みトランザクションを受信し、ブロックに順序付け、ブロックをコミッタピアに送信することができる。このような分散型元帳システムにおいて、コンセンサスは、元帳に追加される次のトランザクションセットの合意を形成するプロセスである。ハイパーレッジャファブリックにおいて、コンセンサスは、3つの別個のステップ、すなわち、トランザクションのエンドースメント、順序付け、並びに検証およびコミットメントを含む。
The Hyperledger Fabric's distributed ledger protocol is executed by peers. One drawback of traditional blockchain technology is that all peers are required to record all transactions. This causes substantial I/O and processor overhead and cannot be conveniently scaled for enterprise grade systems. The Hyperledger Fabric distinguishes between two types of peers. A committer peer is a node on the network that confirms endorsements, verifies transaction outcomes before committing transactions to the blockchain, and manages the ledger. Non-validating peers, on the other hand, are nodes that act as proxies to connect clients (that issue transactions) to validating peers. Non-Validating Peer (or Endorsaper)
does not execute transactions, but can simulate and sign transactions. Peer type/function separation improves system scalability. An ordering service can receive signed transactions, order them into blocks, and send the blocks to committer peers. In such distributed ledger systems, consensus is the process of forming agreement on the next set of transactions to be added to the ledger. In the Hyperledger Fabric, consensus involves three distinct steps: transaction endorsement, ordering, and verification and commitment.

一実施形態によれば、ハイパーレッジャの特徴は、即時最終性を有し、チェーンコードと呼ばれる任意のスマートコントラクトを実行する許可型ブロックチェーンである。ユーザによって定義されたチェーンコードのスマートコントラクトは、コンテナの中でカプセル化され、システムチェーンコードは、ピアと同様のプロセスに実行される。チェーンコードの実行は、トランザクションの順序で分割されるため、必要とされるノード間の信用レベルおよび検証レベルを制限し、ネットワークのオーバーヘッドを低減する。 According to one embodiment, Hyperledger is characterized by a permissioned blockchain that has instant finality and executes arbitrary smart contracts called chaincodes. User-defined chaincode smart contracts are encapsulated in containers, and system chaincode runs in processes similar to peers. Chaincode execution is split in transaction order, thus limiting the level of trust and verification between nodes required and reducing network overhead.

一実施形態によれば、ハイパーレッジャファブリック内のチャネルは、共通のネットワーク上で資産を交換する競合ビジネスおよび規制産業によって要求された高度なプライバシおよび機密性で、多者トランザクションを行うことを可能にする。変更できない共有元帳は、各チャネルの全てのトランザクション履歴を暗号化し、監査および紛争を効率的に解決するためのクエリ機能を含む。元帳は、チャネルの範囲に作成される。元帳は、(全ての参加者が1つの共通チャネル上で動作している場合)ネットワーク全体にわたって共有されてもよく、または特定組の参加者のみを含むように私有化されてもよい。 According to one embodiment, channels within the Hyperledger Fabric enable multiparty transactions with the high degree of privacy and confidentiality demanded by competing businesses and regulated industries exchanging assets over a common network. to An immutable shared ledger encrypts all transaction histories for each channel and includes query capabilities for efficient audit and dispute resolution. A ledger is created at the scope of the channel. The ledger may be shared across the network (if all participants are operating on one common channel) or may be privateized to include only a specific set of participants.

一実施形態によれば、ハイパーレッジャファブリックは、TLS証明書、登録証明書およびトランザクション証明書を認証するための認証局(CA)をサポートすることによって、セキュリティを実装する。パブリックキーインフラストラクチャを用いて、組織、ネットワークコンポーネント、およびエンドユーザまたはクライアントアプリケーションに関連付ける暗号証明書を作成する。したがって、より広いネットワークおよびチャネル上でデータのアクセスを制御および管理することができる。ハイパーレッジャファブリックのこの「許可」特徴は、チャネルの存在および能力と共に、多者企業システムのプライバシおよび機密性の要求を満たす。 According to one embodiment, the hyperledger fabric implements security by supporting Certificate Authorities (CA) for authenticating TLS certificates, registration certificates and transaction certificates. A public key infrastructure is used to create cryptographic certificates that are associated with organizations, network components, and end-users or client applications. Thus, access to data can be controlled and managed over wider networks and channels. This "permissive" feature of the Hyperledger Fabric, along with the presence and capabilities of channels, meet the privacy and confidentiality requirements of multi-party systems.

一実施形態によれば、ハイパーレッジャファブリックは、チェーンコードトランザクションを用いて資産を変更することができる。上述したように、チェーンコードは、1つ以上の資産と、資産を変更するためのトランザクション命令とを定義するソフトウェアである。 According to one embodiment, the hyperledger fabric can modify assets using chaincode transactions. As mentioned above, chaincode is software that defines one or more assets and transaction instructions for modifying the assets.

一体化コンセンサスメカニズムは、提案およびエンドースメントから、順序付け、検証およびコミットメントまでのハイパーレッジャファブリックのトランザクションフローにおいて、基本的な役割を有する。コンセンサスは、上述したように、ブロックを含むトランザクションセットの有効性の検証である。コンセンサスは、トランザクションブロックの順序および結果が明示的なポリシ基準チェックを満たしたときに最終的に達成される。 The unified consensus mechanism has a fundamental role in the transaction flow of the Hyperledger Fabric, from proposal and endorsement, to ordering, verification and commitment. Consensus, as described above, is a verification of the validity of the transaction set containing the block. Consensus is ultimately achieved when the order and outcome of transaction blocks satisfy explicit policy criteria checks.

図1Aは、ブロックチェーンサービスを提供するシステムのファブリックに行われたトランザクションフローを示す。より具体的には、図1Aは、一実施形態に従って、ブロックチェーンクラウドサービス(BCS)システムを示す。1において、クライアント160は、ファブリックSDK162を用いて、ファブリック認証局170、172、174にアクセスして登録する。1.1において、ファブリックCAは、登録証明書をクライアント160に送付する。2において、クライアント160は、ファブリックSDK162
を用いて、ピアコンテナ180にアクセスすることによって、エンドーサ182からの署名を要求する。2.1において、エンドーサ182は、署名済みRWセット(読み出し/書き込みセット)を返信する。3において、クライアント160のファブリックSDK162は、RWセットおよびエンドーサの署名を含む署名済みTX(トランザクション)を、オーダリングコンテナ190のオーダリングサービスに提出する。4において、オーダ(orderer)192は、TXバッチをピアコンテナ180内のコミッタ184に配信する
。オーダは、トランザクションをブロックに順序付けるノードの所定集合である。オーダリングサービスは、ピアプロセスとは無関係に存在し、先着順でネットワーク上の全てのチャネルのトランザクションを順序付ける。コミッタ184は、5および5.1において、元帳186およびワールドステート188を変更する。ファブリック認証局170を用いて、ピアコンテナ180、スマートコントラクトコンテナ166およびスマートコントラクト168、並びにオーダ192の署名および認可を確認することができる。さらに、スマートコントラクト168は、エンドーサ182と通信することができる。
FIG. 1A shows the flow of transactions made to the fabric of a system that provides blockchain services. More specifically, FIG. 1A illustrates a Blockchain Cloud Service (BCS) system, according to one embodiment. At 1, client 160 uses fabric SDK 162 to access and register with fabric certificate authorities 170 , 172 , 174 . At 1.1, Fabric CA sends a registration certificate to client 160 . 2, the client 160 uses the Fabric SDK 162
Request a signature from the endorser 182 by accessing the peer container 180 using . At 2.1, the endorser 182 returns a signed RW set (read/write set). At 3 , fabric SDK 162 of client 160 submits the signed TX (transaction) containing the RW set and the endorser's signature to the ordering service of ordering container 190 . At 4 , orderer 192 delivers the TX batch to committer 184 in peer container 180 . An order is a predetermined set of nodes that orders transactions into blocks. The ordering service exists independently of peer processes and orders transactions for all channels on the network on a first-come, first-served basis. Committer 184 modifies ledger 186 and world state 188 at 5 and 5.1. Fabric certificate authority 170 can be used to verify signatures and authorizations of peer containers 180 , smart contract containers 166 and 168 , and orders 192 . Additionally, smart contract 168 may communicate with endorsers 182 .

一実施形態において、システムは、カフカ(Kafka)クラスタをオーダリングサービス
として利用することができる。カフカは、セマンティクスの公開および加入をサポートする分散型ストリーミングサービスである。カフカクラスタは、複数のサーバ上で動作し、一連の記録をトピックと呼ばれるカテゴリに記憶する。各記録は、キー、値およびタイムスタンプを含む。したがって、カフカは、オーダリングサービスノード(OSN-n)およびカフカクラスタを含むオーダリングサービスとして使用されてもよい。オーダリングサービスクライアントは、複数のOSNに接続されてもよい。OSNは、互いに直接に通信しない。これらのオーダリングサービスノード(OSN)は、(1)クライアント認証を行い、(2)クライアントが簡単なインターフェイスを用いてチェーン1に書き込むことまたはチェーン1から読み取ることを可能にし、および(3)既存のチェーンを再構成するまたは新しいチェーンを作成するための構成トランザクションに対してトランザクションの選別および検証を行う。カフカ内のメッセージ(記録)は、トピックパーティションに書き込まれる。カフカクラスタは、複数のトピックを有してもよく、各トピックは、複数のパーティションを有してもよい。各パーティションは、継続的に付加される、順序づけられた不変のひと続きの記録である。OSNは、クライアント認証およびトランザクション選別を実行した後、特定のチェーンに所属する入来クライアントトランザクションを対応するチェーンのパーティションに中継することができる。次いで、クライアントトランザクションは、そのパーティションで実行され、全てのオーダリングサービスノードに対して共通なトランザクションの順序づけられたリストを返信することができる。
In one embodiment, the system can utilize a Kafka cluster as an ordering service. Kafka is a decentralized streaming service that supports publishing and subscription semantics. Kafka clusters run on multiple servers and store sets of recordings in categories called topics. Each record contains a key, value and timestamp. Thus, Kafka may be used as an ordering service including Ordering Service Nodes (OSN-n) and Kafka clusters. An ordering service client may be connected to multiple OSNs. OSNs do not communicate directly with each other. These Ordering Service Nodes (OSNs) (1) perform client authentication, (2) allow clients to write to or read from chain 1 using a simple interface, and (3) existing Screen and validate transactions against constituent transactions to reconfigure chains or create new chains. Messages (records) in Kafka are written to topic partitions. A Kafka cluster may have multiple topics, and each topic may have multiple partitions. Each partition is an ordered, immutable sequence of records that are continuously appended. After performing client authentication and transaction screening, the OSN can relay incoming client transactions belonging to a particular chain to the corresponding chain partitions. The client transaction can then execute in that partition and return an ordered list of common transactions to all ordering service nodes.

一実施形態によれば、各ピアは、エンドーサおよびコミッタになることができる。設定項目(例えば、CORE_PEER_ENDORSER_ENABLED)は、ピアをエンドーサにすることができる。ピアがチャネルに参加すると、このピアは、このチャネルのコミッタになる。チェーンコードがピアにインストールされると、このピアは、このチェーンコードのエンドーサ候補になる。クライアントがトランザクションを提案する場合、クライアントは、(エンドーサ候補から)エンドーサになるピアを選択することができる。 According to one embodiment, each peer can be an endorser and a committer. A configuration item (eg, CORE_PEER_ENDORSER_ENABLED) can make a peer an endorser. When a peer joins a channel, it becomes a committer for this channel. Once a chaincode is installed on a peer, this peer becomes a potential endorser of this chaincode. When a client proposes a transaction, the client can select peers (from potential endorsers) to be endorsers.

一実施形態によれば、オーダがブロックをピアに配布するための順序付けメカニズムは、以下の通りである。まず、ピア(例えば、リーダピア)は、自身のバージョン(最後のブロック番号)を送信することによって、オーダから新しいブロックを要求する。次に、オーダは、ピアのバージョンをチェックする。a)ピアのバージョンがオーダのバージョンよりも大きい場合、オーダの元帳が無くしており、イベントハブ(EventHub)から回復することができないことを示すエラーをピアに返信する(このシナリオにおいて、オーダは、適切な動作を継続することができない)。b)ピアのバージョンがオーダのバージョンより小さい場合、オーダは、RAMまたはローカルファイル内のローカル元帳からブロックを取り出し、ピアに返信する。c)両者が同様のバージョンを有する場合、オーダは
、新しいブロックが利用可能になるまで中止する。イベントハブから切り出した新しいブロックが利用可能になると、オーダは、このブロックをローカルブロックファイルまたはRAMに入れ、次に、元帳からこのブロックを読み出す配布スレッドをピアに返信する。ピアは、このブロックを入手し、ローカル元帳にコミットし、ブロックの最新バージョンを他のピアにブロードキャストすることができる。
According to one embodiment, the ordering mechanism for the order to distribute blocks to peers is as follows. First, a peer (eg, reader peer) requests a new block from the order by sending its own version (last block number). The order then checks the peer's version. a) If the peer's version is greater than the order's version, return an error to the peer indicating that the order's ledger has been lost and cannot be recovered from the EventHub (in this scenario, the order proper operation cannot continue). b) If the peer's version is less than the order's version, the order retrieves the block from its local ledger in RAM or a local file and sends it back to the peer. c) If both have similar versions, the order will stop until a new block is available. When a new block cut from the event hub becomes available, the order puts this block into a local block file or RAM and then sends back to the peer a distribution thread that reads this block from the ledger. Peers can get this block, commit it to their local ledger, and broadcast the latest version of the block to other peers.

BCSシステムアーキテクチャ
図1Bは、ブロックチェーンサービスを提供するシステムのファブリックに行われたトランザクションフローを示す。より具体的には、図1Bは、一実施形態に従って、ブロックチェーンクラウドサービス(BCS)システムを示す。図示のように、ブロックチェーンクラウドサービスコンポーネントは、例えば、オラクルPaaSサービスマネージャ(PSM)プラットフォーム上で、計算スペース120(例えば、外部計算スペース)に作成される。システムへのアクセスは、PSM API122およびブロックチェーンREST API124によって仲介される。外部計算スペース120は、負荷分散サービスLBaaS(load balancing as a service)126を利用して、入来トランザクション
を利用可能なリソースに適切に分散する。
BCS System Architecture Figure 1B shows the transaction flow made to the fabric of a system that provides blockchain services. More specifically, FIG. 1B illustrates a Blockchain Cloud Service (BCS) system, according to one embodiment. As shown, a blockchain cloud service component is created in a compute space 120 (eg, an external compute space), eg, on the Oracle PaaS Service Manager (PSM) platform. Access to the system is mediated by PSM API 122 and blockchain REST API 124 . The external compute space 120 utilizes load balancing as a service (LBaaS) 126 to distribute incoming transactions appropriately across available resources.

一実施形態によれば、BCSは、アプリケーションコンテナクラウドサービス128上のPSMプラットフォームを用いて構築されたアプリケーションコンテナ階層サービスである。BCSエンティティの各々は、別個のコンテナ上で動作する。各BCSエンティティは、1対1でアプリケーションコンテナと対応する。ブロックチェーンクラウドサービスは、上述したハイパーレッジャファブリックの特徴を実装する。基本的なファブリックネットワークを構築するコンポーネントに加えて、ブロックチェーンクラウドサービスにおいてハイパーレッジャファブリックを活用するためのいくつかのコンポーネントが開発されている。別個の挙動およびバイナリを用いて、これらのコンポーネントを配置する必要がある。クラウドスタックマネージャを用いて、ユーザに権限を与えることによって、ブループリントによってスタックと呼ばれる単一のユニットとして定義された全てのサービスを自動的に作成することができる。 According to one embodiment, BCS is an application container layer service built using the PSM platform on application container cloud service 128 . Each BCS entity runs on a separate container. Each BCS entity corresponds one-to-one with an application container. A blockchain cloud service implements the features of the Hyperledger Fabric described above. In addition to the components that build the basic fabric network, several components are being developed to leverage Hyperledger Fabric in blockchain cloud services. You need to deploy these components with separate behaviors and binaries. With the cloud stack manager, you can automatically create all services defined by a blueprint as a single unit called a stack by authorizing users.

一実施形態において、BCSは、スマートコントラクトを実行するための分散型元帳プラットフォームを実装するためのハイパーレッガファブリック実装を提供する。BCSは、コンテナ技術を利用して、システムのアプリケーションロジックを含む「チェーンコード」と呼ばれるスマートコントラクトをホストする。 In one embodiment, BCS provides a hyperlegga fabric implementation for implementing a distributed ledger platform for executing smart contracts. BCS utilizes container technology to host smart contracts called “chaincode” that contain the application logic of the system.

一実施形態によれば、ファブリックの分散型元帳プロトコルは、ピアによって実行される。ファブリックは、2種類のピアを識別する。検証ピアは、コンセンサスの実行、トランザクションの検証、および元帳の管理に関与するネットワーク上のノードである。一方、非検証ピアは、(トランザクションを発行する)クライアントを検証ピアに接続するためのプロキシとして機能するノードである。非検証ピアは、トランザクションを実行しないが、トランザクションを検証することができる。ファブリックのいくつかの重要な特徴は、即時最終性を有し、チェーンコードと呼ばれる任意のスマートコントラクトを実行する許可型ブロックチェーンを含む。ユーザによって定義されたチェーンコードのスマートコントラクトは、コンテナの中でカプセル化され、システムチェーンコードは、ピアと同様のプロセスに実行される。ファブリックは、TLS証明書、登録証明書、およびトランザクション証明書を認証するための認証局(CA)をサポートすることによって、コンセンサスプロトコルおよびセキュリティを実装する。 According to one embodiment, the fabric's distributed ledger protocol is performed by peers. The fabric distinguishes between two types of peers. A validating peer is a node on the network that participates in executing consensus, validating transactions, and managing the ledger. Non-validating peers, on the other hand, are nodes that act as proxies to connect clients (that issue transactions) to validating peers. Non-verifying peers do not execute transactions, but are able to verify transactions. Some key features of Fabric include a permissioned blockchain that has instant finality and executes arbitrary smart contracts called chaincodes. User-defined chaincode smart contracts are encapsulated in containers, and system chaincode runs in processes similar to peers. Fabric implements consensus protocols and security by supporting Certificate Authorities (CAs) for authenticating TLS certificates, registration certificates, and transaction certificates.

一実施形態によれば、BCSエンティティは、ACCS128を用いて階層化されたコンテナインスタンスで動作する。コンテナは、PSMの作成動作によって作成および/または作動される。ファブリックCAコンテナ130は、BCSファブリックCA(認証局
)コンポーネントを提供するコンテナである。BCSピアコンテナ132は、元帳コンポーネントに対して読み出し/書き込み動作を実行するために、元帳コンポーネントを管理し、チェーンコードコンテナを実行するためのBCSピアネットワークエンティティが動作するコンテナである。BCSオーダコンテナ134は、トランザクションを全てのチャネルのブロックチェーンに順序付けるためのBCSオーダが動作するコンテナである。BCSチェーンコード実行コンテナ139は、ピアエンティティによって作成され、作動されるコンテナである。コンテナにおいて、チェーンコード実行ユニットは、親ピアエンティティと通信し、資産とブロックチェーン内の資産を変更するためのトランザクション命令との符号化を実行する。
According to one embodiment, BCS entities operate with container instances layered using ACCS 128 . A container is created and/or activated by a PSM create operation. Fabric CA container 130 is a container that provides the BCS Fabric CA (Certificate Authority) component. The BCS peer container 132 is the container in which the BCS peer network entity for managing the ledger component and executing the chaincode container operates to perform read/write operations on the ledger component. The BCS order container 134 is the container in which the BCS order for sequencing transactions onto the blockchain of all channels operates. A BCS chaincode execution container 139 is a container created and operated by a peer entity. In the container, the chaincode execution unit communicates with the parent peer entity to perform the encoding of assets and transaction instructions to modify the assets in the blockchain.

一実施形態によれば、BCSチェーンコードビルダコンテナ140は、ピアエンティティによって作成され、作動されるコンテナである。チェーンコード構築環境は、コンテナに設置および展開され、チェーンコード実行ユニットは、コンテナに構築される。ファブリックSDKクライアント106は、BCSにアクセスするための機能を提供する。また、ブロックチェーンクラウドサービスは、イベントハブクラウドサービス150、クラウドストレージサービス152、およびアイデンティティサービス154を利用する。オラクル(登録商標)ストレージクラウドサービスは、BCSのストレージサービスとして使用される。 According to one embodiment, the BCS chaincode builder container 140 is a container created and operated by a peer entity. A chaincode building environment is installed and deployed in a container, and a chaincode execution unit is built in the container. Fabric SDK client 106 provides functionality for accessing the BCS. Blockchain cloud services also make use of event hub cloud service 150 , cloud storage service 152 , and identity service 154 . Oracle® Storage Cloud Service is used as a storage service for BCS.

一実施形態によれば、ドッカ/ウイーブ(Docker/Weave)141は、コンテナサービスである。コンテナは、共有オペレーティングシステム上で単独に実行できるフォーマットでソフトウェアをパッケージ化する方法である。VMとは異なり、コンテナは、完全なオペレーティングシステムをバンドルせず、その代わりに、ソフトウェアの動作に必要なライブラリおよび設定を使用してバンドルする。これによって、効率的且つ軽量な自己内蔵型システムを作成することができ、ソフトウェアが配置場所に関係なく常に同様に動作することができる。 According to one embodiment, Docker/Weave 141 is a container service. Containers are a way of packaging software in a format that can be run independently on a shared operating system. Unlike VMs, containers do not bundle a complete operating system, but instead bundle with the libraries and settings necessary for software operation. This allows the creation of an efficient, lightweight, self-contained system, ensuring that the software always behaves the same regardless of where it is located.

一実施形態によれば、各BCSインスタンスは、異なる種類のノードから構成される。BCSインスタンスは、少数(例えば、0以上)から多くのピアノードを含むことができ、少数(例えば、0)から多くのオーダノードを含むことができる。各VMは、1つのBCSインスタンスを含み、各BCSインスタンスは、1つから複数のファブリックCAノードを含む。BCSゲートウェイについて、BCSインスタンスは、少数(例えば、0)から多くのBCSゲートウェイを含むことができる。BCSコンソールは、BCSインスタンスのコンポーネントである。各BCSインスタンスは、1つのみのBCSコンソールを含む。 According to one embodiment, each BCS instance is composed of different types of nodes. A BCS instance may contain a few (eg, zero or more) to many peer nodes and may contain a few (eg, zero) to many order nodes. Each VM contains one BCS instance, and each BCS instance contains one to multiple Fabric CA nodes. For BCS Gateways, a BCS instance can contain a few (eg, zero) to many BCS Gateways. A BCS console is a component of a BCS instance. Each BCS instance contains only one BCS console.

一実施形態によれば、以下でより詳細に説明するように、BCS管理サーバ(コンソール)136は、多くの監視機能、管理機能および表示機能をBCSスタックインスタンスに提供するためのBCSコンポーネントである。以下でより詳細に説明するように、BCSゲートウェイ(RESTプロキシ)138は、新しいBCSコンポーネントであり、REST APIインターフェイスを利用者/クライアントに提供する。利用者/クライアントは、REST APIインターフェイスを用いて、ファブリックにアクセスすることによって、トランザクションを実行する。 According to one embodiment, BCS management server (console) 136 is a BCS component for providing many monitoring, management and display functions to BCS stack instances, as described in more detail below. As described in more detail below, the BCS Gateway (REST Proxy) 138 is a new BCS component that provides a REST API interface to consumers/clients. Consumers/clients perform transactions by accessing the fabric using the REST API interface.

一実施形態によれば、公衆アクセスクライアント100のPSMコンソールUI102は、プラットフォームサービスマネージャの管理を可能にする。BCSコンソールUI104は、BCS管理サーバの制御を可能にする。ファブリックSDKクライアント106、BCS RESTクライアント108、およびファブリックメンバシップクライアント110を含む様々な異なる種類のクライアントは、BCSサービスにアクセスすることができる。 According to one embodiment, the PSM console UI 102 of the public access client 100 allows administration of the platform service manager. The BCS console UI 104 allows control of the BCS management server. A variety of different types of clients can access BCS services, including fabric SDK clients 106, BCS REST clients 108, and fabric membership clients 110. FIG.

一実施形態によれば、上記に列挙した各種類のコンテナに、ブループリントを独立サービスタイプとして定義することができる。オラクルクラウドスタックマネージャは、ブループリントを用いて、単一のスタックユニットで全ての独立サービタイプの作成を自動化する。各BCSエンティティをサービスタイプとして定義する利点は、様々な実行エンティティを容易に更新および管理することである。アプリケーションコンテナ階層サービスは、4種類の動作、すなわち、作成サービス(CREATE_SERVICE)、削除サービス(DELETE_SERVICE)、スケールサービス(SCALE_SERVICE)、起動/停止/再起動(Start/Stop/Restart)をサポートする。これらの動作は、サービスごとに適用することが可能である。 According to one embodiment, blueprints can be defined as independent service types for each of the types of containers listed above. Oracle Cloud Stack Manager uses Blueprints to automate the creation of all independent service types in a single stack unit. An advantage of defining each BCS entity as a service type is to easily update and manage the various execution entities. The application container tier service supports four types of operations: CREATE_SERVICE, DELETE_SERVICE, SCALE_SERVICE, Start/Stop/Restart. These operations can be applied on a service-by-service basis.

一実施形態によれば、ハイパーレッガファブリックネットワークにおいて、オーダリングサービスコンポーネントは、アパッチカフカ(Apache Kafka)を用いて、クラッシュフォールトトレラント方法でオーダリングサービスを提供し、複数のチェーンをサポートする。したがって、BCSクラウドサービスにおいて、オーダリングサービスコンポーネントは、(カフカのパワーを処理済みストリーミングデータプラットフォームとして配布し、オラクルの残りのクラウドと一体化することができる)オラクルイベントハブクラウドサービス(OEHCS)を使用する。 According to one embodiment, in the Hyperlegga Fabric network, the ordering service component uses Apache Kafka to provide the ordering service in a crash-fault tolerant manner and support multiple chains. Therefore, in the BCS cloud service, the ordering service component uses the Oracle Event Hub Cloud Service (OEHCS), which delivers the power of Kafka as a processed streaming data platform and can be integrated with the rest of Oracle's cloud. .

図1Cは、実施形態に従って、BCSシステムを示す。より具体的には、図1Cは、BCSランタイムを示す。 FIG. 1C shows a BCS system according to an embodiment. More specifically, FIG. 1C shows the BCS runtime.

一実施形態によれば、ゲートウェイベースのアプリケーション103および/またはファブリックベースのアプリケーション105などのクライアントは、インターネット107などのネットワークおよび(後述する)クラウドゲートを含むロードバランサLBaaS126などのフロントエンドを介して、AACSインスタンス128と通信することができる。入来コールは、(図面において太い破線として示された)REST通信、または特定の状況では(図では淡い破線として示された)入来gRPC通信を含むことができる。入来REST通信は、(REST API/RESTプロキシを含み得る)ゲートウェイ138、コンソール136、または(上述した)エージェントファブリックCA130に転送されてもよい。内部コール(gRPC)に変形/変換されたREST通信は、(エージェント/ピア132、エージェント/オーダ134、チェーンコード142、およびチェーンコードビルダ140を含む)ブロックチェーンファブリック/ハイパーレッジャのインスタンスとインターフェイスすることができる。一方、入来gRPC通信は、例えば、エージェント/ピア132およびエージェント/オーダ134に直接に転送され、ブロックチェーン/ハイパーレッジャとインターフェイスすることができる。 According to one embodiment, a client, such as a gateway-based application 103 and/or a fabric-based application 105, through a network such as the Internet 107 and a front end such as a load balancer LBaaS 126 including Cloud Gate (discussed below): It can communicate with AACS instance 128 . Incoming calls can include REST communications (shown as thick dashed lines in the figure) or, in certain circumstances, incoming gRPC communications (shown as light dashed lines in the figure). Incoming REST communications may be forwarded to gateway 138 (which may include a REST API/REST proxy), console 136, or agent fabric CA 130 (described above). REST communications transformed/transformed into internal calls (gRPC) interface with instances of Blockchain Fabric/Hyperledger (including Agent/Peer 132, Agent/Order 134, Chaincode 142, and Chaincode Builder 140) be able to. Incoming gRPC communications, on the other hand, can, for example, be forwarded directly to agent/peer 132 and agent/order 134 to interface with the blockchain/hyperledger.

一実施形態によれば、ACCSインスタンスにトランザクションが行われると、ACCSインスタンスは、例えば、REST通信を介して元帳をクラウドストレージに永続化することができ、またはREST通信を介してイベントハブと通信することができる。 According to one embodiment, when a transaction is made to an ACCS instance, the ACCS instance can persist the ledger to cloud storage via REST communication, for example, or communicate with an event hub via REST communication. be able to.

一実施形態によれば、図面は、1つのACCSインスタンスのみを示しているが、当業者なら、(例えば、ゲートウェイベースのアプリケーション103および/またはファブリックベースのアプリケーション105などの)クライアントが上述したBCSランタイムを介して通信することができるACCSインスタンスが1つ以上であってもよいことを容易に理解するであろう。 According to one embodiment, the drawing shows only one ACCS instance, but those skilled in the art will appreciate that a client (eg, gateway-based application 103 and/or fabric-based application 105) may use the BCS runtime described above. It will be readily appreciated that there may be more than one ACCS instance that can communicate via.

図1Dは、一実施形態に従って、BCSシステムを示す。より具体的には、図1Dは、BCSシステム内のコンポーネント濃度、すなわち、各BCSインスタンスに対するコンポーネントの比を示す。 FIG. 1D shows a BCS system, according to one embodiment. More specifically, FIG. 1D shows the component concentrations within the BCS system, ie the ratio of components to each BCS instance.

一実施形態によれば、各BCSインスタンス100aに対して、オーダ101aは、1:Nの比で提供され、ファブリックCAメンバシップ102aは、1:Nの比で提供され、BCS RESTプロキシ103aは、1:Nの比で提供され、BCSコンソール104aは、1:1の比で提供され、ピアコンテナ105aは、1:Nの比で提供されてもよい。 According to one embodiment, for each BCS instance 100a, orders 101a are provided in a 1:N ratio, fabric CA memberships 102a are provided in a 1:N ratio, and BCS REST proxy 103a: Provided in a 1:N ratio, BCS consoles 104a may be provided in a 1:1 ratio and peer containers 105a may be provided in a 1:N ratio.

各ピアコンテナは、トランザクションをシミュレートすることができるエンドーサと、同一のピアコンテナに形成され、元帳に変更を適用することができるコミッタとを含むことができる。 Each peer container can include endorsers that can simulate transactions and committers that are formed in the same peer container and can apply changes to the ledger.

一実施形態によれば、チェーンコード109aは、ピアコンテナに対して1:Nの比で提供されてもよい。また、ストレージ106aは、ピアコンテナおよびオーダに対してN:1の比で提供されてもよい。同様に、イベントハブ107aは、ピアコンテナおよびオーダに対してN:1の比で提供されてもよい。IDCS108aは、ファブリックCAメンバシップに対してN:1の比で提供されてもよい。 According to one embodiment, chaincodes 109a may be provided to peer containers in a 1:N ratio. Storage 106a may also be provided in an N:1 ratio to peer containers and orders. Similarly, event hubs 107a may be provided in a ratio of N:1 to peer containers and orders. IDCS 108a may be provisioned in an N:1 ratio to fabric CA membership.

ブロックチェーンクラウドサービス(BCS)ゲートウェイ
一実施形態によれば、BCSゲートウェイ(BCSGW)は、ファブリックSDKを用いて、ファブリックネットワークと通信するネットワークノードを含む。BCSゲートウェイは、HTTPS REST APIをクライアント側利用者に提供することによって、クライアントアプリケーションとBCSのファブリック要素との対話を可能にする。
Blockchain Cloud Service (BCS) Gateway According to one embodiment, the BCS Gateway (BCSGW) includes network nodes that communicate with the Fabric network using the Fabric SDK. The BCS Gateway enables client applications to interact with the fabric elements of the BCS by providing an HTTPS REST API to client-side consumers.

図2は、一実施形態に従って、ブロックチェーンクラウドサービスシステムのゲートウェイを示す。図2に示すように、エンドユーザ200は、HTTPSを用いてアプリケーションアダプタ202と対話することによって、認証および認可を行う。アプリケーションアダプタ202は、クラウドゲート212(すなわち、LBaaS)などのLBaaSへのHTTPSを用いて、パブリッククラウド210にアクセスする。負荷分散サービス(LBaaS)は、入来トランザクションに対して実行される。クラウドゲート212は、HTTPSを用いて、トランザクションをBCSゲートウェイ222に渡す。BCSゲートウェイは、BCSファブリック220へのインターフェイスを提供する。このインターフェイスは、gRPCリモートプロシージャコールプロトコルを使用して通信する。 FIG. 2 shows a gateway of a blockchain cloud service system, according to one embodiment. As shown in FIG. 2, end user 200 authenticates and authorizes by interacting with application adapter 202 using HTTPS. Application adapter 202 accesses public cloud 210 using HTTPS to LBaaS such as Cloud Gate 212 (ie, LBaaS). A load balancing service (LBaaS) is performed for incoming transactions. Cloud Gate 212 passes the transaction to BCS Gateway 222 using HTTPS. A BCS gateway provides an interface to the BCS fabric 220 . This interface communicates using the gRPC remote procedure call protocol.

一実施形態によれば、クラウドゲート212は、例えばOAuth2およびOpenIDコネクト規格を用いてウェブブラウザおよびREST APIリソースを保護する逆方向プロキシ「アクセス強制モジュール」または「ポリシ強制ポイント」である。IDCSは、内部でクラウドゲートを使用することによって、自身の管理UIおよびREST API(「IDCSウェブ層」と呼ばれる)を保護する。別の応用として、クラウドゲートOTDは、非IDCSまたはスタンドアローンとして知られるセミサポート/暫定セットアップにおいて、追加のインスタンスとして配置される。 According to one embodiment, Cloud Gate 212 is a reverse proxy "access enforcement module" or "policy enforcement point" that protects web browser and REST API resources using, for example, the OAuth2 and OpenID Connect standards. IDCS protects its administrative UI and REST API (referred to as the “IDCS web tier”) by using Cloud Gate internally. As another application, Cloudgate OTD is deployed as an additional instance in a semi-support/provisional setup known as non-IDCS or standalone.

一実施形態によれば、OAuth/OpenIDベースの認証は、HTTP要求が「ユーザエージェント」ヘッダを含む場合、すなわち、HTTP要求がブラウザまたはモバイルアプリのようなUIからの場合にトリガされる(UIクライアントの)ユーザブラウザフローをサポートする。クラウドゲートは、ユーザにクレデンシャル(ユーザ名/パスワード)を提示し、クレデンシャルを検証し、その後、ブラウザからの後続のHTTP要求によって使用され得るOAuthセッションクッキを作成してユーザに返送する。また、OAuth/OpenIDベースの認証は、(プログラムクライアントの)リソースサーバフローをサポートする。このフローは、HTTP要求が認証「ベアラ」トークンヘッダを含む場合にトリガされる。クラウドゲートは、認証のためにトークンを検証する。 According to one embodiment, OAuth/OpenID-based authentication is triggered when an HTTP request contains a "user-agent" header, i.e. when the HTTP request is from a UI like a browser or mobile app (UI client ) to support the user browser flow. Cloud Gate presents the user with credentials (username/password), validates the credentials, then creates and returns to the user an OAuth session cookie that can be used by subsequent HTTP requests from the browser. OAuth/OpenID based authentication also supports resource server flow (of program clients). This flow is triggered when an HTTP request contains an authentication "bearer" token header. Cloud Gate validates the token for authentication.

一実施形態によれば、HTTP基本認証のために、クレデンシャル(ユーザ名/パスワード)は、各HTTP要求のHTTP認証「基本」ヘッダに含まれなければならない。クラウドゲートは、各HTTP要求のクレデンシャルを検証する。この方法は、UIクライアントおよびプログラムクライアントの両方に適用される。 According to one embodiment, for HTTP basic authentication, the credentials (username/password) must be included in the HTTP authentication "basic" header of each HTTP request. Cloud Gate verifies the credentials of each HTTP request. This method applies to both UI clients and programmatic clients.

一実施形態によれば、マルチトークンフローは、特定のHTTP要求をカバーする自己適応方法である。HTTP要求が認証「基本」ヘッダを含む場合、クラウドゲートは、HTTP基本挙動を行う。HTTP要求が認証「ベアラ」ヘッダを含む場合、クラウドゲートは、リソースサーバフローと同様の挙動を行う。 According to one embodiment, multi-token flow is a self-adaptive method that covers specific HTTP requests. If the HTTP request contains an authentication "basic" header, Cloud Gate performs HTTP basic behavior. If the HTTP request contains an authentication "bearer" header, Cloud Gate behaves similarly to the resource server flow.

一実施形態において、BCSコンソールブラウザクライアントは、ユーザブラウザフローを利用する。実施形態において、システムは、BCSコンソールおよびゲートウェイプログラムクライアントに対して、クラウドゲートマルチトークン認証方法を使用することができる。プログラムクライアントは、HTTP基本認証を介してBCS REST APIを呼び出すことができる。 In one embodiment, the BCS console browser client utilizes the user browser flow. In embodiments, the system may use the Cloud Gate multi-token authentication method for BCS console and gateway program clients. A program client can call the BCS REST API via HTTP basic authentication.

一実施形態によれば、BCSゲートウェイ222は、元帳への読み取り/書き込み動作を実行するために、元帳を管理し且つチェーンコードコンテナを実行するネットワークエンティティであるピア224と通信する。ピアは、メンバによって所有され、管理される。BCSゲートウェイ222およびピア224は、オーダ226と通信する。オーダは、オーダリングサービスを提供する。オーダは、トランザクションをブロックに順序付けるノードの所定の集合である。オーダリングサービスは、ピアプロセスとは無関係に存在し、先着順でネットワーク上の全てのチャネルのトランザクションを順序付ける。ピア224およびオーダ226は、ファブリック認証局228と通信する。また、BCSゲートウェイ222は、BCS管理サーバ/コンソール230へのアクセスを提供する。 According to one embodiment, the BCS gateway 222 communicates with peers 224, which are network entities that manage the ledger and execute chaincode containers, to perform read/write operations to the ledger. Peers are owned and managed by members. BCS gateways 222 and peers 224 communicate with orders 226 . Order provides ordering services. An order is a predetermined set of nodes that orders transactions into blocks. The ordering service exists independently of peer processes and orders transactions for all channels on the network on a first-come, first-served basis. Peers 224 and orders 226 communicate with fabric authority 228 . BCS gateway 222 also provides access to BCS management server/console 230 .

一実施形態によれば、BCSは、オラクルクラウドなどのクラウドシステムに配置される。ゲートウェイは、ACCSコンテナに動作することができる。ゲートウェイは、ステートレスである。古いゲートウェイを強制終了して、新しいゲートウェイを起動することによって、ゲートウェイを更新することができる。BCSゲートウェイは、クライアントクエリを許可することができ、またはRESTfulプロトコルを介してファブリックチェーンコードを呼び出すことができる。BCSゲートウェイは、クライアントがHTTPS/RESTfulサービスを介してオラクルクラウド内のファブリックネットワークにアクセスすることを可能にする。BCSゲートウェイは、ファブリックSDKを用いてファブリックネットワークと通信するネットワークノードである。ファブリック内の通信は、gRPCを通信プロトコルとして使用する。BCSゲートウェイは、HTTPS/RESTful APIをクライアント側のクライアントに提供する。REST APIは、クライアントがファブリックSDKを用いてファブリック内で関数を呼び出すことを可能にする。 According to one embodiment, the BCS is deployed in a cloud system such as Oracle cloud. The gateway can operate on ACCS containers. Gateways are stateless. Gateways can be updated by killing the old gateway and starting the new one. The BCS Gateway can allow client queries or invoke Fabric chaincode via RESTful protocol. The BCS Gateway allows clients to access the fabric network in the Oracle cloud via HTTPS/RESTful services. A BCS Gateway is a network node that uses the Fabric SDK to communicate with the Fabric network. Communication within the fabric uses gRPC as the communication protocol. The BCS gateway provides HTTPS/RESTful APIs to client-side clients. The REST API allows clients to invoke functions within Fabric using the Fabric SDK.

一実施形態によれば、ゲートウェイは、ファブリックユーザに対して1対1の関係で提供されてもよい。全てのゲートウェイユーザは、1つの組織に所属し、全てのゲートウェイユーザは、1つのゲートウェイ内の1つのファブリックユーザにマッピングされる。1つのゲートウェイは、1つのみのファブリックユーザを構成する。 According to one embodiment, gateways may be provided in a one-to-one relationship to fabric users. All gateway users belong to one organization, and all gateway users map to one fabric user within one gateway. One gateway constitutes only one fabric user.

一実施形態によれば、IDCSは、ゲートウェイ証明書およびゲートウェイユーザ(「アプリアダプタ」)証明書を発行する。これらの証明書は、組織CAによって署名される。ゲートウェイおよびゲートウェイユーザは、組織CAと共に配置されるため、HTTPSを用いて互いに検証することができる。 According to one embodiment, IDCS issues gateway certificates and gateway user (“app adapter”) certificates. These certificates are signed by an organizational CA. Gateways and gateway users are co-located with an organizational CA so they can verify each other using HTTPS.

一実施形態によれば、各エンドユーザは、「アプリアダプタ」を介してBCSGWにアクセスする。認証は、3段階である。すなわち、エンドユーザ200は、アプリアダプタ202によって認証され、アプリアダプタ202は、BCSゲートウェイ222によって、クライアント証明書を用いて認証され、BCSゲートウェイは、ファブリックネットワーク220内のピア224およびオーダ226によって認証される。 According to one embodiment, each end-user accesses the BCSGW through an "app adapter". Authentication has three stages. That is, end user 200 is authenticated by App Adapter 202 , App Adapter 202 is authenticated by BCS Gateway 222 with a client certificate, and BCS Gateway is authenticated by Peer 224 and Order 226 in Fabric Network 220 . be.

一実施形態によれば、1つのコンテナは、1つのトムキャット(tomcat)サーバを稼働し、1つのファブリックユーザにマッピングされる1つのBCSゲートウェイを配置する。複数のアプリアダプタは、1つのゲートウェイに接続することができる。 According to one embodiment, one container runs one tomcat server and deploys one BCS gateway mapped to one fabric user. Multiple App Adapters can be connected to one gateway.

一実施形態によれば、異なるゲートウェイは、異なるファブリックユーザに関連付けられてもよい。1つのゲートウェイに接続するアプリアダプタのエンドユーザは、1つのファブリックユーザにマッピングされてもよい。 According to one embodiment, different gateways may be associated with different fabric users. An end user of an App Adapter connecting to one gateway may be mapped to one fabric user.

一実施形態によれば、BCSGWは、オラクルクラウドで実行され、設定は、JSONファイルを用いてBCSコンソールによって設定される。管理者ユーザは、ピア、チャネルおよびチェーンコードの一部をゲートウェイに公開することができる。管理者ユーザは、コンソールを介してゲートウェイを起動する。ゲートウェイは、起動後に設定をリフレッシュしない。管理者ユーザは、チェーンコードのエンドーサを設定することができる。エンドユーザは、ポリシを知らず、ゲートウェイは、チェーンコードポリシをチェックしない。 According to one embodiment, the BCSGW runs on the Oracle cloud and the configuration is set by the BCS console using a JSON file. Admin users can expose peers, channels and parts of chaincode to the gateway. An admin user launches the gateway via the console. Gateway does not refresh configuration after startup. Admin users can configure chaincode endorsers. End-users are unaware of policies and gateways do not check chaincode policies.

一実施形態によれば、BCSGWは、BCSコンソールによって起動される。BCSコンソールは、BCSGW設定ファイルを作成し、BCSGWパッケージを用いて新しいゲートウェイを起動する。起動時に、起動スクリプトは、BCSGW設定ファイルをチェックし、トムキャット用の設定ファイル(例えば、トムキャット設定ファイル)を変更してから、トムキャットを起動する。トムキャットは、BCSGWのスレッドを起動し、このスレッドは、各チャネルの設定ファイルを読み出すことによって、チャネルオブジェクトを作成し、オーダ、ピアおよびイベントハブとの接続を作成する。異なるチャネルは、オーダ/ピア/イベントハブへの異なる接続を有する。イベントハブは、ピアの第2のポートである。ゲートウェイは、このポートに接続することによって、トランザクションの結果を取得する。トムキャットサーブレットコンテナは、クライアント要求をリッスンすることができる。チェーンコードクエリ方法の場合、BCSGWは、要求をチャネルの全てのピアに送信し、第1の結果のみを使用する。チェーンコード呼び出し方法の場合、BCSGWは、要求をチャネルの全てのエンドサに送信し、全てのエンドサのうちの1つが成功を返信する場合、BCSGWは、トランザクションをチャネルの全てのオーダに送信する。 According to one embodiment, the BCSGW is launched by the BCS console. The BCS console creates the BCSGW configuration file and launches the new gateway using the BCSGW package. At startup, the startup script checks the BCSGW configuration file and modifies the configuration file for Tomcat (eg, Tomcat configuration file) before starting Tomcat. Tomcat launches a BCSGW thread that creates channel objects and connections with orders, peers and event hubs by reading each channel's configuration file. Different channels have different connections to the Order/Peer/Event Hub. The event hub is the peer's second port. The gateway gets the result of the transaction by connecting to this port. Tomcat servlet container can listen for client requests. For the chaincode query method, the BCSGW sends the request to all peers of the channel and uses only the first result. For the chaincode call method, the BCSGW sends the request to all endors of the channel, and if one of all the endors returns success, the BCSGW sends the transaction to all orders of the channel.

一実施形態によれば、非同期APIをサポートすることができる。ピアは、2つのポートを開放することができる。1つのポートは、イベントを交換するためのポートである。ゲートウェイは、ピアのイベントポートに接続することができる。ゲートウェイは、1つのチャネルの1つのイベントポートに接続すればよい。通常のクライアントAPIは、同期している。トランザクションは、数秒かかる場合があり、クライアントは、応答を待つ必要がある。非同期イベントをクライアントに送信することは、V1プランに含まれない。同期トランザクションAPIに加えて、ゲートウェイは、非同期トランザクションAPI「非同期呼び出し」を提供する。 According to one embodiment, an asynchronous API can be supported. A peer can open two ports. One port is for exchanging events. A gateway can connect to a peer's event port. A gateway may connect to one event port of one channel. A normal client API is synchronous. A transaction may take several seconds and the client has to wait for a response. Sending asynchronous events to clients is not included in the V1 plan. In addition to the synchronous transaction API, the gateway provides an asynchronous transaction API "asynchronous call".

一実施形態において、非同期APIは、以下のように動作することができる。クライアント要求のパラメータをチェックした後、ゲートウェイは、トランザクションIDをクライアントに返信する。したがって、クライアントは、起動されたトランザクションが終了
していないことを認識することができる。ゲートウェイは、トランザクションを継続して処理するために、バックグラウンドスレッドを起動する。クライアントは、未完了トランザクションを追跡することができる。ゲートウェイは、クライアントがトランザクションIDを用いてトランザクション状態をクエリするための「トランザクション」APIを提供することができる。
In one embodiment, an asynchronous API can operate as follows. After checking the parameters of the client request, the gateway returns the transaction ID to the client. Therefore, the client can recognize that the started transaction has not ended. The gateway launches a background thread to continue processing the transaction. Clients can track incomplete transactions. The gateway can provide a "transaction" API for clients to query the transaction state using the transaction ID.

一実施形態によれば、クライアントログインをサポートすることができる。BCSGWは、HTTPSプロトコルをサポートすることができ、安全でないHTTPアクセスを拒否することができる。BCSGWは、証明書を用いてアプリアダプタまたはSALTを認証する。アプリアダプタは、エンドユーザを認証することができる。HTTPSクライアント証明書認証を使用するように、トムキャットを設定する必要がある。キーストアファイルは、クライアントがBCSコンソールによって提供されることを検証するためのBCSGW証明書およびCA証明書を含む。BCSゲートウェイは、クライアントがアクセスするためのBCS RESTインターフェイスを提供する。 According to one embodiment, client login may be supported. The BCSGW can support the HTTPS protocol and deny insecure HTTP access. BCSGW authenticates the App Adapter or SALT with a certificate. The App Adapter can authenticate the end user. Tomcat needs to be configured to use HTTPS client certificate authentication. The keystore file contains the BCSGW certificate and CA certificate to verify that the client is served by the BCS console. The BCS Gateway provides a BCS REST interface for clients to access.

永続化-ストレージクラウド
一実施形態によれば、ハイパーレッジャファブリックプロジェクトコードは、元帳をローカルファイルシステムに格納するためのブロック、および他のランタイムデータ、例えば、ブロックインデックス、ワールドステート、履歴、および(全ての元帳IDおよび回復ステータスを保持する)元帳プロバイダデータベースを同一のローカルファイルシステムに格納されているレベルDBに格納するためのブロック含む。ACCSにおいて、コンテナファイルシステムは、一過性である。これは、何らかのハードウェア障害によって、コンテナが停止され、新しいVM上で新しいコンテナが再起動される場合、ファイルシステムの内容が失われる可能性があることを意味する。全てのコンテナが失われた場合、元帳を回復することができない。したがって、元帳データをACCSコンテナの外部に格納しなければならない。このため、永続化ソリューションは、上述したハイパーレッジャファブリックのコンポーネントによって使用されるオブジェクト格納サービスとして提供される。
Persistence - Storage Cloud According to one embodiment, the Hyperledger Fabric project code stores blocks and other runtime data such as block index, world state, history, and ( Contains a block to store the Ledger Provider database (which holds all Ledger IDs and recovery status) in the level DB stored in the same local file system. In ACCS, the container file system is ephemeral. This means that if some hardware failure causes a container to be stopped and a new container to be restarted on a new VM, the contents of the filesystem may be lost. If all containers are lost, the ledger cannot be recovered. Therefore, the ledger data must be stored outside the ACCS container. As such, a persistence solution is provided as an object store service used by the components of the Hyperledger Fabric described above.

一実施形態によれば、BCSにおいて、永続化ソリューションは、ストレージクラウドサービス、例えば、オラクルストレージクラウドサービスを利用する。元帳は、オブジェクトストアにバックアップされる。元帳は、コンテナファイルシステムに書き込まれないが、オブジェクトストレージにバックアップされる。インデックスおよびワールドステートは、コンテナファイルシステムを用いて記録され、コンテナを再起動する場合、ストレージクラウドサービスから回復されることができる。オラクルストレージクラウドは、インフラストラクチャサービス(IaaS)製品であり、ファイルおよび非構造化データを記憶するためのエンタープライズ級の大規模なオブジェクト記憶ソリューションを提供する。 According to one embodiment, in BCS, the persistence solution utilizes storage cloud services, such as Oracle storage cloud services. The ledger is backed up in an object store. The ledger is not written to the container file system, but backed up to object storage. The index and world state are recorded using the container file system and can be restored from the storage cloud service when restarting the container. Oracle Storage Cloud is an Infrastructure as a Service (IaaS) product that provides an enterprise-grade large-scale object storage solution for storing files and unstructured data.

図3は、一実施形態に従って、ブロックチェーンクラウドサービスシステムの永続化を示す。図3に示すように、ACCSインスタンス300は、複数のコンテナを含む。コンテナは、例えば、元帳/ブロックチェーン312、314を有するオーダコンテナ302、304を含む。元帳/ブロックチェーン312および314は、RESTインターフェイスを介してオブジェクトストレージ320にバックアップされる。オブジェクトストレージ320は、例えば、クラウドストレージサービスであってもよい。 FIG. 3 illustrates persistence of a blockchain cloud service system, according to one embodiment. As shown in FIG. 3, ACCS instance 300 includes multiple containers. Containers include, for example, order containers 302 , 304 with ledgers/blockchains 312 , 314 . Ledger/blockchain 312 and 314 are backed up to object storage 320 via a REST interface. Object storage 320 may be, for example, a cloud storage service.

オブジェクトストレージは、各オーダの元帳を永続化するために使用される。オーダがブロックをピアに配布するための現行メカニズムは、以下の通りである。まず、ピアは、自身のバージョン(最後のブロック番号)を送信することによって、オーダから新しいブロックを要求する。次に、オーダは、ピアのバージョンをチェックする。a)ピアのバー
ジョンがオーダのバージョンよりも大きい場合、オーダの元帳が無くしており、イベントハブ(EventHub)から回復することができないことを示すエラーをピアに返信する(このシナリオにおいて、オーダは、適切な動作を継続することができない)。b)ピアのバージョンがオーダのバージョンより小さい場合、オーダは、RAMまたはローカルファイル内のローカル元帳からブロックを取り出し、ピアに返信する。c)両者が同様のバージョンを有する場合、オーダは、新しいブロックが利用可能になるまで遮断する。イベントハブから切り出した新しいブロックが利用可能になると、オーダは、このブロックをローカルブロックファイルまたはRAMに入れ、次に、元帳からこのブロックを読み出す配布スレッドをピアに返送する。ピアは、このブロックを入手し、ローカル元帳にコミットし、ブロックの最新バージョンを他のピアにブロードキャストすることができる。
Object storage is used to persist the ledger for each order. The current mechanism for orders to distribute blocks to peers is as follows. First, a peer requests a new block from the order by sending its own version (last block number). The order then checks the peer's version. a) If the peer's version is greater than the order's version, return an error to the peer indicating that the order's ledger has been lost and cannot be recovered from the EventHub (in this scenario, the order proper operation cannot continue). b) If the peer's version is less than the order's version, the order retrieves the block from its local ledger in RAM or a local file and sends it back to the peer. c) If both have similar versions, the order blocks until a new block is available. When a new block cut from the event hub becomes available, the order puts this block into a local block file or RAM and then sends back to the peer a distribution thread that reads this block from the ledger. Peers can get this block, commit it to their local ledger, and broadcast the latest version of the block to other peers.

一実施形態によれば、上記のプロセスによって、オーダまたはイベントハブのいずれかは、全てのブロックを永続化することができる。上述したように、イベントハブは、時間制限保持をサポートする。イベントハブがブロックの保存を実行することができる場合、オーダは、元帳タイプをRAMまたはファイルに設定することができる。オーダが再起動され、元帳が失われた場合、オーダは、イベントハブから記録を再生し、バッチメッセージをブロックに切断することによって、元帳を再構築することができる。イベントハブが時間制限保持のみをサポートする場合、いったんオーダが再起動され、元帳が失われると、イベントハブ内の最初の記録が元帳の真の記録ではないため、元帳を正しく再構築することはできない。この場合、オーダは、チャネル情報を含む最初のブロックが失われ、バージョン番号(最後のブロック番号)も正しくないため、古いチャネルを起動することができない。 According to one embodiment, the above process allows either order or event hub to persist all blocks. As mentioned above, Event Hubs support time bound holds. If the event hub can perform block saving, the order can set the ledger type to RAM or file. If an order is restarted and the ledger is lost, the order can rebuild the ledger by playing recordings from the event hub and cutting batch messages into blocks. If the Event Hub only supports time bound hold, once an order is restarted and the ledger is lost, it will not be possible to rebuild the ledger correctly because the first record in the Event Hub is not the true record of the ledger. Can not. In this case, the order cannot activate the old channel because the first block containing the channel information is missing and the version number (last block number) is also incorrect.

一実施形態によれば、各オーダは、全てのチャネルIDをオブジェクトストレージに永続化すると共に、各ブロックをオラクルストレージに保存することができる。ピアは、チャネル情報を有するジェネシスブロック(genesis block)のみを永続化する。他のブロ
ックデータが失われると、ピアは、オーダから他のブロックデータを読み取ることができる。
According to one embodiment, each order can persist all channel IDs to object storage and save each block to oracle storage. Peers only persist genesis blocks with channel information. If other block data is lost, the peer can read other block data from the order.

一実施形態によれば、ACCSインスタンス300は、元帳316およびインデックス326を含むピアコンテナ306と、元帳318およびインデックス328を含むピアコンテナ308とを含むことができる。ピアは、5種類のランタイムデータ、すなわち、トランザクションログ(ブロックファイル)、ブロックファイルインデックス(レベルDB)、元帳プロバイダDB(レベルDB)、状態データベース(レベルDBまたはカウチDB)、および履歴(レベルDB)を生成する。全てのトランザクションデータは、ローカルファイル内のリンク付きブロックとしてトランザクションログに格納され、オラクルストレージクラウドサービスに永続化される。元帳プロバイダDBは、全ての元帳IDおよびステータスをレベルDBに永続化する。元帳IDは、ピアが所属するチャネルを識別するための特有IDであり、オラクルストレージクラウドサービスに保存されなければならない。実行時に、ピアは、他のものを自動的に回復することができ、ローカルファイルシステムに保存することができる。 According to one embodiment, ACCS instance 300 may include peer container 306 containing ledger 316 and index 326 and peer container 308 containing ledger 318 and index 328 . Peers have five types of runtime data: transaction log (block file), block file index (level DB), ledger provider DB (level DB), state database (level DB or couch DB), and history (level DB). to generate All transaction data is stored in the transaction log as linked blocks in local files and persisted to the Oracle Storage Cloud Service. The Ledger Provider DB persists all Ledger IDs and statuses to the Level DB. Ledger ID is a unique ID to identify the channel to which the peer belongs and must be stored in the Oracle Storage Cloud Service. At runtime, peers can automatically recover others and save them to the local file system.

一実施形態によれば、オラクルストレージクラウドサービスは、ファイルをオブジェクトにアップロードするまたはオブジェクトからファイルをダウンロードするためのREST APIを提供する。新しいブロックを作成する場合、まず、従来と同様にブロックをローカルブロックファイルに書き込むが、各ファイルに1つのみのブロックを書き込むことで異なる。次に、このブロックファイルをオブジェクトとしてオラクルストレージにアップロードする。アップロードが失敗した場合、ローカルファイルの変化は、ロールバックされ、エラーを発信者に返信する。 According to one embodiment, the Oracle Storage Cloud Service provides a REST API for uploading files to or downloading files from objects. When creating a new block, first write the block to the local block file as before, but with the difference that only one block is written to each file. Then upload this block file as an object to Oracle storage. If the upload fails, the local file changes are rolled back and an error sent back to the originator.

一実施形態によれば、オーダがブロックファイルインデックスの最新チェックポイントを更新するときに、その情報をオラクルストレージに永続化してから、ローカルレベルDBを更新する。この操作が失敗した場合、エラーを発信者に返信することができる。この情報は、ブロックファイルインデックスの回復に使用される。オラクルストレージにおいて、各ピアおよびオーダは、MSP IDおよびノードIDの組み合わせからなる固有のコンテナ名を有する。オブジェクト名は、プレフィックスとしてのチャネル名とブロックファイル名との組み合わせである。さらなる詳細は、オラクルストレージの命名規則を参照する。 According to one embodiment, when an order updates the latest checkpoint of the block file index, it persists that information to Oracle storage and then updates the local level DB. If this operation fails, an error can be sent back to the originator. This information is used to recover the block file index. In Oracle storage, each peer and order has a unique container name consisting of a combination of MSP ID and node ID. The object name is a combination of the channel name as a prefix and the block file name. See Oracle Storage Naming Conventions for further details.

一実施形態によれば、オプションとして、元帳プロバイダDBをオラクルストレージに保存することができる。元帳プロバイダDBが更新されると、レベルDBの全体をオラクルストレージクラウドサービスに複製することができる。このファイルが非常に小さく且つ更新が頻繁ではないため、複製によるオーバーヘッドを無視することができる。コンテナを再起動する場合、オラクルストレージクラウドサービスからコンテナをダウンロードすることができる。新しいコンテナからオーダを再起動する場合、まず、オーダは、ストレージオブジェクトからチャネルIDをダウンロードし、その後、オーダは、チャネルIDに従って、ストレージから最新のチェックポイントを取得する。次に、オーダは、最初のブロックから最後のブロックまでのブロックインデックスを回復する。この間、ブロックファイルは、1つずつダウンロードされる。その後、オーダは、状態DBおよび履歴DBを回復する。新しいコンテナからピアを再起動する場合、まず、ピアは、元帳プロバイダDBをダウンロードし、その後、全ての元帳IDを取得することができる。次に、ピアは、元帳IDに従って、ストレージから関連するジェネシスブロックを取得する。ピアは、ジェネシスブロック内の設定で開始し、クエストをオレンダに送信することによって、他のブロックデータを取得する。ピアは、これらのブロックを入手した後、ブロックインデックス、状態DBおよび履歴DBを回復する。 According to one embodiment, the ledger provider DB can optionally be stored in Oracle storage. When the Ledger Provider DB is updated, the entire Level DB can be replicated to the Oracle Storage Cloud Service. Since this file is very small and infrequently updated, the replication overhead is negligible. If you restart the container, you can download the container from Oracle Storage Cloud Service. When restarting an order from a new container, first the order downloads the channel ID from the storage object, then the order gets the latest checkpoint from the storage according to the channel ID. The order then recovers the block indices from the first block to the last block. During this time, the block files are downloaded one by one. The order then restores the state DB and history DB. When restarting a peer from a new container, first the peer can download the ledger provider DB and then get all the ledger IDs. The peer then retrieves the relevant genesis block from storage according to the ledger ID. Peers start with settings in the genesis block and get other block data by sending quests to Orenda. After getting these blocks, the peer recovers the block index, state DB and history DB.

一実施形態によれば、ローカルブロックファイルは、読み取りキャッシュとして機能する。クエリは、まずローカルからデータを読み取り、データがローカルに存在しない場合、オブジェクトストレージからデータをダウンロードする。元帳のほかに、チェーンコードのソースコードをオラクルストレージに永続化する必要がある。チェーンコードを現行のファブリックにインストールした後、ソースコードは、符号化され、ピアに格納される。ピアは、各呼び出しまたはインスタンスのチェーンコードコンテナをチェックし、コンテナが存在しない場合、ソースコードからコンテナを再構築する。したがって、各チェーンコードをインストールするたびに、ソースコードをオラクルストレージにアップロードすることができ、ディスク障害からピアを再起動するときに、オラクルストレージからソースコードをダウンロードすることができる。 According to one embodiment, a local block file acts as a read cache. Queries first read the data from local, and if the data does not exist locally, download the data from object storage. Besides the ledger, the chaincode source code needs to be persisted in Oracle storage. After installing the chaincode on the current fabric, the source code is encoded and stored on the peer. Peers check the chaincode container for each invocation or instance, and rebuild the container from the source code if the container does not exist. Therefore, each chaincode installation can upload the source code to the oracle storage, and when the peer restarts from a disk failure, the source code can be downloaded from the oracle storage.

BCS:SDKベース設定ファイルの操作および作成後の配置
一実施形態によれば、設定ファイルおよび配置機能は、ピア、オーダ、CAサーバ、およびチェーンコードを含むアプリケーションを配置または更新するときに、アプリケーションに関する設定を配置、生成、更新、および取得する。これらの機能は、BCSコンソール(Node.js)およびファブリックコンテナ(ピア/オーダ/チェーンコードコンテナ
)の両方に常駐する。UIから要求されると、これらの機能は、設定を取得/更新し、必要に応じてSDK APIを呼び出すことによって、設定を変更する。BCSコンソールバックエンドの一部としてのこのコンポーネントは、BCSコンソールUI、IDCSバックエンドSDK、および全てのBCSアプリケーションと対話することによって、UIを操作するためSDKを提供し、要求された設定を取得/更新する。また、このコンポーネントは、BCSアプリケーションの作成を補助する。BCS作成コンポーネントは、BCSアプリケーションを、PSMを用いて作成されたVMのドッカ(docker)コンテナに配置する。この特徴は、BCSコンソールUIのSDK APIを実装し、BCS作成コ
ンポーネントは、後期作成段階において、BCSアプリケーション構成を取得または更新し、配置する。作成システムは、後期作成段階において、CAサーバ、オーダ、ピアなどのBCSアプリケーションをドッカ/スウォーム(swarm)に配置する。VMは、起動時
に、起動スクリプトを呼び出すことによって、後期作成作業およびVM初期作業を行う。
BCS: SDK-Based Configuration File Manipulation and Post-Creation Deploy According to one embodiment, configuration files and deployment functions are used to deploy or update an application, including peers, orders, CA servers, and chaincodes. Deploy, generate, update, and retrieve settings. These functions reside in both the BCS console (Node.js) and the fabric container (peer/order/chaincode container). When requested by the UI, these functions get/update settings and change settings by calling SDK APIs as needed. This component as part of the BCS Console Backend provides SDKs to manipulate the UI and retrieve/get requested settings by interacting with the BCS Console UI, the IDCS Backend SDK, and all BCS applications. Update. This component also assists in creating BCS applications. The BCS authoring component deploys the BCS application into a docker container in a VM created using PSM. This feature implements the SDK API of the BCS Console UI, and the BCS authoring component retrieves or updates and deploys the BCS application configuration during the late authoring phase. The production system deploys BCS applications such as CA servers, orders and peers into a docker/swarm in the late production stage. When the VM starts up, it does late creation work and VM early work by calling startup scripts.

一実施形態によれば、設定ファイルは、ピア、オーダ、ファブリックCA、およびBCSゲートウェイを含むファブリックコンポーネントに提供される。BCSアプリケーションパッケージ、設定、およびチェーンコードは、クライアントのストレージクラウドサービスに保存される。 According to one embodiment, configuration files are provided to fabric components including peers, orders, fabric CAs, and BCS gateways. BCS application packages, settings, and chaincodes are stored in the client's storage cloud service.

一実施形態によれば、作成システムは、全てのリソースの割り当てを行う。リソースは、VM、ネットワーク、およびストレージを含む。 According to one embodiment, the production system performs all resource allocations. Resources include VMs, networks, and storage.

一実施形態によれば、作成システムは、全てのリソース割り当て情報をストレージサービスに保存する。この情報は、VM番号および関連するネットワークアドレス/アカウント証明、各VM内のBCSアプリケーションの番号および種類、公衆IPおよび内部IPを含む。また、作成システムは、(VM間でアクセス可能な)コンテナ用の十分な内部IPアドレスを有する。 According to one embodiment, the production system stores all resource allocation information in a storage service. This information includes VM number and associated network address/account credentials, number and type of BCS applications within each VM, public and internal IPs. Also, the production system has sufficient internal IP addresses for containers (accessible between VMs).

一実施形態によれば、BCS作成コンポーネントが作成作業を完了した場合、VM起動スクリプトは、起動してスウォームを呼び出すことによってアプリケーションコンテナを配置し、コンテナ起動シェルスクリプトは、コンテナ内で初期動作を実行する。 According to one embodiment, when the BCS authoring component has completed its authoring work, the VM startup script deploys the application container by launching and invoking Swarm, and the container startup shell script performs initial operations within the container. do.

一実施形態によれば、BCSコンソールは、作動すると、ストレージサービスから設定を取得し、UIからのユーザ入力をストレージサービスに保存し、その後、再起動コマンドをスウォームに送信する。 According to one embodiment, when the BCS console runs, it retrieves settings from the storage service, saves user input from the UI to the storage service, and then sends a reboot command to the swarm.

一実施形態によれば、必要なセキュリティ証明書は、IDCSに保存されてもよく、IDCSから取得されてもよい。 According to one embodiment, the required security credentials may be stored in IDCS or obtained from IDCS.

一実施形態によれば、BCSコンソールバックエンドは、スウォームを用いて、BCSアプリケーションと通信することができる。 According to one embodiment, the BCS console backend can use Swarm to communicate with the BCS application.

一実施形態によれば、BCSアプリケーションコンテナが起動されると、BCSアプリケーションは、設定の詳細を収集することによって、アプリケーション種類(ピア、チェーンコードコンテナまたは他のもの)を判断し、必要な設定をロードすることができる。 According to one embodiment, when the BCS application container is started, the BCS application determines the application type (peer, chaincode container or other) by gathering configuration details and sets the required configuration. can be loaded.

一実施形態によれば、このコンポーネントは、設定を更新し、BCSアプリケーション起動シェルコードを提供する。BCSによる設定ファイルの取得/更新動作は、いくつかのステップを含む。まず、BCSコンソールは、起動されると、ストレージから設定を取得し、更新を必要とする場合、設定(シェルおよびnode.js)をストレージに保存する。
BCSアプリケーションコンテナが起動されると、まず、(各ドッカコンテナ内の)起動スクリプトが起動し、その後、アプリケーションの種類に関する設定を取得し、IDCS(シェル)からアプリ証明書を取得する。BCSコンソールUIは、BCSアプリケーションを再起動する場合、コンテナ内のアプリケーションを再起動するためのメッセージをドッカ/スウォームに送信する。
According to one embodiment, this component updates settings and provides BCS application launch shellcode. The operation of retrieving/updating configuration files by the BCS includes several steps. First, when the BCS console is started, it retrieves the settings from storage and saves the settings (shell and node.js) to storage when it needs to be updated.
When a BCS application container is started, first the startup script (in each docker container) is started, then it gets the settings for the application type and gets the app certificate from IDCS (shell). If the BCS Console UI restarts the BCS application, it will send a message to docker/swarm to restart the application in the container.

一実施形態によれば、BCSコンソールは、ステートレスであり、起動されると、全てのBCSインスタンス設定を収集し、BCSアプリケーションに接続すると共に、BCSアプリケーションを監視することができる。設定は、バックエンドAPIを介してストレ
ージサービスから取得される。設定が変更されると、BCSコンソールは、バックエンドAPIを呼び出すことによって、設定をストレージサービスに保存し、関連するアプリケーションを再起動する。クライアントがBCSコンソールUIを介して設定項目を変更すると、UIは、設定をキー/値データにエンコードし、バックエンドコードは、それをファイルに変換し、ストレージサービスに保存する。BCSコンソールは、BCSアプリケーションを監視、起動および停止することができる。起動コマンドおよび停止コマンドは、ドッカ/スウォームAPIを用いて、この機能を実現する。
According to one embodiment, the BCS console is stateless, and once started it can collect all BCS instance settings, connect to BCS applications, and monitor BCS applications. The settings are retrieved from the storage service via the backend API. When the settings are changed, the BCS console saves the settings to the storage service and restarts the associated applications by calling backend APIs. When a client changes a setting item through the BCS console UI, the UI encodes the setting into key/value data, and the backend code converts it to a file and saves it to the storage service. The BCS console can monitor, start and stop BCS applications. The start and stop commands use the docker/swarm API to achieve this functionality.

ファブリックネットワークの配置
一実施形態によれば、ファブリックネットワークは、以下のエンティティ、すなわち、ピア、クライアント、オーダリングサービス、およびこれらのエンティティ間の通信を容易にするためのプロトコルセットを含む。組織は、ファブリックネットワークの関係者を構成する論理エンティティまたは企業である。ファブリックネットワークは、複数の参加組織を有する。メンバは、ネットワークの固有のルート証明書を所有する法的に独立するエンティティである。ピアノードおよびアプリケーションクライアントなどのネットワークコンポーネントは、メンバにリンクされる。各組織は、1つ以上のメンバを有してもよい。1つの組織は、オーダおよびピアの両方を構成することができ、オーダのみまたはピアのみを構成することができる。
Deploying the Fabric Network According to one embodiment, the fabric network includes the following entities: peers, clients, ordering services, and a set of protocols to facilitate communication between these entities. An organization is a logical entity or enterprise that makes up the fabric network participants. A fabric network has multiple participants. A member is a legally independent entity that owns a network's unique root certificate. Network components such as peer nodes and application clients are linked to members. Each organization may have one or more members. An organization can configure both orders and peers, only orders or only peers.

ファブリックネットワークを配置するための第1のステップは、参加者を定義することである。このステップは、ファブリックネットワークの帯域外で行われる。ファブリックネットワークの全ての参加組織は、ネットワークの構成、例えば、オーダノードを構成する組織またはピアノードを構成する組織を協議し、決定する。オーダノードを構成する各組織は、オーダサーバのルート証明書を公開する。ピアノードを構成する各組織は、ピアサーバのルート証明書を公開する。クライアントを含む各組織は、クライアントのルート証明書を公開する。クライアントは、1つの組織においてピアから異なるメンバに分けることができる。 The first step in deploying a fabric network is to define participants. This step takes place out-of-band on the fabric network. All participants in the fabric network negotiate and determine the composition of the network, eg, which organization constitutes the order node or which organization constitutes the peer node. Each organization that composes an Order Node publishes the root certificate of the Order Server. Each organization that makes up a peer node publishes the peer server's root certificate. Each organization that contains a client publishes the client's root certificate. Clients can be separated from peers to different members in an organization.

一例として、4つのバンク(バンク1、バンク2、バンク3、およびバンク4)は、バンク1およびバンク2によって所有されているオーダノードを含むオーダリングサービスを用いて、ブロックチェーンネットワークを配置するとする。バンク1は、このネットワークのオーダのみを構成する。各バンクは、ファブリックネットワークの組織である。すなわち、バンク1は、1つのメンバ、オーダ(ルート証明書1)を有する。バンク2は、3つのメンバ、すなわち、クライアント(ルート証明書21)、ピア(ルート証明書22)、およびオーダ(ルート証明書23)を有する。バンク3は、2つのメンバ、すなわち、クライアント(ルート証明書31)およびピア(ルート証明書32)を有する。バンク4は、2つのメンバ、すなわち、クライアント(ルート証明書41)およびピア(ルート証明書42)を有する。 As an example, suppose four banks (Bank 1, Bank 2, Bank 3, and Bank 4) deploy a blockchain network with an ordering service that includes Order Nodes owned by Bank 1 and Bank 2. Bank 1 constitutes only the orders of this network. Each bank is an organization of fabric networks. That is, Bank 1 has one member, Order (Root Certificate 1). Bank 2 has three members: client (root certificate 21), peer (root certificate 22), and order (root certificate 23). Bank 3 has two members: client (root certificate 31) and peer (root certificate 32). Bank 4 has two members: client (root certificate 41) and peer (root certificate 42).

参加者を定義した後、オーダおよびピアの証明書を作成する。各オーダまたはピアは、それ自体を識別するための(秘密キーおよび署名証明書)対を必要とする。各メンバは、ルート証明書を用いて、それ自体のファブリックCAサーバを構成および起動し、CLIまたはSDKを用いて、CAサーバに要求することによって、当該メンバの各オーダ/ピアサーバの(秘密キーおよび署名証明書)を作成することができる。BCSは、証明書を作成することができるファブリックCAサーバを提供する。しかしながら、ファブリックCAサーバは、証明書を作成するための唯一の手段ではない。ユーザは、他のCAシステムを用いて、証明書を作成することができる。したがって、ファブリックCAサーバは、ファブリックネットワークの必須コンポーネントではない。 After defining the participants, create the order and peer certificates. Each order or peer needs a (private key and signature certificate) pair to identify itself. Each member configures and starts its own fabric CA server with the root certificate, and uses the CLI or SDK to make requests to the CA server for each order/peer server of that member (private key and signing certificate). BCS provides a fabric CA server that can create certificates. However, the Fabric CA server is not the only means for creating certificates. Users can use other CA systems to create certificates. Therefore, the Fabric CA server is not a required component of the Fabric network.

オーダおよびピアの証明書を作成した後、システムチャネルを作成することによって、
ファブリックネットワークを起動する。オーダリングサービス(従って1つのファブリックネットワーク)のためにシステムチャネルが1つのみであるため、作成される(より正確には起動される)システムチャネルは、第1のチャネルである。システムチャネルは、ファブリックネットワークの以下の構成、すなわち、1つのオーダリングサービスと、1つ以上のコンソーシアムとを定義する。1つのオーダリングサービスは、1つ以上のオーダ組織(各組織は、MSP IDおよび証明書を含む)と、オーダリングサービスの属性(例えば、ソロまたはカフカなどの種類、オーダのアドレス、バッチサイズ/タイムアウト)と、(チャネルを作成するための)ポリシとを含む。各コンソーシアムは、1つ以上のピア組織を含み、このファブリックネットワークに参加することを望む各ピア組織は、コンソーシアムのうちの1つにおいて定義されなければならない。各組織は、MSP ID、証明書およびアンカーピアを含む。
After creating the order and peer certificates, by creating a system channel:
Bring up the fabric network. Since there is only one system channel for the ordering service (and therefore one fabric network), the system channel created (more precisely activated) is the first channel. A system channel defines the following constructs of the fabric network: one ordering service and one or more consortia. An ordering service consists of one or more ordering organizations (each organization includes an MSP ID and certificate) and attributes of the ordering service (e.g. type such as Solo or Kafka, order address, batch size/timeout). and policies (for creating channels). Each consortium contains one or more peer organizations, and each peer organization that wishes to join this fabric network must be defined in one of the consortia. Each organization contains an MSP ID, a certificate and an anchor peer.

ファブリックネットワークのシステムチャネルが起動された後、システムチャネルのジェネシスブロック(チェーン内の第1のブロック)が作成される。オーダリングサービスの管理者は、システムチャネル用のジェネシスブロックを作成する。ジェネシスブロックは、設定ファイル生成(configtxgen)ツールによって(ファイルとして)作成されても
よく、またはオーダ起動時に(一時的に)作成されてもよい。設定ファイル生成ツールを用いてジェネシスブロックを作成する場合、入力としての設定ファイルconfigtx.yamlを
作成しなければならない。このファイルは、以下の情報、すなわち、ファブリックネットワーク内の全てのオーダ組織のルート証明書と、全てのピア組織のルート証明書と、オーダの種類、アドレス、バッチタイムアウト、バッチサイズおよびカフカを含むオーダリングサービスの属性と、ポリシと、チャネル配信要求を認証および検証するためのチャネルリーダと、チャネルブロードキャスト要求を認証および検証するチャネルライタと、チェーン作成要求を評価するためのチェーン作成者と、チャネル再構成要求を認証および検証するための管理者とを含む。
After the fabric network system channel is activated, the system channel genesis block (the first block in the chain) is created. The ordering service administrator creates genesis blocks for system channels. The genesis block may be created (as a file) by the configuration file generation (configtxgen) tool, or it may be created (temporarily) at order activation. If you use the configuration file generator to create the genesis block, you must create the configuration file configtx.yaml as input. This file contains the following information: root certificates of all ordering organizations in the fabric network, root certificates of all peer organizations, order type, address, batch timeout, batch size and ordering Service attributes, policies, channel readers for authenticating and validating channel delivery requests, channel writers for authenticating and validating channel broadcast requests, chain creators for evaluating chain creation requests, channel reconfiguration and administrators for authenticating and validating requests.

オーダリングサービスの管理者は、設定ファイルおよびジェネシスブロックを用いて、オーダサーバを起動する。換言すれば、ジェネシスブロックを用いて、システムチャネルを作成する。オーダサーバを起動するために、リッスンアドレス/ポート、元帳種類、ローカルMSP(秘密キー、署名証明書)を含む設定ファイルorderer.yamlが必要である。オーダリングサービスを提供する各組織は、(ジェネシスブロックを指定することなく)自身のオーダサーバを起動する。 The ordering service administrator uses the configuration file and the genesis block to start the order server. In other words, the genesis block is used to create system channels. To start the order server, we need a configuration file orderer.yaml which contains the listening address/port, ledger type, local MSP (private key, signing certificate). Each organization that offers ordering services launches its own order server (without specifying a genesis block).

ピアノードを構成する各組織は、ピアを識別するためのローカルMSP(秘密キー、署名証明書)、およびリッスンアドレス/ポート、ブートストラップピア、ゴシップ属性などのピア属性を特定するための各ピアの設定ファイル(default location/etc/hyperledger/fabric/core.yaml)を用意して、ピアサーバを起動する。 Each organization that configures a peer node has a local MSP (private key, signing certificate) to identify the peer, and settings for each peer to identify peer attributes such as listen address/port, bootstrap peer, gossip attributes, etc. Prepare a file (default location/etc/hyperledger/fabric/core.yaml) and start the peer server.

オーダおよびピアを起動した後、(チャネルを作成する権利を有する)チャネル管理者は、ファブリックCLIまたはSDKを用いて、次の入力、すなわち、(システムチャネルに既に定義された)1つのコンソーシアム、およびコンソーシアム内の1つ以上のピア組織を含むチャネルを作成するようにオーダに要求する。各参加組織は、ファブリックCLIまたはSDKを用いて、ピアの一部を新しく作成されたチャネルに参加させる。 After launching orders and peers, the channel administrator (who has rights to create channels) uses the fabric CLI or SDK to enter the following: one consortium (already defined in the system channel), and Request an order to create a channel that includes one or more peer organizations in the consortium. Each participating organization uses the fabric CLI or SDK to join some of its peers to the newly created channel.

実施例:BCS上のファブリックネットワークの配置
図4は、BCS上のファブリックの例示的な配置を示す。
Example: Placement of Fabric Network on BCS FIG. 4 shows an exemplary placement of Fabric on the BCS.

より具体的には、図面および説明は、BCS上でファブリックネットワークを配置するためのステップを説明する。この例において、4つのエンティティA、B、C、およびDがファブリックネットワークを作成および参加することを望んでいる。4つのエンティテ
ィは、オフラインで議論し、様々なエンティティの責任を決定する。各エンティティは、OPC上で1つ以上のBCSインスタンスを作成する。
More specifically, the drawings and description describe steps for deploying a fabric network on a BCS. In this example, four entities A, B, C, and D wish to create and join a fabric network. The four entities discuss offline and decide on the responsibilities of the various entities. Each entity creates one or more BCS instances on OPC.

一実施形態によれば、エンティティAは、オーダとピアの両方を提供する。エンティティAは、2つのインスタンス、すなわち、オーダのオーダ_組織1 401と、ピアのピア_組織1 421とを作成する。エンティティAは、ファブリックネットワークの作成にも関与する(なお、オーダのみは、ファブリックネットワークを作成することができる)。オーダリングサービス400は、オーダ_組織1 401と、オーダ_組織2 402と、カフカクラスタ410とを含む。 According to one embodiment, entity A provides both orders and peers. Entity A creates two instances: Order_Org1 401 for Order and Peer_Org1 421 for Peer. Entity A also participates in the creation of fabric networks (note that only orders can create fabric networks). The ordering service 400 includes Order_org 1 401 , Order_org 2 402 , and Kafka cluster 410 .

一実施形態によれば、エンティティBは、オーダとピアの両方を提供する。エンティティBは、2つのインスタンス、すなわち、オーダのオーダ_組織2 402と、ピアのピア_組織2 422とを作成する。 According to one embodiment, entity B provides both orders and peers. Entity B creates two instances: Order_Org2 402 for Order and Peer_Org2 422 for Peer.

一実施形態によれば、エンティティCは、ピアのみを提供する。エンティティCは、インスタンスピア_組織3 423を作成する。 According to one embodiment, entity C only provides peers. Entity C creates instance peer_org3 423 .

一実施形態によれば、エンティティDは、ピアのみを提供する。エンティティDは、インスタンスピア_組織4 424を作成する。 According to one embodiment, entity D only provides peers. Entity D creates instance Peer_Organization 4 424 .

一実施形態によれば、各BCSインスタンスの管理者は、BCSコンソールから、現在の組織のCA証明書および管理者証明書を収集する。各ピア組織の管理者は、現在のピア組織のアンカーピアを特定し、アンカーピアのIP/ポートを収集する。4つのエンティティは、オフラインで、収集された全ての情報を互いに交換する。 According to one embodiment, the administrator of each BCS instance collects the current organization's CA certificate and administrator certificate from the BCS console. Each peer organization's administrator identifies the current peer organization's anchor peer and collects the anchor peer's IP/port. The four entities exchange all collected information with each other offline.

一実施形態によれば、オーダ_組織1の管理者は、BCSコンソールから、前のステップで収集された情報、すなわち、各組織のCA証明書および管理者証明書書、および各ピア組織のアンカーピアを用いてシステムチャネルを作成することによって、ファブリックネットワークを作成する。バックエンド作業は、ファブリックツールを呼び出すことによって、ジェネシスブロックを作成するステップと、ジェネシスブロックを用いてオーダを設定することによって、システムチャネルを作成するステップとを含む。 According to one embodiment, the administrator of Order_Org1 can access from the BCS console the information collected in the previous step, i.e. each organization's CA certificate and admin certificate, and each peer organization's anchor Create a fabric network by creating a system channel with peers. The backend work includes creating genesis blocks by calling fabric tools and creating system channels by setting orders with the genesis blocks.

一実施形態によれば、各ピア組織の管理者は、BCSコンソールから、収集された他の組織のCA/管理者証明書を追加するように全てのピアノードの設定を更新し、全てのピアノードを再起動することによって、ファブリックネットワークに参加する。 According to one embodiment, each peer organization's administrator updates all peer nodes' settings to add the other organization's CA/administrator certificates that have been collected from the BCS console, and updates all peer nodes to Join the fabric network by rebooting.

一実施形態によれば、新しい組織がシステム内の既存のファブリックネットワークに参加することを可能にする方法が提供される。また、ファブリックネットワークを作成/参加するため、例えばファブリックを形成する前のオフラインアクションを保護するために、参加者間の通信を容易にし且つユーザが取り扱い簡単な方法を提供することができる。 According to one embodiment, a method is provided for enabling new organizations to join existing fabric networks in a system. It can also provide a method that facilitates communication between participants and is easy for users to handle in order to create/join a fabric network, e.g. to protect offline actions prior to forming the fabric.

チェーンコード(スマートコントラクト)コンテナ
一実施形態によれば、上述したように、チェーンコードは、1つ以上の資産と、資産を変更するためのトランザクション命令(ビジネスロジック)とを定義するソフトウェアを含むことができる。チェーンコードは、キー値対または他の状態データベース情報を読み取るまたは変更するための規則を実行する。チェーンコードの機能は、元帳の現在の状態データベースに対して実行され、トランザクション提案によって作動される。チェーンコードの実行は、ネットワークに提出され、全てのピア上の元帳に適用される一組のキー値の書き込み(書き込みセット)をもたらす。
Chaincode (Smart Contract) Container According to one embodiment, as described above, a chaincode includes software that defines one or more assets and transaction instructions (business logic) for modifying the assets. can be done. Chaincode implements rules for reading or modifying key-value pairs or other state database information. Chaincode functionality runs against the ledger's current state database and is driven by transaction proposals. Execution of the chaincode results in a set of key-value writes (writeset) that are submitted to the network and applied to the ledger on all peers.

一実施形態によれば、情報の一貫した更新をサポートするためおよび特定の元帳機能(トランザクション、クエリなど)を可能にするために、ブロックチェーンネットワークは、スマートコントラクトを使用して、制御された元帳アクセスを提供する。スマートコントラクトは、情報をカプセル化し、ネットワーク全体にわたってその情報を簡単に複製することだけでなく、参加者がトランザクションの特定部分を自動的に実行できるように書かれてもよい。 According to one embodiment, to support consistent updates of information and to enable certain ledger functions (transactions, queries, etc.), the blockchain network uses smart contracts to create a controlled ledger. provide access; Smart contracts may be written to not only encapsulate information and easily replicate that information across the network, but also allow participants to automatically execute certain parts of the transaction.

一実施形態によれば、ハイパーレッジャファブリックスマートコントラクトは、チェーンコードで書かれ、ブロックチェーンの外部のアプリケーションが元帳と対話する必要があるときに、そのアプリケーションによって呼び出される。殆どの場合、チェーンコードは、トランザクションログではなく、ワールドステートである元帳のデータベースコンポーネントのみと対話する(例えば、データベースを検索する)。 According to one embodiment, Hyperledger Fabric smart contracts are written in chaincode and invoked by applications external to the blockchain when they need to interact with the ledger. In most cases, the chaincode only interacts with the database component of the ledger, which is world state (eg, searches the database), not the transaction log.

一実施形態によれば、ハイパーレッジャファブリックは、ドッカエンジンを用いてチェーンコードを構築し、チェーンコードを配置し、チェーンコードを実行する。本節は、ファブリックのアーキテクチャ、およびBCSのACCS階層化モデルに統合する方法を説明する。 According to one embodiment, the Hyperledger Fabric uses the Docker Engine to build chaincode, deploy chaincode, and execute chaincode. This section describes the architecture of the fabric and how it integrates into the ACCS layering model of the BCS.

一実施形態によれば、ファブリックは、以下のようにユーザチェーンコードを配置し、管理する。まず、一過性CC環境コンテナにおいてチェーンコードを構築する。次に、チェーンコードをソースコードとしてビルダコンテナに転送し、静的にリンクされた必要なライブラリ(「Java(登録商標)ビルド」)でコンパイルし、バイナリとしてピアに返送する。静的なリンクは、実際のチェーンコードコンテナをできる限り小さくすることを可能にする。その後、チェーンコードイメージおよびコンテナを構築し、起動する。チェーンコードコンテナは、ピアが停止するまたはチャネルが終了するまで、動作し続ける。チェーンコードコンテナがクラッシュするまたは強制終了される場合、イメージが存在すれば、次の呼び出しで再起動される。この設計の場合、1つのピアおよびチャネルは、1つのチェーンコードドッカコンテナを有する。チェーンコードは、ピアに明示的にインストールされる。すなわち、チェーンコードは、必ずしも、チャネルに参加している全てのピアにインストールされなくてもよい。 According to one embodiment, Fabric deploys and manages user chaincodes as follows. First, build the chaincode in the ephemeral CC environment container. The chaincode is then transferred as source code to the builder container, compiled with the required statically linked libraries (“Java build”), and sent back to the peer as binary. Static linking allows the actual chaincode container to be as small as possible. Then build and start the chaincode image and container. The chaincode container will continue to run until the peer dies or the channel terminates. If the chaincode container crashes or is killed, the image will be restarted on the next call if it exists. For this design, one peer and channel has one chaincode docker container. Chaincode is explicitly installed on peers. That is, the chaincode does not necessarily have to be installed on all peers participating in the channel.

一実施形態によれば、ユーザは、ピア、オーダ、およびチェーンコードなどのコンポーネントを容易に配信することができるファブリックネットワークをACCS階層コンテナに配置することができる。ローカルブロックストレージが信用できる回復方法ではなく、ACLSコンテナのチェーンコードバイナリをクラウドストレージに保存する必要があるため、チェーンコードランタイム環境コンテナ(ccenv)は、動的に作動される。チェーンコードバイナリは、構築されると、コンテナクラッシュの場合に回復するためにクラウドストレージにアップロードされる。 According to one embodiment, users can place fabric networks that can easily distribute components such as peers, orders, and chaincodes into the ACCS hierarchical container. The chaincode runtime environment container (ccenv) is dynamically activated because the chaincode binaries in the ACLS container need to be stored in cloud storage, as local block storage is not a reliable recovery method. Once built, the chaincode binary is uploaded to cloud storage for recovery in case of a container crash.

一実施形態によれば、各チェーンコードの相互作用は、チェーンコードの様々な機能に対応する。唯一の制約は、チェーンコードをインスタンス化するまで、呼び出すまたはクエリすることができないことである。また、呼び出されると、動作していないチェーンコードコンテナは、再起動される。 According to one embodiment, each chaincode interaction corresponds to different functions of the chaincode. The only restriction is that it cannot be called or queried until after instantiating the chaincode. Also, when called, chaincode containers that are not running will be restarted.

図5は、一実施形態に従って、チェーンコードアーキテクチャを示す。より具体的には、図5は、一実施形態に従って、クライアント530が、ACCS環境500において、チェーンコードをインストールし、トランザクションを実行することを可能にするチェーンコードアーキテクチャを示す。ステップ1において、クライアント530は、チェーンコードのソースコードをピア1 510にインストールする。まず、一過性CC環境コンテナにおいてチェーンコードを構築する。クライアント530が「インストール」を実行
するときに、クライアント530は、ビルダエージェントを自動的に起動するビルダコンテナを起動し、ビルダコンテナが初期化を終了するのを待って、ピアを介してチェーンコードのソースコードをビルダコンテナに送信する(ステップ2)。ビルダエージェントは、チェーンコード(Javaビルド)を構築する。チェーンコードをソースコードとしてビルダコンテナに転送し、静的にリンクされた必要なライブラリ(「Javaビルド」)でコンパイルし、バイナリとしてピアに返送する。静的なリンクは、実際のチェーンコードコンテナをできる限り小さくすることを可能にする。チェーンコードパッケージ(tgzファイル)は、いったん構築されると、クラウドストレージ560にアップロードされる(ステップ3)。ビルダエージェントは、後で参照するために、クラウド記憶位置をピアに送信する(ステップ4.2)。
FIG. 5 illustrates a chaincode architecture, according to one embodiment. More specifically, FIG. 5 illustrates a chaincode architecture that enables a client 530 to install chaincode and perform transactions in the ACCS environment 500, according to one embodiment. In step 1 , client 530 installs the chaincode source code on peer 1 510 . First, build the chaincode in the ephemeral CC environment container. When the client 530 performs an "install", the client 530 launches a builder container that automatically launches the builder agent, waits for the builder container to finish initializing, and installs the chaincode through the peer. Submit the source code to the builder container (step 2). The builder agent builds the chaincode (Java build). Transfer the chaincode as source code to the builder container, compile it with the required statically linked libraries (“Java build”), and send it back to the peer as a binary. Static linking allows the actual chaincode container to be as small as possible. Once built, the chaincode package (tgz file) is uploaded to cloud storage 560 (step 3). The builder agent sends the cloud storage location to the peer for later reference (step 4.2).

一実施形態によれば、ピア510は、次いで、PSM REST APIを用いて、CC環境をACLS(アクセス制御リスト)コンテナ520として起動する。チェーンコードイメージおよびコンテナを構築し、起動する。チェーンコードコンテナは、ピアが停止するまたはチャネルが終了するまで、動作し続ける。ピア510は、チェーンコードID、(チェーンコード登録用)セルフIPおよびクラウドストレージロケーションをACLSコンテナに渡し開始する(ステップ4.1)。ピアは、チェーンコードの起動または設定期間の後のタイムアウトを待つ。CC環境は、チェーンコードを起動する。起動されると、チェーンコードは、それ自体をピアに登録する(ステップ4.3)。これによって、登録時に確立された接続を用いて、トランザクションにおいてチェーンコードを呼び出すことができる(ステップ5)。 According to one embodiment, the peer 510 then launches the CC environment as an ACLS (Access Control List) container 520 using the PSM REST API. Build and start chaincode images and containers. The chaincode container will continue to run until the peer dies or the channel terminates. Peer 510 starts passing the chaincode ID, self IP (for chaincode registration) and cloud storage location to the ACLS container (step 4.1). The peer waits for chaincode startup or timeout after a set period of time. The CC environment launches chaincode. Once activated, the chaincode registers itself with the peer (step 4.3). This allows the chaincode to be invoked in a transaction using the connection established during registration (step 5).

一実施形態によれば、ビルダコンテナ550は、単純なREST型サーバを含む。ビルダコンテナ550は、ビルダエージェント553を含む。ビルダコンテナ550は、起動されると、チェーンコードを構築するための要求をリッスンする。ビルダコンテナ550が構築リスト、例えば、ベース64で符号化したソースコードをボディとするPOST呼び出しを受信すると、ベース64は、ソースコードを復号し、チェーンコードソースコードをローカルファイルシステムに保存する。ビルダエージェント553は、ソースコードに対して「Javaビルド」を行う。「Javaビルド」が成功した場合、ビルダエージェント553は、バイナリをパッケージ化し、クラウドストレージ560にアップロードする。また、ビルダエージェントは、チェーンコード位置をピアに送信する。「Javaビルド」が失敗した場合、エージェントは、エラーおよび理由をピアに送信する。 According to one embodiment, builder container 550 includes a simple REST server. Builder container 550 includes builder agent 553 . When the builder container 550 is started, it listens for requests to build chaincodes. When builder container 550 receives a build list, eg, a POST call with a body of base 64 encoded source code, base 64 decodes the source code and saves the chaincode source code to the local file system. Builder agent 553 performs a “Java build” on the source code. If the “Java build” succeeds, builder agent 553 packages and uploads the binary to cloud storage 560 . The builder agent also sends the chaincode location to the peer. If the "Java build" fails, the agent will send the error and reason to the peer.

BCS管理コンソール
上述したように、BCSの各インスタンスは、管理コンソールを含み、管理コンソールを用いて、BCSゲートウェイ、BCSノード、およびBCSチャネルを含むBCSインスタンスを管理および監視することができる。
BCS Management Console As described above, each instance of BCS includes a management console, which can be used to manage and monitor the BCS instance, including BCS gateways, BCS nodes, and BCS channels.

一実施形態によれば、管理コンソールを提供するためのシステムは、スクリプトランタイム環境、例えばNode.jsに動作するウェブアプリケーションを含むことができる。ウェ
ブアプリケーションは、グラフィカルユーザインターフェイスフレームワークおよびウェブフレームワーク上で構築することができ、BCSインスタンス内の様々なノードまたはサービスと通信するための複数のカスタム機能またはAPIを含むことができる。ウェブアプリケーションは、BCSインスタンス内の様々なノードまたはサービスからの情報をビューオブジェクトに読み込み、コンソールユーザインターフェイスに表示することができる。また、管理コンソールは、BCSインスタンス内の1つ以上のノードを起動、停止、および更新するための機能を管理者に提供することができる。管理REST APIセットは、ウェブアプリケーションによって提供された機能と同様の機能をサポートするために、スクリプトランタイム環境によって提供されてもよく、またはスクリプトランタイム環境によってアクセスされてもよい。
According to one embodiment, a system for providing an administrative console can include a web application running in a scripting runtime environment, such as Node.js. Web applications can be built on graphical user interface frameworks and web frameworks and can include multiple custom functions or APIs for communicating with various nodes or services within a BCS instance. A web application can load information from various nodes or services within the BCS instance into view objects and display it in the console user interface. The management console can also provide administrators with the ability to start, stop, and update one or more nodes within the BCS instance. The administrative REST API set may be provided by or accessed by the scripting runtime environment to support functionality similar to that provided by web applications.

一実施形態によれば、システムは、ウェブアプリケーションによって提供されたウェブインターフェイスを介して、または管理REST APIセットを用いて書かれたカスタムRESTクライアントアプリケーションを介して、関連するBCSインスタンスを容易に監視および管理することができる。 According to one embodiment, the system can easily monitor and manage associated BCS instances via a web interface provided by a web application or via a custom REST client application written using the management REST API set. can be managed.

一実施形態によれば、BCS管理者は、管理コンソールを介して、1つ以上のピアノード、1つ以上のオーダノード、1つ以上のファブリックCAノード、1つ以上のBCSゲートウェイノード、チャネル、および1つ以上のチェーンコードを含む、BCSインスタンスの複数のコンポーネントを管理することができる。 According to one embodiment, a BCS administrator can, via an administrative console, configure one or more peer nodes, one or more order nodes, one or more fabric CA nodes, one or more BCS gateway nodes, channels, and Multiple components of a BCS instance can be managed, including one or more chaincodes.

一実施形態によれば、BCSコンポーネントを管理することは、コンポーネントの起動、コンポーネントの停止、コンポーネントの追加、コンポーネントの除去、コンポーネント属性の閲覧/編集、コンポーネント性能メトリックの閲覧、コンポーネントログの閲覧を含む動作のうち、1つ以上の動作を実行することを含むことができる。 According to one embodiment, managing BCS components includes starting components, stopping components, adding components, removing components, viewing/editing component attributes, viewing component performance metrics, viewing component logs. The actions may include performing one or more actions.

図6は、一実施形態に従って、管理コンソールを提供するためのシステムを示す。
図示のように、BCS管理コンソール136は、アプリケーションコンテナクラウドサービス128内のBCSインスタンスのコンポーネントとして提供されてもよい。BCS管理コンソールは、Node.jsによって提供されるランタイム環境であるスクリプトランタ
イム環境605に動作するウェブアプリケーションであってもよい。
FIG. 6 illustrates a system for providing a management console, according to one embodiment.
As depicted, BCS management console 136 may be provided as a component of a BCS instance within application container cloud service 128 . The BCS administration console may be a web application running in the scripting runtime environment 605, which is the runtime environment provided by Node.js.

一実施形態によれば、管理コンソールは、ファブリックノードSDK611、複数のファブリックカスタム機能613、および複数のACCS API615を含むことができる。SDK、カスタム機能、およびACCS APIを用いて、分散型ストリーミングサービス(例えば、カフカ)603を含み得るファブリックネットワーク601と通信することができる。管理コンソールは、ビューオブジェクト623をさらに含み、ビューオブジェクト623は、BCSコンソールUI104またはRESTクライアント604に表示される必要がある情報を含むことができ、またはBCSコンソールUIまたはRESTクライアントから管理コンソールに渡される必要がある情報を含むことができることができる。ファブリックノードSDK611は、ファブリックネットワークからの情報をBCSコンソールUIまたはRESTクライアントからの情報にマッピングするように動作することができる。 According to one embodiment, the management console may include a fabric node SDK 611 , fabric custom functions 613 and ACCS APIs 615 . SDKs, custom functions, and ACCS APIs can be used to communicate with fabric network 601 , which can include distributed streaming services (eg, Kafka) 603 . The management console further includes view objects 623, which can contain information that needs to be displayed in the BCS console UI 104 or REST client 604 or passed from the BCS console UI or REST client to the management console. It can contain the information you need. The fabric node SDK 611 is operable to map information from the fabric network to information from the BCS console UI or REST client.

一実施形態によれば、BCS管理コンソールは、GUIフレームワーク(例えば、JET
)617およびウェブフレームワーク(例えば、express)619をさらに含むことがで
きる。GUIフレームワークは、管理コンソールウェブアプリケーションにおいて使用され得る様々なユーザインターフェイス(UI)コンポーネントおよび要素を提供することができる。例えば、UIコンポーネントおよび要素を用いて、フォームを作成し、データを収集し、データを視覚化することができる。ウェブフレームワークは、JAVAスクリプト(登録商標)で書かれることができ、ウェブアプリケーションおよびモバイルアプリケーションを開発するための一組のロバストな特徴を含むウェブアプリケーションフレームワークを提供することができる。
According to one embodiment, the BCS management console uses a GUI framework (e.g., JET
) 617 and a web framework (eg, express) 619 . A GUI framework can provide various user interface (UI) components and elements that can be used in a management console web application. For example, UI components and elements can be used to create forms, collect data, and visualize data. The web framework can be written in JAVA Script and can provide a web application framework that includes a set of robust features for developing web and mobile applications.

図7A~7Bは、一実施形態に従って、BCSコンソールUI内のユーザインターフェイスの例を示す。 7A-7B illustrate example user interfaces within the BCS console UI, according to one embodiment.

一実施形態によれば、図7Aに示すように、BCS概要711をダッシュボード内に表示することができる。概要は、組織の数、ピアの数、オーダの数、チャネルの数、およびチェーンコードの数を含むことができる。 According to one embodiment, a BCS overview 711 can be displayed within a dashboard, as shown in FIG. 7A. A summary can include the number of organizations, the number of peers, the number of orders, the number of channels, and the number of chaincodes.

一実施形態によれば、BCSインスタンスの健康情報713を表示することができる。健康情報は、視覚的に示され、数字で表示される。例示のUIは、トランザクションの実行714および元帳の概要715を表示することもできる。 According to one embodiment, the health information 713 of the BCS instance can be displayed. Health information is presented visually and displayed numerically. The example UI can also display transaction executions 714 and ledger summary 715 .

一実施形態によれば、図7Bは、BCSインスタンス内の全てのノードの情報を示す。例えば、例示のUIは、2つのピア、1つのオーダ、1つのファブリックCA、および(BCSゲートウェイノード内の)1つのRESTプロキシを含む合計5つのノードを示す。概要UI717は、ノードの名前723、ノード725の経路情報、ノード729の種別、ノード731の状態情報を表示する。例示のUIは、管理者がノードを追加するためのボタン721と、ノードを選別するための1つ以上のドロップダウンリスト719とを含む。 According to one embodiment, FIG. 7B shows information for all nodes within a BCS instance. For example, the example UI shows a total of 5 nodes including 2 peers, 1 order, 1 fabric CA, and 1 REST proxy (inside the BCS gateway node). The overview UI 717 displays the node name 723, the route information of the node 725, the type of the node 729, and the status information of the node 731. FIG. The exemplary UI includes a button 721 for administrators to add nodes and one or more drop-down lists 719 for filtering nodes.

ノードの管理
一実施形態によれば、2つのエンティティ、すなわち、BCS管理者およびBCSユーザは、管理コンソールを用いて、BCSインスタンスを管理することができる。各BCSインスタンスに対してBCS管理者アカウントが1つのみである。BCS管理者アカウントは、BCSインスタンスを作成するときに作成されてもよい。BCS管理者は、ファブリックCA管理者にバンドルされてもよい(すなわち、BCS管理者は、ファブリックCA管理者IDを使用して、BCSコンソールからまたはBCS管理REST APIを介して、全ての動作を実行する)。BCSユーザアカウントが2つ以上であってもよい。BCSユーザアカウントは、BCS管理者によって、ファブリックCAアイデンティティを登録することによって作成されてもよい。
Managing Nodes According to one embodiment, two entities, BCS administrators and BCS users, can manage BCS instances using an administrative console. There is only one BCS administrator account for each BCS instance. A BCS administrator account may be created when creating a BCS instance. The BCS administrator may be bundled with the Fabric CA administrator (i.e. the BCS administrator uses the Fabric CA administrator ID to perform all operations from the BCS console or via the BCS Admin REST API). do). There may be more than one BCS user account. A BCS user account may be created by a BCS administrator by registering a Fabric CA identity.

一実施形態によれば、BCSインスタンス内のノードは、1つのウェブページに表示されてもよい。管理コンソールは、2つのモードをサポートすることができる。第1のモードは、各ノードの名前、種類、アクセスURL、および状態をリストとして提示することができる。第2のモードは、各ピアが参加しているチャネルを図形として提示することができる。 According to one embodiment, the nodes within a BCS instance may be displayed in one web page. A management console can support two modes. The first mode can present each node's name, kind, access URL, and state as a list. A second mode can graphically present the channels that each peer participates in.

さらに、一実施形態によれば、BCS管理者は、管理コンソールを介して、ピアノード、オーダノード、ファブリックCAノード、およびBCSゲートウェイノードを起動および停止することができ、ピアノード、オーダノード、およびBCSゲートウェイノードを追加および削除することができる。ファブリックCAノードを追加または削除することができない。 Additionally, according to one embodiment, a BCS administrator can start and stop peer nodes, order nodes, fabric CA nodes, and BCS gateway nodes via the management console, and can Nodes can be added and deleted. Fabric CA nodes cannot be added or deleted.

一実施形態によれば、BCS管理者は、ノードを追加するときに、ノードの属性を設定することができる。新たに追加されたノードは、追加動作の一部として自動的に起動することができる。ノードを削除する場合、当該ノードは、停止され、BCSインスタンスから削除される。 According to one embodiment, a BCS administrator can set attributes of a node when adding the node. Newly added nodes can be automatically started as part of the add operation. When deleting a node, the node is stopped and deleted from the BCS instance.

一実施形態によれば、BCSコンソールUIは、アクティブなピアノードが参加している全てのチャネル、およびアクティブなピアノードにインストールされている全てのチェーンコードをリストすることができる。 According to one embodiment, the BCS console UI can list all channels that the active peer node participates in and all chaincodes installed on the active peer node.

一実施形態によれば、BCS管理者は、ピアノードを管理するときに、アクティブなピアノードを既存のチャネルに加え、アクティブなオーダノードの属性を閲覧および編集することができる。BCSユーザは、アクティブなピアノードの一部の属性を閲覧することができる。 According to one embodiment, when managing peer nodes, the BCS administrator can add active peer nodes to existing channels and view and edit attributes of active order nodes. BCS users can view some attributes of active peer nodes.

また、アクティブなピアノードの性能メトリック、例えば、メモリの使用率、CPUの使用率、ネットワークI/O、およびディスクI/Oのスナップショットは、BCSコンソールUIに表示されてもよい。 Also, snapshots of active peer node performance metrics, such as memory utilization, CPU utilization, network I/O, and disk I/O, may be displayed in the BCS console UI.

一実施形態によれば、BCS管理者は、オーダノードを管理するときに、アクティブなオーダノードのログを閲覧することができ、アクティブなオーダノードの属性を閲覧および編集することができる。BCSユーザは、アクティブなオーダノードの一部の属性を閲覧することができる。ピアノードの管理と同様に、BCS管理者は、アクティブなオーダノードの性能メトリック、例えば、メモリの使用率、CPUの使用率、ネットワークI/O、およびディスクI/Oのスナップショットを閲覧することができる。 According to one embodiment, when managing an order node, the BCS administrator can view logs of active order nodes and view and edit attributes of active order nodes. BCS users can view some attributes of active order nodes. Similar to managing peer nodes, BCS administrators can view snapshots of active order node performance metrics, such as memory utilization, CPU utilization, network I/O, and disk I/O. can.

一実施形態によれば、BCS管理者は、ファブリックCAノードを管理するときに、アクティブなファブリックCAノードの属性を閲覧および編集し、アクティブなファブリックCAノードからCA証明書を取得し、アクティブなファブリックCAノードのログを閲覧することができる。また、BCS管理者は、アクティブファブリックノードのの性能メトリック、例えば、メモリの使用率、CPUの使用率、ネットワークI/O、およびディスクI/Oのスナップショットを閲覧することができる。 According to one embodiment, when a BCS administrator manages Fabric CA nodes, the BCS administrator can view and edit attributes of active Fabric CA nodes, obtain CA certificates from active Fabric CA nodes, CA node logs can be viewed. BCS administrators can also view snapshots of active fabric node performance metrics, such as memory utilization, CPU utilization, network I/O, and disk I/O.

上述したように、BCSゲートウェイノードの管理は、BCSゲートウェイノードを追加すること、またはBCSゲートウェイノードを削除することをさらに含むことができるBCSゲートウェイノードの最大許可数が特定のBCSインスタンスをインスタンス化するときに指定されるため、BCSインスタンスに追加され得るBCSゲートウェイノードの数は、設定されたBCSゲートウェイノードの最大許可数によって制限される。 As described above, managing BCS Gateway nodes may further include adding BCS Gateway nodes or deleting BCS Gateway nodes. As specified at the time, the number of BCS gateway nodes that can be added to a BCS instance is limited by the configured maximum allowed number of BCS gateway nodes.

一実施形態によれば、各BCSゲートウェイノードは、ゲートウェイノードの全体に一意の識別である名前を有することができる。この名前は、BCSゲートウェイノードを構成するときに参照される。また、BCSゲートウェイノードを作成するときに、ネットワークアドレスを決定および表示することができる。 According to one embodiment, each BCS gateway node may have a name that is a universally unique identifier for the gateway node. This name will be referenced when configuring the BCS gateway node. Also, the network address can be determined and displayed when creating the BCS gateway node.

一実施形態によれば、BCS管理者は、BCSゲートウェイノードを構成するときに、BCSゲートウェイ設定ファイルを定義し、BCSゲートウェイノードを起動することができる。BCSインスタンスを作成するときに、チャネルの作成またはチェーンコードの配置をしなくてもよい。したがって、BCSゲートウェイノードは、管理コンソールを介して1つ以上のチェーンコードを配置し且つ有効なBCSゲートウェイ設定を定義するまで、機能しない。 According to one embodiment, a BCS administrator can define a BCS gateway configuration file and launch a BCS gateway node when configuring the BCS gateway node. There is no need to create channels or deploy chaincodes when creating a BCS instance. Therefore, a BCS Gateway node will not function until you deploy one or more chaincodes and define valid BCS Gateway settings via the management console.

各BCSゲートウェイノードは、設定ページを有する。特定の実施形態において、設定ページにおいて、以下の項目を設定することができる。
1)チャネル:現在のゲートウェイノードを介して公開するチャネルを選択する。
2)チェーンコード:各チャネルにインスタンス化された全てのチェーンコードのリストから、公開するインスタンス化チェーンコードを選択する。
3)エンドーサ:各チェーンコードのエンドーサピアを定義する。
4)上記の設定に従ってBCSゲートウェイ設定を作成する。BCSゲートウェイの有効な設定ファイルが作成されると、ゲートウェイを起動することができる。
Each BCS gateway node has a configuration page. In certain embodiments, the following items can be set on the settings page.
1) Channel: Select a channel to expose through the current gateway node.
2) Chaincode: From the list of all chaincodes instantiated for each channel, select the instantiated chaincode to publish.
3) Endorser: Defines the endorser of each chaincode.
4) Create a BCS gateway configuration according to the above settings. Once a valid configuration file for the BCS gateway is created, the gateway can be started.

一実施形態によれば、BCSコンソールは、リスト閲覧機能を用いて、BCSゲートウェイプロパティの閲覧を可能にする。リスト閲覧は、各BCSゲートウェイの以下の情報を提供する。
1)名前:ゲートウェイを作成する時に指定されたグローバル固有名。
2)ファブリック識別名:各BCSゲートウェイは、BCSゲートウェイを作成するとき
に登録されるファブリッククライアントの識別情報に関連付けることができる。このファブリッククライアントは、BCSゲートウェイによって実行される全ての動作(例えば、呼び出し、クエリ)を実行することができる。
3)ネットワークアドレス:アクセスポイントは、公衆インターネットワークアドレスを有する。
4)状態:作動中または停止中。
According to one embodiment, the BCS console allows viewing of BCS gateway properties using a view list function. View List provides the following information for each BCS Gateway:
1) Name: A globally unique name specified when creating the gateway.
2) Fabric Identifier: Each BCS Gateway can be associated with an identity of the Fabric Client that is registered when creating the BCS Gateway. This fabric client can perform all operations (eg, calls, queries) performed by the BCS gateway.
3) Network Address: The access point has a public internetwork address.
4) State: active or inactive.

一実施形態によれば、BCS管理者は、管理コンソールを介して、アクティブなBCSゲートウェイノードのログを閲覧し、以下のBCSゲートウェイメトリックを閲覧することができる。
1)接続されているクライアント:クライアント名、アドレス、ログオン時間など。
2)現在のトランザクション情報:現在のトランザクション情報は、状態情報、すなわち、トランザクションの状態と共に利用可能である。現在のトランザクション情報は、フリーズしたトランザクションをデバッグするときに有用である。
3)トランザクション統計:トランザクション統計は、管理コンソールUIを介して利用可能である。例えば、トランザクション統計は、完了したトランザクションの数、受信したイベント通知の数、および送信したイベント通知の数を含むことができる。
4)メモリの使用率。
5)CPUの使用率。
6)ネットワークI/O。
7)ディスクI/O。
According to one embodiment, a BCS administrator can view the logs of active BCS Gateway nodes and view the following BCS Gateway metrics via the Management Console.
1) Connected clients: client name, address, logon time, etc.;
2) Current transaction information: Current transaction information is available along with state information, ie the state of the transaction. Current transaction information is useful when debugging frozen transactions.
3) Transaction Statistics: Transaction statistics are available via the management console UI. For example, transaction statistics may include the number of transactions completed, the number of event notifications received, and the number of event notifications sent.
4) Memory utilization.
5) CPU utilization.
6) Network I/O.
7) Disk I/O.

チャネルの管理
一実施形態によれば、BCSユーザは、現在のBCSインスタンスが参加している全てのチャネルをリストすることができる。BCS管理者は、チャネル名、コンソーシアム名、および1つ以上の組織名を入力とするチャネルを作成することができる。また、チャネル作成の成功または失敗を示すように、出力を表示することができる。
Managing Channels According to one embodiment, a BCS user can list all channels that the current BCS instance participates in. A BCS administrator can create a channel with the channel name, consortium name, and one or more organization names as inputs. Also, the output can be displayed to indicate the success or failure of channel creation.

一実施形態によれば、BCSユーザは、チャネルに参加しているノードおよび組織を閲覧することができる。管理コンソールは、リストモードおよびトポロジモードを含むトウビューモードをサポートすることができる。リストモードにおいて、参加しているローカルノードおよび(アンカーピアによって示された)外部組織は、リストとして示されてもよい。トポロジモードにおいて、参加しているローカルノードおよび(アンカーピアによって示された)外部組織は、トポロジ図として示されてもよい。 According to one embodiment, BCS users can view the nodes and organizations participating in the channel. The management console can support to-view modes, including list mode and topology mode. In list mode, participating local nodes and external organizations (indicated by anchor peers) may be shown as a list. In topology mode, participating local nodes and external organizations (indicated by anchor peers) may be shown as a topology diagram.

一実施形態によれば、BCS管理者は、チャネル内のピアの元帳にクエリすることができる。元帳は、複数のトランザクションブロックを含むことができる。各トランザクションブロックは、ブロックID、過去のハッシュ、データハッシュ、タイムスタンプ、トランザクションIDリスト、動作(1~n)、チェーンコードID、チェーンコード提案、応答(r/wセット、イベント、成功または失敗)、および1つ以上のエンドーサを含むことができる。また、以下の統計データ、すなわち、ブロックの数および呼び出しの数を表示することもできる。 According to one embodiment, the BCS administrator can query the ledger of peers in the channel. A ledger can contain multiple transaction blocks. Each transaction block has block id, past hash, data hash, timestamp, transaction id list, operation (1-n), chaincode id, chaincode proposal, response (r/w set, event, success or failure) , and one or more endorsers. It can also display the following statistical data: number of blocks and number of calls.

一実施形態によれば、BCS管理者は、チャネルにインスタンス化された全てのチェーンコードをリストすることができる。リストされた項目は、チェーンコードIDおよびバージョンを含むことができる。BCS管理者は、インスタンス化されたチェーンコードの以下の情報、すなわち、インスタンス化されたトランザクションによって特定されたパス、およびインスタンス引数を閲覧することもできる。 According to one embodiment, a BCS administrator can list all chaincodes instantiated on a channel. Listed items may include chaincode IDs and versions. BCS administrators can also view the following information for instantiated chaincodes: the path specified by the instantiated transaction, and instance arguments.

一実施形態によれば、BCS管理者は、チャネルにインスタンス化されたチェーンコー
ドを更新することができる。更新動作は、以下の入力、すなわち、新しいバージョンのインストール済みチェーンコードを含むターゲットエンドーサピア、1つ以上のオーダ、チェーンコードバージョン、およびチェーンコードに固有の文字列引数であり得る選択的な引数を使用することができる。更新動作の出力は、成功であってもよく、またはエラーメッセージを含む失敗であってもよい。
According to one embodiment, the BCS administrator can update the chaincode instantiated on the channel. The update operation accepts the following inputs: target endorser containing the new version of the installed chaincode, one or more orders, the chaincode version, and optional arguments that can be string arguments specific to the chaincode. can be used. The output of the update operation may be success or failure with an error message.

チェーンコードの管理
一実施形態によれば、BCS管理者は、現在のBCSインスタンスの任意のピアにインストールされた全てのチェーンコードをリストすることができる。リストされた項目は、チェーンコードIDおよびバージョンを含む。また、BCS管理者は、インストール済みチェーンコードの以下の情報、すなわち、チェーンコードをインストールしたローカルピアノード、およびチェーンコードをインスタンス化したチャネルを閲覧することができる。
Managing Chaincodes According to one embodiment, a BCS administrator can list all chaincodes installed on any peer of the current BCS instance. The items listed include the chaincode ID and version. BCS administrators can also view the following information for installed chaincodes: the local peer node that installed the chaincode, and the channel that instantiated the chaincode.

一実施形態によれば、BCS管理者は、管理コンソールを介して、チェーンコードを1つ以上のローカルピアノードにインストールすることができる。インストールするための入力は、ターゲットピア、例えばGo言語/Javaなどのチェーンコード種類、チェーンコードの名前であり得るチェーンコードID、チェーンコードバージョン、チェーンコードのソースコードの位置であり得るチェーンコード経路、任意選択のチェーンコードパッケージを含むことができる。インストール操作の出力は、成功であってもよく、またはエラーメッセージを含む失敗であってもよい。 According to one embodiment, a BCS administrator can install chaincode on one or more local peer nodes via an administrative console. The inputs to install are the target peer, the chaincode type, e.g., Golang/Java, the chaincode ID, which can be the name of the chaincode, the chaincode version, the chaincode path, which can be the location of the source code of the chaincode, An optional chaincode package can be included. The output of the install operation may be success or failure with an error message.

一実施形態によれば、BCS管理者は、以下の情報、すなわち、チャネル名、新しいバージョンのインストール済みチェーンコードを含むターゲットエンドーサピア、オーダ、チェーンコードバージョン、およびチェーンコードに固有の文字列引数であり得る選択的な引数、特定のフォーマット、または特定のフォーマットがない場合にデフォルトフォーマットを有するエンドースメントポリシを入力として、インストール済みチェーンコードをチャネルにインスタンス化することができる。 According to one embodiment, the BCS administrator can add the following information: channel name, target endorser with new version of installed chaincode, order, chaincode version, and chaincode-specific string arguments. An installed chaincode can be instantiated into a channel as input with possible optional arguments, a specific format, or an endorsement policy with a default format if there is no specific format.

メンバシップの管理
一実施形態によれば、BCS管理者は、現在のBCSインスタンス内の全てのIDをリストすることができ、現在のBCSインスタンスに新しいユーザ/IDを登録することができ、登録したIDを解除することができ、現在のBCSインスタンスからユーザを削除することができる。また、BCS管理者は、表1に示すように、識別情報の以下の属性を閲覧/編集することができる。
Membership Management According to one embodiment, the BCS administrator can list all IDs in the current BCS instance, register new users/IDs in the current BCS instance, and register An identity can be released and a user can be deleted from the current BCS instance. In addition, the BCS administrator can view/edit the following attributes of identification information, as shown in Table 1.

Figure 2022174127000002
Figure 2022174127000002

一実施形態によれば、BCSユーザは、管理コンソールを介して、それ自体を登録する
または再登録することを可能にする。これによって、ユーザの秘密キーおよび証明書を作成することができる。また、BCS管理者は、管理コンソールを介して、以前に登録されていたIDを無効化することができ、BCSユーザは、管理コンソールを介して、パスワードを変更することができる。
According to one embodiment, BCS users are allowed to register or re-register themselves via the administration console. This allows the user's private key and certificate to be created. Also, BCS administrators can revoke previously registered identities via the management console, and BCS users can change passwords via the management console.

一実施形態によれば、関連するBCSインスタンスを起動または停止すると共に、BCS管理コンソールを起動または停止することができる。 According to one embodiment, the associated BCS instance can be started or stopped and the BCS administration console can be started or stopped.

一実施形態によれば、2つの方法でBCS管理コンソールのログレベルを設定することができる。すなわち、BCS管理コンソールまたは管理REST APIを用いて、実行時にログレベルを変更することができる。 According to one embodiment, the log level of the BCS administration console can be set in two ways. That is, the log level can be changed at runtime using the BCS admin console or admin REST API.

REST API
上述したように、ファブリックネットワーク内の異なるコンポーネントは、gRPCプロトコルに基づいて通信する。したがって、ファブリックネットワークに基づくBCSインスタンスの場合、クライアントアプリケーションは、ファブリックSDKを用いて、BCSインスタンス内のチェーンコードを呼び出す必要がある。
REST APIs
As mentioned above, different components within the fabric network communicate based on the gRPC protocol. Therefore, for BCS instances based on the Fabric network, client applications need to use the Fabric SDK to invoke the chaincode within the BCS instance.

クライアントアプリケーションがファブリックSDKを用いてブロックチェーンクラウドサービスと通信することは、ブロックチェーンフレームワークをクラウドサービスとして提供することによる利点を部分的に打ち消すことになる。例えば、利点の1つは、インターネット接続を用いて、任意の場所からクラウドサービスにアクセスできることである。 Having client applications communicate with blockchain cloud services using the Fabric SDK partially negates the benefits of offering a blockchain framework as a cloud service. For example, one advantage is that cloud services can be accessed from any location with an Internet connection.

一実施形態によれば、本明細書に記載のシステムおよび方法は、BCSインスタンスにおいてRESTプロキシを提供することができる。RESTプロキシは、RESTクライアントによって使用され、チェーンコードを介してクエリし、チェーンコードを介してトランザクションを同期的または非同期的に呼び出し、トランザクションステータスを取得し、BCSプロキシのバージョンを取得するための複数のREST APIを提供することができる。RESTプロキシは、RESTコールを認証し、RESTコールをGRPCコールに変換することができる。また、RESTプロキシは、BCS管理コンソールによって提供された機能と同様の機能をサポートするREST APIを提供することができる。 According to one embodiment, the systems and methods described herein can provide a REST proxy at the BCS instance. REST Proxy is used by REST clients to query through chaincode, invoke transactions through chaincode synchronously or asynchronously, get transaction status, and multiple A REST API can be provided. A REST proxy can authenticate REST calls and convert them into GRPC calls. Also, the REST proxy can provide a REST API that supports functionality similar to that provided by the BCS management console.

一実施形態によれば、RESTプロキシは、クライアントアプリケーションがBCSインスタンスを消費するためのユーザインターフェイスを提供する。 According to one embodiment, the REST proxy provides a user interface for client applications to consume BCS instances.

図8は、一実施形態に従って、BCSインスタンスにおいてRESTプロキシを提供するためのシステムを示す。 FIG. 8 illustrates a system for providing REST proxies at a BCS instance, according to one embodiment.

図8に示すように、RESTプロキシ138は、REST認証ツール827およびプロトコル変換ツール829を含むことができる。BCS REST APIクライアント808がRESTコール815をRESTプロキシに送信すると、クラウドゲート811に接続されているLBaaS126は、RESTコールを認証することによって、RESTがBCSインスタンスにアクセスすることを可能にする有効なユーザ名および有効なパスワードがRESTコールに含まれているか否かを判断することができる。 As shown in FIG. 8, REST proxy 138 may include REST authentication tool 827 and protocol conversion tool 829 . When a BCS REST API client 808 sends a REST call 815 to a REST proxy, the LBaaS 126 connected to Cloud Gate 811 authenticates the REST call to enable REST to access the BCS instance with a valid user It can be determined whether a first name and a valid password are included in the REST call.

一実施形態によれば、LBaaSは、RESTコールを認証する場合、RESTコールをRESTプロキシに転送し、RESTプロキシは、RESTコール835をIDCS813に転送し、IDCS813は、クライアントアプリケーションがBCSによって適切
に許可されたか否かを判断することができる。
According to one embodiment, if the LBaaS authenticates the REST call, it forwards the REST call to a REST proxy, which forwards the REST call 835 to IDCS 813, which in turn directs the client application to be properly authorized by the BCS. It is possible to determine whether or not

一実施形態によれば、クライアントアプリケーションが適切に許可された場合、RESTプロキシは、RESTコールをgRPCコール825に転換/変換し、gRPCコールをファブリックネットワーク601に送信することができる。RESTコールは、内部コール(gRPC)に転換/変換されると、ブロックチェーンファブリック/ハイパーレッジャのインスタンスとインターフェイスすることができる。 According to one embodiment, if the client application is properly authorized, the REST proxy can divert/convert the REST call to a gRPC call 825 and send the gRPC call to fabric network 601 . REST calls, when converted/converted to internal calls (gRPC), can interface with blockchain fabric/hyperledger instances.

一実施形態によれば、RESTコールは、gRPCライブラリ833を有するファブリックJava SDK831に基づくJavaアプリケーションであり得るプロトコル変換ツールによって変換されてもよい。 According to one embodiment, REST calls may be converted by a protocol conversion tool, which may be a Java application based on Fabric Java SDK 831 with gRPC library 833 .

さらに図8に示すように、RESTプロキシは、上述したように、REST821を用いて管理コンソールと通信することによって、REST API823によって提供された1つ以上の機能を管理コンソールに公開することができる。 Further, as shown in FIG. 8, the REST proxy can expose one or more functions provided by REST API 823 to the management console by communicating with the management console using REST 821 as described above.

例示的なREST API
一実施形態によれば、BCSインスタンスのREST APIを呼び出す前に、RESTプロキシを起動して、動作させる必要がある。管理コンソールを介して、RESTプロキシの状態をチェックすることができる。RESTプロキシが立ち上げられておらず、動作していない場合、管理コンソールからRESTプロキシを作動する必要がある。
Exemplary REST API
According to one embodiment, the REST proxy must be up and running before calling the REST API of the BCS instance. The status of the REST proxy can be checked via the management console. If the REST proxy is not up and running, you will need to activate the REST proxy from the admin console.

一実施形態によれば、REST APIを呼び出すことによって、BCSインスタンス内のピアノードに配置されたスマートコントラクト(チェーンコード)と対話することができる。配置プロセスは、管理コンソールを介して達成することができる。 According to one embodiment, it is possible to interact with smart contracts (chaincode) located on peer nodes within a BCS instance by invoking REST APIs. The deployment process can be accomplished through the administration console.

一実施形態によれば、例示の目的で、例示的なREST APIが提供される。本明細書に使用された例は、以下の例示的なチェーンコードがBCSネットワークに配置されると仮定する。 According to one embodiment, an exemplary REST API is provided for purposes of illustration. The examples used herein assume the following exemplary chaincodes are deployed in the BCS network.

Figure 2022174127000003
Figure 2022174127000003

一実施形態によれば、例示は、管理コンソールを含む。RESTプロキシが立ち上げられておらず、動作していない場合、管理コンソールからRESTプロキシを作動することができる。 According to one embodiment, an example includes a management console. If the REST proxy is not up and running, you can activate it from the admin console.

一実施形態によれば、REST APIを呼び出すことによって、BCSインスタンス内のピアノードに配置されたスマートコントラクト(チェーンコード)と対話することができる。配置プロセスは、管理コンソールを介して達成することができる。 According to one embodiment, it is possible to interact with smart contracts (chaincode) located on peer nodes within a BCS instance by invoking REST APIs. The deployment process can be accomplished through the administration console.

一実施形態によれば、例示の目的で、例示的なREST APIが提供される。本明細書に使用された例は、以下の例示的なチェーンコードがBCSネットワークに配置されると仮定する。 According to one embodiment, an exemplary REST API is provided for purposes of illustration. The examples used herein assume the following exemplary chaincodes are deployed in the BCS network.

一実施形態によれば、REST APIは、以下の機能、すなわち、チェーンコードを介したクエリ、チェーンコードを介したトランザクションの呼び出し、チェーンコードを介したトランザクションの非同期呼び出し、トランザクションステータスの取得、BCSゲートウェイバージョンの取得を提供する。これらの機能を実行するために、クライアントは、HTTPSを用いてBCSゲートウェイにアクセスし、APIに従ってメッセージフォーマットを利用する。 According to one embodiment, the REST API provides the following functions: query via chaincode, invoke transaction via chaincode, asynchronously invoke transaction via chaincode, get transaction status, BCS gateway Provides version retrieval. To perform these functions, the client accesses the BCS gateway using HTTPS and utilizes message formats according to the API.

一実施形態によれば、チェーンコードを介したクエリ機能は、チェーンコードを呼び出すことによってクエリ動作を実行する。チェーンコードおよびクエリの引数は、REST
APIを介して指定される。トランザクションステータスの取得というREST APIは、チャネルにクエリすることによって、トランザクションのステータスを取得する。チャネルおよびトランザクションIDは、REST APIを介して指定される。BCSゲートウェイバージョンの取得というREST APIは、ゲートウェイバージョン情報を返信する。
According to one embodiment, the query via chaincode function performs query operations by invoking the chaincode. Chaincode and query arguments are REST
Specified via API. The Get Transaction Status REST API gets the status of a transaction by querying the channel. Channel and transaction IDs are specified via the REST API. The Get BCS Gateway Version REST API returns gateway version information.

一実施形態によれば、チェーンコードを介したトランザクションの呼び出しというREST APIは、チェーンコードを呼び出すことによってトランザクションを実行する。チェーンコードおよび呼び出しの引数は、REST APIを介して指定される。このREST APIは、同期モードでトランザクションを実行する。これは、トランザクションが成功である応答、トランザクションが失敗である応答、またはトランザクションがタイムアウトである応答のうち、いずれかを返信することを意味する。 According to one embodiment, the Invoke Transactions Through Chaincode REST API performs transactions by invoking chaincodes. The chaincode and invocation arguments are specified via the REST API. This REST API executes transactions in synchronous mode. This means returning either a transaction success response, a transaction failure response, or a transaction timeout response.

一実施形態によれば、チェーンコードを介したトランザクションの非同期呼び出しというREST APIは、チェーンコードを呼び出すことによってトランザクションを実行する。チェーンコードおよび呼び出しの引数は、REST APIを介して指定される。このREST APIは、非同期モードでトランザクションを実行する。これは、トランザクションの終了またはタイムアウトを待つことなく、トランザクションを投入した直後に、応答/承認を返信することを意味する。結果は、その後に提供される。BCSインスタンス管理REST APIは、BCSコンソール(後述)によって提供された機能と同様の機能をサポートする。 According to one embodiment, the Asynchronous Invocation of Transactions Through Chaincode REST API executes a transaction by invoking a chaincode. The chaincode and invocation arguments are specified via the REST API. This REST API executes transactions in an asynchronous mode. This means returning a response/acknowledgment immediately after submitting the transaction without waiting for the transaction to finish or timeout. Results are provided thereafter. The BCS Instance Management REST API supports functionality similar to that provided by the BCS Console (described below).

アイデンティティクラウドサービス(IDCS)と一体化されたファブリック認証局(ファブリックCA)
一実施形態によれば、ファブリックCAサーバは、ファブリックメンバシップサービスを提供する。ファブリックメンバシップサービスは、以下の3つの部分、すなわち、ユーザの認証、ブロックチェーン(ピアおよびオーダのグループ)にアクセスするための許可、および証明書をアプリケーションクライアント、ピアおよびオーダに配信するためのCAサーバを含む。ファブリックCAは、証明書を使用して、認証および認可を実施する。証明書は、以下の2種類、すなわち、認証を行うための登録証明および認可を行うためのトランザクション証明を含む。また、IDCSも認証および認可を提供する。しかしながら、この認可は、OAuthによって実施される。すなわち、ピアは、オーダにアクセスしたい場合、IDCSからユーザのアクセストークンを取得し、このトークンを用いてオーダにアクセスする。
Fabric Certificate Authority (Fabric CA) integrated with Identity Cloud Service (IDCS)
According to one embodiment, the fabric CA server provides fabric membership services. The Fabric Membership Service consists of three parts: user authentication, authorization to access the blockchain (groups of peers and orders), and CA to distribute certificates to application clients, peers and orders. Including server. The Fabric CA uses certificates to enforce authentication and authorization. Certificates include two types: registration certificates for authentication and transaction certificates for authorization. IDCS also provides authentication and authorization. However, this authorization is enforced by OAuth. That is, when a peer wants to access an order, it obtains the user's access token from IDCS and uses this token to access the order.

一実施形態によれば、ファブリックCAは、データベースまたはLDAPを用いて、ファブリックCAの登録ユーザの情報、例えば、ユーザの名前/パスワード、ユーザの証明
書、およびユーザの所属を保存する。パブリッククラウド(OPC)のエンドユーザは、従業員を管理するための1つの集中型IDCSインスタンスを利用して、従業員が利用した全てのパブリッククラウド(OPC)インスタンスにアクセスする。ブロックチェーンクラウドサービスBCSは、好ましくは、他のクラウドサービスに使用されるIDCSと一体化される。したがって、エンドユーザは、従業員を管理するための1つの集中型IDCSインスタンスを利用して、従業員が利用した(BCSを含む)全てのパブリッククラウド(OPC)インスタンスにアクセスすることができる。
According to one embodiment, the fabric CA uses a database or LDAP to store information for registered users of the fabric CA, such as user name/password, user credentials, and user affiliation. Public cloud (OPC) end-users utilize one centralized IDCS instance for managing employees to access all public cloud (OPC) instances utilized by employees. The blockchain cloud service BCS is preferably integrated with the IDCS used for other cloud services. Thus, end-users can access all public cloud (OPC) instances (including BCS) utilized by employees using one centralized IDCS instance for managing employees.

一実施形態において、ブロックチェーンクラウドサービス(BCS)は、オラクル識別クラウドサービス(IDCS)を用いて、ユーザ情報を集中的に保存する。BCSは、ファブリックCAユーザの情報をIDCSに記憶する。これによって、オラクルBCSは、IDCSを用いて、複数のパブリッククラウドサービスインスタンスにわたって集中化されたBCSユーザの情報を管理することができる。したがって、一実施形態において、BCSファブリックCAユーザの情報および証明書は、オラクルIDCSに格納される。ファブリック証明書認証フレームワークは、PKI秘密キー、署名済み証明書、CA証明書チェーンを含むファブリックメンバシッププロバイダ(MSP)であり、ファブリックCAクライアント/サーバによって設定される。 In one embodiment, the Blockchain Cloud Service (BCS) uses Oracle Identity Cloud Service (IDCS) to centrally store user information. The BCS stores the Fabric CA user's information in the IDCS. This allows Oracle BCS to use IDCS to manage centralized BCS user information across multiple public cloud service instances. Therefore, in one embodiment, BCS fabric CA user information and credentials are stored in Oracle IDCS. The Fabric Certificate Authentication Framework is a Fabric Membership Provider (MSP) that includes a PKI private key, a signed certificate, a CA certificate chain, and is configured by the Fabric CA client/server.

一実施形態によれば、BCSは、OPCのユーザ管理を利用する。まず、BCSユーザは、(IDCS IDを有する)OPCユーザでなければならない。BCSインスタンスが作成されると、BCSコンソール、CAおよびRESTプロキシを含む数種類のアプリケーションが作成される。コンソールは、以下の2つのアプリ役割、すなわち、コンソール管理者およびコンソールユーザを有する。CAは、4つのアプリ役割、すなわち、ファブリック管理者、ファブリッククライアント、ファブリックピア、およびファブリックオーダを有する。RESTプロキシは、2つのアプリ役割、すなわち、ゲートウェイ管理者およびゲートウェイユーザを有する。 According to one embodiment, the BCS utilizes OPC user management. First, BCS users must be OPC users (with IDCS IDs). When a BCS instance is created, several types of applications are created including BCS console, CA and REST proxy. The Console has two app roles: Console Admin and Console User. CA has four app roles: Fabric Admin, Fabric Client, Fabric Peer, and Fabric Order. The REST Proxy has two app roles: Gateway Admin and Gateway User.

一実施形態によれば、OPCユーザをBCSユーザにするために、OPCユーザ管理コンソールにおいて特定のBCSアプリ役割をOPCユーザに付与する必要がある。 According to one embodiment, in order for an OPC user to become a BCS user, it is necessary to grant the OPC user a specific BCS app role in the OPC user management console.

作成者は、BCSインスタンスを作成するときに、既存のOPCユーザ/パスワードを提供する必要があり、このユーザには、BCSコンソール管理役割およびファブリック管理役割が自動的に付与される。したがって、このユーザは、BCS管理者となる。 Creators must provide an existing OPC user/password when creating a BCS instance, and this user is automatically granted the BCS Console Admin and Fabric Admin roles. Therefore, this user becomes the BCS administrator.

BCSコンソール/CA/RESTプロキシの認証の場合、認証は、クラウドゲートで行われる。ピア/オーダの場合、認証は、署名に基づいて行われる。BCSコンソールの場合、認証後、コンソールは、(IDCSを呼び出すことによって)現在のユーザのアプリ役割を取得する。このユーザにはコンソール管理者またはコンソールユーザの役割が付与されていない場合、接続は、拒否される。そうでなければ、コンソールは、予め定義された規則に基づいてアクセス制御を行う。例えば、通常のユーザは、情報の読み取りのみを行うことができ、管理者は、何でも行うことができる。 In case of BCS console/CA/REST proxy authentication, the authentication is done at Cloud Gate. For Peer/Order, authentication is based on signatures. For the BCS console, after authentication, the console gets the current user's app roles (by calling IDCS). If this user is not granted the Console Administrator or Console User role, the connection will be denied. Otherwise, the console performs access control based on predefined rules. For example, normal users can only read information, and administrators can do anything.

一実施形態によれば、CAの場合、認証後、CAは、現在のユーザのアプリ役割を取得する。ユーザにはファブリック役割が付与されていない場合、登録要求は、拒否される。 According to one embodiment, for the CA, after authentication, the CA obtains the current user's app role. If the user has not been granted the fabric role, the registration request will be rejected.

一実施形態によれば、RESTプロキシの場合、認証後、RESTプロキシは、現在のユーザのアプリ役割を取得する。ユーザにはゲートウェイ管理者またはゲートウェイユーザ役割が付与されていない場合、要求は、拒否される。そうでなければ、コンソールは、予め定義された規則に基づいてアクセス制御を行う。例えば、通常のユーザは、呼び出し/クエリを行うことができ、管理者は、設定を変更し、メトリックを取得することができ
る。
According to one embodiment, for a REST proxy, after authentication, the REST proxy retrieves the current user's app role. If the user is not granted the Gateway Administrator or Gateway User role, the request is denied. Otherwise, the console performs access control based on predefined rules. For example, normal users can make calls/queries and administrators can change settings and get metrics.

一実施形態によれば、ファブリックCAサーバは、ファブリックメンバシップサービスを提供する。ファブリックメンバシップサービスは、以下の3つの部分、すなわち、ユーザの認証、ブロックチェーン(ピアおよびオーダのグループ)にアクセスするための許可、および証明書をアプリケーションクライアント、ピアおよびオーダに配信することができるCAサーバを含む。 According to one embodiment, the fabric CA server provides fabric membership services. The Fabric Membership Service can deliver three parts: user authentication, authorization to access the blockchain (groups of peers and orders), and certificates to application clients, peers and orders. Contains CA servers.

一実施形態によれば、フファブリックCAは、証明書を使用して、認証および認可を実施する。証明書は、以下の2種類、すなわち、認証を行うための登録証明および認可を行うためのトランザクション証明を含む。 According to one embodiment, the fabric CA uses certificates to perform authentication and authorization. Certificates include two types: registration certificates for authentication and transaction certificates for authorization.

一実施形態によれば、また、IDCSも認証および認可を提供する。しかしながら、この認可は、OAuthによって実施される。すなわち、ピアは、オーダにアクセスしたい場合、IDCSからユーザのアクセストークンを取得し、このトークンを用いてオーダにアクセスする。 According to one embodiment, IDCS also provides authentication and authorization. However, this authorization is enforced by OAuth. That is, when a peer wants to access an order, it obtains the user's access token from IDCS and uses this token to access the order.

図9Aは、一実施形態に従って、シングルサインオン用の典型的なIDCS使用ケースを示す。 FIG. 9A illustrates a typical IDCS use case for single sign-on, according to one embodiment.

一実施形態によれば、初期ステップにおいて、ウェブアプリケーション901をIDCS902に追加することができる。次いで、ウェブブラウザ900などのクライアントは、ウェブアプリケーションから、認証(例えば、ユーザ名およびパスワード)を要求することができる。ウェブアプリケーションは、既にIDCSに追加されているため、IDCSに認証要求を送信するようにウェブブラウザに指示することができる。ウェブブラウザは、ウェブアプリケーションから応答を受信した後、IDCSから認証(例えば、ユーザ名およびパスワード)を要求することができる。 According to one embodiment, in an initial step, web application 901 can be added to IDCS 902 . A client, such as web browser 900, can then request authentication (eg, username and password) from the web application. Since the web application has already been added to IDCS, it can instruct the web browser to send the authentication request to IDCS. The web browser can request authentication (eg, username and password) from IDCS after receiving a response from the web application.

次いで、IDCSは、要求を認証し、認証が成功する場合、トークンをウェブブラウザに返信することができる。認証され、トークンを受信したウェブブラウザは、ウェブアプリケーションに要求を送信することができる。ウェブアプリケーションは、トークンを検証し、認証が成功したことをウェブブラウザに知らせることができる。 IDCS can then authenticate the request and return a token to the web browser if authentication is successful. A web browser that has been authenticated and has received a token can send requests to the web application. The web application can validate the token and inform the web browser that the authentication was successful.

図9Aに示すケースの場合、IDCSは、アプリケーションを識別するためのサービスを提供するIDプロバイダ(IdP)として機能する。全ての参加者間の全ての通信は、HTTPに基づいて行われる。この使用ケースは、設定駆動型であるが、HTTPベースのアプリケーションのみに応用される。 For the case shown in FIG. 9A, the IDCS acts as an Identity Provider (IdP) that provides services for identifying applications. All communication between all participants is based on HTTP. This use case is configuration-driven, but applies only to HTTP-based applications.

図9Bは、一実施形態に従って、ファブリッククライアント認証用のIDCS使用ケースを示す。 FIG. 9B illustrates an IDCS use case for fabric client authentication, according to one embodiment.

一実施形態によれば、既に登録され登記されている(ユーザの秘密キーおよび証明書が既にクライアント側のステートストアに格納されている)ファブリックユーザに関連するファブリッククライアント904は、新しいクライアントを要求することができ、クライアントのユーザ情報(ユーザ名)を取得することができる。ファブリックSDK905は、ステートストアからユーザをロードし、ファブリッククライアントにユーザオブジェクトを返信することができる。クライアントは、ユーザオブジェクトを受信すると、ファブリックSDKにトランザクション提案を送信することができ、ファブリックSDKは、同様の秘密キーを用いて提案に署名することができる。次いで、署名済み提案は、ピア906に送信され、ピア906は、メンバシップサービス907を用いて署名を検証すること
ができる。メンバシップサービスは、IDCS902からユーザの証明書を取得することができ、IDCSからの証明書を用いてユーザの署名を検証することができる。次いで、メンバシップサービスは、署名が検証済みという証明をピアに返信することができる。
According to one embodiment, a fabric client 904 associated with a fabric user that is already registered and registered (the user's private key and certificate are already stored in the client-side state store) requests a new client. and get the user information (user name) of the client. Fabric SDK 905 can load the user from the state store and return the user object to the fabric client. Upon receiving the user object, the client can send a transaction proposal to the fabric SDK, and the fabric SDK can sign the proposal with a similar private key. The signed proposal is then sent to peer 906 , who can verify the signature using membership service 907 . The Membership Service can obtain the user's certificate from IDCS 902 and can use the certificate from IDCS to verify the user's signature. The Membership Service can then send back to the peer a proof that the signature has been verified.

分散型元帳におけるDAGベースのトランザクション処理
一実施形態によれば、分散型元帳におけるDAGベースのトランザクション処理システムおよび方法を導入することができる。このモデルは、スループット性能を改善することができる。追加の重みメカニズムを用いて、様々なビジネス要件に基づいて最終性能を調節することができる。線形構造を使用した既存の作業とは異なり、より良好な性能を達成することができる。
DAG-Based Transaction Processing in a Distributed Ledger According to one embodiment, a DAG-based transaction processing system and method in a distributed ledger can be implemented. This model can improve throughput performance. Additional weighting mechanisms can be used to adjust the final performance based on various business requirements. Unlike existing work using linear structures, better performance can be achieved.

従来では、ブロックチェーンは、線形記録構造を用いてトランザクション履歴を記録することによって、分散型元帳問題を解決するための潜在的な解決策を提供する。しかしながら、分散システムの基本的な特性によって、多くの場合、複数の当事者が複数のトランザクションを同一の共有元帳に送信する場合、トランザクション競合がしばしば発生する。競合を緩和するための方法は、いくつかがあるが、いずれの方法は、良好な性能を提供するものではない。 Traditionally, blockchain offers a potential solution to solve the distributed ledger problem by recording transaction history using a linear record structure. However, due to the fundamental nature of distributed systems, transaction conflicts often arise when multiple parties send multiple transactions to the same shared ledger. There are several methods for mitigating contention, but none provide good performance.

典型的な公衆ブロックチェーン、例えば、暗号通貨に関連する公衆ブロックチェーンは、維持すべきトランザクションまたは拒絶すべきトランザクションをマイナーに決定させる。(例えば、いくつかのブロックチェーンが、他のトランザクションよりも特定のトランザクションを優先するようにマイナーに支払うことを可能にするため)これらのマイナーは、事実上インセンティブモデルを選択する。この場合、マイナーおよびブロックチェーンコンセンサスの他のメンバは、常により多くの報酬を有するトランザクションを好む。これは、ブロックチェーンの遅い性能につながる。 Typical public blockchains, such as those associated with cryptocurrencies, let miners decide which transactions to keep or which to reject. These miners effectively opt for an incentive model (e.g., to allow some blockchains to pay miners to prioritize certain transactions over others). In this case, miners and other members of the blockchain consensus always prefer transactions with more rewards. This leads to slow blockchain performance.

他のエンタープライズブロックチェーンファブリックは、各ピアが単にオーダリングサービスからの一連のトランザクションの時間順序に基づいてトランザクションを提出するタイミングモデルを選択する。この場合、時間順序およびトランザクション間の競合によって、多くのトランザクションが拒否される可能性がある。 Other enterprise blockchain fabrics choose a timing model in which each peer submits transactions simply based on the time order of a series of transactions from an ordering service. In this case, many transactions may be rejected due to chronological ordering and conflicts between transactions.

一実施形態によれば、本開示のシステムおよび方法は、DAG構造を導入することによって、新しいトランザクション処理モデルを提供する。新しいモデルは、高いスループット性能を達成することができる。追加の重みメカニズムを用いて、様々なビジネス要件に基づいて最終性能を調節することができる。線形構造を使用した既存の作業とは異なり、より良好な性能を達成することができる。 According to one embodiment, the disclosed system and method provide a new transaction processing model by introducing a DAG structure. New models can achieve high throughput performance. Additional weighting mechanisms can be used to adjust the final performance based on various business requirements. Unlike existing work using linear structures, better performance can be achieved.

図10は、一実施形態に従って、分散型元帳におけるDAGベースのトランザクション処理方法およびシステムの提供をサポートするためのシステム示す。 FIG. 10 illustrates a system for supporting provision of DAG-based transaction processing methods and systems on distributed ledgers, according to one embodiment.

一実施形態によれば、分散元帳におけるDAGベースのトランザクション処理システムおよび方法の設計は、競合検出器(detector)1005と、ランキングジェネレータ(generator)1010と、トランザクションピッカー(picker)1015とを含むことがで
きる。
According to one embodiment, a DAG-based transaction processing system and method design in a distributed ledger may include a conflict detector 1005, a ranking generator 1010, and a transaction picker 1015. can.

一実施形態によれば、競合検出器は、複数のトランザクション、例えば、トランザクションリスト1001からの複数のトランザクション間の競合関係を検出することができる。 According to one embodiment, the conflict detector can detect conflict relationships between multiple transactions, eg, multiple transactions from transaction list 1001 .

一実施形態によれば、一般的に、トランザクション#1が、トランザクション#2にお
いて変更される何らかのキーに依存する場合、トランザクション#1および#2は、競合していると見なされる。トランザクション#1と#2の間に辺(edge)を描画することができる。一連のトランザクションに対していくつかのDAGを描画することができる。
According to one embodiment, in general, transactions #1 and #2 are considered conflicting if transaction #1 depends on some key that is changed in transaction #2. An edge can be drawn between transactions #1 and #2. Several DAGs can be drawn for a series of transactions.

一実施形態によれば、各トランザクションは、DAGにおいて、グラフの最下層として標記された1辺および頂点を有する。 According to one embodiment, each transaction has one edge and vertex marked as the bottom layer of the graph in the DAG.

一実施形態によれば、競合条件を拡張することができる。例えば、2つのトランザクションは、同様のテーブルを変更することができ、または2つのトランザクションの作成者は、同一の部門に所属することができる。 According to one embodiment, race conditions can be expanded. For example, two transactions may modify the same table, or the creators of two transactions may belong to the same department.

一実施形態によれば、競合検出後、関係は、いくつかのDAGとして示される。各トランザクションは、競合グラフ1002の頂点である。 According to one embodiment, after conflict detection, the relationships are represented as several DAGs. Each transaction is a vertex of conflict graph 1002 .

一実施形態によれば、本システムおよび方法のランキングジェネレータは、生成されたグラフ1002の各頂点に重みを追加することができる。全てのトランザクションが同様の重みを有する場合、各頂点の初期ランキングを同様の値、例えば「1」に設定することができる。 According to one embodiment, the ranking generator of the present systems and methods can add weights to each vertex of the generated graph 1002 . If all transactions have similar weights, the initial ranking of each vertex can be set to a similar value, eg "1".

一実施形態によれば、複数のトランザクションの重みは、システムおよび方法によって自動的に設定されてもよく、またはユーザ/管理者入力を介して設定されてもよい。トランザクションは、自身の重みの表示を含んでもよい。 According to one embodiment, the weights of multiple transactions may be set automatically by the system and method, or may be set via user/administrator input. A transaction may include an indication of its weight.

一実施形態によれば、各トランザクションの初期ランキング/重み1003を設定した後、システムおよび方法は、頂点に従ってランキングを計算することができる。 According to one embodiment, after setting the initial ranking/weight 1003 for each transaction, the system and method can calculate the ranking according to the vertices.

一実施形態によれば、トランザクション#1が初期値xを有し、頂点が別のトランザクション#2に向ける場合、トランザクション#1は、トランザクション#2のランキング/重みに「-x」を寄与する。 According to one embodiment, if transaction #1 has an initial value of x and a vertex points to another transaction #2, then transaction #1 contributes "-x" to transaction #2's ranking/weight.

一実施形態によれば、このプロセスと共に、DAG内の各頂点は、ランキング値を有し、このランキング値は、初期ランキングおよび隣接するトランザクションからの寄与ランキングを用いて計算される。 According to one embodiment, with this process, each vertex in the DAG has a ranking value, which is calculated using the initial ranking and contribution rankings from neighboring transactions.

一実施形態によれば、システムおよび方法は、トランザクションピッカーを用いて、ランキング付きDAGのランキングに基づいて、トランザクションを選択することができる。 According to one embodiment, systems and methods can use a transaction picker to select transactions based on rankings of a ranked DAG.

一実施形態によれば、選択プロセスは、以下の通りである。まず、最下層の頂点から出発して、以下の原則、すなわち、トランザクション#xを選択する場合、全ての隣接するトランザクション(すなわち、トランザクション#xと競合しているトランザクション)を選択しないという原則に従って、最も高いランキングを有するトランザクションを選択する。 According to one embodiment, the selection process is as follows. First, starting from the lowest vertices, according to the following principle: when selecting transaction #x, do not select all adjacent transactions (i.e., transactions conflicting with transaction #x): Select the transaction with the highest ranking.

一実施形態によれば、最後に、安全にコミットすることができるトランザクションのサブセットを選択することができる。この方法は、一連のトランザクションの最も高い合計重みを達成することができる。選択されたトランザクションは、結果1004として出力される。 Finally, according to one embodiment, a subset of transactions that can be safely committed can be selected. This method can achieve the highest total weight of a series of transactions. The selected transaction is output as result 1004 .

図11は、一実施形態に従って、本開示の一実施形態に使用され得る例示的な関係グラ
フを示す。
FIG. 11 illustrates an exemplary relationship graph that may be used with an embodiment of the present disclosure, according to one embodiment.

一実施形態によれば、例えば、元帳システムが、1101~1108と命名された8つの有序トランザクション#1~#8を含む一連のトランザクションを受信すると仮定する。この実施形態において、競合検出器によって判定された各トランザクションの競合関係は、1つのグラフにまとめることができる。 According to one embodiment, for example, assume the ledger system receives a series of transactions comprising eight ordered transactions #1-#8, labeled 1101-1108. In this embodiment, the conflict relationships of each transaction determined by the conflict detector can be summarized in one graph.

競合検出後、競合関係は、以下の通りである。
・C(#1,#2,#3)=#6
・C(#4,#5)=#7
・C(#6,#7)=#8
一実施形態によれば、上記の競合関係は、トランザクション#6がトランザクション#1、#2および#3と競合しているとして理解することができる。同様に、トランザクション#7は、トランザクション#4および#5と競合しており、トランザクション#8は、トランザクション#6および#7と競合している。
After conflict detection, the conflict relationship is as follows.
・C (#1, #2, #3) = #6
・C(#4, #5)=#7
・C(#6, #7)=#8
According to one embodiment, the above conflict relationship can be understood as transaction #6 conflicting with transactions #1, #2 and #3. Similarly, transaction #7 conflicts with transactions #4 and #5, and transaction #8 conflicts with transactions #6 and #7.

一実施形態によれば、この例に引き続き、各トランザクションの重みは、例えば「1」に等しい。これに基づいて、ランキングジェネレータは、図11に示す関係グラフを生成して、トランザクションピッカーに提供する。トランザクションピッカーは、コミット対象のトランザクションを選択する。 Continuing with this example, the weight of each transaction is, for example, equal to '1', according to one embodiment. Based on this, the ranking generator generates the relationship graph shown in FIG. 11 and provides it to the transaction picker. A transaction picker selects a transaction to commit.

図11に示すように、トランザクション#1、#2、#3、#4および#5は、いずれも「1」という重みおよびトランザクションランキングを有する。各トランザクションのトランザクションランキングを決定するために、上述した方法を用いて、競合しているトランザクションの重みからこれらの重みを減算する。したがって、トランザクション#6の重みからトランザクション#1、#2および#3の重みを減算すること(すなわち、1-3=-2)によってトランザクション#6のトランザクションランキングを計算すると、トランザクション#6は、トランザクションランキング「-2」を有する。同様の手順を実行して、トランザクション#7の合計トランザクション重みを決定する。トランザクション#7のトランザクション重みからトランザクション#4および#5のトランザクション重みを減算すること(すなわち、1-2=-1)によって、トランザクション#7は、トランザクションランキング「-1」を有する。同様に、トランザクション#8に対して、この手順を繰り返す。トランザクション#8のトランザクション重みからトランザクション#6および#7の負の重みを減算することによって、トランザクション#8は、合計トランザクションランキング「4」を有する。 As shown in FIG. 11, transactions #1, #2, #3, #4 and #5 all have a weight and transaction ranking of "1". To determine the transaction ranking for each transaction, we subtract these weights from those of the competing transactions using the method described above. Therefore, if we compute the transaction ranking of transaction #6 by subtracting the weights of transactions #1, #2 and #3 from the weight of transaction #6 (i.e., 1-3=-2), transaction #6 is equal to transaction Has a ranking of "-2". A similar procedure is performed to determine the total transaction weight of transaction #7. By subtracting the transaction weights of transactions #4 and #5 from the transaction weight of transaction #7 (ie, 1−2=−1), transaction #7 has a transaction ranking of “−1”. Similarly, repeat this procedure for transaction #8. By subtracting the negative weights of transactions #6 and #7 from the transaction weight of transaction #8, transaction #8 has a total transaction ranking of "4".

一実施形態によれば、競合グラフを計算した後、ランキングジェネレータが重み付きトランザクション競合に従って各トランザクションをランキングした後、トランザクションピッカーは、コミット対象のトランザクションを決定することができる。この例の場合、(最も高いランキングを有する)トランザクション#8とトランザクション#1~#5とは、正の値を有し且つ互いに競合しないため、コミット対象に選択される。トランザクション#6および#7は、トランザクションランキングが低く且つ両方のトランザクションがトランザクション#8と競合しているため、コミット対象に選択されない。このような選択は、図に示される。図示では、コミット対象に選択されたトランザクションは、太い輪郭を有し、コミット対象に選択されないトランザクションは、破線で示されている。 According to one embodiment, after computing the conflict graph, the transaction picker can determine which transactions to commit after the ranking generator ranks each transaction according to the weighted transaction conflicts. In this example, transaction #8 (which has the highest ranking) and transactions #1-#5 are selected to commit because they have positive values and do not conflict with each other. Transactions #6 and #7 are not selected for commit because they have low transaction rankings and both transactions conflict with transaction #8. Such selection is shown in the figure. In the illustration, transactions that have been selected to commit have a thick outline, and transactions that have not been selected to commit are shown with dashed lines.

図12は、一実施形態に従って、本開示の一実施形態に使用され得る例示的な関係グラフを示す。 FIG. 12 illustrates an exemplary relationship graph that may be used with an embodiment of the present disclosure, according to one embodiment.

一実施形態によれば、図12は、図11に示された状況よりも複雑な第2の状況を示す
According to one embodiment, FIG. 12 shows a second situation that is more complicated than the situation shown in FIG.

一実施形態によれば、例えば、ブロックチェーンシステムが、1201~1208と命名された8つの有序トランザクション#1~#8を含む一連のトランザクションを受信すると仮定する。この実施形態において、競合検出器によって判定された各トランザクションの競合関係は、1つのグラフにまとめることができる。 According to one embodiment, for example, assume a blockchain system receives a series of transactions comprising eight ordered transactions #1-#8, labeled 1201-1208. In this embodiment, the conflict relationships of each transaction determined by the conflict detector can be summarized in one graph.

競合検出後、競合関係は、以下の通りである。
・C(#1,#2,#3)=#6
・C(#4,#5)=#7
・C(#3,#6,#7)=#8
一実施形態によれば、上記の競合関係は、トランザクション#6がトランザクション#1、#2および#3と競合しているとして理解することができる。同様に、トランザクション#7は、トランザクション#4および#5と競合しており、トランザクション#8は、トランザクション#3、#6および#7と競合している。
After conflict detection, the conflict relationship is as follows.
・C (#1, #2, #3) = #6
・C(#4, #5)=#7
・C (#3, #6, #7) = #8
According to one embodiment, the above conflict relationship can be understood as transaction #6 conflicting with transactions #1, #2 and #3. Similarly, transaction #7 conflicts with transactions #4 and #5, and transaction #8 conflicts with transactions #3, #6 and #7.

一実施形態によれば、この例に引き続き、各トランザクションの重みは、例えば「1」に等しい。これに基づいて、ランキングジェネレータは、図12に示す関係グラフを生成して、トランザクションピッカーに提供する。トランザクションピッカーは、コミット対象のトランザクションを選択する。 Continuing with this example, the weight of each transaction is, for example, equal to '1', according to one embodiment. Based on this, the ranking generator generates the relationship graph shown in FIG. 12 and provides it to the transaction picker. A transaction picker selects a transaction to commit.

図12に示すように、トランザクション#1、#2、#3、#4および#5は、いずれも「1」という重みおよびトランザクションランキングを有する。各トランザクションのトランザクションランキングを決定するために、上述した方法を用いて、競合しているトランザクションの重みからこれらの重みを減算する。したがって、トランザクション#6の重みからトランザクション#1、#2および#3の重みを減算すること(すなわち、1-3=-2)によってトランザクション#6のトランザクションランキングを計算すると、トランザクション#6は、トランザクションランキング「-2」を有する。同様の手順を実行して、トランザクション#7の合計トランザクション重みを決定する。トランザクション#7のトランザクション重みからトランザクション#4および#5のトランザクション重みを減算すること(すなわち、1-2=-1)によって、トランザクション#7は、トランザクションランキング「-1」を有する。同様に、トランザクション#8に対して、この手順を繰り返す。トランザクション#8のトランザクション重みからトランザクション#3、#6および#7の負の重みを減算することによって、トランザクション#8は、合計トランザクションランキング「3」を有する。 As shown in FIG. 12, transactions #1, #2, #3, #4 and #5 all have a weight and transaction ranking of "1". To determine the transaction ranking for each transaction, we subtract these weights from those of the competing transactions using the method described above. Therefore, if we compute the transaction ranking of transaction #6 by subtracting the weights of transactions #1, #2 and #3 from the weight of transaction #6 (i.e., 1-3=-2), transaction #6 is equal to transaction Has a ranking of "-2". A similar procedure is performed to determine the total transaction weight of transaction #7. By subtracting the transaction weights of transactions #4 and #5 from the transaction weight of transaction #7 (ie, 1−2=−1), transaction #7 has a transaction ranking of “−1”. Similarly, repeat this procedure for transaction #8. By subtracting the negative weights of transactions #3, #6 and #7 from the transaction weight of transaction #8, transaction #8 has a total transaction ranking of "3".

図12の関係グラフでは、システムおよび方法は、複数のトランザクションの競合を提供することができる。例えば、図12において、トランザクション#3は、2つのトランザクション(#6および#8)と競合している。 In the relationship graph of FIG. 12, the systems and methods can provide multiple transaction conflicts. For example, in FIG. 12, transaction #3 conflicts with two transactions (#6 and #8).

一実施形態によれば、競合グラフを計算した後、ランキングジェネレータが重み付きトランザクション競合に従って各トランザクションをランキングした後、トランザクションピッカーは、コミット対象のトランザクションを決定することができる。この例の場合、(最も高いランキングを有する)トランザクション#8と#1、#2、#4および#5とは、正の値を有し且つ互いに競合しないため、コミット対象に選択される。トランザクション#3は、トランザクション#1、#2、#4および#5と同様のトランザクションランキングを有するにもかかわらず、トランザクション#3よりも高いランキングを有するトランザクション#8と競合するため、コミット対象に選択されない。トランザクション#6および#7は、トランザクションランキングが低く且つ両方のトランザクションがトランザクション#8と競合しているため、コミット対象に選択されない。このような選択
は、図に示される。図示では、コミット対象に選択されたトランザクションは、太い輪郭を有し、コミット対象に選択されないトランザクションは、破線で示されている。
According to one embodiment, after computing the conflict graph, the transaction picker can determine which transactions to commit after the ranking generator ranks each transaction according to the weighted transaction conflicts. In this example, transactions #8 and #1, #2, #4 and #5 (which have the highest rankings) are selected to commit because they have positive values and do not conflict with each other. Transaction #3 is selected to commit because it competes with transaction #8, which has a higher ranking than transaction #3, even though it has similar transaction rankings to transactions #1, #2, #4, and #5. not. Transactions #6 and #7 are not selected for commit because they have low transaction rankings and both transactions conflict with transaction #8. Such selection is shown in the figure. In the illustration, transactions that have been selected to commit have a thick outline, and transactions that have not been selected to commit are shown with dashed lines.

図13は、一実施形態に従って、本開示の一実施形態に使用され得る例示的な関係グラフを示す。 FIG. 13 illustrates an exemplary relationship graph that may be used with an embodiment of the present disclosure, according to one embodiment.

一実施形態によれば、図13は、図12に示された状況よりも複雑な第3の状況を示す。図13の関係マップにおいて、14個のトランザクションは、2つの競合クラスタに分けられる。トランザクション#1~#8(1301~1308)は、クラスタAに含まれ、トランザクション#9~#14(1309~1314)は、クラスタBに含まれる。 According to one embodiment, FIG. 13 shows a third situation that is more complicated than the situation shown in FIG. In the relationship map of Figure 13, the 14 transactions are separated into two conflict clusters. Transactions #1 to #8 (1301 to 1308) are included in cluster A, and transactions #9 to #14 (1309 to 1314) are included in cluster B.

一実施形態によれば、例えば、ブロックチェーンシステムが、トランザクション#1~#14と命名された14個の有序トランザクションを含む一連のトランザクションを受信すると仮定する。競合検出器によって判定された全てのトランザクションの競合関係は、1つのグラフにまとめることができる。 According to one embodiment, for example, assume that a blockchain system receives a series of transactions comprising 14 ordered transactions, labeled Transactions #1-#14. The conflict relationships of all transactions determined by the conflict detector can be summarized in one graph.

競合検出後、競合関係は、以下の通りである。
・C(#1,#2,#3)=#6
・C(#4,#5)=#7
・C(#3,#6,#7)=#8
・C(#9,#10,#11,#13)=#14
・C(#11、#12)=#13
一実施形態によれば、この例に引き続き、自動的にまたは管理者によって設定された、初期重み「2」を有するトランザクション#10および初期重み「5」を有するトランザクション#13を除き、各トランザクションの重みが「1」に等しいと仮定する。
After conflict detection, the conflict relationship is as follows.
・C (#1, #2, #3) = #6
・C(#4, #5)=#7
・C (#3, #6, #7) = #8
・C (#9, #10, #11, #13) = #14
・C(#11, #12)=#13
Continuing with this example, according to one embodiment, each transaction's Assume that the weight is equal to '1'.

図13に示すように、トランザクション#1~#8は、クラスタAに含まれる。トランザクション#1、#2、#3、#4および#5は、いずれも「1」という重みおよびトランザクションランキングを有する。各トランザクションのトランザクションランキングを決定するために、上述した方法を用いて、競合しているトランザクションの重みからこれらの重みを減算する。したがって、トランザクション#6の重みからトランザクション#1、#2および#3の重みを減算すること(すなわち、1-3=-2)によってトランザクション#6のトランザクションランキングを計算すると、トランザクション#6は、トランザクションランキング「-2」を有する。同様の手順を実行して、トランザクション#7の合計トランザクション重みを決定する。トランザクション#7のトランザクション重みからトランザクション#4および#5のトランザクション重みを減算すること(すなわち、1-2=-1)によって、トランザクション#7は、トランザクションランキング「-1」を有する。同様に、トランザクション#8に対して、この手順を繰り返す。トランザクション#8のトランザクション重みからトランザクション#3、#6および#7の負の重みを減算することによって、トランザクション#8は、合計トランザクションランキング「3」を有する。 Transactions #1 to #8 are included in cluster A, as shown in FIG. Transactions #1, #2, #3, #4 and #5 all have a weight and transaction ranking of "1". To determine the transaction ranking for each transaction, we subtract these weights from those of the competing transactions using the method described above. Therefore, if we compute the transaction ranking of transaction #6 by subtracting the weights of transactions #1, #2 and #3 from the weight of transaction #6 (i.e., 1-3=-2), transaction #6 is equal to transaction Has a ranking of "-2". A similar procedure is performed to determine the total transaction weight of transaction #7. By subtracting the transaction weights of transactions #4 and #5 from the transaction weight of transaction #7 (ie, 1−2=−1), transaction #7 has a transaction ranking of “−1”. Similarly, repeat this procedure for transaction #8. By subtracting the negative weights of transactions #3, #6 and #7 from the transaction weight of transaction #8, transaction #8 has a total transaction ranking of "3".

図13に示すように、トランザクション#9~#14は、クラスタBに含まれる。トランザクション#9、#11、#12および#14は、いずれも「1」という重みおよびトランザクションランキングを有する。トランザクション#10は、初期重み「2」を有する。トランザクション#13は、初期重み「5」を有するが、この重みから(トランザクション#11および#12の重み)「2」を減算して、トランザクションランキング「3」を有する。トランザクション#14は、初期重み「1」を有するが、この重みから(トランザクション#9、#10、#11、および#13の初期重みおよび修正重み)「7」を減算して、トランザクションランキング「-6」を有する。 Transactions #9 to #14 are included in cluster B, as shown in FIG. Transactions #9, #11, #12 and #14 all have a weight and transaction ranking of "1". Transaction #10 has an initial weight of "2". Transaction #13 has an initial weight of '5', but subtracts '2' from this weight (the weight of transactions #11 and #12) to have a transaction ranking of '3'. Transaction #14 has an initial weight of '1', but subtracts '7' from this weight (the initial and modified weights of transactions #9, #10, #11, and #13) to give a transaction ranking of '-'. 6”.

一実施形態によれば、競合グラフを計算した後、ランキングジェネレータが重み付きトランザクション競合に従って各トランザクションをランキングした後、トランザクションピッカーは、コミット対象のトランザクションを決定することができる。この例の場合、(最も高いランキングを有する)トランザクション#8および#13とトランザクション#1、#2、#4、#5、#9および#10とは、正の値を有し且つ互いに競合しないため、コミット対象に選択される。トランザクション#3は、トランザクション#1、#2、#4および#5と同様のトランザクションランキングを有するにもかかわらず、トランザクション#3よりも高いランキングを有するトランザクション#8と競合するため、コミット対象に選択されない。トランザクション#6および#7は、トランザクションランキングが低く且つ両方のトランザクションがトランザクション#8と競合しているため、コミット対象に選択されない。トランザクション#11および#12は、トランザクション#13と競合するため、コミット対象に選択されない。トランザクション#14は、辺を共有するトランザクションに比べてトランザクションランキングが低いため、コミット対象に選択されない。 According to one embodiment, after computing the conflict graph, the transaction picker can determine which transactions to commit after the ranking generator ranks each transaction according to the weighted transaction conflicts. In this example, transactions #8 and #13 (which have the highest ranking) and transactions #1, #2, #4, #5, #9 and #10 have positive values and do not conflict with each other. Therefore, it is selected for commit. Transaction #3 is selected to commit because it competes with transaction #8, which has a higher ranking than transaction #3, even though it has similar transaction rankings to transactions #1, #2, #4, and #5. not. Transactions #6 and #7 are not selected for commit because they have low transaction rankings and both transactions conflict with transaction #8. Transactions #11 and #12 are not selected for commit because they conflict with transaction #13. Transaction #14 is not selected for commit because it has a lower transaction ranking than the edge-sharing transactions.

図14は、一実施形態に従って、分散元帳における有向非循環グラフ(DAG)ベースのトランザクション処理方法の一例を示すフローチャートである。 FIG. 14 is a flowchart illustrating an example directed acyclic graph (DAG) based transaction processing method in a distributed ledger, according to one embodiment.

ステップ1401において、方法は、エンタープライズ級の分散型元帳フレームワークにおいて、複数のトランザクションを処理するための分散型元帳ファブリックを提供することができる。 At step 1401, the method can provide a distributed ledger fabric for processing multiple transactions in an enterprise-grade distributed ledger framework.

ステップ1402において、方法は、競合検出器を用いて、複数のトランザクション間の複数の競合を検出することができる。 At step 1402, the method can detect conflicts between transactions using a conflict detector.

ステップ1403において、方法は、ランキングジェネレータを用いて、複数の初期重みパラメータのうちの1つの初期重みパラメータを複数のトランザクションのうちの各トランザクションに追加することができる。ランキングジェネレータは、DAGを生成し、DAGの少なくとも1つの頂点は、ランキング値を含む。 At step 1403, the method may use the ranking generator to add an initial weight parameter of the plurality of initial weight parameters to each transaction of the plurality of transactions. A ranking generator generates a DAG, at least one vertex of the DAG containing a ranking value.

ステップ1404において、方法は、トランザクションピッカーを用いて、生成されたDAGに基づいて、複数のトランザクションから、コミットする予定のトランザクションセットを選択することができる。 At step 1404, the method may use a transaction picker to select a set of transactions to commit from the plurality of transactions based on the generated DAG.

以上で様々な実施形態を説明したが、これらの実施形態は、例示として提示され、本開示を限定しない。これらの実施形態は、本開示の特徴および原理並びにその実用を説明するために選択され、説明された。実施形態は、システムおよび方法を例示する。これらの実施形態は、新しい機能および/または改善された機能を提供することによって、および/またはリソース利用率の減少、容量の増加、スループットの増加、効率の改善、待ち時間の減少、セキュリティの強化、および/または使用の容易性の改善を含むがこれらに限定されない性能利点を提供することによって、様々な特徴を用いて、システムおよび方法の性能を改善する。 While various embodiments have been described above, these embodiments are presented by way of illustration and not limitation of the present disclosure. These embodiments were chosen and described in order to explain the features and principles of the disclosure and its practice. Embodiments illustrate systems and methods. These embodiments may provide new and/or improved functionality and/or reduced resource utilization, increased capacity, increased throughput, improved efficiency, reduced latency, enhanced security. Various features are used to improve the performance of systems and methods by providing performance advantages including, but not limited to, improved ease of use, and/or.

本明細書において、いくつかの実施形態は、アーキテクチャ、機能、プロセスおよび/または動作を示す方法のフローチャートおよび/またはブロック図、装置(システム)およびコンピュータプログラム製品を参照して説明される。フローチャートまたはブロック図の各ブロックは、指定された機能を実装するための1つ以上の実行可能な命令を含む要素、機能、プロセス、モジュール、セグメント、または命令の一部を表す。いくつかの代替的な実施形態において、ブロック図またはフローチャートに示された機能は、図示され
た順序と異なる順序で実行される。例えば、連続して示された2つのブロックは、関与する機能に応じて、実質的に同時に実行されてもよく、または逆の順序で実行されてもよい。フローチャートおよび/またはブロック図の各ブロック、またはフローチャートおよび/またはブロック図のブロックの組み合わせは、指定された機能を実行するコンピュータプログラム命令、および/または専用ハードウェア、および/またはハードウェアとコンピュータプログラム命令との組み合わせによって実装されてもよい。
Certain embodiments are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products that illustrate architecture, functionality, processes and/or operations. Each block of a flowchart or block diagram represents an element, function, process, module, segment, or portion of instruction comprising one or more executable instructions to implement the specified function. In some alternative implementations, the functions noted in the block diagrams or flowcharts may occur out of the order noted. For example, two blocks shown in succession may be executed substantially concurrently or in the reverse order depending on the functionality involved. Each block of the flowcharts and/or block diagrams, or combinations of blocks in the flowcharts and/or block diagrams, represents computer program instructions and/or dedicated hardware and/or hardware and computer program instructions that perform the specified function. may be implemented in combination with

いくつかの実施形態において、特徴は、プロセッサと、コンピュータ可読媒体と、他のコンピュータと通信するためのネットワークカード/インターフェイスとを含むコンピュータに実装される。いくつかの実施形態において、特徴は、ネットワークによって相互接続されたパーソナルコンピュータ、ハンドヘルド装置、マルチプロセッサシステム、マイクロプロセッサベースまたはプログラム可能な消費者電子機器、ネットワークPC、ミニコンピュータ、メインフレームコンピュータ等を含む様々な種類のコンピュータ構成を含むコンピューティングシステムを備えるネットワークコンピューティング環境において実装される。ネットワークは、ローカルエリアネットワーク(LAN)、スイッチファブリックネットワーク(例えば、インフィニバンド)、ワイドエリアネットワーク(WAN)、および/またはインターネットであってもよい。ネットワークは、銅伝送ケーブル、光伝送ファイバ、ワイヤレス伝送、ルータ、ファイアウォール、スイッチ、ゲートウェイコンピュータ、および/またはエッジサーバを含むことができる。 In some embodiments, features are implemented in a computer that includes a processor, a computer-readable medium, and a network card/interface for communicating with other computers. In some embodiments, features include personal computers interconnected by a network, handheld devices, multiprocessor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, and the like. It is implemented in a network computing environment with computing systems that include various types of computer configurations. The network may be a local area network (LAN), a switched fabric network (eg, InfiniBand), a wide area network (WAN), and/or the Internet. A network may include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and/or edge servers.

いくつかの実施形態において、特徴は、バックエンドコンポーネント(例えば、データサーバ)を含むコンピューティングシステム、またはミドルウェアコンポーネント(例えば、アプリケーションサーバ)を含むコンピューティングシステム、またはフロントエンドコンポーネント(例えば、ユーザが本明細書に記載された主題の実装形態と対話するときに使用されるグラフィカルユーザインターフェイスまたはウェブブラウザを有するクライアントコンピュータ)を含むコンピューティングシステム、またはネットワークによって相互接続されたバックエンドコンポーネント、ミドルウェアコンポーネント、もしくはフロントエンドコンポーネントの任意の組み合せを含むコンピューティングシステムにおいて実装される。コンピューティングシステムは、互いにクライアント-サーバ関係を有するクライアントおよびサーバを含むことができる。いくつかの実施形態において、機能は、ネットワークを介して接続される1つ以上のコンピュータクラスタを含む分散型コンピューティング環境を備えるコンピューティングシステムにおいて実装される。分散型コンピューティング環境内の全てのコンピュータは、単一の場所に配置されてもよく、またはネットワークによって接続された異なる遠隔場所にコンピュータクラスタとして配置されてもよい。 In some embodiments, a feature is a computing system that includes back-end components (e.g., data servers), or a computing system that includes middleware components (e.g., application servers), or front-end components (e.g., a client computer with a graphical user interface or web browser used to interact with implementations of the subject matter described herein), or back-end components, middleware components, or interconnected by a network; Implemented in a computing system that includes any combination of front-end components. A computing system can include clients and servers that have a client-server relationship to each other. In some embodiments, functionality is implemented in a computing system that comprises a distributed computing environment that includes one or more computer clusters connected via a network. All computers in a distributed computing environment may be located at a single location, or may be located as computer clusters at different remote locations connected by a network.

いくつかの実施形態において、特徴は、ウェブ技術を用いて共有された弾性リソースに基づいてセルフサービス供給方法でユーザに配布されたクラウドコンピューティングシステムの一部としてまたはサービスとしてクラウドに実装される。クラウドの特性は、例えば、オンデマンドセルフサービス、ブロードネットワークアクセス、リソースプール、急速順応性、および計数サービスを含んでもよい。クラウド配置モデルは、パブリック、プライベート、およびハイブリッドを含む。クラウドサービスモデルは、SaaS(Software as a Service)、PaaS(Platform as a Service)、DBaaS(Database as a Service)、およびIaaS(Infrastructure as a Service)を含む。クラウドは、一般的に、共有された弾性リソースをユーザに配布するハードウェア、ソフトウェア、ネットワーク、およびウェブ技術の組み合わせを指す。本明細書に使用されたクラウドは、パブリッククラウド、プライベートクラウド、および/またはハイブリッドクラウド実装を含むことができ、クラウドSaaS、クラウドDBaaS、クラウドPaaS、および/またはクラウドIaaS配置モデルを含むことができる。 In some embodiments, features are implemented in the cloud as part of a cloud computing system or as a service distributed to users in a self-service provisioning manner based on shared elastic resources using web technologies. Cloud characteristics may include, for example, on-demand self-service, broad network access, resource pools, rapid adaptability, and counting services. Cloud deployment models include public, private, and hybrid. Cloud service models include SaaS (Software as a Service), PaaS (Platform as a Service), DBaaS (Database as a Service), and IaaS (Infrastructure as a Service). Cloud generally refers to a combination of hardware, software, network, and web technologies that distribute shared elastic resources to users. Cloud as used herein can include public cloud, private cloud, and/or hybrid cloud implementations and can include cloud SaaS, cloud DBaaS, cloud PaaS, and/or cloud IaaS deployment models.

いくつかの実施形態において、特徴は、ハードウェア、ソフトウェア、ファームウェア、またはそれらの組み合わせを用いて実装される。いくつかの実施形態において、特徴は、教示されたアプローチの1つ以上の機能を実行するように構成されたまたはプログラムされたプロセッサを用いて実装される。いくつかの実施形態において、プロセッサは、本明細書に記載の機能を実行するように設計された、シングルチップまたはマルチチッププロセッサ、デジタル信号プロセッサ(DSP)、システムオンチップ(SOC)、特定用途向け集積回路(ASIC)、フィールドプログラマブルゲートアレイ(FPGA)または他のプログラマブル論理装置、ステートマシン、離散型ゲートまたはトランジスタロジック、離散型ハードウェアコンポーネント、またはそれらの任意の組合せである。いくつかの実装形態において、特徴は、特定の機能を有する回路によって実装される。他の実装形態において、特徴は、例えば、コンピュータ可読記憶媒体に記憶された命令を用いて、特定の機能を実行するように構成されたコンピュータ、コンピューティングシステム、プロセッサ、および/またはネットワークに実装される。 In some embodiments, features are implemented using hardware, software, firmware, or a combination thereof. In some embodiments, features are implemented using a processor configured or programmed to perform one or more functions of the approaches taught. In some embodiments, the processor is a single-chip or multi-chip processor, digital signal processor (DSP), system-on-chip (SOC), application-specific designed to perform the functions described herein. Integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, state machines, discrete gate or transistor logic, discrete hardware components, or any combination thereof. In some implementations, features are implemented by circuits that perform the specified functions. In other implementations, the features are implemented in a computer, computing system, processor, and/or network configured to perform specified functions, e.g., using instructions stored on a computer-readable storage medium. be.

いくつかの実施形態において、特徴は、本開示の特徴を用いて、処理システムおよび/またはネットワークシステムのハードウェアを制御するためのソフトウェアおよび/またはファームウェア、またはプロセッサおよび/またはネットワークと他のシステムとの対話を可能にするためのソフトウェアおよび/またはファームウェアに組み込まれる。このようなソフトウェアまたはファームウェアは、アプリケーションコード、装置ドライバ、オペレーティングシステム、仮想マシン、ハイパーバイザ、アプリケーションプログラミングインターフェイス、プログラミング言語、および実行環境/コンテナを含み得るが、これらに限定されない。適切なソフトウェアの符号化は、熟練したプログラマによって、本開示の教示に基づいて容易に作成することができる。 In some embodiments, features include software and/or firmware for controlling hardware in processing systems and/or network systems, or processors and/or networks and other systems using features of the present disclosure. embedded in software and/or firmware to enable interaction of Such software or firmware may include, but is not limited to, application code, device drivers, operating systems, virtual machines, hypervisors, application programming interfaces, programming languages, and execution environments/containers. Appropriate software encoding can readily be prepared by skilled programmers based on the teachings of the present disclosure.

いつかの実施形態において、本開示に教示されたアプローチは、ソフトウェアおよび/またはファームウェアを含む命令を格納または担持する機械可読またはコンピュータ可読媒体であるコンピュータプログラム製品を含む。これらの命令を用いて、本開示に教示されたアプローチのプロセスまたは機能を実行するように、コンピュータなどのシステムをプログラムするまたは構成することができる。機械可読またはコンピュータ可読媒体は、フロッピー(登録商標)ディスク、ハードドライブ、ソリッドステートドライブ、光ディスク、DVD、CD-ROM、マイクロドライブ、光磁気ディスク、ROM、RAM、EPROM、EEPROM、DRAM、VRAM、フラッシュメモリ装置、磁気カードまたは光カード、分子メモリ、ナノシステム、またはそれらの変形体およびそれらの組み合わせを含むがこれらに限定されない命令および/またはデータを記憶するのに適した任意の種類の媒体または装置を含むことができる記憶媒体を含むことができる。特定の実施形態において、記憶媒体またはコンピュータ可読媒体は、非一時的な機械可読記憶媒体または非一時的なコンピュータ可読記憶媒体である。また、機械可読媒体またはコンピュータ可読媒体は、搬送波または送信信号などの一過性媒体を含んでもよい。 In some embodiments, the approaches taught in this disclosure include computer program products that are machine-readable or computer-readable media for storing or carrying instructions, including software and/or firmware. These instructions can be used to program or configure a system, such as a computer, to carry out the processes or functions of the approaches taught in this disclosure. A machine-readable or computer-readable medium may be a floppy disk, hard drive, solid state drive, optical disk, DVD, CD-ROM, microdrive, magneto-optical disk, ROM, RAM, EPROM, EEPROM, DRAM, VRAM, flash Any type of medium or device suitable for storing instructions and/or data including, but not limited to, memory devices, magnetic or optical cards, molecular memories, nanosystems, or variations thereof and combinations thereof can include a storage medium that can include In certain embodiments, a storage medium or computer-readable medium is a non-transitory machine-readable storage medium or non-transitory computer-readable storage medium. A machine-readable medium or computer-readable medium may also include transitory media such as carrier waves or transmission signals.

したがって、一観点から、本明細書は、分散型元帳におけるDAGベースのトランザクション処理システムおよび方法を記載する。一実施形態によれば、分散型元帳におけるDAGベースのトランザクション処理システムおよび方法を導入することができる。このモデルは、スループット性能を改善することができる。追加の重みメカニズムを用いて、様々なビジネス要件に基づいて最終性能を調節することができる。線形構造を使用した既存の作業とは異なり、より良好な性能を達成することができる。 Accordingly, from one aspect, this specification describes a DAG-based transaction processing system and method on a distributed ledger. According to one embodiment, a DAG-based transaction processing system and method on a distributed ledger can be deployed. This model can improve throughput performance. Additional weighting mechanisms can be used to adjust the final performance based on various business requirements. Unlike existing work using linear structures, better performance can be achieved.

本開示のさらなる例は、以下の番号付き項で説明される。
第1項
分散型元帳における有向非循環グラフ(DAG)ベースのトランザクション処理システムであって、エンタープライズ級の分散型元帳フレームワークと、分散型元帳ファブリッ
クとを備え、当該分散型元帳ファブリックは、複数のトランザクションを処理し、競合検出器を備え、当該競合検出器は、複数のトランザクション間の複数の競合を検出し、ランキングジェネレータを備え、当該ランキングジェネレータは、複数の初期重みパラメータのうちの1つの初期重みパラメータを複数のトランザクションのうちの各トランザクションに追加し、当該ランキングジェネレータは、DAGを生成し、当該DAGの少なくとも1つの頂点は、ランキング値を含み、トランザクションピッカーを備え、当該トランザクションピッカーは、生成されたDAGに基づいて、複数のトランザクションから、コミット対象のトランザクションセットを選択する。
Further examples of the disclosure are described in the numbered sections below.
Section 1. A directed acyclic graph (DAG) based transaction processing system in a distributed ledger, comprising an enterprise-grade distributed ledger framework and a distributed ledger fabric, the distributed ledger fabric comprising a plurality of transactions, comprising a conflict detector, the conflict detector detecting conflicts between the transactions, and a ranking generator, wherein the ranking generator selects one of the initial weight parameters adding an initial weight parameter to each transaction of a plurality of transactions, the ranking generator generating a DAG, at least one vertex of the DAG containing a ranking value, comprising a transaction picker, the transaction picker comprising: A transaction set to be committed is selected from a plurality of transactions based on the generated DAG.

第2項
複数の初期重みパラメータは、入力を介して提供される、第1項に記載のシステム。
Clause 2. The system of Clause 1, wherein the plurality of initial weight parameters are provided via an input.

第3項
複数の初期重みパラメータは、自動的に導出される、第1項に記載のシステム。
Clause 3. The system of Clause 1, wherein the plurality of initial weight parameters are automatically derived.

第4項
複数の初期重みパラメータは、少なくとも複数のトランザクションの各々の相対重要度に基づいて導出される、第3項に記載のシステム。
Clause 4. The system of Clause 3, wherein the plurality of initial weight parameters are derived based on the relative importance of each of at least the plurality of transactions.

第5項
生成されたDAGは、複数のトランザクションの各々のランキングを計算し、当該計算された複数のトランザクションの各々のランキングは、トランザクションに割り当てられた初期重みパラメータまたは修正重みパラメータのうちの1つである、先行する項のいずれか一項に記載のシステム。
Section 5. The generated DAG calculates a ranking of each of the plurality of transactions, and the calculated ranking of each of the plurality of transactions is one of the initial weighting parameters or modified weighting parameters assigned to the transaction. A system according to any one of the preceding clauses, wherein the system is

第6項
各修正重みパラメータは、対象トランザクションの初期重みパラメータと、対象トランザクションと競合するトランザクションの少なくとも1つのランキングとに基づいて計算される、第5項に記載のシステム。
Clause 6. The system of Clause 5, wherein each modified weight parameter is calculated based on an initial weight parameter of the subject transaction and at least one ranking of transactions competing with the subject transaction.

第7項
コミット対象の複数のトランザクションセット内の各トランザクションは、競合しない、第1項から第6項のいずれか一項に記載のシステム。
Clause 7. The system of any one of clauses 1-6, wherein transactions in multiple transaction sets to be committed are non-conflicting.

第8項
分散型元帳における有向非循環グラフ(DAG)ベースのトランザクション処理方法であって、エンタープライズ級の分散型元帳フレームワークにおいて、分散型元帳ファブリックを提供することを含み、当該分散型元帳ファブリックは、複数のトランザクションを処理し、競合検出器が、複数のトランザクション間の複数の競合を検出することと、ランキングジェネレータが、複数の初期重みパラメータのうちの1つの初期重みパラメータを複数のトランザクションのうちの各トランザクションに追加することとを含み、当該ランキングジェネレータは、DAGを生成し、当該DAGの少なくとも1つの頂点は、ランキング値を含み、トランザクションピッカーが、生成されたDAGに基づいて、複数のトランザクションから、コミット対象のトランザクションセットを選択することを含む。
Section 8. A directed acyclic graph (DAG) based transaction processing method in a distributed ledger, comprising providing a distributed ledger fabric in an enterprise-grade distributed ledger framework, the distributed ledger fabric processes a plurality of transactions, a conflict detector detecting a plurality of conflicts between the plurality of transactions; and a ranking generator adding one of the plurality of initial weight parameters to the plurality of transactions. the ranking generator generating a DAG, at least one vertex of the DAG containing a ranking value, and the transaction picker adding a plurality of Involves selecting a set of transactions to commit from the transactions.

第9項
複数の初期重みパラメータは、入力を介して提供される、第8項に記載の方法。
Clause 9. The method of clause 8, wherein the plurality of initial weight parameters are provided via an input.

第10項
複数の初期重みパラメータは、自動的に導出される、第8項に記載の方法。
Clause 10. The method of clause 8, wherein the plurality of initial weight parameters are automatically derived.

第11項
複数の初期重みパラメータは、少なくとも複数のトランザクションの各々の相対重要度に基づいて導出される、第10項に記載の方法。
Clause 11. The method of Clause 10, wherein the plurality of initial weight parameters are derived based on the relative importance of each of at least the plurality of transactions.

第12項
当該生成されたDAGは、複数のトランザクションの各々のランキングを計算し、当該計算された複数のトランザクションの各々のランキングは、トランザクションに割り当てられた初期重みパラメータまたは修正重みパラメータのうちの1つである、第8項から第11項のいずれか一項に記載の方法。
Section 12. The generated DAG calculates a ranking of each of the plurality of transactions, and the calculated ranking of each of the plurality of transactions is one of the initial weighting parameters or modified weighting parameters assigned to the transaction. Clause 12. The method of any one of clauses 8-11, wherein

第13項
各修正重みパラメータは、対象トランザクションの初期重みパラメータと、対象トランザクションと競合するトランザクションの少なくとも1つのランキングとに基づいて計算される、第12項に記載の方法。
Clause 13. The method of Clause 12, wherein each modified weight parameter is calculated based on an initial weight parameter of the target transaction and at least one ranking of transactions competing with the target transaction.

第14項
コミット対象の複数のトランザクションセット内の各トランザクションは、競合しない、第8項から第13項のいずれか一項に記載の方法。
Clause 14. The method of any one of clauses 8-13, wherein each transaction in a set of multiple transactions to be committed is non-conflicting.

第15項
分散型元帳における有向非循環グラフ(DAG)ベースのトランザクション処理命令を担持するコンピュータ可読媒体であって、当該命令は、読み出されて実行されると、1つ以上のコンピュータに、以下を含むステップを実行させ、当該ステップは、
競合検出器が、複数のトランザクション間の複数の競合を検出することと、
ランキングジェネレータが、複数の初期重みパラメータのうちの1つの初期重みパラメータを複数のトランザクションのうちの各トランザクションに追加することとを含み、当該ランキングジェネレータは、DAGを生成し、当該DAGの少なくとも1つの頂点は、ランキング値を含み、
トランザクションピッカーが、生成されたDAGに基づいて、複数のトランザクションから、コミット対象のトランザクションセットを選択することを含む。
Section 15. A computer-readable medium bearing directed acyclic graph (DAG) based transaction processing instructions in a distributed ledger, the instructions being read and executed to cause one or more computers to: Cause steps to be performed that include:
a conflict detector detecting multiple conflicts between multiple transactions;
a ranking generator adding an initial weight parameter of the plurality of initial weight parameters to each transaction of the plurality of transactions, the ranking generator generating a DAG; The vertices contain ranking values,
A transaction picker selects a set of transactions to commit from the plurality of transactions based on the generated DAG.

第16項
複数の初期重みパラメータは、入力を介して提供される、第15項に記載のコンピュータ可読媒体。
Clause 16. The computer-readable medium of Clause 15, wherein the plurality of initial weight parameters are provided via inputs.

第17項
複数の初期重みパラメータは、自動的に導出される、第15項に記載のコンピュータ可読媒体。
Clause 17. The computer-readable medium of Clause 15, wherein the plurality of initial weight parameters are automatically derived.

第18項
複数の初期重みパラメータは、少なくとも複数のトランザクションの各々の相対重要度に基づいて導出される、第17項に記載のコンピュータ可読媒体。
Clause 18. The computer-readable medium of Clause 17, wherein the plurality of initial weight parameters are derived based on the relative importance of each of at least the plurality of transactions.

第19項
当該生成されたDAGは、複数のトランザクションの各々のランキングを計算し、
当該計算された複数のトランザクションの各々のランキングは、トランザクションに割り当てられた初期重みパラメータまたは修正重みパラメータのうちの1つである、第15項から第18項のいずれか一項に記載のコンピュータ可読媒体。
Section 19. The generated DAG computes a ranking of each of the multiple transactions,
19. The computer readable according to any one of clauses 15-18, wherein the calculated ranking of each of the plurality of transactions is one of an initial weighting parameter or a modified weighting parameter assigned to the transaction. medium.

第20項
各修正重みパラメータは、対象トランザクションの初期重みパラメータと、対象トランザクションと競合するトランザクションの少なくとも1つのランキングとに基づいて計算される、第19項に記載のコンピュータ可読媒体。
Clause 20. The computer-readable medium of Clause 19, wherein each modified weight parameter is calculated based on an initial weight parameter of the subject transaction and at least one ranking of transactions competing with the subject transaction.

上記の説明は、網羅的であることまたは範囲を開示された正確な形態に限定することを意図していない。また、特定の一連のトランザクションおよびステップを用いて実施形態を説明したが、明記しない限り、追加のトランザクションおよびステップの実行を排除しないことは、当業者には明白であろう。さらに、様々な実施形態において、特徴の特定の組み合わせを説明するが、特徴の異なる組み合わせが本開示の範囲に含まれることは、当業者には明白であろう。特に、特定の実施形態、変形例または図面に記載された(装置または方法のような)特徴は、教示および範囲から逸脱することなく、別の実施形態、変形例または図面に記載された別の特徴と組み合わせるまたは置き換えることができる。さらに、本開示の精神および範囲から逸脱することなく、様々な追加、減少、削除、変形、均等物による要素の置換、並びに形態、詳細、実装および用途における他の修正および変更を行うことができることは、当業者には明白であろう。より広い精神および保護範囲は、以下の特許請求の範囲およびその均等物によって定義される。 The description above is not intended to be exhaustive or to limit the scope to the precise forms disclosed. Also, while the embodiments have been described using a particular series of transactions and steps, it will be apparent to those skilled in the art that this does not preclude the execution of additional transactions and steps unless explicitly stated. Furthermore, while specific combinations of features are described in various embodiments, it will be apparent to those skilled in the art that different combinations of features are within the scope of the disclosure. In particular, features (such as apparatus or methods) described in a particular embodiment, variation or drawing may be practiced in another embodiment, variation or drawing, without departing from the teachings and scope of another embodiment, variation or drawing. Can be combined or replaced with features. Moreover, various additions, subtractions, deletions, variations, substitutions of elements with equivalents, and other modifications and alterations in form, detail, implementation and application may be made without departing from the spirit and scope of the present disclosure. will be clear to those skilled in the art. The broader spirit and scope of protection is defined by the following claims and their equivalents.

Claims (15)

分散型元帳における有向非循環グラフ(DAG)ベースのトランザクション処理システムであって、
エンタープライズ級の分散型元帳フレームワークと、
分散型元帳ファブリックとを備え、前記分散型元帳ファブリックは、複数のトランザクションを処理し、
競合検出器を備え、前記競合検出器は、前記複数のトランザクション間の複数の競合を検出し、
ランキングジェネレータを備え、前記ランキングジェネレータは、複数の初期重みパラメータのうちの1つの初期重みパラメータを前記複数のトランザクションのうちの各トランザクションに追加し、前記ランキングジェネレータは、DAGを生成し、前記DAGの少なくとも1つの頂点は、ランキング値を含み、
トランザクションピッカーを備え、前記トランザクションピッカーは、前記生成されたDAGに基づいて、前記複数のトランザクションから、コミット対象のトランザクションセットを選択する、システム。
A directed acyclic graph (DAG) based transaction processing system on a distributed ledger, comprising:
An enterprise-grade distributed ledger framework and
a distributed ledger fabric, the distributed ledger fabric processing a plurality of transactions;
a conflict detector, said conflict detector detecting conflicts between said transactions;
a ranking generator, wherein the ranking generator adds an initial weight parameter of a plurality of initial weight parameters to each transaction of the plurality of transactions, the ranking generator generating a DAG; at least one vertex includes a ranking value;
A system comprising a transaction picker, wherein the transaction picker selects a transaction set to be committed from the plurality of transactions based on the generated DAG.
前記複数の初期重みパラメータは、入力を介して提供される、請求項1に記載のシステム。 2. The system of claim 1, wherein the plurality of initial weight parameters are provided via inputs. 前記複数の初期重みパラメータは、自動的に導出される、請求項1に記載のシステム。 2. The system of claim 1, wherein the plurality of initial weight parameters are automatically derived. 前記複数の初期重みパラメータは、少なくとも前記複数のトランザクションの各々の相対重要度に基づいて導出される、請求項3に記載のシステム。 4. The system of claim 3, wherein the plurality of initial weight parameters are derived based on at least the relative importance of each of the plurality of transactions. 前記生成されたDAGは、前記複数のトランザクションの各々のランキングを計算し、
前記計算された複数のトランザクションの各々の前記ランキングは、トランザクションに割り当てられた初期重みパラメータまたは修正重みパラメータのうちの1つである、先行する請求項のいずれか一項に記載のシステム。
the generated DAG computes a ranking of each of the plurality of transactions;
4. The system of any one of the preceding claims, wherein the calculated ranking of each of the plurality of transactions is one of an initial weighting parameter or a modified weighting parameter assigned to the transaction.
各修正重みパラメータは、対象トランザクションの初期重みパラメータと、前記対象トランザクションと競合するトランザクションの少なくとも1つのランキングとに基づいて計算される、請求項5に記載のシステム。 6. The system of claim 5, wherein each modified weight parameter is calculated based on an initial weight parameter of a target transaction and at least one ranking of transactions competing with the target transaction. コミット対象の前記複数のトランザクションセット内の各トランザクションは、競合しない、先行する請求項のいずれか一項に記載のシステム。 4. A system according to any one of the preceding claims, wherein each transaction in the plurality of transaction sets to be committed is non-conflicting. 分散型元帳における有向非循環グラフ(DAG)ベースのトランザクション処理方法であって、
エンタープライズ級の分散型元帳フレームワークにおいて、分散型元帳ファブリックを提供することを含み、前記分散型元帳ファブリックは、複数のトランザクションを処理し、
競合検出器が、前記複数のトランザクション間の複数の競合を検出することと、
ランキングジェネレータが、複数の初期重みパラメータのうちの1つの初期重みパラメータを前記複数のトランザクションのうちの各トランザクションに追加することとを含み、前記ランキングジェネレータは、DAGを生成し、前記DAGの少なくとも1つの頂点は、ランキング値を含み、
トランザクションピッカーが、前記生成されたDAGに基づいて、前記複数のトランザクションから、コミット対象のトランザクションセットを選択することを含む、方法。
A directed acyclic graph (DAG) based transaction processing method in a distributed ledger, comprising:
providing a distributed ledger fabric in an enterprise-grade distributed ledger framework, the distributed ledger fabric processing a plurality of transactions;
a conflict detector detecting conflicts between the transactions;
a ranking generator adding an initial weight parameter of one of a plurality of initial weight parameters to each transaction of the plurality of transactions, wherein the ranking generator generates a DAG; one vertex contains the ranking value,
A method comprising a transaction picker selecting a set of transactions to commit from the plurality of transactions based on the generated DAG.
前記複数の初期重みパラメータは、入力を介して提供される、請求項8に記載の方法。 9. The method of claim 8, wherein the plurality of initial weight parameters are provided via inputs. 前記複数の初期重みパラメータは、自動的に導出される、請求項8に記載の方法。 9. The method of claim 8, wherein the plurality of initial weight parameters are automatically derived. 前記複数の初期重みパラメータは、少なくとも前記複数のトランザクションの各々の相対重要度に基づいて導出される、請求項10に記載の方法。 11. The method of claim 10, wherein the plurality of initial weight parameters are derived based on at least the relative importance of each of the plurality of transactions. 前記生成されたDAGにおいて、前記複数のトランザクションの各々のランキングが計算され、
前記計算された複数のトランザクションの各々の前記ランキングは、トランザクションに割り当てられた初期重みパラメータまたは修正重みパラメータのうちの1つである、請求項8から11のいずれか一項に記載の方法。
calculating a ranking of each of the plurality of transactions in the generated DAG;
12. A method as claimed in any one of claims 8 to 11, wherein the calculated ranking of each of the plurality of transactions is one of an initial weighting parameter or a modified weighting parameter assigned to the transaction.
各修正重みパラメータは、対象トランザクションの初期重みパラメータと、前記対象トランザクションと競合するトランザクションの少なくとも1つのランキングとに基づいて計算される、請求項12に記載の方法。 13. The method of claim 12, wherein each modified weight parameter is calculated based on an initial weight parameter of a target transaction and at least one ranking of transactions competing with the target transaction. コミット対象の前記複数のトランザクションセット内の各トランザクションは、競合しない、請求項8から13のいずれか一項に記載の方法。 14. A method as claimed in any one of claims 8 to 13, wherein each transaction in the plurality of transaction sets to be committed is non-conflicting. 分散型元帳における有向非循環グラフ(DAG)ベースのトランザクション処理命令を担持するコンピュータ可読媒体であって、これらの命令は、読み出されて実行されると、1つ以上のコンピュータに、請求項8から14のいずれか一項に記載の方法を実行させる、コンピュータ可読媒体。 A computer-readable medium bearing directed acyclic graph (DAG) based transaction processing instructions in a distributed ledger, which instructions, when read and executed, cause one or more computers to: A computer readable medium for carrying out the method of any one of claims 8 to 14.
JP2022136003A 2018-08-24 2022-08-29 DAG-based transaction processing method and system in distributed ledger Active JP7454616B2 (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
US201862722595P 2018-08-24 2018-08-24
US62/722,595 2018-08-24
US16/261,371 2019-01-29
US16/261,371 US11182379B2 (en) 2018-08-24 2019-01-29 DAG based methods and systems of transaction processing in a distributed ledger
PCT/US2019/016341 WO2020040809A1 (en) 2018-08-24 2019-02-01 Dag based methods and systems of transaction processing in a distributed ledger
JP2021510064A JP7133706B2 (en) 2018-08-24 2019-02-01 DAG-based transaction processing method and system in distributed ledger

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2021510064A Division JP7133706B2 (en) 2018-08-24 2019-02-01 DAG-based transaction processing method and system in distributed ledger

Publications (2)

Publication Number Publication Date
JP2022174127A true JP2022174127A (en) 2022-11-22
JP7454616B2 JP7454616B2 (en) 2024-03-22

Family

ID=69587067

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2021510064A Active JP7133706B2 (en) 2018-08-24 2019-02-01 DAG-based transaction processing method and system in distributed ledger
JP2022136003A Active JP7454616B2 (en) 2018-08-24 2022-08-29 DAG-based transaction processing method and system in distributed ledger

Family Applications Before (1)

Application Number Title Priority Date Filing Date
JP2021510064A Active JP7133706B2 (en) 2018-08-24 2019-02-01 DAG-based transaction processing method and system in distributed ledger

Country Status (5)

Country Link
US (2) US11182379B2 (en)
EP (1) EP3841489B1 (en)
JP (2) JP7133706B2 (en)
CN (1) CN112602076A (en)
WO (1) WO2020040809A1 (en)

Families Citing this family (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10552069B2 (en) 2017-07-07 2020-02-04 Sap Se Caching the topology of a distributed data storage system
US10915521B2 (en) * 2018-08-21 2021-02-09 Syniverse Technologies, Llc Blockchain gateway device and associated method of use
US11182379B2 (en) 2018-08-24 2021-11-23 Oracle International Corporation DAG based methods and systems of transaction processing in a distributed ledger
JP7051648B2 (en) * 2018-09-05 2022-04-11 株式会社日立製作所 Electronic transaction device, electronic transaction verification device, and electronic transaction method
US11720545B2 (en) * 2018-12-19 2023-08-08 International Business Machines Corporation Optimization of chaincode statements
ES2864179T3 (en) * 2018-12-29 2021-10-13 Advanced New Technologies Co Ltd System and method to implement a native contract on a blockchain
US10733152B2 (en) * 2018-12-29 2020-08-04 Alibaba Group Holding Limited System and method for implementing native contract on blockchain
US11934425B1 (en) * 2019-02-04 2024-03-19 Harbor Technologies, LLC Synchronizing a centralized state on a distributed chain database with an off-chain state to improve trade authorization practices
EP3612930A4 (en) 2019-03-26 2020-06-24 Alibaba Group Holding Limited System and method for implementing different types of blockchain contracts
US11416548B2 (en) * 2019-05-02 2022-08-16 International Business Machines Corporation Index management for a database
US11777738B2 (en) * 2019-06-04 2023-10-03 International Business Machines Corporation Metadata-based endorsement
US11048693B2 (en) * 2019-06-05 2021-06-29 International Business Machines Corporation Resolution of ordering inversions
CN110532115B (en) * 2019-09-04 2021-03-05 北京海益同展信息科技有限公司 System, method and apparatus for developing smart contracts
CN111352998B (en) * 2020-02-28 2021-09-21 中国计量科学研究院 Trusted alliance block chain digital calibration certificate system and operation method thereof
CN111506783B (en) 2020-04-08 2023-12-22 百度在线网络技术(北京)有限公司 Transaction request processing method, device, equipment and medium in blockchain
US11470158B2 (en) * 2020-07-14 2022-10-11 The Travelers Indemnity Company Systems and methods for asynchronous API-driven external application services for a blockchain
WO2022027175A1 (en) * 2020-08-03 2022-02-10 Alipay (Hangzhou) Information Technology Co., Ltd. Blockchain transaction processing systems and methods
CN115398397A (en) * 2020-08-03 2022-11-25 支付宝(杭州)信息技术有限公司 Block chain transaction processing system and method
US11917088B2 (en) * 2020-09-21 2024-02-27 International Business Machines Corporation Integrating device identity into a permissioning framework of a blockchain
US11301463B1 (en) * 2020-10-09 2022-04-12 Blockpoint Systems Inc. Multi-version database management system
US11822538B2 (en) 2020-11-05 2023-11-21 Oracle International Corporation Systems and methods of transaction identification generation for transaction-based environment
US11847710B2 (en) * 2020-12-23 2023-12-19 International Business Machines Corporation Contract analytic binding and provenance
CN113254419B (en) * 2021-01-19 2022-05-03 深圳市神州通在线科技有限公司 Internet of things cloud platform management system and method based on big data micro-service
CN113805899B (en) * 2021-08-25 2024-01-26 浪潮卓数大数据产业发展有限公司 Automatic software deployment method
CN114168685B (en) * 2021-12-15 2023-07-18 北京天德科技有限公司 Novel database architecture based on blockchain system and operation method
CN115037472B (en) * 2022-03-28 2023-06-23 湖南天河国云科技有限公司 Transaction processing method and system based on double-layer DAG consensus mechanism and service equipment
CN114827165B (en) * 2022-05-30 2024-01-23 蚂蚁区块链科技(上海)有限公司 Method and block link point for grouping multiple transactions
CN116722966B (en) * 2023-07-26 2024-03-12 云南大学 Efficient trusted chain data feeding method based on DAG predictor network
CN116846916B (en) * 2023-09-01 2023-12-08 武汉趣链数字科技有限公司 Data synchronization method, device, electronic equipment and computer readable storage medium
CN116978509B (en) * 2023-09-22 2023-12-19 山东百康云网络科技有限公司 Electronic prescription circulation method

Family Cites Families (52)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7711678B2 (en) 2006-11-17 2010-05-04 Microsoft Corporation Software transaction commit order and conflict management
US9253016B2 (en) 2010-11-02 2016-02-02 International Business Machines Corporation Management of a data network of a computing environment
US20130046894A1 (en) 2011-08-18 2013-02-21 Sap Ag Model-driven rest consumption framework
CN104303175B (en) 2012-02-10 2018-06-12 甲骨文国际公司 Cloud computing service frame
SG10201900418SA (en) 2014-06-26 2019-02-27 Amazon Tech Inc Multi-database log with multi-item transaction support
US9519674B2 (en) 2014-09-10 2016-12-13 Amazon Technologies, Inc. Stateless datastore-independent transactions
JP6309442B2 (en) 2014-12-18 2018-04-11 株式会社日立製作所 System template maintenance system and system template maintenance method
US10579974B1 (en) 2015-02-16 2020-03-03 AI Coin Inc. Systems, methods, and program products for a distributed digital asset network with rapid transaction settlements
SG11201707983QA (en) 2015-04-01 2017-10-30 Ab Inito Tech Llc Processing database transactions in a distributed computing system
US9652269B2 (en) 2015-04-03 2017-05-16 Oracle International Corporation System and method for supporting representational state transfer services natively in a service bus runtime
JP6704985B2 (en) 2015-04-05 2020-06-03 デジタル・アセット・ホールディングス・エルエルシー Digital asset brokerage electronic payment platform
US9930103B2 (en) 2015-04-08 2018-03-27 Amazon Technologies, Inc. Endpoint management system providing an application programming interface proxy service
US10366247B2 (en) * 2015-06-02 2019-07-30 ALTR Solutions, Inc. Replacing distinct data in a relational database with a distinct reference to that data and distinct de-referencing of database data
WO2017011601A1 (en) 2015-07-14 2017-01-19 Fmr Llc Computationally efficient transfer processing, auditing, and search apparatuses, methods and systems
US9912494B2 (en) 2015-08-12 2018-03-06 Cisco Technology, Inc. Distributed application hosting environment to mask heterogeneity
WO2017040313A1 (en) 2015-08-28 2017-03-09 Swirlds, Inc. Methods and apparatus for a distributed database within a network
US20170116693A1 (en) 2015-10-27 2017-04-27 Verimatrix, Inc. Systems and Methods for Decentralizing Commerce and Rights Management for Digital Assets Using a Blockchain Rights Ledger
WO2017136956A1 (en) 2016-02-12 2017-08-17 Royal Bank Of Canada Methods and systems for digital reward processing
US10237259B2 (en) 2016-02-29 2019-03-19 Securekey Technologies Inc. Systems and methods for distributed identity verification
US10445698B2 (en) * 2016-06-30 2019-10-15 Clause, Inc. System and method for forming, storing, managing, and executing contracts
US20180130034A1 (en) 2016-11-07 2018-05-10 LedgerDomain, LLC Extended blockchains for event tracking and management
US10691763B2 (en) 2016-11-11 2020-06-23 International Business Machines Corporation Trustable web searching verification in a blockchain
US10396997B2 (en) 2016-12-14 2019-08-27 International Business Machines Corporation Container-based operating system and method
US10311230B2 (en) * 2016-12-24 2019-06-04 Cisco Technology, Inc. Anomaly detection in distributed ledger systems
EP3355225B1 (en) 2017-01-31 2022-07-27 Sony Group Corporation Apparatus and method for providing a ethereum virtual device
CN106982205B (en) 2017-03-01 2020-05-19 中钞信用卡产业发展有限公司杭州区块链技术研究院 Block chain-based digital asset processing method and device
US10375105B2 (en) 2017-03-03 2019-08-06 International Business Machines Corporation Blockchain web browser interface
CN106952124A (en) 2017-03-16 2017-07-14 北京牛链科技有限公司 Electronic bill management system and method based on distribution book keeping operation
US10452998B2 (en) 2017-03-19 2019-10-22 International Business Machines Corporation Cognitive blockchain automation and management
US10757103B2 (en) 2017-04-11 2020-08-25 Xage Security, Inc. Single authentication portal for diverse industrial network protocols across multiple OSI layers
US10469460B2 (en) 2017-04-17 2019-11-05 Cisco Technology, Inc. Data sharing in a blockchain-enabled trust domain
US20180308072A1 (en) 2017-04-21 2018-10-25 Gem Method and apparatus for blockchain management
US10833858B2 (en) 2017-05-11 2020-11-10 Microsoft Technology Licensing, Llc Secure cryptlet tunnel
US10601900B2 (en) 2017-05-24 2020-03-24 Red Hat, Inc. Supporting distributed ledgers in a micro-services environment
US9870508B1 (en) 2017-06-01 2018-01-16 Unveiled Labs, Inc. Securely authenticating a recording file from initial collection through post-production and distribution
GB201709188D0 (en) 2017-06-09 2017-07-26 Nchain Holdings Ltd Computer-Implemented system and method
US10789104B2 (en) 2017-06-30 2020-09-29 Vmware, Inc. Methods and apparatus for deploying a distributed system using operating system virtualization
US10123202B1 (en) 2017-07-11 2018-11-06 Verizon Patent And Licensing Inc. System and method for virtual SIM card
US10581873B2 (en) 2017-07-11 2020-03-03 Cisco Technology, Inc. Securing micro-services
US11343095B2 (en) 2017-09-19 2022-05-24 Microsoft Technology Licensing, Llc Cryplet binding key graph
US10762079B2 (en) 2017-09-29 2020-09-01 Oracle International Corporation System and method for managing a blockchain cloud service
CN108389129B (en) * 2018-02-27 2020-12-04 创新先进技术有限公司 Transaction execution method and device based on block chain and electronic equipment
US11951400B2 (en) * 2018-03-14 2024-04-09 Sony Interactive Entertainment LLC Secure decentralized video game transaction platform
CN108764870B (en) 2018-05-29 2020-07-07 阿里巴巴集团控股有限公司 Transaction processing method and device based on block chain and electronic equipment
US20200037158A1 (en) * 2018-07-30 2020-01-30 Hewlett Packard Enterprise Development Lp Systems and methods for using smart contract and light and sound emitting assets provisioned with distributed ledger addresses to identify and locate assets
US11182379B2 (en) 2018-08-24 2021-11-23 Oracle International Corporation DAG based methods and systems of transaction processing in a distributed ledger
US11048689B2 (en) 2018-11-08 2021-06-29 International Business Machines Corporation Consensus transaction scheduler
US11151558B2 (en) 2018-12-12 2021-10-19 American Express Travel Related Services Company, Inc Zero-knowledge proof payments using blockchain
US11694110B2 (en) 2019-06-12 2023-07-04 International Business Machines Corporation Aggregated machine learning verification for database
US11546425B2 (en) 2020-04-23 2023-01-03 Oracle International Corporation Systems and methods of providing ledger as a service
US11741075B2 (en) 2020-06-04 2023-08-29 Oracle International Corporation Methods and system of tracking transactions for distributed ledger
US11822538B2 (en) 2020-11-05 2023-11-21 Oracle International Corporation Systems and methods of transaction identification generation for transaction-based environment

Also Published As

Publication number Publication date
JP2021534512A (en) 2021-12-09
EP3841489A1 (en) 2021-06-30
US11182379B2 (en) 2021-11-23
JP7454616B2 (en) 2024-03-22
US20220058186A1 (en) 2022-02-24
EP3841489B1 (en) 2022-09-07
US20200065300A1 (en) 2020-02-27
WO2020040809A1 (en) 2020-02-27
US11921703B2 (en) 2024-03-05
JP7133706B2 (en) 2022-09-08
CN112602076A (en) 2021-04-02

Similar Documents

Publication Publication Date Title
JP7133706B2 (en) DAG-based transaction processing method and system in distributed ledger
JP7168759B2 (en) Systems and Methods for Supporting SQL-Based Rich Queries in Hyperledger Fabric Blockchain
US11544254B2 (en) System and method for managing a blockchain cloud service
US11546425B2 (en) Systems and methods of providing ledger as a service
US20240054125A1 (en) Systems and methods of transaction identification generation for transaction-based environment

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220912

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220912

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230927

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20231003

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20231212

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20240213

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240311

R150 Certificate of patent or registration of utility model

Ref document number: 7454616

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150