CN115633008A - Block chain-based group to-do function implementation method, device, equipment and medium - Google Patents

Block chain-based group to-do function implementation method, device, equipment and medium Download PDF

Info

Publication number
CN115633008A
CN115633008A CN202211351148.0A CN202211351148A CN115633008A CN 115633008 A CN115633008 A CN 115633008A CN 202211351148 A CN202211351148 A CN 202211351148A CN 115633008 A CN115633008 A CN 115633008A
Authority
CN
China
Prior art keywords
group
node
request
transaction
block chain
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
CN202211351148.0A
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202211351148.0A priority Critical patent/CN115633008A/en
Publication of CN115633008A publication Critical patent/CN115633008A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a block chain-based group to-do function implementation method, device, equipment and medium. The method comprises the following steps: the first node generates a group to-do transaction request; the first node broadcasts the group to-do transaction request to the block chain system, and updates a locally maintained group to-do block chain account book according to the group to-do transaction request; when each second node receives the group to-do transaction request, if the group to-do transaction request is determined to point to the local node, the group to-do block chain account book maintained locally is updated after the group to-do transaction request is determined to be a legal request, and a transaction completion request is generated and broadcast to the block chain system after the group to-do transaction request is executed. By adopting the technical scheme, the group to-do function in the instant messaging group can be realized based on the block chain, the related operation for realizing the group to-do function is distributed to the user nodes, and the condition that the group to-do function is influenced when the instant messaging flow is in a peak is avoided.

Description

Block chain-based group to-do function implementation method, device, equipment and medium
Technical Field
The present invention relates to the field of block chain technologies, and in particular, to a block chain-based group to-do function implementation method, apparatus, device, and medium.
Background
In the group to-do function of the instant communication group session, a user member in the instant communication group issues the group to-do-matter of the group session to other user members in the instant communication group, and the group member receiving the to-do-matter confirms and completes the to-do-matter.
Therefore, the group to-do function of the instant communication group session is realized, namely, the information flow interaction operation among all the user members in the instant communication group is processed. In a conventional group to-do function implementation method, group to-do information is generally processed by a server, and processing results are respectively sent to user members related to the group to-do information.
However, since the instant messaging information in the instant messaging group is also generally processed and sent by the server, the group to-do function may be affected when the instant messaging traffic is in a peak.
Disclosure of Invention
The invention provides a block chain-based group to-do function realization method, a block chain-based group to-do function realization device and a block chain-based group to-do function realization medium, which can realize the group to-do function in an instant messaging group, distribute the related operation of realizing the group to-do function to user nodes and avoid the situation that the group to-do function is influenced when the instant messaging flow is in a peak.
According to an aspect of the present invention, a method for implementing a group to-do function based on a blockchain is provided, where the method is executed by a node in a blockchain system formed by group members in an instant messaging group, and the method includes:
the method comprises the steps that a first node generates a group backlog transaction request, wherein the group backlog transaction request comprises node identifications corresponding to a plurality of first target group members needing to complete backlogs;
the first node broadcasts the group pending transaction request to the block chain system, and updates a locally maintained group pending block chain account book according to the group pending transaction request;
when each second node receives the group transaction to be handled request, if the group transaction to be handled request is determined to point to a local node, after the group transaction to be handled request is determined to be a legal request, the locally maintained group transaction to be handled block chain account book is updated, and after the group transaction to be handled request is executed, a transaction completion request is generated and broadcast to the block chain system.
According to another aspect of the present invention, there is provided a block chain-based group to-do function implementation apparatus, executed by a node in a block chain system formed by group members in an instant messaging group, including:
the group backlog transaction request generating module is used for generating a group backlog transaction request by a first node, wherein the group backlog transaction request comprises node identifications corresponding to a plurality of first target group members needing to complete backlogs;
the group pending transaction request broadcasting module is used for broadcasting the group pending transaction request to the block chain system by the first node and updating a locally maintained group pending block chain account book according to the group pending transaction request;
and the group pending transaction request executing module is used for updating the locally maintained group pending block chain account book after determining that the group pending transaction request is a legal request if the group pending transaction request is determined to point to the local node when each second node receives the group pending transaction request, and generating a transaction completion request and broadcasting the transaction completion request to the block chain system after executing the group pending transaction request.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the block chain based group to do function implementation method according to any embodiment of the present invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement a block chain based group to-do function implementation method according to any one of the embodiments of the present invention when the computer instructions are executed.
According to the technical scheme of the embodiment of the invention, the group to-do transaction request is generated by the first node and is broadcast to the block chain system, the group to-do transaction request is verified and processed by each second node, and the transaction completion request is generated after the group to-do transaction request is completed and is broadcast to the block chain system, so that the group to-do function in the instant messaging group can be realized based on the block chain, the related operation for realizing the group to-do function is distributed to the user nodes, and the condition that the group to-do function is influenced when the instant messaging flow is in a peak is avoided.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for implementing a group to-do function based on a block chain according to an embodiment of the present invention;
fig. 2 is a flowchart of another block chain-based group to-do function implementation method according to the second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a block chain-based group to-do function implementation apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device implementing a block chain-based group to-do function implementation method according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a block chain based group to-do function implementation method according to an embodiment of the present invention, where the embodiment is applicable to a case where a first node generates and sends a group to-do transaction request, and a designated second node receives and completes the group to-do transaction request, the method may be executed by a block chain based group to-do function implementation device, and the block chain based group to-do function implementation device may be implemented in a hardware and/or software manner, and may generally be configured in a block chain system having a data processing function. As shown in fig. 1, the method includes:
s110, the first node generates a group transaction request to be handled.
Since the group to-do function is realized by adopting a block chain-based decentralized mode, the invention can be executed by nodes in a block chain system consisting of all group members in an instant messaging group, and for the convenience of understanding the nodes executing different functions in the invention, all node names in the following embodiments of the invention are explained herein.
The first node is a user node initiating a group to-do transaction request; the second node is all user nodes except the first node in the instant communication group; the target second node is a target user node in the second node to which the group pending transaction request is directed, namely the user node which needs to respond and complete the group pending transaction request.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. The reason for realizing the group to-do function based on the block chain is that the processing of the group to-do data can be transferred from the central server to each user node in the communication group based on the block chain in consideration of the computer technology used by the block chain, so that the influence on the group to-do function during the instant communication traffic peak can be effectively avoided.
The group to-do transaction request may include node identifiers corresponding to a plurality of first target group members that need to complete backlog.
It is understood that the node identifier is identification information for distinguishing each node, and may be a unique communication certificate code matched with each group member in the instant communication group.
Optionally, the group pending transaction request may further include at least one group pending item to be completed, and a first encrypted ledger book sequence number obtained by encrypting the first node local ledger book sequence number.
In one embodiment, the group backlog may be filling an online form, uploading a document, receiving a group file, and the like, and the specific group backlog request content may be generated according to the actual needs of the user, which is only illustrated here.
The accounting book sequence number is a sequence number used for identifying a group to-do block chain accounting book locally maintained by each node, and the group to-do block chain accounting book locally maintained by each node has a unique accounting book sequence number. When each group member of the instant messaging group joins the group, the account book sequence number matched with each group to-be-handled block chain account book is generated while the group to-be-handled block chain account book locally maintained by each node is generated, and the account book sequence numbers of all nodes in the communication group are stored in the group to-be-handled block chain account book locally maintained by each node in the communication group.
An optional generation mode of the accounting book sequence number may be that, according to the related data information of the instant messaging group, a secure hash algorithm is adopted to calculate and obtain the accounting book sequence number matched with each node.
And S120, the first node broadcasts the group to-do transaction request to the block chain system, and updates a locally maintained group to-do block chain account book according to the group to-do transaction request.
It can be understood that the group pending transaction request may be broadcast in a manner that the group pending transaction request is forwarded to each second node in the instant messaging group through the server. At this time, the server only needs to forward the group transaction request to be handled, and data of the group transaction request to be handled does not need to be processed.
S130, when each second node receives the group to-do transaction request, if the group to-do transaction request is determined to point to a local node, after the group to-do transaction request is determined to be a legal request, the locally maintained group to-do block chain account book is updated, and after the group to-do transaction request is executed, a transaction completion request is generated and broadcast to the block chain system.
In a specific implementation manner, the node identifier in the group pending transaction request may be obtained by analyzing the group pending transaction request, and it may be determined whether the node identifier in the group pending transaction request is the same as the local node identifier, that is, whether the group pending transaction request is directed to the local node. And if the node identifier in the group pending transaction request is the same as the local identifier, indicating that the group pending transaction request points to the local node.
In an embodiment of the present invention, a second node of the group pending transaction request directed to the local node may be used as a target second node.
Further, the target second node may verify whether the group pending transaction request is a legal request by verifying whether an account book sequence number in the group pending transaction request exists in a locally maintained group pending block chain account book.
Specifically, the first node may encrypt the local account book sequence number, add the encrypted local account book sequence number to the group pending transaction request, and broadcast the group pending transaction request to the blockchain system. The target second node can analyze the sequence number of the encrypted account book in the group to-be-handled transaction request through a secret key pre-stored in the group to-be-handled block chain account book maintained locally, and verify whether the group to-be-handled transaction request is a legal request or not by using the analyzed sequence number of the account book.
After determining the group pending transaction request, the target second node may update the locally maintained group pending block chain ledger book according to the group pending transaction request.
After the target second node completes the group to-do transaction request, a transaction completion request may be generated and broadcast to the blockchain system for the first node and other target second nodes to receive the transaction completion request.
According to the technical scheme of the embodiment of the invention, the group to-do transaction request is generated by the first node and is broadcast to the block chain system, the group to-do transaction request is verified and processed by each second node, and the transaction completion request is generated after the group to-do transaction request is completed and is broadcast to the block chain system, so that the group to-do function in the instant messaging group can be realized based on the block chain, the related operation for realizing the group to-do function is distributed to the user nodes, and the condition that the group to-do function is influenced when the instant messaging flow is in a peak is avoided.
Example two
Fig. 2 is a flowchart of a block chain-based group to-do function implementation method according to a second embodiment of the present invention, and this embodiment further illustrates a specific operation method executed by each second node after receiving a group to-do transaction request based on the second embodiment. As shown in fig. 2, the method includes:
s210, when the group members join the instant communication group, locally generating group to-be-handled block chain accounts matched with the nodes in the block chain system by the nodes corresponding to the group members respectively.
S220, each node obtains each account book serial number respectively matched with each group of to-be-handled block chain account books, and all the account book serial numbers are stored in the locally maintained group to-be-handled block chain account books.
And S230, the first node acquires and encrypts a local accounting book serial number in the locally maintained group to-do block chain accounting book to generate a first encrypted accounting book serial number.
S240, the first node acquires node identifications corresponding to a plurality of first target group members needing to complete backlogs.
The first target group member may refer to all group members that need to complete the group backlog in the instant messaging group except the group member matched with the first node.
S250, the first node generates a group backlog transaction request according to backlogs, the first encrypted account book sequence number and node identifications corresponding to a plurality of first target group members needing to complete the backlogs.
And S260, the first node broadcasts the group pending transaction request to the block chain system, and updates a locally maintained group pending block chain account book according to the group pending transaction request.
And S270, when each second node receives the group to-do transaction request, acquiring each node identifier in the group to-do transaction request, and judging whether each node identifier contains a node identifier corresponding to the local node identifier.
And S280, when the target second node determines that the node identifications corresponding to the local node identifications are contained in the node identifications, determining that the group pending transaction request points to the local node, and acquiring a first encrypted account book sequence number contained in the group pending transaction request.
And S290, the target second node decrypts the first encrypted account book serial number contained in the group pending transaction request, and judges whether the group pending transaction request is a legal request.
The decrypting, by the target second node, the first encrypted account book serial number included in the group pending transaction request, and determining whether the group pending transaction request is a legal request may specifically include:
the target second node decrypts the first encrypted account book serial number contained in the group to-do transaction request by using a key stored locally in advance to obtain the first account book serial number;
the target second node traverses the stored account book sequence number in a locally maintained group to-be-handled block chain account book, and judges whether an account book sequence number matched with the first account book sequence number exists or not;
and when the target second node determines that the locally maintained group to-do block chain account book has the account book serial number matched with the first account book serial number, judging that the group to-do transaction request is a legal request.
Optionally, when each group member joins the instant messaging group, after each node generates a group to-do blockchain ledger book, the same secret key for decrypting the encrypted ledger book sequence number may be stored in the local group to-do blockchain ledger book of each node.
And S2100, after determining that the group to-do transaction request is a legal request, the target second node updates the locally maintained group to-do block chain account book according to the to-do matters in the group to-do transaction request and the first encrypted account book sequence number.
And S2110, generating a group to-do transaction receiving feedback request by the target second node, and broadcasting the group to-do transaction receiving feedback request to the block chain system.
And S2120, when the first node receives the group to-do transaction reception feedback request, if it is determined that the group to-do transaction reception feedback request points to the local node, updating the locally maintained group to-do block chain ledger book after determining that the group to-do transaction reception feedback request is a legal request.
And S2130, after the target second node executes the group to-do transaction request, updating a locally maintained group to-do block chain account book, and generating a transaction completion request to be broadcast to the block chain system.
After executing the group pending transaction request, the target second node updates a locally maintained group pending blockchain account book, generates a transaction completion request, and broadcasts the transaction completion request to the blockchain system, which may specifically include:
after the target second node executes the group to-do transaction request, updating a locally maintained group to-do block chain account book, acquiring a local account book serial number from the locally maintained group to-do block chain account book for encryption, and generating a second encrypted account book serial number matched with the local node;
the target second node acquires node identifiers corresponding to a plurality of second target group members which need to receive the transaction completion request broadcast;
and the target second node generates a transaction completion request according to the group pending transaction request execution result, the second encrypted account book serial number and the node identifications corresponding to a plurality of second target group members which need to receive the transaction completion request broadcast, and broadcasts the transaction completion request to the block chain system.
The second target group member may refer to a group member that needs to receive the transaction completion request, in the instant messaging group, except for a group member that is matched with a target second node that currently generates the transaction completion request, and may include a group member corresponding to the first node and a group member corresponding to a target second node except for the local node.
S2140, when the first node receives the transaction completion request, if the transaction completion request is determined to point to the local node, the locally maintained group to-do blockchain ledger is updated after the transaction completion request is determined to be a legal request.
Similarly, after other target second nodes in the immediate communication group receive the transaction completion request, if the transaction completion request is determined to point to the local node, the locally maintained group to-do blockchain account book is updated after the transaction completion request is determined to be a legal request.
According to the technical scheme of the embodiment of the invention, when the group members join the instant messaging group, the group to-be-handled block chain account book matched with each node is locally generated at each node corresponding to each group member, a decentralized and non-repudiatable group to-be-handled block chain account book can be generated in a block chain system, the group to-be-handled transaction request is legally verified through each target second node, and the legal group to-be-handled transaction request is stored in the locally maintained group to-be-handled block chain account book, so that the relevant operation for realizing the group to-be-handled function is distributed to the user nodes, and the condition that the group to-be-handled function is influenced when the instant messaging flow is in a peak is avoided.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a block chain-based group to-do function implementation apparatus according to a third embodiment of the present disclosure. As shown in fig. 3, the apparatus includes: the group pending transaction request generating module 310, the group pending transaction request broadcasting module 320, and the group pending transaction request executing module 330.
The group to-do transaction request generating module 310 is configured to generate a group to-do transaction request by a first node, where the group to-do transaction request includes node identifiers corresponding to a plurality of first target group members that need to complete backlogs.
The group pending transaction request broadcasting module 320 is configured to broadcast, by the first node, the group pending transaction request to the blockchain system, and update a locally maintained group pending blockchain ledger book according to the group pending transaction request.
The group pending transaction request executing module 330 is configured to, when each second node receives the group pending transaction request, if it is determined that the group pending transaction request is directed to a local node, update the locally maintained group pending block chain ledger book after determining that the group pending transaction request is a legal request, and generate a transaction completion request and broadcast the transaction completion request to the block chain system after executing the group pending transaction request.
According to the technical scheme of the embodiment of the invention, the group to-do transaction request is generated by the first node and is broadcast to the block chain system, the group to-do transaction request is verified and processed by each second node, and the transaction completion request is generated after the group to-do transaction request is completed and is broadcast to the block chain system, so that the group to-do function in the instant messaging group can be realized based on the block chain, the related operation for realizing the group to-do function is distributed to the user nodes, and the condition that the group to-do function is influenced when the instant messaging flow is in a peak is avoided.
On the basis of the foregoing embodiments, the system may further include a group pending block chain account book generating module, before the first node generates the group pending transaction request, specifically configured to:
when each group member joins the instant communication group, each node corresponding to each group member in the block chain system locally generates each group to-be-handled block chain account book matched with each node;
and each node acquires each account book sequence number respectively matched with each group of to-do block chain account books, and stores all the account book sequence numbers in the locally maintained group to-do block chain account book.
On the basis of the foregoing embodiments, the group pending transaction request generating module 310 may be specifically configured to:
the method comprises the steps that a first node obtains a local account book serial number from a locally maintained group to-be-handled block chain account book and encrypts the local account book serial number to generate a first encrypted account book serial number;
a first node acquires node identifiers corresponding to a plurality of first target group members needing to finish backlogs;
the first node generates a group backlog transaction request according to backlogs, the first encrypted account book sequence number and node identifications corresponding to a plurality of first target group members needing to complete the backlogs.
On the basis of the foregoing embodiments, the group pending transaction request execution module 330 may be specifically configured to:
when each second node receives the group transaction request to be handled, acquiring each node identifier in the group transaction request to be handled, and judging whether each node identifier contains a node identifier corresponding to the local node identifier;
when the target second node determines that the plurality of node identifications comprise the node identification corresponding to the local node identification, determining that the group to-do transaction request points to the local node, and acquiring a first encrypted account book serial number contained in the group to-do transaction request;
the target second node decrypts the first encrypted account book serial number contained in the group to-do transaction request, and judges whether the group to-do transaction request is a legal request or not;
after determining that the group backlog transaction request is a legal request, the target second node updates the locally maintained group backlog block chain account book according to backlogs in the group backlog transaction request and the first encrypted account book sequence number;
and after executing the group to-do transaction request, the target second node updates a locally maintained group to-do block chain account book and generates a transaction completion request to be broadcast to the block chain system.
On the basis of the foregoing embodiments, the group pending transaction request execution module 330 may be further specifically configured to:
the target second node utilizes a key pre-stored in the local to decrypt the first encrypted account book serial number contained in the group to-be-handled transaction request to obtain a first account book serial number;
the target second node traverses the stored account book sequence number in a locally maintained group to-be-handled block chain account book, and judges whether an account book sequence number matched with the first account book sequence number exists or not;
and when the second target node determines that the account book sequence number matched with the first account book sequence number exists in the locally maintained group to-do block chain account book, judging that the group to-do transaction request is a legal request.
On the basis of the foregoing embodiments, the group pending transaction request execution module 330 may be further specifically configured to:
after the target second node executes the group to-do transaction request, updating a locally maintained group to-do block chain account book, acquiring a local account book serial number from the locally maintained group to-do block chain account book for encryption, and generating a second encrypted account book serial number matched with the local node;
the target second node acquires node identifiers corresponding to a plurality of second target group members which need to receive the transaction completion request broadcast;
and the target second node generates a transaction completion request according to the group pending transaction request execution result, the second encrypted account book sequence number and node identifications corresponding to a plurality of second target group members which need to receive the transaction completion request broadcast, and broadcasts the transaction completion request to the block chain system.
On the basis of the foregoing embodiments, the system may further include a group pending transaction reception feedback request sending module, and after the target second node updates the locally maintained group pending block chain ledger book according to the pending items in the group pending transaction request and the first encrypted ledger book sequence number, the system is specifically configured to:
the target second node generates a group to-do transaction receiving feedback request, and broadcasts the group to-do transaction receiving feedback request to the block chain system;
when the first node receives the group to-do transaction receiving feedback request, if the group to-do transaction receiving feedback request is determined to point to the local node, the locally maintained group to-do block chain account book is updated after the group to-do transaction receiving feedback request is determined to be a legal request.
On the basis of the foregoing embodiments, the system may further include a transaction completion request sending module, after the target second node executes the group to-do transaction request, updating a locally maintained group to-do blockchain ledger, and generating a transaction completion request broadcast to the blockchain system, where the transaction completion request is received by the first node, and if it is determined that the transaction completion request is directed to the local node, after it is determined that the transaction completion request is a legal request, updating the locally maintained group to-do blockchain ledger.
The block chain-based group to-do function implementation device provided by the embodiment of the invention can execute the block chain-based group to-do function implementation method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
FIG. 4 shows a schematic block diagram of an electronic device 40 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 40 includes at least one processor 41, and a memory communicatively connected to the at least one processor 41, such as a Read Only Memory (ROM) 42, a Random Access Memory (RAM) 43, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 41 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 42 or the computer program loaded from the storage unit 48 into the Random Access Memory (RAM) 43. In the RAM 43, various programs and data necessary for the operation of the electronic apparatus 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other via a bus 44. An input/output (I/O) interface 45 is also connected to bus 44.
A number of components in the electronic device 40 are connected to the I/O interface 45, including: an input unit 46 such as a keyboard, a mouse, etc.; an output unit 47 such as various types of displays, speakers, and the like; a storage unit 48 such as a magnetic disk, an optical disk, or the like; and a communication unit 49 such as a network card, modem, wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Processor 41 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 41 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. Processor 41 performs the various methods and processes described above, such as the block chain based group to Do function implementation method described in the embodiments of the present invention. Namely:
a first node generates a group transaction request to be handled, wherein the group transaction request to be handled comprises node identifications corresponding to a plurality of first target group members needing to complete backlogs;
the first node broadcasts the group to-do transaction request to the block chain system, and updates a locally maintained group to-do block chain account book according to the group to-do transaction request;
when each second node receives the group transaction to be handled request, if the group transaction to be handled request is determined to point to a local node, after the group transaction to be handled request is determined to be a legal request, the locally maintained group transaction to be handled block chain account book is updated, and after the group transaction to be handled request is executed, a transaction completion request is generated and broadcast to the block chain system.
In some embodiments, the blockchain-based group to-do function implementation method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 48. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 40 via the ROM 42 and/or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the block chain based group to do function implementation method described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured by any other suitable means (e.g., by way of firmware) to perform the blockchain-based group to do function implementation method.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A block chain-based group to-do function implementation method is executed by nodes in a block chain system consisting of all group members in an instant messaging group, and is characterized by comprising the following steps:
a first node generates a group transaction request to be handled, wherein the group transaction request to be handled comprises node identifications corresponding to a plurality of first target group members needing to complete backlogs;
the first node broadcasts the group to-do transaction request to the block chain system, and updates a locally maintained group to-do block chain account book according to the group to-do transaction request;
when each second node receives the group transaction to be handled request, if the group transaction to be handled request is determined to point to a local node, after the group transaction to be handled request is determined to be a legal request, the locally maintained group transaction to be handled block chain account book is updated, and after the group transaction to be handled request is executed, a transaction completion request is generated and broadcast to the block chain system.
2. The method of claim 1, further comprising, prior to the first node generating the group to-do transaction request:
when each group member joins the instant communication group, each node corresponding to each group member in the block chain system locally generates each group to-be-handled block chain account book matched with each node;
and each node acquires each account book sequence number respectively matched with each group of to-do block chain account books, and stores all the account book sequence numbers in the locally maintained group to-do block chain account book.
3. The method of claim 2, wherein the first node generating the group pending transaction request comprises:
the method comprises the steps that a first node obtains a local account book serial number from a locally maintained group to-be-handled block chain account book and encrypts the local account book serial number to generate a first encrypted account book serial number;
a first node acquires node identifiers corresponding to a plurality of first target group members needing to complete backlogs;
the first node generates a group backlog transaction request according to backlogs, the first encrypted account book sequence number and node identifications corresponding to a plurality of first target group members needing to complete the backlogs.
4. The method of claim 3, wherein when each second node receives the group to-do transaction request, if it is determined that the group to-do transaction request is directed to a local node, after determining that the group to-do transaction request is a legal request, updating the locally maintained group to-do blockchain ledger, and after executing the group to-do transaction request, generating a transaction completion request broadcast to the blockchain system, comprises:
when each second node receives the group transaction request to be handled, acquiring each node identifier in the group transaction request to be handled, and judging whether each node identifier contains a node identifier corresponding to the local node identifier;
when the target second node determines that the plurality of node identifications comprise the node identification corresponding to the local node identification, determining that the group to-do transaction request points to the local node, and acquiring a first encrypted account book serial number contained in the group to-do transaction request;
the target second node decrypts the first encrypted account book serial number contained in the group to-do transaction request, and judges whether the group to-do transaction request is a legal request or not;
after determining that the group backlog transaction request is a legal request, the target second node updates the locally maintained group backlog block chain account book according to backlogs in the group backlog transaction request and the first encrypted account book sequence number;
and after executing the group to-do transaction request, the target second node updates a locally maintained group to-do block chain account book and generates a transaction completion request to be broadcast to the block chain system.
5. The method of claim 4, wherein the target second node performs a decryption operation on the first encrypted ledger node included in the group pending transaction request to determine whether the group pending transaction request is a legal request, comprising:
the target second node utilizes a key pre-stored in the local to decrypt the first encrypted account book serial number contained in the group to-be-handled transaction request to obtain a first account book serial number;
the target second node traverses the stored account book sequence number in a locally maintained group to-be-handled block chain account book, and judges whether an account book sequence number matched with the first account book sequence number exists or not;
and when the target second node determines that the locally maintained group to-do block chain account book has the account book serial number matched with the first account book serial number, judging that the group to-do transaction request is a legal request.
6. The method of claim 5, wherein the target second node, after executing the group to-do transaction request, updating a locally maintained group to-do blockchain ledger and generating a transaction completion request broadcast to the blockchain system, comprises:
after the group to-do transaction request is executed by the target second node, updating a locally maintained group to-do block chain account book, acquiring a local account book serial number from the locally maintained group to-do block chain account book for encryption, and generating a second encrypted account book serial number matched with the local node;
the target second node acquires node identifications corresponding to a plurality of second target group members which need to receive the transaction completion request broadcast;
and the target second node generates a transaction completion request according to the group pending transaction request execution result, the second encrypted account book serial number and the node identifications corresponding to a plurality of second target group members which need to receive the transaction completion request broadcast, and broadcasts the transaction completion request to the block chain system.
7. The method of claim 6, further comprising, after the target second node updates the locally maintained group pending blockchain ledger from backlogs in the group pending transaction request and the first encrypted ledger sequence number:
the target second node generates a group to-do transaction receiving feedback request, and broadcasts the group to-do transaction receiving feedback request to the block chain system;
when the first node receives the group to-do transaction receiving feedback request, if the group to-do transaction receiving feedback request is determined to point to the local node, the group to-do transaction receiving feedback request is determined to be a legal request, and then a locally maintained group to-do block chain account book is updated;
after the target second node executes the group pending transaction request, updating a locally maintained group pending blockchain account book, and generating a transaction completion request broadcast to the blockchain system, the method further includes:
and when the first node receives the transaction completion request, if the transaction completion request is determined to point to the local node, updating the locally maintained group to-do blockchain account book after the transaction completion request is determined to be a legal request.
8. A group to-do function realization device based on a block chain is executed by nodes in a block chain system consisting of all group members in an instant communication group, and is characterized by comprising the following steps:
the group backlog transaction request generating module is used for generating a group backlog transaction request by a first node, wherein the group backlog transaction request comprises node identifications corresponding to a plurality of first target group members needing to complete backlogs;
the group pending transaction request broadcasting module is used for broadcasting the group pending transaction request to the block chain system by the first node and updating a locally maintained group pending block chain account book according to the group pending transaction request;
and the group pending transaction request executing module is used for updating the locally maintained group pending block chain account book after determining that the group pending transaction request is a legal request if the group pending transaction request is determined to point to the local node when each second node receives the group pending transaction request, and generating a transaction completion request and broadcasting the transaction completion request to the block chain system after executing the group pending transaction request.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the blockchain based group to do function implementation method of any one of claims 1 to 7.
10. A computer-readable storage medium storing computer instructions for causing a processor to implement the block chain based group to-do function implementation method according to any one of claims 1 to 7.
CN202211351148.0A 2022-10-31 2022-10-31 Block chain-based group to-do function implementation method, device, equipment and medium Pending CN115633008A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211351148.0A CN115633008A (en) 2022-10-31 2022-10-31 Block chain-based group to-do function implementation method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211351148.0A CN115633008A (en) 2022-10-31 2022-10-31 Block chain-based group to-do function implementation method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115633008A true CN115633008A (en) 2023-01-20

Family

ID=84909450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211351148.0A Pending CN115633008A (en) 2022-10-31 2022-10-31 Block chain-based group to-do function implementation method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115633008A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911216A (en) * 2017-10-26 2018-04-13 矩阵元技术(深圳)有限公司 A kind of block chain transaction method for secret protection and system
CN108776929A (en) * 2018-04-02 2018-11-09 成都云创智融科技有限公司 Bill processing method, system based on block chain database and readable storage medium storing program for executing
CN110084698A (en) * 2019-04-29 2019-08-02 百度时代网络技术(北京)有限公司 Interactive system, exchange method and device based on block chain
CN113342838A (en) * 2021-08-06 2021-09-03 腾讯科技(深圳)有限公司 Data processing method, device and equipment based on block chain and readable storage medium
CN113761582A (en) * 2021-09-29 2021-12-07 山东省计算中心(国家超级计算济南中心) Group signature based method and system for protecting privacy of block chain transaction under supervision
CN114240433A (en) * 2021-12-06 2022-03-25 中国工商银行股份有限公司 Data processing method and system based on block chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911216A (en) * 2017-10-26 2018-04-13 矩阵元技术(深圳)有限公司 A kind of block chain transaction method for secret protection and system
CN108776929A (en) * 2018-04-02 2018-11-09 成都云创智融科技有限公司 Bill processing method, system based on block chain database and readable storage medium storing program for executing
CN110084698A (en) * 2019-04-29 2019-08-02 百度时代网络技术(北京)有限公司 Interactive system, exchange method and device based on block chain
CN113342838A (en) * 2021-08-06 2021-09-03 腾讯科技(深圳)有限公司 Data processing method, device and equipment based on block chain and readable storage medium
CN113761582A (en) * 2021-09-29 2021-12-07 山东省计算中心(国家超级计算济南中心) Group signature based method and system for protecting privacy of block chain transaction under supervision
CN114240433A (en) * 2021-12-06 2022-03-25 中国工商银行股份有限公司 Data processing method and system based on block chain

Similar Documents

Publication Publication Date Title
CN109683936B (en) Gray scale distribution method and device, storage medium and electronic equipment
CN111612388A (en) Method and device for merging target orders
CN113657900A (en) Cross-chain transaction verification method and system and cross-chain transaction system
CN111597567B (en) Data processing method, data processing device, node equipment and storage medium
CN103403731A (en) Data encryption processing device and method of cloud storage system
CN111669434A (en) Method, system, device and equipment for establishing communication group
CN111161072A (en) Block chain-based random number generation method, equipment and storage medium
CN116150249B (en) Table data export method, apparatus, electronic device and computer readable medium
CN112182518A (en) Software deployment method and device
CN115633008A (en) Block chain-based group to-do function implementation method, device, equipment and medium
CN112528239A (en) Method and device for automatically authorizing software
CN109389271B (en) Application performance management method and system
CN112866296B (en) Application online verification method, device, equipment and storage medium
CN115529186A (en) SSL certificate unloading method, device and system based on soft load balancing
CN113079085A (en) Business service interaction method, business service interaction device, business service interaction equipment and storage medium
CN111767221A (en) Interface test method, device, equipment and storage medium
CN112257039A (en) Identity attribute adding method and device and electronic equipment
CN111984616A (en) Method, device and system for updating shared file
CN104917730A (en) Authentication method, system and authentication server
CN110766497A (en) Trading method, platform, system and computer readable storage medium
CN109828908A (en) Interface testing parameter encryption method, device, electronic equipment and storage medium
CN110262756B (en) Method and device for caching data
CN116661821B (en) Application upgrading method and device, electronic equipment and storage medium
CN115643002A (en) Service processing method, device and storage medium
CN116339774A (en) Client hot updating method, device and equipment

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