CN113987035A - Block chain external data access method, device, system, equipment and medium - Google Patents

Block chain external data access method, device, system, equipment and medium Download PDF

Info

Publication number
CN113987035A
CN113987035A CN202010732601.7A CN202010732601A CN113987035A CN 113987035 A CN113987035 A CN 113987035A CN 202010732601 A CN202010732601 A CN 202010732601A CN 113987035 A CN113987035 A CN 113987035A
Authority
CN
China
Prior art keywords
external data
server
contract
data access
user
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.)
Pending
Application number
CN202010732601.7A
Other languages
Chinese (zh)
Inventor
朱江
王森
刘春伟
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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
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 Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202010732601.7A priority Critical patent/CN113987035A/en
Publication of CN113987035A publication Critical patent/CN113987035A/en
Pending legal-status Critical Current

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/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the application discloses an external data access method, a device, a system, equipment and a medium of a block chain, wherein the method is applied to endorsement nodes of a federation chain, the endorsement nodes are provided with a user contract and a predictive engine contract, and a predictive engine server corresponds to at least one endorsement node, and the method comprises the following steps: the method comprises the steps of obtaining an external data access request of a user client, wherein the external data access request carries transaction information, calling a pre-language machine contract through the user contract under the condition that target external data do not exist in the pre-language machine contract, sending the external data access request to a pre-language machine server, wherein the target external data are data requested by the external data access request, receiving target external data corresponding to the transaction information returned by the pre-language machine server, and returning the target external data to the user client. By adopting the technical scheme, the external data can be accessed through the prediction machine in the alliance chain, the pressure of an external data server is reduced, and the accuracy is improved.

Description

Block chain external data access method, device, system, equipment and medium
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method, an apparatus, a system, a device, and a medium for accessing external data of a blockchain.
Background
Blockchains are a completely new distributed infrastructure and computing approach that uses blockchain data structures to verify and store data, uses distributed node consensus algorithms to generate and update data, uses cryptography to secure data transmission and access, and uses intelligent contracts composed of automated script codes to program and manipulate data.
The block chain can comprise a public chain and a private chain, an intelligent contract in the public chain can access external data through an Oracle (Oracle), the private chain is especially in a federation chain, such as a hyper ledger (hyper hedger) Fabric, the operation mechanism is different from that of the public chain, and finally the blocks are generated by the sequencing nodes through a multi-node endorsement mechanism. The intelligent contract in the HyperLegger Fabric can directly call the external data, but the defects that the external data server is stressed due to repeated calls and the external data can fail to be identified due to network reason errors exist.
Disclosure of Invention
The present application is proposed to solve the above-mentioned technical problems. Embodiments of the present application provide a method, an apparatus, a system, a device, and a medium for accessing external data of a block chain, which can optimize an access scheme for external data in a federation chain, reduce the pressure of an external data server, and improve the accuracy of external data access.
According to a first aspect of the present application, there is provided an external data access method for a block chain, which is applied to endorsement nodes of a federation chain, where a user contract and a predictive engine contract are set in the endorsement nodes, and a predictive engine server corresponds to at least one endorsement node, the method including:
acquiring an external data access request of a user client, wherein the external data access request carries transaction information;
under the condition that target external data does not exist in the language predicting machine contract, calling the language predicting machine contract through the user contract, and sending the external data access request to a language predicting machine server, wherein the target external data is data requested by the external data access request;
receiving the target external data corresponding to the transaction information returned by the predicting machine server;
and returning the target external data to the user client.
According to a second aspect of the present application, there is provided an external data access method for a block chain, which is applied to a prolog server in a federation chain, where the prolog server corresponds to at least one endorsement node, and a user contract and a prolog contract are set in the endorsement node, the method including:
receiving an external data access request sent by calling a language predictive contract through a user contract when target external data does not exist in the language predictive contract, wherein the target external data is data requested by the external data access request, and the external data access request carries transaction information;
acquiring corresponding target external data based on the transaction information;
and returning the target external data to the endorsement node so that the endorsement node returns the target external data to the user client.
According to a third aspect of the present application, there is provided an external data access apparatus of a block chain, which is disposed in an endorsement node of a federation chain, the endorsement node having a user contract and a predictive engine contract disposed therein, and a predictive engine server corresponding to at least one endorsement node, the apparatus comprising:
the system comprises a request acquisition module, a transaction processing module and a transaction processing module, wherein the request acquisition module is used for acquiring an external data access request of a user client, and the external data access request carries transaction information;
the request sending module is used for calling the language predictive contract through the user contract and sending the external data access request to a language predictive server under the condition that target external data does not exist in the language predictive contract, wherein the target external data is data requested by the external data access request;
the data receiving module is used for receiving the target external data corresponding to the transaction information returned by the predicting machine server;
and the data return module is used for returning the target external data to the user client.
According to a fourth aspect of the present application, there is provided an external data access apparatus of a block chain, which is disposed in a prolog server in a federation chain, the prolog server corresponding to at least one endorsement node, the endorsement node having a user contract and a prolog contract disposed therein, the apparatus including:
a request receiving module, configured to receive an external data access request sent by an endorsement node invoking a language predictive contract through a user contract when target external data does not exist in the language predictive contract, where the target external data is data requested by the external data access request, and the external data access request carries transaction information;
the data acquisition module is used for acquiring the corresponding target external data based on the transaction information;
and the data sending module is used for returning the target external data to the endorsement node so as to enable the endorsement node to return the target external data to the user client.
According to a fifth aspect of the present application, there is provided an external data access system of a blockchain, which is disposed in a federation chain, and includes at least one endorsement node and a talker server; wherein, the endorsement node is provided with a user contract and a language prediction machine contract, the language prediction machine server corresponds to at least one endorsement node, and the endorsement node is used for: acquiring an external data access request of a user client, wherein the external data access request carries transaction information; under the condition that target external data does not exist in the language predicting machine contract, calling the language predicting machine contract through the user contract, and sending the external data access request to a language predicting machine server, wherein the target external data is data requested by the external data access request; receiving the target external data corresponding to the transaction information returned by the predicting machine server; and returning the target external data to the user client.
According to a sixth aspect of the present application, there is provided an electronic apparatus comprising:
a processor;
a memory for storing the processor-executable instructions;
and the processor is used for reading the executable instruction from the memory and executing the instruction to realize the external data access method of the block chain.
According to a seventh aspect of the present application, there is provided a computer-readable storage medium storing a computer program for executing the above-described external data access method of a blockchain.
According to the external data access scheme of the block chain provided by the embodiment of the application, an endorsement node of a coalition chain acquires an external data access request of a user client, the external data access request carries transaction information, and under the condition that no target external data exists in a predictive server contract, the predictive server contract is called through the user contract, the external data access request is sent to a predictive server, wherein the target external data is the data requested by the external data access request, the target external data corresponding to the transaction information returned by the predictive server is received, and the target external data is returned to the user client. By adopting the technical scheme, the fact that the speaker server is added in the alliance chain and the speaker contract is added in the endorsement node is achieved, external data can be accessed through the speaker in the alliance chain, the access scheme of the external data in the alliance chain can be optimized, the situation that a plurality of endorsement nodes call the external data server repeatedly is avoided, the pressure of the external data server is reduced, and the accuracy of external data access is improved as the plurality of endorsement nodes correspond to one speaker server.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic structural diagram of an external data access system of a block chain according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of an external data access system of another block chain according to an embodiment of the present application.
Fig. 3 is a schematic flowchart of an external data access method for a blockchain according to an embodiment of the present disclosure.
Fig. 4 is a schematic flowchart of another external data access method for a blockchain according to an embodiment of the present application.
Fig. 5 is a schematic flowchart of a further external data access method for a blockchain according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an external data access device of a block chain according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of an external data access device of another block chain according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Hereinafter, example embodiments according to the present application will be described in detail with reference to the accompanying drawings. It should be understood that the described embodiments are only some embodiments of the present application and not all embodiments of the present application, and that the present application is not limited by the example embodiments described herein.
Fig. 1 is a schematic structural diagram of an external data access system of a block chain according to an embodiment of the present application. As shown in fig. 1, the external data access system of the blockchain is arranged in a federation chain and includes at least one endorsement node 11 and a talker server 12; wherein, set up user contract and prediction machine contract in endorsement node 11, prediction machine server 12 corresponds at least one endorsement node 11, endorsement node 11 is used for: acquiring an external data access request of a user client 13, wherein the external data access request carries transaction information; under the condition that target external data does not exist in the prediction machine contract, calling the prediction machine contract through the user contract, and sending an external data access request to the prediction machine server 12, wherein the target external data is data requested by the external data access request; receiving target external data corresponding to the transaction information returned by the prediction machine server 12; the target external data is returned to the user client 13.
The federation chain is a private chain in the block chain, and the federation chain in the embodiment of the application takes hyperridge Fabric as an example for description. Hyperledger Fabric, which is intended as the basis for developing blockchain applications of modular architecture so that components such as consensus and meeting services can be plug-and-play, uses container technology to host intelligent contracts (also known as chaining code) that make up the system application logic, is one of the projects of the Hyperbook dominated by the Linux foundation. HyperLegendr Fabric is a generic block chain structure that is built for enterprises. It should be understood that the present application is only illustrated by the example of HyperLegger Fabric, and the present application is not limited thereto.
The predictive engine is a trusted entity and can sign information about the state of the external world, because signature confirmation can be clearly realized, and the predictive engine allows a certain intelligent contract to react to the uncertain external world, so the predictive engine is the only way for the intelligent contract to perform data interaction with the outside. The prediction machine is mostly applied to a public chain of a block chain at present and is used for helping the block chain to access external data, and because an intelligent contract of the public chain is a closed environment and directly accesses the external data, execution results of the intelligent contract are inconsistent, and consensus failure is caused.
The smart contract in HyperLegger Fabric can directly call external data, but has the following defects: the user contract in the endorsement node needs to process the work of network input/output, data analysis and the like by self, so that the threshold of developing the intelligent contract by a common user is increased; when a plurality of endorsement nodes execute a user contract, repeatedly calling an external data server to cause pressure on the external data server; when a plurality of endorsement nodes execute a user contract, external data are respectively acquired, and error or inconsistent results may be obtained due to network reasons such as a network firewall, a Domain Name System (DNS) and the like, so that consensus failure is caused; external call data is not saved, so that contract execution environment cannot be restored, and auditing cannot be performed. In order to solve the problem that the HyperLegend Fabric has access to external data, a propheter can be introduced into the HyperLegend Fabric in the embodiment of the application, and the external data can be accessed through the propheter.
As shown in fig. 1, in the external data access system of the block chain provided in the embodiment of the present application, a language predictive contract may be introduced into an endorsement node 11, and the language predictive contract and a user contract are deployed in the same transmission channel to provide an external data access service; and introducing the speaker server 12, wherein the plurality of endorsement nodes 11 correspond to the same speaker server 12, and can return external data in response to a request of a speaker contract in the plurality of endorsement nodes 11.
The endorsement node 11 may obtain an external data access request sent by the user client 13, and in a case that target external data does not exist in the language predictive contract, call the language predictive contract through the user contract, send the external data access request to the language predictive server 12, where the target external data is data requested by the external data access request, receive target external data corresponding to the transaction information returned by the language predictive server 12, and return the target external data to the user client 13. The external data access request carries transaction information, where the transaction information may include a transaction identifier and a Uniform Resource Locator (URL) corresponding to a transaction, and the transaction identifier may be represented by a TXID.
Because each transaction in the Hyperledger Fabric has a unique TXID, the transaction information based on TXID + URL accesses external data in the embodiment of the application, so that repeated requests of the same transaction multi-endorsement node for the same URL resource can be avoided, the external data resource can be regarded as unchanged when the same transaction is endorsed, but the external data resource needs to be requested again when different transactions request the same resource.
As shown in fig. 1, the prolog server 12 is further provided with a prolog cache, and the prolog server 12 is configured to receive an external data access request sent by each endorsement node 11, and obtain corresponding target external data from the prolog cache based on transaction information carried in the external data access request and return the target external data to each endorsement node 11; or, the predicting machine server 12 is configured to send an external data access request to the external data server 14 after receiving the target external data access request sent by each endorsement node 11, receive target external data corresponding to the transaction information carried in the external data access request returned by the external data server 14, then return the target external data to each endorsement node 11, and store the target external data in the predicting machine cache. The prediction machine cache can provide a cache function of taking transaction information as an index, can avoid repeated inquiry of external data, and improves efficiency. The external data server 14 may provide stateless data for Hyperridge Fabric.
After receiving the external data access request sent by each endorsement node 11, a predictive-machine service module in the predictive-machine server 12 may query in a predictive-machine cache according to the transaction information, and if corresponding target external data exists in the predictive-machine cache, directly return the target external data to each endorsement node 11; if the corresponding target external data does not exist in the prediction machine cache, an external data access request is sent to the external data server 14, and after the target external data returned by the external data server 14 is received, the target external data can be returned to each endorsement node 11 and stored in the prediction machine cache. Illustratively, the target external data may be stored in the prediction machine cache in the form of "Map < TXID + URL, result >.
In this embodiment of the present application, the endorsement node 11 is specifically configured to return a user execution result of the user contract and a language predictive engine execution result of the language predictive engine contract to the user client 13, where both the user execution result and the language predictive engine execution result include target external data. The language-predictive machine contract in the endorsement node 11 can acquire target external data in a PutState mode, after the target external data is received by the user contract and the language-predictive machine contract, read-write sets RWSet < key, val > and RWSet < TXID + URL, result which can change the account result are generated through simulation execution, that is, the user execution result and the language-predictive machine execution result are obtained, and the user execution result and the language-predictive machine execution result are returned to the user client 13, that is, the transaction provider.
The method has the advantages that when the block is submitted, the prediction machine contract and the data of the user contract are booked together, the transaction data are more convenient, the transaction data can be audited, the call data of each transaction is written into the block chain, the audit can be replayed when and where the historical transactions in the block chain, and the safety is further improved.
As shown in fig. 1, the external data access system of the block chain in the embodiment of the present application may further include a sorting node 15, where the sorting node 15 is configured to generate a transaction block after authenticating the user execution result and the prediction machine execution result, and broadcast the transaction block. The transaction block is broadcast to the submission node 16 and the endorsement node 11 in fig. 1, and both the submission node 16 and the endorsement node 11 are peer (Peers) nodes in the Hyperhedger Fabric, and are entities that submit transactions and maintain ledger states. After the endorsement check is performed on the user execution result and the language prediction machine execution result by the sequencing node 15, the transaction blocks can be sequenced and created, and are broadcast to the submission node 16 and the endorsement node 11, and the submission node 16 and the endorsement node 11 respectively write the transaction blocks into the local account book after verification. The endorsement node 11 includes an account book, and the user contract and the language predictive engine contract in fig. 1 are respectively connected with the account book through a dotted line, which indicates that the sorting node 15 sorts the user execution result and the language predictive engine execution result and stores the transaction block into the account book after the user execution result and the language predictive engine execution result pass verification, and the transaction block stores the user execution result and the language predictive engine execution result.
Fig. 2 is a schematic structural diagram of an external data access system of another block chain according to an embodiment of the present application. Fig. 2 is a partial deployment diagram of the external data access system of the blockchain shown in another form on the basis of fig. 1, on the basis of the original components in the superhedger Fabric, a predictive engine contract is added in the endorsement node 11, a predictive engine server 12 is added between the endorsement node and the external data server 14, and the external data access is realized through the predictive engine contract and the predictive engine server 12. Optionally, data transmission between the endorsement node 11, the talker server 12 and the external data server 14 may be performed based on a Transport Layer Security (TLS) protocol, so as to improve Security.
By introducing the mode of the preplan contract and the preplan server, when a user client requests to access external data, the external data server only makes one external call for each transaction, so that the pressure of the external data server is reduced, and each endorsement node of the HyperLegendr Fabric accesses the same preplan server to obtain the consistency of the external data, so that a block chain is easier to achieve consensus.
The external data access system of the block chain provided by the embodiment of the application is arranged in a alliance chain and comprises at least one endorsement node and a speaker server; wherein, be provided with user contract and prediction machine contract in the endorsement node, prediction machine server corresponds at least one endorsement node, and the endorsement node is used for: acquiring an external data access request of a user client, wherein the external data access request carries transaction information; under the condition that target external data does not exist in the prediction machine contract, calling the prediction machine contract through a user contract, and sending an external data access request to a prediction machine server, wherein the target external data is data requested by the external data access request; receiving target external data corresponding to the transaction information returned by the prediction machine server; and returning the target external data to the user client. By adopting the technical scheme, the fact that the speaker server is added in the alliance chain and the speaker contract is added in the endorsement node is achieved, external data can be accessed through the speaker in the alliance chain, the access scheme of the external data in the alliance chain can be optimized, the situation that a plurality of endorsement nodes call the external data server repeatedly is avoided, the pressure of the external data server is reduced, and the accuracy of external data access is improved as the plurality of endorsement nodes correspond to one speaker server.
Fig. 3 is a schematic flowchart of an external data access method for a blockchain according to an embodiment of the present disclosure, where the present embodiment is applicable to a case where external data access is implemented in a federation chain. The method may be performed by an external data access device of the blockchain, which may be implemented in software and/or hardware, which may be configured in an electronic device. As shown in fig. 3, the method is applied to an endorsement node in a federation chain, and includes the following steps:
step 101, obtaining an external data access request of a user client, wherein the external data access request carries transaction information.
In this embodiment, the federation chain may be HyperLegendr Fabric. The transaction information may include a transaction identification and an exchange corresponding uniform resource locator.
Specifically, after a user client in the federation chain initiates a transaction, an external data access request may be sent to the endorsement node to request external data required for the transaction. And the user contract of the endorsement node responds to the call of the user client to acquire the external data access request.
And 102, under the condition that target external data does not exist in the prediction machine contract, calling the prediction machine contract through the user contract, and sending an external data access request to the prediction machine server, wherein the target external data is the data requested by the external data access request.
The endorsement node is provided with a user contract and a language predicting machine contract, and the language predicting machine server corresponds to at least one endorsement node.
After the user contract of the endorsement node acquires the external data access request, a preset language predictive machine contract can be called, so that the external data access request is sent to a language predictive machine server under the condition that target external data does not exist in the language predictive machine contract. And if the corresponding target external data is inquired by the prediction machine contract, directly returning the target external data to the user client.
And 103, receiving target external data corresponding to the transaction information returned by the prediction machine server.
Specifically, the endorsement node may receive target external data obtained by the predictive teller server from an internally-arranged predictive teller cache or an external data server based on the transaction information.
In this embodiment of the application, receiving target external data obtained by the predictive teller server from an internal predictive teller cache or an external data server based on the transaction information may include: if the predicting machine server inquires and determines that corresponding target external data exists in the predicting machine cache based on the transaction information, receiving the target external data in the predicting machine cache returned by the predicting machine server; otherwise, receiving target external data obtained by the prediction server from the external server based on the transaction information.
After receiving an external data access request sent by each endorsement node, a predictive reader service module in a predictive reader server can inquire in a predictive reader cache according to transaction information, and if corresponding target external data exists in the predictive reader cache, the target external data is directly returned to each endorsement node; if the corresponding target external data does not exist in the prediction machine cache, sending an external data access request to the external data server, after receiving the target external data returned by the external data server, returning the target external data to each endorsement node, and storing the target external data in the prediction machine cache.
For the requests of a plurality of endorsement nodes for the same resource in the same transaction, the predictive server only requests the external data server once, and then obtains and returns the requests from the predictive cache, thereby greatly reducing the pressure of the external data server.
And step 104, returning the target external data to the user client.
And after the endorsement node obtains the external data returned by the speaker server, the target external data can be returned to the user client.
For the user client, in the external data access process, the data result of the relationship can be obtained without processing any called flow, so that the method is more convenient and faster.
According to the external data access scheme of the block chain provided by the embodiment of the application, an endorsement node of a coalition chain acquires an external data access request of a user client, the external data access request carries transaction information, and under the condition that no target external data exists in a predictive server contract, the predictive server contract is called through the user contract, the external data access request is sent to a predictive server, wherein the target external data is the data requested by the external data access request, the target external data corresponding to the transaction information returned by the predictive server is received, and the target external data is returned to the user client. By adopting the technical scheme, the fact that the speaker server is added in the alliance chain and the speaker contract is added in the endorsement node is achieved, external data can be accessed through the speaker in the alliance chain, the access scheme of the external data in the alliance chain can be optimized, the situation that a plurality of endorsement nodes call the external data server repeatedly is avoided, the pressure of the external data server is reduced, and the accuracy of external data access is improved as the plurality of endorsement nodes correspond to one speaker server.
Further, in some embodiments, returning the target external data to the user client may include: and returning the user execution result of the user contract and the prediction machine execution result of the prediction machine contract to the user client, wherein both the user execution result and the prediction machine execution result comprise target external data.
After receiving the target external data, the user contract and the language predicting machine contract in the endorsement node can generate a read-write set for account book result change through simulation execution, namely a user execution result and a language predicting machine execution result, and return the user execution result and the language predicting machine execution result to the user client.
In some embodiments, after returning the user execution result of the user contract and the prediction machine execution result of the prediction machine contract to the user, the method may further include: and acquiring a transaction block generated after the sequencing node authenticates the user execution result and the prolog machine execution result, and storing the transaction block in the account book.
After the ordering node performs endorsement check on the user execution result and the pre-speaking machine execution result, a transaction block can be created, the transaction block is broadcasted to the endorsement node and the submission node, and the submission node and the endorsement node respectively write the transaction block into the local account book after the transaction block is verified.
The method has the advantages that when the block is submitted, the prediction machine contract and the data of the user contract are booked together, the transaction data are more convenient, the transaction data can be audited, the call data of each transaction is written into the block chain, and the audit can be replayed when and where the historical transactions in the block chain are.
Fig. 4 is a flowchart of another external data access method for a blockchain according to an embodiment of the present disclosure, where the method may be performed by an external data access apparatus for a blockchain, where the apparatus may be implemented in software and/or hardware, and the apparatus may be configured in an electronic device. As shown in fig. 4, the method is applied to a talker server in a federation chain, and includes the following steps:
step 201, receiving an external data access request sent by an endorsement node calling a predictive engine contract through a user contract when target external data does not exist in the predictive engine contract, wherein the target external data is data requested by the external data access request, and the external data access request carries transaction information.
The book reservation machine server corresponds to at least one endorsement node, and a user contract and a book reservation machine contract are arranged in the endorsement node. The transaction information may include a transaction identification and an exchange corresponding uniform resource locator.
Specifically, after a user client in the federation chain initiates a transaction, an external data access request may be sent to the endorsement node to request target external data required for the transaction. And the user contract of the endorsement node responds to the calling of the user client to obtain the external data access request, and then a preset language predictive machine contract can be called to send the external data access request to the language predictive machine server under the condition that target external data does not exist in the language predictive machine contract.
And step 202, acquiring corresponding target external data based on the transaction information.
In this embodiment of the application, the predicting machine server is provided with a predicting machine cache, and the obtaining of the corresponding target external data based on the transaction information may include: and acquiring target external data from the prediction machine cache or the external data server based on the transaction information. Further, obtaining the target external data from the prediction machine cache or the external data server based on the transaction information may include: if the corresponding target external data is inquired and determined in the prediction machine cache based on the transaction information, the target external data is obtained from the prediction machine cache; otherwise, sending an external data access request to the external data server, and receiving target external data corresponding to the transaction information returned by the external data server. Optionally, after receiving the target external data corresponding to the transaction information returned by the external data server, the method may further include: storing the target external data in the prediction machine cache.
After receiving the external data access request sent by each endorsement node, the prediction machine server can inquire in a prediction machine cache according to transaction information, and if corresponding target external data exists in the prediction machine cache, the target external data is directly returned to each endorsement node; if the corresponding target external data does not exist in the prediction machine cache, sending an external data access request to the external data server, after receiving the target external data returned by the external data server, returning the target external data to each endorsement node, and storing the target external data in the prediction machine cache.
For the requests of a plurality of endorsement nodes for the same resource in the same transaction, the predictive server only requests the external data server once, and then obtains and returns the requests from the predictive cache, thereby greatly reducing the pressure of the external data server.
And step 203, returning the target external data to the endorsement node so that the endorsement node returns the target external data to the user client.
After the prediction machine server obtains the target external data corresponding to the transaction information, the target external data can be returned to the endorsement node, and after the endorsement node obtains the target external data, the target external data can be returned to the user client.
According to the external data access scheme of the block chain provided by the embodiment of the application, the speaker server of the alliance chain receives an external data access request sent by a speaker contract called by a user contract when the endorsement node does not have target external data in the speaker contract, wherein the target external data is data requested by the external data access request, the external data access request carries transaction information, corresponding target external data is obtained based on the transaction information, and the external data is returned to the endorsement node, so that the endorsement node returns the target external data to the user client. By adopting the technical scheme, the fact that the speaker server is added in the alliance chain and the speaker contract is added in the endorsement node is achieved, external data can be accessed through the speaker in the alliance chain, the access scheme of the external data in the alliance chain can be optimized, the situation that a plurality of endorsement nodes call the external data server repeatedly is avoided, the pressure of the external data server is reduced, and the accuracy of external data access is improved as the plurality of endorsement nodes correspond to one speaker server.
Fig. 5 is a flowchart illustrating a further external data access method for a blockchain according to an embodiment of the present application. Based on the above embodiments, this embodiment further specifically describes a process of accessing external data by an endorsement node in a federation chain. As shown in fig. 5, a user contract and a prediction machine contract are set in an endorsement node, and the method may include:
and step 301, invoking a language predictive contract by the endorsement node through the user contract.
After a user contract in the endorsement node acquires an external data access request or an audit request sent by a user client, a prediction machine contract can be called.
And step 302, the endorsement node inquires an account book through a book-keeping machine contract.
The book-of-premaching contract may query the ledger in the endorsement node based on the transaction information in the request, and then perform step 303.
Step 303, the endorsement node judges whether corresponding data exists through a predictive engine contract, and if so, executes step 313; otherwise, step 304 is performed.
If the endorsement node inquires corresponding target external data in the ledger through the prompter contract, executing step 313; if no corresponding target external data exists in the ledger, step 304 is performed.
Step 304, the endorsement node sends a request to the predictive engine server through the predictive engine contract.
Thereafter, steps 305 and 311 are performed.
Step 305, the predictive controller server queries the predictive controller cache.
The predictive controller server may query the predictive controller cache based on the transaction information in the request, and then perform step 306.
Step 306, the predicting machine server judges whether target external data corresponding to the transaction information exists, if yes, the target external data is returned to the predicting machine contract, and step 311 is executed; otherwise, step 307 is executed.
And 307, calling an external interface by the prediction machine server to acquire target external data.
The prediction machine server sends a request to an external data server to acquire target external data corresponding to the transaction data.
Step 308, the external data server returns a response including the target external data.
Step 309, the prediction machine server waits for a response, and if the response is overtime, step 311 is executed; otherwise, step 310 is performed.
The prediction machine server waits for the response of the external data server, and if the target external data responded by the external data server is received within a first preset time, the step 310 is executed; otherwise, the response is determined to be timed out, step 311 is performed. The first preset time can be set according to actual conditions.
And step 310, storing the responded target external data into the prediction machine cache by the prediction machine server.
The predictive controller server stores the target external data into the predictive controller cache for return when other endorsement nodes of the same transaction request the target external data. And the target external data is returned to the predictive engine contract, after which step 311 is performed.
Step 311, the endorsement node waits for a response via the predictive engine contract.
The endorsement node waits for the response of the predictive server through a predictive contract, and if the response of the predictive server is received in second preset time, the response can be target external data returned by the predictive server or response timeout information, the step 312 is executed; if the response returned by the talker server is not received within the second preset time, the response times out, and step 313 is executed. The second preset time can be set according to actual conditions.
And step 312, the endorsement node stores the ledger based on the target external data.
And performing simulation execution on the user contract and the language prediction machine contract based on target external data to respectively obtain a user execution result and a language prediction machine execution result, sequencing and creating transaction blocks after the user execution result and the language prediction machine execution result are subjected to endorsement verification by the sequencing result, and broadcasting the transaction blocks to the endorsement node so that the endorsement node stores the transaction blocks into the account book.
And step 313, the endorsement node is called and ended through the user contract.
And the user contract obtains target external data corresponding to the transaction information or response timeout information, and the calling is finished. When the user contract obtains the target external data, the target external data can be returned to the user client. And when the user contract obtains the response timeout information, the calling failure is indicated, namely the target external data access failure.
The external data access method of the block chain is convenient to use, and a user only needs to care about a desired data result without processing a calling process; when a plurality of endorsement nodes execute a user contract, an external data server does not need to be called repeatedly, but the same resources are called only once for the same transaction in a mode of caching a predictive machine in the same predictive machine server, so that the pressure of the data server is reduced; the prediction machine server is shared, data are consistent when a plurality of nodes endorse, even if network transmission is abnormal, consistent call failure response can be returned, and consensus is not influenced; the prediction machine contract saves transaction calling data, the data can be audited, the calling data of each transaction is written into the block chain, and historical transactions in the block chain can be audited in a replaying mode.
The embodiment of the application also provides an external data access system of the block chain, which is arranged in the alliance chain and comprises at least one endorsement node and a speaker server; wherein, be provided with user contract and prediction machine contract in the endorsement node, prediction machine server corresponds at least one endorsement node, and the endorsement node is used for: acquiring an external data access request of a user client, wherein the external data access request carries transaction information; under the condition that target external data does not exist in the prediction machine contract, calling the prediction machine contract through a user contract, and sending an external data access request to a prediction machine server, wherein the target external data is data requested by the external data access request; receiving target external data corresponding to the transaction information returned by the prediction machine server; and returning the target external data to the user client.
In one embodiment, a predictive controller cache is arranged in the predictive controller server; the book reading machine server is used for receiving external data access requests sent by all endorsement nodes, acquiring corresponding target external data from a book reading machine cache based on transaction information carried in the external data access requests and returning the target external data to all endorsement nodes; or the predictive teller server is used for sending the external data access request to the external data server after receiving the external data access request sent by each endorsement node, receiving target external data corresponding to the transaction information carried in the external data access request returned by the external data server, then returning the target external data to each endorsement node and storing the target external data in the predictive teller cache.
In an embodiment, the endorsement node is specifically configured to return a user execution result of the user contract and a language predictive engine execution result of the language predictive engine contract to the user client, where the user execution result and the language predictive engine execution result both include target external data.
In one embodiment, the system further comprises a sorting node, and the sorting node is used for generating the transaction block after the user execution result and the prediction machine execution result are authenticated, and broadcasting the transaction block.
Fig. 6 is a schematic structural diagram of an external data access apparatus of a blockchain according to an embodiment of the present disclosure, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in an electronic device. As shown in fig. 6, the apparatus is disposed in an endorsement node of a federation chain, the endorsement node is disposed with a user contract and a predictive engine contract, and a predictive engine server corresponds to at least one endorsement node, and the apparatus includes:
a request obtaining module 401, configured to obtain an external data access request of a user client, where the external data access request carries transaction information;
a request sending module 402, configured to, in a case that target external data does not exist in the language predictive contract, invoke the language predictive contract through the user contract, and send the external data access request to a language predictive server, where the target external data is data requested by the external data access request;
a data receiving module 403, configured to receive the target external data corresponding to the transaction information returned by the talker server;
a data returning module 404, configured to return the target external data to the user client.
Optionally, the transaction information includes a transaction identifier and a uniform resource locator corresponding to the transaction.
Optionally, the data receiving module 403 is specifically configured to:
and receiving target external data obtained by the predicting machine server from an internal predicting machine cache or an external data server based on the transaction information.
Optionally, the data receiving module 403 is specifically configured to:
if the dialer server inquires and determines that corresponding target external data exists in the dialer cache based on the transaction information, receiving the target external data in the dialer cache returned by the dialer server; otherwise, receiving target external data obtained by the prediction server from the external server based on the transaction information.
Optionally, the data returning module 404 is specifically configured to:
and returning a user execution result of the user contract and a prediction machine execution result of the prediction machine contract to the user client, wherein the user execution result and the prediction machine execution result both comprise the target external data.
Optionally, the apparatus further includes an authentication module, specifically configured to:
after the user execution result of the user contract and the language predictive machine execution result of the language predictive machine contract are returned to the user, a transaction block generated after the sequencing node authenticates the user execution result and the language predictive machine execution result is obtained, and the transaction block is stored in an account book.
The external data access device of the block chain provided by the embodiment of the application is arranged in an endorsement node of a alliance chain, and is used for obtaining an external data access request of a user client, wherein the external data access request carries transaction information, and under the condition that target external data does not exist in a speaker contract, the speaker contract is called through the user contract, and the external data access request is sent to a speaker server, wherein the target external data is data requested by the external data access request, target external data corresponding to the transaction information returned by the speaker server is received, and the target external data is returned to the user client. By adopting the technical scheme, the fact that the speaker server is added in the alliance chain and the speaker contract is added in the endorsement node is achieved, external data can be accessed through the speaker in the alliance chain, the access scheme of the external data in the alliance chain can be optimized, the situation that a plurality of endorsement nodes call the external data server repeatedly is avoided, the pressure of the external data server is reduced, and the accuracy of external data access is improved as the plurality of endorsement nodes correspond to one speaker server.
Fig. 7 is a schematic structural diagram of an external data access apparatus of another blockchain according to an embodiment of the present disclosure, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in an electronic device. As shown in fig. 7, the apparatus is disposed in a speaker server in a federation chain, the speaker server corresponds to at least one endorsement node, and a user contract and a speaker contract are disposed in the endorsement node, and the apparatus includes:
a request receiving module 501, configured to receive an external data access request sent by an endorsement node invoking a language predictive contract through a user contract when target external data does not exist in the language predictive contract, where the target external data is data requested by the external data access request, and the external data access request carries transaction information;
a data obtaining module 502, configured to obtain the corresponding target external data based on the transaction information;
a data sending module 503, configured to return the target external data to the endorsement node, so that the endorsement node returns the target external data to the user client.
Optionally, a predictive engine cache is disposed in the predictive engine server, and the data obtaining module 502 is specifically configured to:
and acquiring target external data from the prediction machine cache or an external data server based on the transaction information.
Optionally, the data obtaining module 502 is specifically configured to:
if the fact that corresponding target external data exist is determined through inquiring in the prediction machine cache based on the transaction information, the target external data are obtained from the prediction machine cache; otherwise, sending the external data access request to the external data server, and receiving the target external data corresponding to the transaction information returned by the external data server.
Optionally, the apparatus further includes a data storage module, specifically configured to:
and after the target external data corresponding to the transaction information returned by the external data server is received, storing the target external data in the prediction machine cache.
The external data device of the block chain provided by the embodiment of the application is arranged on a speaker server of a alliance chain, receives an external data access request sent by an endorsement node through a user contract when no target external data exists in the speaker contract, wherein the target external data is the data requested by the external data access request, the external data access request carries transaction information, acquires corresponding target external data based on the transaction information, and returns the external data to the endorsement node, so that the endorsement node returns the target external data to a user client. By adopting the technical scheme, the fact that the speaker server is added in the alliance chain and the speaker contract is added in the endorsement node is achieved, external data can be accessed through the speaker in the alliance chain, the access scheme of the external data in the alliance chain can be optimized, the situation that a plurality of endorsement nodes call the external data server repeatedly is avoided, the pressure of the external data server is reduced, and the accuracy of external data access is improved as the plurality of endorsement nodes correspond to one speaker server.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 8, the electronic device 600 includes one or more processors 601 and memory 602.
The processor 601 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device 600 to perform desired functions.
Memory 602 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, Random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium and executed by the processor 601 to implement the methods of external data access for blockchains of the various embodiments of the present application described above and/or other desired functions. Various contents such as an input signal, a signal component, a noise component, etc. may also be stored in the computer-readable storage medium.
In one example, the electronic device 600 may further include: an input device 603 and an output device 604, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
The input device 603 may also include, for example, a keyboard, a mouse, and the like.
The output device 604 may output various information including the determined distance information, direction information, and the like to the outside. The output devices 604 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, among others.
Of course, for simplicity, only some of the components of the electronic device 600 relevant to the present application are shown in fig. 8, and components such as buses, input/output interfaces, and the like are omitted. In addition, electronic device 600 may include any other suitable components depending on the particular application.
In addition to the above methods and apparatus, embodiments of the present application may also be a computer program product comprising computer program instructions that, when executed by a processor, cause the processor to perform the method of external data access for a blockchain as provided by embodiments of the present application.
The computer program product may be written with program code for performing the operations of embodiments of the present application in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present application may also be a computer-readable storage medium having stored thereon computer program instructions, which, when executed by a processor, cause the processor to perform the method of external data access for a blockchain as provided by embodiments of the present application.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing describes the general principles of the present application in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present application are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present application. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the foregoing disclosure is not intended to be exhaustive or to limit the disclosure to the precise details disclosed.
The block diagrams of devices, apparatuses, systems referred to in this application are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
It should also be noted that in the devices, apparatuses, and methods of the present application, the components or steps may be decomposed and/or recombined. These decompositions and/or recombinations are to be considered as equivalents of the present application.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the application. Thus, the present application is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, the description is not intended to limit embodiments of the application to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.

Claims (18)

1. An external data access method of a block chain is applied to endorsement nodes of a federation chain, wherein a user contract and a predictive engine contract are set in the endorsement nodes, and a predictive engine server corresponds to at least one endorsement node, and the method comprises the following steps:
acquiring an external data access request of a user client, wherein the external data access request carries transaction information;
under the condition that target external data does not exist in the language predicting machine contract, calling the language predicting machine contract through the user contract, and sending the external data access request to a language predicting machine server, wherein the target external data is data requested by the external data access request;
receiving the target external data corresponding to the transaction information returned by the predicting machine server;
and returning the target external data to the user client.
2. The method of claim 1, wherein the transaction information comprises a transaction identifier and an exchange-corresponding uniform resource locator.
3. The method according to claim 1, wherein the receiving target external data corresponding to the transaction information returned by the dialer server comprises:
and receiving target external data obtained by the predicting machine server from an internal predicting machine cache or an external data server based on the transaction information.
4. The method of claim 3, wherein receiving the target external data from the predictive server based on the transaction information from an internally-located predictive cache or an external data server comprises:
if the dialer server inquires and determines that corresponding target external data exists in the dialer cache based on the transaction information, receiving the target external data in the dialer cache returned by the dialer server; otherwise, receiving target external data obtained by the prediction server from the external server based on the transaction information.
5. The method of claim 1, wherein returning the target external data to the user client comprises:
and returning a user execution result of the user contract and a prediction machine execution result of the prediction machine contract to the user client, wherein the user execution result and the prediction machine execution result both comprise the target external data.
6. The method of claim 5, wherein after returning the user execution result of the user contract and the predictive machine execution result of the predictive machine contract to the user, further comprising:
and acquiring a transaction block generated after the sequencing node authenticates the user execution result and the pre-speaking machine execution result, and storing the transaction block in an account book.
7. An external data access method of a block chain is applied to a speaker server in a federation chain, wherein the speaker server corresponds to at least one endorsement node, and a user contract and a speaker contract are set in the endorsement node, and the method comprises the following steps:
receiving an external data access request sent by calling a language predictive contract through a user contract when target external data does not exist in the language predictive contract, wherein the target external data is data requested by the external data access request, and the external data access request carries transaction information;
acquiring corresponding target external data based on the transaction information;
and returning the target external data to the endorsement node so that the endorsement node returns the target external data to the user client.
8. The method according to claim 7, wherein a predictive engine cache is provided in the predictive engine server, and the obtaining of the corresponding target external data based on the transaction information comprises:
and acquiring target external data from the prediction machine cache or an external data server based on the transaction information.
9. The method of claim 8, wherein obtaining target external data from the prediction machine cache or an external data server based on the transaction information comprises:
if the fact that corresponding target external data exist is determined through inquiring in the prediction machine cache based on the transaction information, the target external data are obtained from the prediction machine cache; otherwise, sending the external data access request to the external data server, and receiving target external data corresponding to the transaction information returned by the external data server.
10. The method according to claim 9, further comprising, after receiving target external data corresponding to the transaction information returned by the external data server, the step of:
storing the target external data in the predictive player cache.
11. An external data access device of a block chain, which is arranged in an endorsement node of a federation chain, wherein a user contract and a predictive engine contract are arranged in the endorsement node, and a predictive engine server corresponds to at least one endorsement node, the device comprising:
the system comprises a request acquisition module, a transaction processing module and a transaction processing module, wherein the request acquisition module is used for acquiring an external data access request of a user client, and the external data access request carries transaction information;
the request sending module is used for calling the language predictive contract through the user contract and sending the external data access request to a language predictive server under the condition that target external data does not exist in the language predictive contract, wherein the target external data is data requested by the external data access request;
the data receiving module is used for receiving the target external data corresponding to the transaction information returned by the predicting machine server;
and the data return module is used for returning the target external data to the user client.
12. An external data access device of a block chain, which is arranged in a speaker server in a federation chain, wherein the speaker server corresponds to at least one endorsement node, and a user contract and a speaker contract are arranged in the endorsement node, and the device comprises:
a request receiving module, configured to receive an external data access request sent by an endorsement node invoking a language predictive contract through a user contract when target external data does not exist in the language predictive contract, where the target external data is data requested by the external data access request, and the external data access request carries transaction information;
the data acquisition module is used for acquiring the corresponding target external data based on the transaction information;
and the data sending module is used for returning the target external data to the endorsement node so as to enable the endorsement node to return the target external data to the user client.
13. The external data access system of the block chain is characterized by being arranged in a alliance chain and comprising at least one endorsement node and a speaker server; wherein, the endorsement node is provided with a user contract and a language prediction machine contract, the language prediction machine server corresponds to at least one endorsement node, and the endorsement node is used for: acquiring an external data access request of a user client, wherein the external data access request carries transaction information; under the condition that target external data does not exist in the language predicting machine contract, calling the language predicting machine contract through the user contract, and sending the external data access request to a language predicting machine server, wherein the target external data is data requested by the external data access request; receiving the target external data corresponding to the transaction information returned by the predicting machine server; and returning the target external data to the user client.
14. The system according to claim 13, wherein a predictive engine cache is provided in the predictive engine server;
the book reading machine server is used for receiving external data access requests sent by the endorsement nodes, acquiring corresponding target external data from the book reading machine cache based on transaction information carried in the external data access requests and returning the target external data to the endorsement nodes; alternatively, the first and second electrodes may be,
the book reading machine server is used for sending the external data access request to the external data server after receiving the external data access request sent by each endorsement node, receiving target external data corresponding to transaction information carried in the external data access request returned by the external data server, then returning the target external data to each endorsement node and storing the target external data in the book reading machine cache.
15. The system according to claim 13, wherein the endorsement node is configured to return a user execution result of the user contract and a predictive engine execution result of the predictive engine contract to the user client, and the user execution result and the predictive engine execution result each include the target external data.
16. The blockchain external data access system of claim 15, further comprising a sequencing node configured to generate a transaction block after authenticating the user execution result and the prediction engine execution result and broadcast the transaction block.
17. An electronic device, the electronic device comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method for accessing external data of the blockchain according to any of the preceding claims 1 to 10.
18. A computer-readable storage medium, storing a computer program for executing the method for external data access of a blockchain according to any of the preceding claims 1 to 10.
CN202010732601.7A 2020-07-27 2020-07-27 Block chain external data access method, device, system, equipment and medium Pending CN113987035A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010732601.7A CN113987035A (en) 2020-07-27 2020-07-27 Block chain external data access method, device, system, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010732601.7A CN113987035A (en) 2020-07-27 2020-07-27 Block chain external data access method, device, system, equipment and medium

Publications (1)

Publication Number Publication Date
CN113987035A true CN113987035A (en) 2022-01-28

Family

ID=79731512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010732601.7A Pending CN113987035A (en) 2020-07-27 2020-07-27 Block chain external data access method, device, system, equipment and medium

Country Status (1)

Country Link
CN (1) CN113987035A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114513518A (en) * 2022-02-28 2022-05-17 蚂蚁区块链科技(上海)有限公司 Data processing method and system based on block chain

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114513518A (en) * 2022-02-28 2022-05-17 蚂蚁区块链科技(上海)有限公司 Data processing method and system based on block chain

Similar Documents

Publication Publication Date Title
CN109981679B (en) Method and apparatus for performing transactions in a blockchain network
CN110096857B (en) Authority management method, device, equipment and medium for block chain system
US8528043B2 (en) Systems and methods for generating trust federation data from BPMN choreography
CN110765484B (en) Credit data processing method and electronic equipment
KR102417742B1 (en) API Data Aggregation System And Method Of The Same
US11296881B2 (en) Using IP heuristics to protect access tokens from theft and replay
CN111292174A (en) Tax payment information processing method and device and computer readable storage medium
CN112367164B (en) Service request processing method and device, computer equipment and storage medium
CN110955724A (en) Data processing method and device based on block chain, node equipment and storage medium
CN115695012A (en) Login request processing method and device, electronic equipment and storage medium
CN111221511A (en) Development system of plug-in type micro-service interface
CN113626795A (en) Verification method and device of distributed system architecture, electronic equipment and storage medium
WO2021203817A1 (en) Open interface management method, electronic device, and storage medium
CN113987035A (en) Block chain external data access method, device, system, equipment and medium
CN111241188A (en) Consensus method in block chain network, node and storage medium
CN110716743B (en) Aggregation API development method and system suitable for multiparty collaborative development
CN112583890B (en) Message pushing method and device based on enterprise office system and computer equipment
CN113592645A (en) Data verification method and device
US8806589B2 (en) Credential collection in an authentication server employing diverse authentication schemes
CN110784551A (en) Data processing method, device, equipment and medium based on multiple tenants
CN111552551A (en) User management method and device based on master-slave system, computer equipment and medium
KR101974433B1 (en) Smartwork System having a Dual Security Function and Controlling Method for the Same
US20240104558A1 (en) Blockchain transaction execution method and apparatus, program product, device, and medium
CN115001808B (en) Domain user login method, device, equipment and medium
CN116562884B (en) Data element circulation method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination