CN110071968B - Block chain based message storage method and device - Google Patents

Block chain based message storage method and device Download PDF

Info

Publication number
CN110071968B
CN110071968B CN201910302006.7A CN201910302006A CN110071968B CN 110071968 B CN110071968 B CN 110071968B CN 201910302006 A CN201910302006 A CN 201910302006A CN 110071968 B CN110071968 B CN 110071968B
Authority
CN
China
Prior art keywords
message
storage
event
contract
name
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.)
Active
Application number
CN201910302006.7A
Other languages
Chinese (zh)
Other versions
CN110071968A (en
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.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910302006.7A priority Critical patent/CN110071968B/en
Publication of CN110071968A publication Critical patent/CN110071968A/en
Priority to PCT/CN2020/081870 priority patent/WO2020211622A1/en
Application granted granted Critical
Publication of CN110071968B publication Critical patent/CN110071968B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a block chain-based message storage method and a block chain-based message storage device, wherein the method comprises the steps of obtaining storage request information sent by a message sender, wherein the storage request information comprises a message packet of an event and a first subject name of the event, storing the message packet of the event in a block of a block chain according to the first subject name and a control contract, the control contract comprises a corresponding relation between the subject name and an address of a storage contract, and sending storage response information to the message sender, wherein the storage response information comprises the block height and the event ID stored by the message packet of the event. The message of the event is stored in the block of the block chain through the first subject name and the control contract in the block chain, the event message is prevented from being tampered, and disaster tolerance and capacity expansion of data can be facilitated.

Description

Block chain based message storage method and device
Technical Field
The embodiment of the invention relates to the field of financial technology (Fintech), in particular to a Block Chain (Block Chain) -based message storage method and device.
Background
With the development of computer technology, more and more technologies are applied in the financial field, the traditional financial industry is gradually changing to financial technology (Finteh), and the message storage technology is no exception, but due to the security and real-time requirements of the financial and payment industries, higher requirements are also put forward on the technologies. When the traditional distributed message middleware stores data, the data is stored in a centralized database, and the centralized data storage is not beneficial to disaster tolerance and capacity expansion of the data. When data is lost, the lost information needs to be searched from a large number of file logs by searching the real-time log file of the information and is re-recorded into the centralized financial information database, and the time is consumed. In addition, the traditional distributed message middleware has a tampering risk in the process of centrally storing data, and has serious consequences for financial and payment systems.
Disclosure of Invention
The embodiment of the invention provides a block chain-based message storage method and device, which are used for realizing data storage tamper resistance and are easy for data disaster recovery and capacity expansion.
The message storage method based on the block chain provided by the embodiment of the invention comprises the following steps:
acquiring storage request information sent by a message sender, wherein the storage request information comprises a message packet of an event and a first subject name of the event;
storing message packets of the event in a block of the blockchain according to the first topic name and a control contract; the control contract comprises a corresponding relation between a subject name and an address of a storage contract;
and sending storage response information to the message sender, wherein the storage response information comprises the block height and the event ID of the message packet storage of the event.
In the technical scheme, the message of the event is stored in the block of the block chain through the first theme name and the control contract in the block chain, so that the event message is prevented from being tampered, and the disaster tolerance and capacity expansion of data can be facilitated.
Optionally, the storing the message packet of the event in the block of the block chain according to the first topic name includes:
determining an address of a storage contract corresponding to the first theme name from a control contract according to the first theme name;
and determining the storage contract corresponding to the first subject name according to the address of the storage contract corresponding to the first subject name, and storing the message packet of the event in the block of the block chain.
Optionally, the storing the message packet of the event in the block of the block chain includes:
storing a message packet for the event in a chunk of a blockchain by calling an EventLog method of the blockchain.
Optionally, the storing the message packet of the event in the block of the block chain includes:
storing the message packet of the event in a block of a blockchain by calling a method of a graph of the blockchain.
Optionally, before obtaining the storage request information sent by the message sender, the method further includes:
receiving contract creation request information sent by a client; the contract creation request information includes the first topic name;
according to the first theme name, creating a storage contract corresponding to the first theme name, and determining the address of the storage contract corresponding to the first theme name;
storing the first subject name and the address of the storage contract corresponding to the first subject name in the control contract;
and sending the deployment result of the storage contract corresponding to the first subject name to the client.
Optionally, the method further includes:
acquiring message acquisition request information sent by a message receiver, wherein the message acquisition request information comprises a second subject name and an initial event ID of an acquisition message;
acquiring the address of a storage contract of the second subject name from the control contract according to the second subject name;
acquiring an event message related to the second subject name according to the address of the storage contract of the second subject name and the initial event ID;
and sending the event message to the message receiver.
Correspondingly, an embodiment of the present invention further provides a device for storing messages based on a block chain, including:
the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring storage request information sent by a message sender, and the storage request information comprises a message packet of an event and a first subject name of the event;
a processing unit for storing message packets of the event in blocks of the block chain according to the first topic name and a control contract; the control contract comprises a corresponding relation between a subject name and an address of a storage contract;
and the sending unit is used for sending storage response information to the message sending party, wherein the storage response information comprises the block height stored in the message packet of the event and the event ID.
Optionally, the processing unit is specifically configured to:
determining the address of a storage contract corresponding to the first subject name from a control contract according to the first subject name;
and determining the storage contract corresponding to the first subject name according to the address of the storage contract corresponding to the first subject name, and storing the message packet of the event in the block of the block chain.
Optionally, the processing unit is specifically configured to:
message packets for the event are stored in the tiles of the blockchain by calling the EventLog method of the blockchain.
Optionally, the processing unit is specifically configured to:
storing the message packet of the event in a block of a blockchain by calling a method of a graph of the blockchain.
Optionally, the processing unit is further configured to:
before the storage request information sent by the message sending party is obtained, controlling the obtaining unit to receive contract creation request information sent by a client; the contract creation request information includes the first topic name;
according to the first theme name, creating a storage contract corresponding to the first theme name, and determining an address of the storage contract corresponding to the first theme name;
storing the first subject name and the address of the storage contract corresponding to the first subject name in the control contract;
and controlling the sending unit to send the deployment result of the storage contract corresponding to the first subject name to the client.
Optionally, the processing unit is further configured to:
controlling the obtaining unit to obtain message obtaining request information sent by a message receiving party, wherein the message obtaining request information comprises a second subject name and an initial event ID of the obtained message;
acquiring an address of a storage contract of the second theme name from the control contract according to the second theme name;
acquiring an event message related to the second subject name according to the address of the storage contract of the second subject name and the initial event ID;
and controlling the sending unit to send the event message to the message receiver.
Correspondingly, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instruction stored in the memory and executing the message storage method based on the block chain according to the obtained program.
Accordingly, an embodiment of the present invention further provides a computer-readable non-volatile storage medium, which includes computer-readable instructions, and when the computer-readable instructions are read and executed by a computer, the computer is enabled to execute the above message storage method based on a blockchain.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments will be briefly introduced below, and it is apparent that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings may be obtained based on these drawings without creative efforts.
FIG. 1 is a diagram illustrating a system architecture according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a block chain-based message storage method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a process for creating a contract according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of message acquisition according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a message storage apparatus based on a block chain according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
Fig. 1 illustrates a system architecture to which an embodiment of the present invention is applicable, which may include a plurality of transmitters 100, a blockchain system 200, and a plurality of receivers 300.
The sender 100 is configured to communicate with the blockchain system 200, and send the generated data to the blockchain system 200 for storage.
The blockchain system 200 is composed of a plurality of blockchain nodes 210, and is in communication with the sender 100 and the receiver 300, and is configured to store data sent by the sender 100 and feed back corresponding data to the receiver 300 after receiving a data query request from the receiver 300. The plurality of blockchain nodes 210 may be in communication with each other, and each blockchain node includes a plurality of blocks for storing data transmitted by the transmitter 100.
The receiver 300 communicates with the blockchain system 200 for querying the corresponding data from the blockchain system 200.
It should be noted that the structure shown in fig. 1 is only an example, and the embodiment of the present invention is not limited thereto.
Based on the above description, fig. 2 exemplarily illustrates a flow of a blockchain-based message storage method according to an embodiment of the present invention, where the flow may be performed by a blockchain-based message storage device, which may be a blockchain node in the blockchain system 200. The flow of blockchain-based message storage will be described below by way of the message sender interacting with the blockchain link points.
As shown in fig. 2, the process specifically includes:
step 201, the message sender sends storage request information to the blockchain node.
In the embodiment of the present invention, the storage request information sent by the message sender may include a message packet of an event and a first subject name of the event. The message packet of the event is the message packet to be stored. The first subject name may be a type of the event, for example, transfer, consumption, payment, etc. types may be defined as subject names. The first subject name is to let the block chain node know where to store the message packet of the event.
It should be noted that before receiving the storage request information sent by the message sender, a storage contract corresponding to the topic name needs to be created, which may be specifically the flow shown in fig. 3, including:
step 301, the client sends contract creation request information to the block chain node.
In the embodiment of the present invention, the client may be a message sender or a data receiver, and any client may request to create a storage contract. The first topic name is included in the contract creation request message, and may be, for example, a transfer or a topic name of another event.
And step 302, creating a storage contract corresponding to the first theme name by the block link point according to the first theme name, and determining an address of the storage contract corresponding to the first theme name.
After receiving the first topic name sent by the client, the blockchain node creates a storage contract corresponding to the first topic name, so that an address of the storage contract corresponding to the first topic name can be obtained. The block chain link point can inquire the storage contract corresponding to the first subject name through the address, so that the message packet of the corresponding event is stored in the block chain through the storage contract.
In step 303, the block link point stores the first topic name and the address of the storage contract corresponding to the first topic name in the control contract.
After determining the address of the storage contract corresponding to the first topic name, the blockchain node may store the address in a control contract, where the control contract includes a correspondence between the topic name and the storage contract, and may specifically refer to the content shown in table 1.
TABLE 1
Subject name Addresses of storage contracts
Transferring accounts Address a of a storage contract
Consumption of Address b of a storage contract
Repayment Address c of a storage contract
…… ……
The block link point can quickly inquire the address of the storage contract corresponding to the first theme name through the control contract.
Step 304, the blockchain node sends the deployment result to the client.
After the block chain node completes the storage contract corresponding to the first topic name, the block chain node may feed back the deployment result of the storage contract corresponding to the first topic name to the client, and inform the client of the deployment condition of the storage contract.
Block link points store message packets of the event in blocks of the block chain according to the first topic name and a control contract, step 202.
After receiving the first topic name sent by the message sender, the blockchain node may determine, according to the first topic name, an address of a storage contract corresponding to the first topic name from a control contract, then determine, according to the address, the storage contract corresponding to the first topic name, and store the message packet of the event in a block of the blockchain system. The storage contract may contain information such as TopicName, eventID, blockNumber, eventContent, and the like.
For example, if the first subject name is transfer, the address a of the storage contract corresponding to the transfer can be found by using the content of the control contract shown in table 1, and then the storage contract corresponding to the transfer is determined by using the address a. The blockchain node stores the message packet of the event in the block through the storage contract, and specifically, each blockchain node on the blockchain can synchronize to the same event message through a distributed consensus algorithm of the blockchain, and the event message of a certain node is prevented from being tampered through the blockchain characteristic.
When storing the message packet of the event, the message packet of the event may be stored in a block of the blockchain by calling a Map (Map) of the blockchain, which is a data storage structure, and may also be a data storage structure on the block. Preferably, message packets for an event may be stored in a tile of the blockchain by calling the eventlg (event log) method of the blockchain. The storage mode is used for realizing lower message sending performance, and the performance is poorer along with the increase of the data quantity. There is no problem of worse performance with the eventlg approach as the amount of data increases. The EventLog is a data storage structure of the blocks in the blockchain, and the messages of the events can be stored in the blocks of the blockchain in a log mode through the EventLog.
After storing the message packet of the event, the information such as the block height and the event ID stored in the message packet of the event can also be obtained.
In step 203, the blockchain node sends a storage response message to the message sender.
After determining to store the message packet of the event, the blockchain node may send storage response information to the message sender, where the storage response information may include information such as the block height and the event ID stored in the message packet of the event.
It should be noted that, the embodiment of the present invention may also implement a process of querying an event of a corresponding topic name from a block link point, as shown in the process shown in fig. 4, specifically including:
step 401, the message receiving direction sends message acquisition request information to the blockchain node.
The message acquisition request information may include the second topic name and the start event ID of the acquisition message. The start event ID may be an initial block ID, and if the connection is interrupted during the transmission of the message, the start event ID may also be a block ID during the disconnection of the transmission, that is, the start event ID is the start position of the acquisition message. The second topic name is determined by the message receiver, and the second topic name can be set when the message receiver needs to subscribe to the message of which topic, and if the transfer is carried out, the second topic name indicates that the message receiver needs to acquire the event message related to the transfer.
And 402, acquiring the address of the storage contract of the second theme name from the control contract by the block link point according to the second theme name.
And the block chain node acquires the address of the storage contract of the second topic name from the control contract shown in the table 1 according to the second topic name.
In step 403, the block link point obtains an event message related to the second topic name according to the address of the storage contract of the second topic name and the start event ID.
After obtaining the address of the storage contract of the second topic name, the blockchain node can determine the storage contract of the second topic name, and poll the event message related to the second topic name in the block through the storage contract and the initial event ID.
At step 404, the blockchain node sends an event message to the message recipient.
After acquiring the event message in step 403, the tile link point may send the event message to the message recipient. Thereby completing the query for the event message.
The embodiment of the invention shows that the storage request information sent by a message sender is obtained, the storage request information comprises a message packet of an event and a first subject name of the event, the message packet of the event is stored in a block of a block chain according to the first subject name and a control contract, the control contract comprises a corresponding relation between the subject name and an address of the storage contract, and storage response information is sent to the message sender, and the storage response information comprises the block height stored by the message packet of the event and an event ID. The message of the event is stored in the block of the block chain through the first subject name and the control contract in the block chain, the event message is prevented from being tampered, and disaster tolerance and capacity expansion of data can be facilitated.
Based on the same technical concept, fig. 5 exemplarily shows a structure of a blockchain-based message storage apparatus according to an embodiment of the present invention, where the apparatus can perform a flow of blockchain-based message storage. The device may be a blockchain link point 210 in the blockchain system 200 described above.
As shown in fig. 5, the apparatus specifically includes:
an obtaining unit 501, configured to obtain storage request information sent by a message sender, where the storage request information includes a message packet of an event and a first topic name of the event;
a processing unit 502 for storing the message packet of the event in a block of the block chain according to the first topic name and a control contract; the control contract comprises a corresponding relation between a theme name and an address of a storage contract;
a sending unit 503, configured to send storage response information to the message sender, where the storage response information includes the block height and the event ID stored in the message packet of the event.
Optionally, the processing unit 502 is specifically configured to:
determining the address of a storage contract corresponding to the first subject name from a control contract according to the first subject name;
and determining the storage contract corresponding to the first theme name according to the address of the storage contract corresponding to the first theme name, and storing the message packet of the event in the block of the block chain.
Optionally, the processing unit 502 is specifically configured to:
storing a message packet for the event in a chunk of a blockchain by calling an EventLog method of the blockchain.
Optionally, the processing unit 502 is specifically configured to:
storing the message packet of the event in a block of a blockchain by calling a method of a graph of the blockchain.
Optionally, the processing unit 502 is further configured to:
before the storage request information sent by the message sender is obtained, the obtaining unit 501 is controlled to receive contract creation request information sent by a client; the contract creation request information includes the first topic name;
according to the first theme name, creating a storage contract corresponding to the first theme name, and determining the address of the storage contract corresponding to the first theme name;
storing the first subject name and the address of the storage contract corresponding to the first subject name in the control contract;
the sending unit 503 is controlled to send the deployment result of the storage contract corresponding to the first topic name to the client.
Optionally, the processing unit 502 is further configured to:
controlling the obtaining unit 501 to obtain message obtaining request information sent by a message receiver, where the message obtaining request information includes a second subject name and an initial event ID of the obtained message;
acquiring the address of a storage contract of the second subject name from the control contract according to the second subject name;
acquiring an event message related to the second subject name according to the address of the storage contract of the second subject name and the initial event ID;
controls the sending unit 503 to send the event message to the message recipient.
Based on the same technical concept, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instruction stored in the memory and executing the message storage method based on the block chain according to the obtained program.
Based on the same technical concept, embodiments of the present invention also provide a computer-readable non-volatile storage medium, which includes computer-readable instructions, and when the computer reads and executes the computer-readable instructions, the computer is caused to execute the above message storage method based on the blockchain.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (12)

1. A message storage method based on a block chain is characterized by comprising the following steps:
acquiring storage request information sent by a message sender, wherein the storage request information comprises a message packet of an event and a first subject name of the event; storing message packets of the event in a block of the blockchain according to the first topic name and a control contract; the control contract comprises a corresponding relation between a subject name and an address of a storage contract;
sending storage response information to the message sender, wherein the storage response information comprises the block height stored in the message packet of the event and the event ID;
acquiring message acquisition request information sent by a message receiver, wherein the message acquisition request information comprises a second subject name and an initial event ID of the acquired message;
acquiring the address of a storage contract of the second subject name from the control contract according to the second subject name;
acquiring an event message related to the second subject name according to the address of the storage contract of the second subject name and the initial event ID;
and sending the event message to the message receiver.
2. The method of claim 1, wherein said storing the message packet of the event in a block of the blockchain according to the first topic name comprises:
determining the address of a storage contract corresponding to the first subject name from a control contract according to the first subject name;
and determining the storage contract corresponding to the first subject name according to the address of the storage contract corresponding to the first subject name, and storing the message packet of the event in the block of the block chain.
3. The method of claim 2, wherein said storing the message packet of the event in a block of the block chain comprises:
message packets for the event are stored in the tiles of the blockchain by calling the EventLog method of the blockchain.
4. The method of claim 2, wherein said storing the message packet of the event in a block of the block chain comprises:
storing the message packet of the event in a block of a blockchain by invoking a method of a graph of the blockchain.
5. The method as claimed in claim 1, wherein before the obtaining the storage request information sent by the message sender, further comprising:
receiving contract creation request information sent by a client; the contract creation request information includes the first topic name;
according to the first theme name, creating a storage contract corresponding to the first theme name, and determining the address of the storage contract corresponding to the first theme name;
storing the first subject name and the address of the storage contract corresponding to the first subject name in the control contract;
and sending the deployment result of the storage contract corresponding to the first theme name to the client.
6. A blockchain-based message storage device, comprising:
the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring storage request information sent by a message sender, and the storage request information comprises a message packet of an event and a first subject name of the event;
a processing unit for storing message packets of the event in blocks of the block chain according to the first topic name and a control contract; the control contract comprises a corresponding relation between a subject name and an address of a storage contract;
a sending unit, configured to send storage response information to the message sender, where the storage response information includes a block height and an event ID stored in a message packet of the event;
the processing unit is further configured to: controlling the obtaining unit to obtain message obtaining request information sent by a message receiver, wherein the message obtaining request information comprises a second subject name and an initial event ID of the obtained message; acquiring an address of a storage contract of the second theme name from the control contract according to the second theme name; acquiring an event message related to the second subject name according to the address of the storage contract of the second subject name and the initial event ID; and controlling the sending unit to send the event message to the message receiver.
7. The apparatus as claimed in claim 6, wherein said processing unit is specifically configured to:
determining the address of a storage contract corresponding to the first subject name from a control contract according to the first subject name;
and determining the storage contract corresponding to the first subject name according to the address of the storage contract corresponding to the first subject name, and storing the message packet of the event in the block of the block chain.
8. The apparatus as claimed in claim 7, wherein said processing unit is specifically configured to:
storing a message packet for the event in a chunk of a blockchain by calling an EventLog method of the blockchain.
9. The apparatus as claimed in claim 7, wherein said processing unit is specifically configured to:
storing the message packet of the event in a block of a blockchain by invoking a method of a graph of the blockchain.
10. The apparatus as recited in claim 6, said processing unit to further:
before the storage request information sent by the message sending party is obtained, controlling the obtaining unit to receive contract creation request information sent by a client; the contract creation request information includes the first topic name;
according to the first theme name, creating a storage contract corresponding to the first theme name, and determining the address of the storage contract corresponding to the first theme name;
storing the first subject name and the address of the storage contract corresponding to the first subject name in the control contract;
and controlling the sending unit to send the deployment result of the storage contract corresponding to the first subject name to the client.
11. A computing device, comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory to execute the method of any one of claims 1 to 5 in accordance with the obtained program.
12. A computer-readable non-transitory storage medium including computer-readable instructions which, when read and executed by a computer, cause the computer to perform the method of any one of claims 1 to 5.
CN201910302006.7A 2019-04-16 2019-04-16 Block chain based message storage method and device Active CN110071968B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910302006.7A CN110071968B (en) 2019-04-16 2019-04-16 Block chain based message storage method and device
PCT/CN2020/081870 WO2020211622A1 (en) 2019-04-16 2020-03-27 Blockchain-based message storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910302006.7A CN110071968B (en) 2019-04-16 2019-04-16 Block chain based message storage method and device

Publications (2)

Publication Number Publication Date
CN110071968A CN110071968A (en) 2019-07-30
CN110071968B true CN110071968B (en) 2023-04-07

Family

ID=67367746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910302006.7A Active CN110071968B (en) 2019-04-16 2019-04-16 Block chain based message storage method and device

Country Status (2)

Country Link
CN (1) CN110071968B (en)
WO (1) WO2020211622A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110071968B (en) * 2019-04-16 2023-04-07 深圳前海微众银行股份有限公司 Block chain based message storage method and device
CN112434040B (en) * 2020-11-30 2023-09-22 泰康保险集团股份有限公司 Data storage method, data acquisition method, device, system and equipment
CN114679472A (en) * 2022-03-01 2022-06-28 达闼机器人股份有限公司 Communication system, method, apparatus, storage medium, and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106682984A (en) * 2016-10-27 2017-05-17 上海亿账通区块链科技有限公司 Block chain-based transaction business processing method and system
CN109033406A (en) * 2018-08-03 2018-12-18 上海点融信息科技有限责任公司 For searching for the method, apparatus and storage medium of block chain data
CN109034832A (en) * 2018-06-13 2018-12-18 湖南搜云网络科技股份有限公司 The information processing method and device of block chain, information processing node and storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10033702B2 (en) * 2015-08-05 2018-07-24 Intralinks, Inc. Systems and methods of secure data exchange
US10565570B2 (en) * 2016-09-27 2020-02-18 The Toronto-Dominion Bank Processing network architecture with companion database
EP3367289A1 (en) * 2017-02-27 2018-08-29 Nokia Solutions and Networks Oy Internet connection setup between computing devices using blockchains
CN107368259B (en) * 2017-05-25 2020-07-10 创新先进技术有限公司 Method and device for writing service data into block chain system
CN107315786B (en) * 2017-06-12 2020-12-11 腾讯科技(深圳)有限公司 Service data storage method and device
US20190065593A1 (en) * 2017-08-28 2019-02-28 Forward Blockchain, LLC Distributed Ledger Registry System
CN108134819A (en) * 2017-12-06 2018-06-08 北京连琪科技有限公司 Block chain operating status is collected and transfer approach, device and server
CN108197233A (en) * 2017-12-29 2018-06-22 飞狐信息技术(天津)有限公司 A kind of data managing method, middleware and data management system
CN108234515B (en) * 2018-01-25 2020-07-24 中国科学院合肥物质科学研究院 Self-authentication digital identity management system and method based on intelligent contract
CN109347651B (en) * 2018-08-27 2021-06-01 西安电子科技大学 MSVL (modeling, simulation and verification language) -based block chain system modeling and security verification method and system
CN110071968B (en) * 2019-04-16 2023-04-07 深圳前海微众银行股份有限公司 Block chain based message storage method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106682984A (en) * 2016-10-27 2017-05-17 上海亿账通区块链科技有限公司 Block chain-based transaction business processing method and system
CN109034832A (en) * 2018-06-13 2018-12-18 湖南搜云网络科技股份有限公司 The information processing method and device of block chain, information processing node and storage medium
CN109033406A (en) * 2018-08-03 2018-12-18 上海点融信息科技有限责任公司 For searching for the method, apparatus and storage medium of block chain data

Also Published As

Publication number Publication date
CN110071968A (en) 2019-07-30
WO2020211622A1 (en) 2020-10-22

Similar Documents

Publication Publication Date Title
CN107332876B (en) Method and device for synchronizing block chain state
CN110071968B (en) Block chain based message storage method and device
CN109885410B (en) Message sending method, device, computer equipment and storage medium
CN110825420B (en) Method, device, equipment and storage medium for updating configuration parameters of distributed cluster
US8838703B2 (en) Method and system for message processing
CN111314479B (en) Data processing method and equipment
CN109614209B (en) Task processing method, application server and system
CN111447248A (en) File transmission method and device
CN103780679A (en) Long time delay remote invocation method based on HTTP protocol
CN110083629B (en) Event subscription method and device based on blockchain
CN110099108B (en) Block chain event duplicate removal method and device, computer equipment and storage medium
CN104092719A (en) File transmission method, device and distributed cluster file system
CN109361525B (en) Method, device, control terminal and medium for restarting distributed deployment of multiple services
CN106603711B (en) Communication method, system and message server
CN105162879A (en) Method, device and system for realizing data consistency among plurality of machine rooms
CN110990415A (en) Data processing method and device, electronic equipment and storage medium
CN111460038A (en) Quasi-real-time data synchronization method and device
CN108055296B (en) Transaction processing method and device based on micro-service architecture
CN110311855B (en) User message processing method and device, electronic equipment and storage medium
CN110912805B (en) Message reading state synchronization method, terminal, server and system
CN103164262B (en) A kind of task management method and device
CN105281940B (en) Method, equipment and system for HELLO message interaction based on NETCONF protocol
CN111327680B (en) Authentication data synchronization method, device, system, computer equipment and storage medium
CN115866047B (en) Data redirection method and device in multiparty security calculation and electronic equipment
CN112865927B (en) Message delivery verification method, device, computer 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
GR01 Patent grant
GR01 Patent grant