Method, device, equipment and medium for realizing group to-do function based on blockchain
By using blockchain technology to share the group to-do function in the instant messaging group, the problem of inefficiency of the group to-do function in traditional methods when high traffic is solved, and a more efficient group to-do processing is achieved.
Patent Information
- Application Number
- CN202211351148.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-31
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2042-10-31
AI Technical Summary
In instant messaging groups, the traditional group to-do function implementation method relies on server processing, resulting in the group to-do function being easily affected and inefficient when instant messaging traffic is peaking.
Adopting a decentralized method based on blockchain, through a blockchain system composed of each group member in the instant messaging group, the relevant operations of the group to-do function are allocated to the user node, and the first node is used to generate and broadcast the group to-do. Transaction requests, each second node verifies and processes, and generates a transaction completion request after completion to avoid server overload.
It effectively avoids the situation where the group to-do function is affected when the instant messaging traffic is peak, and improves the processing efficiency and reliability of the group to-do function.
Smart Images

Figure CN115633008B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a method, device, equipment and medium for realizing a group to-do function based on blockchain. Background Art
[0002] In the group to-do function of the instant messaging group conversation, a user member in the instant messaging group publishes the group to-do items of the group conversation to other user members in the instant messaging group, and the group members who receive the to-do items confirm and complete the to-do items.
[0003] Therefore, to realize the group to-do function of the instant messaging group session is to process the information flow interaction operation between the user members in the instant messaging group. The traditional method of realizing the group to-do function generally processes the group to-do information through the server and sends the processing results to the user members related to the group to-do information.
[0004] However, since instant messaging messages in instant messaging groups are generally also processed and sent through the server, this may cause the group to-do function to be affected when the instant messaging traffic is peak. Summary of the invention
[0005] The present invention provides a method, device, equipment and medium for realizing a group to-do function based on blockchain, which can realize the group to-do function in an instant messaging group based on blockchain, distribute the relevant operations for realizing the group to-do function to user nodes, and avoid the situation where the group to-do function is affected when the instant messaging traffic is at a peak.
[0006] According to one aspect of the present invention, a method for implementing a group to-do function based on blockchain is provided, which is executed by a node in a blockchain system composed of group members in an instant messaging group, and includes:
[0007] The first node generates a group pending transaction request, wherein the group pending transaction request includes node identifiers corresponding to a plurality of first target group members who need to complete pending items;
[0008] The first node broadcasts the group pending transaction request to the blockchain system, and updates the locally maintained group pending transaction blockchain account book according to the group pending transaction request;
[0009] When each second node receives the group pending transaction request, if it is determined that the group pending transaction request points to the local node, then after determining that the group pending transaction request is a legitimate request, it updates the locally maintained group pending transaction blockchain account book, and after executing the group pending transaction request, generates a transaction completion request and broadcasts it to the blockchain system.
[0010] According to another aspect of the present invention, there is provided a device for implementing a group to-do function based on blockchain, which is executed by a node in a blockchain system composed of group members in an instant messaging group, and includes:
[0011] A group pending transaction request generation module, configured to generate a group pending transaction request at a first node, wherein the group pending transaction request includes node identifiers corresponding to a plurality of first target group members who need to complete pending items;
[0012] A group pending transaction request broadcasting module, configured for the first node to broadcast the group pending transaction request to the blockchain system, and to update the locally maintained group pending transaction blockchain account book according to the group pending transaction request;
[0013] The group pending transaction request execution module is used for each second node to update the locally maintained group pending transaction blockchain account book after determining that the group pending transaction request is a legitimate request when receiving the group pending transaction request, and generate a transaction completion request to broadcast to the blockchain system after executing the group pending transaction request, if it is determined that the group pending transaction request points to the local node.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for implementing the group to-do function based on blockchain as described in any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for implementing a group to-do function based on blockchain as described in any embodiment of the present invention when executed.
[0019] The technical solution of the embodiment of the present invention is to realize the group to-do function in the instant messaging group based on the blockchain, distribute the relevant calculations for realizing the group to-do function to the user nodes, and avoid the situation that the group to-do function is affected when the instant messaging traffic is at a peak.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 This is a flowchart of a method for implementing a group to-do function based on blockchain according to Embodiment 1 of the present invention;
[0023] Figure 2 This is a flowchart of another method for implementing a group to-do function based on blockchain according to Embodiment 2 of the present invention;
[0024] Figure 3 It is a structural diagram of a device for realizing a group to-do function based on blockchain according to Embodiment 3 of the present invention;
[0025] Figure 4 It is a structural schematic diagram of an electronic device that implements the method for implementing a group to-do function based on blockchain according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] Embodiment 1
[0029] Figure 1 This is a flowchart of a method for implementing a group to-do function based on blockchain provided in the first embodiment of the present invention. This embodiment is applicable to the case where a group to-do transaction request is generated and sent by a first node, and a designated second node receives and completes the group to-do transaction request. This method can be executed by a group to-do function implementation device based on blockchain. The group to-do function implementation device based on blockchain can be implemented in the form of hardware and / or software, and can generally be configured in a blockchain system with data processing functions. Figure 1 As shown, the method includes:
[0030] S110. The first node generates a group pending transaction request.
[0031] Since the present invention adopts a decentralized manner based on blockchain to implement the group to-do function, the present invention can be executed by nodes in the blockchain system composed of group members in the instant messaging group. In order to facilitate understanding of the nodes that perform different functions in the present invention, the names of all nodes in the following embodiments of the present invention are explained here.
[0032] The first node is the user node that initiates the group pending transaction request; the second node is all user nodes in the instant messaging group except the first node; the target second node is the target user node in the second node pointed to by the group pending transaction request, that is, the user node that needs to respond to and complete the group pending transaction request.
[0033] Blockchain is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. The reason why the present invention uses blockchain to realize the group to-do function is that, considering the computer technology used by blockchain, the processing of group to-do data can be transferred from the central server to each user node in the communication group based on blockchain, which can effectively avoid the impact on the group to-do function during the peak of instant messaging traffic.
[0034] The group pending transaction request may include node identifiers corresponding to a plurality of first target group members who need to complete pending items.
[0035] It can be understood that the node identifier is identification information for distinguishing each node, and can be a unique communication credential code that matches each group member in the instant messaging group.
[0036] Optionally, the group pending transaction request may further include at least one group pending item to be completed, and a first encrypted account book sequence number obtained by encrypting the local account book sequence number of the first node.
[0037] In a specific example, the group to-do items may be filling out an online form, uploading a document, and receiving a group-sent file, etc. The specific content of the group to-do transaction request may be generated according to the actual needs of the user, and this is only an example for illustration.
[0038] The ledger book sequence number is a sequence number used to identify the group to-do blockchain ledger maintained locally by each node. Each group to-do blockchain ledger maintained locally by each node has a unique ledger book sequence number. When each member of the instant messaging group joins the group, a ledger book sequence number matching each group to-do blockchain ledger will be generated at the same time as the group to-do blockchain ledger maintained locally by each node is generated. The group to-do blockchain ledger maintained locally by each node in the communication group stores the ledger book sequence numbers of all nodes in the communication group.
[0039] An optional method for generating the ledger book serial number is to use a secure hash algorithm to calculate and obtain the ledger book serial number matching each node based on the relevant data information of the instant messaging group.
[0040] S120. The first node broadcasts the group pending transaction request to the blockchain system, and updates the locally maintained group pending transaction blockchain account book according to the group pending transaction request.
[0041] It is understandable that the broadcasting method of the group pending transaction request can be forwarded to each second node in the instant messaging group by the server. In this case, the server only needs to forward the group pending transaction request without processing the data of the group pending transaction request.
[0042] S130. When each second node receives the group pending transaction request, if it is determined that the group pending transaction request points to the local node, then after determining that the group pending transaction request is a legitimate request, it updates the locally maintained group pending transaction blockchain account book, and after executing the group pending transaction request, generates a transaction completion request and broadcasts it to the blockchain system.
[0043] In a specific implementation, the group pending transaction request can be parsed to obtain the node identifier in the group pending transaction request, and to determine whether the node identifier in the group pending transaction request is the same as the local identifier, so as to determine whether the group pending transaction request points to the local node. If the node identifier in the group pending transaction request is the same as the local identifier, it means that the group pending transaction request points to the local node.
[0044] In an embodiment of the present invention, the second node directed to the local node by the group pending transaction request may be used as the target second node.
[0045] Furthermore, the target second node can verify whether the group pending transaction request is a legitimate request by verifying whether the account book sequence number in the group pending transaction request exists in the group pending blockchain account book maintained locally.
[0046] Specifically, the first node can encrypt the local account book serial number, add the encrypted local account book serial number to the group pending transaction request and broadcast it to the blockchain system. The target second node can parse the encrypted account book serial number in the group pending transaction request through the secret key pre-stored in the locally maintained group pending blockchain account book, and use the parsed account book serial number to verify whether the group pending transaction request is a legitimate request.
[0047] After determining the group pending transaction request, the target second node can update the locally maintained group pending transaction blockchain account book according to the group pending transaction request.
[0048] After the target second node completes the group pending transaction request, a transaction completion request may be generated and broadcast to the blockchain system so that the first node and other target second nodes can receive the transaction completion request.
[0049] The technical solution of the embodiment of the present invention is to realize the group to-do function in the instant messaging group based on the blockchain, distribute the relevant calculations for realizing the group to-do function to the user nodes, and avoid the situation that the group to-do function is affected when the instant messaging traffic is at a peak.
[0050] Embodiment 2
[0051] Figure 2 This is a flowchart of a method for implementing a group to-do function based on blockchain provided in the second embodiment of the present invention. Based on the above embodiment, this embodiment further illustrates the specific operation method performed by each second node after receiving a group to-do transaction request. Figure 2 As shown, the method includes:
[0052] S210. When each group member joins the instant messaging group, each node corresponding to each group member in the blockchain system locally generates a to-do blockchain ledger for each group that matches each node.
[0053] S220, each node obtains the serial numbers of each account book that matches each group to-do blockchain account book, and stores all the account book serial numbers in the group to-do blockchain account book maintained locally.
[0054] S230: The first node obtains the local account book serial number from the group to-do blockchain account book maintained locally and encrypts it to generate a first encrypted account book serial number.
[0055] S240: The first node obtains node identifiers corresponding to multiple first target group members who need to complete to-do items.
[0056] The first target group members may refer to all group members in the instant messaging group who need to complete group to-do items except the group members matched with the first node.
[0057] S250: The first node generates a group to-do transaction request according to the to-do items, the first encrypted account book sequence number, and the node identifiers corresponding to the plurality of first target group members who need to complete the to-do items.
[0058] S260: The first node broadcasts the group pending transaction request to the blockchain system, and updates the locally maintained group pending transaction blockchain account book according to the group pending transaction request.
[0059] S270. When receiving the group pending transaction request, each second node obtains each node identifier in the group pending transaction request, and determines whether the node identifiers include a node identifier corresponding to the local node identifier.
[0060] S280. When the target second node determines that the multiple node identifiers include a node identifier corresponding to the local node identifier, it determines that the group pending transaction request points to the local node, and obtains the first encrypted account book sequence number included in the group pending transaction request.
[0061] S290: The target second node performs a decryption operation on the first encrypted account book sequence number included in the group pending transaction request to determine whether the group pending transaction request is a legitimate request.
[0062] The target second node performs a decryption operation on the first encrypted account book sequence number included in the group pending transaction request to determine whether the group pending transaction request is a legitimate request, which may specifically include:
[0063] The target second node uses a key pre-stored locally to perform a decryption operation on the first encrypted account book sequence number included in the group pending transaction request to obtain the first account book sequence number;
[0064] The target second node traverses the stored account book sequence numbers in the group to-do blockchain account book maintained locally, and determines whether there is an account book sequence number that matches the first account book sequence number;
[0065] When the target second node determines that there is an account book sequence number matching the first account book sequence number in the locally maintained group to-do blockchain account book, it determines that the group to-do transaction request is a legitimate request.
[0066] Optionally, when each group member joins the instant messaging group, after each node generates a group to-do blockchain ledger, the same secret key for decrypting the encrypted ledger serial number can be stored in the local group to-do blockchain ledger of each node.
[0067] S2100. After determining that the group pending transaction request is a legitimate request, the target second node updates the locally maintained group pending transaction blockchain account book according to the pending items in the group pending transaction request and the first encrypted account book sequence number.
[0068] S2110. The target second node generates a group pending transaction reception feedback request, and broadcasts the group pending transaction reception feedback request to the blockchain system.
[0069] S2120. When the first node receives the group pending transaction receiving feedback request, if it is determined that the group pending transaction receiving feedback request points to the local node, then after determining that the group pending transaction receiving feedback request is a legitimate request, the first node updates the locally maintained group pending transaction blockchain account book.
[0070] S2130. After executing the group pending transaction request, the target second node updates the locally maintained group pending transaction blockchain account book, and generates a transaction completion request and broadcasts it to the blockchain system.
[0071] After executing the group pending transaction request, the target second node updates the locally maintained group pending blockchain account book, and generates a transaction completion request and broadcasts it to the blockchain system, which may specifically include:
[0072] After executing the group to-do transaction request, the target second node updates the locally maintained group to-do blockchain account book, obtains the local account book serial number from the locally maintained group to-do blockchain account book for encryption, and generates a second encrypted account book serial number matching the local node;
[0073] The target second node obtains node identifiers corresponding to multiple second target group members that need to receive the transaction completion request broadcast;
[0074] The target second node generates a transaction completion request and broadcasts the transaction completion request to the blockchain system according to the execution result of the group pending transaction request, the second encrypted account book serial number, and the node identifiers corresponding to multiple second target group members who need to receive the transaction completion request broadcast.
[0075] Among them, the second target group members may refer to group members in the instant messaging group who need to receive the transaction completion request other than the group members matching the target second node that currently generates the transaction completion request, and may include group members corresponding to the first node, and group members corresponding to other target second nodes except the local node.
[0076] S2140. When the first node receives the transaction completion request, if it is determined that the transaction completion request points to the local node, then after determining that the transaction completion request is a legitimate request, the first node updates the locally maintained group to-do blockchain account book.
[0077] Similarly, when other target second nodes in the instant messaging group receive the transaction completion request, if it is determined that the transaction completion request points to the local node, then after determining that the transaction completion request is a legitimate request, the locally maintained group to-do blockchain ledger is updated.
[0078] The technical solution of the embodiment of the present invention can generate a decentralized and non-repudiable group to-do blockchain ledger in the blockchain system by locally generating each group to-do blockchain ledger that matches each node when a group member joins an instant messaging group. The legitimacy of the group to-do transaction request is verified by each target second node, and the legitimate group to-do transaction request is stored in the locally maintained group to-do blockchain ledger. In this way, the relevant calculations for realizing the group to-do function are distributed to the user nodes, thereby avoiding the situation where the group to-do function is affected during the peak of instant messaging traffic.
[0079] Embodiment 3
[0080] Figure 3 This is a schematic diagram of a block chain-based group to-do function implementation device provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes: a group pending transaction request generating module 310, a group pending transaction request broadcasting module 320 and a group pending transaction request executing module 330.
[0081] The group pending transaction request generating module 310 is used for the first node to generate a group pending transaction request, wherein the group pending transaction request includes node identifiers corresponding to a plurality of first target group members who need to complete pending items.
[0082] The group pending transaction request broadcasting module 320 is used for the first node to broadcast the group pending transaction request to the blockchain system, and update the locally maintained group pending transaction blockchain account book according to the group pending transaction request.
[0083] The group pending transaction request execution module 330 is used for each second node to update the locally maintained group pending transaction blockchain account book after determining that the group pending transaction request is a legitimate request when receiving the group pending transaction request, and generate a transaction completion request and broadcast it to the blockchain system after executing the group pending transaction request, if it is determined that the group pending transaction request points to the local node.
[0084] The technical solution of the embodiment of the present invention is to realize the group to-do function in the instant messaging group based on the blockchain, distribute the relevant calculations for realizing the group to-do function to the user nodes, and avoid the situation that the group to-do function is affected when the instant messaging traffic is at a peak.
[0085] On the basis of the above embodiments, a group pending blockchain account book generation module may also be included, which is specifically used to:
[0086] When each group member joins the instant messaging group, each node corresponding to each group member in the blockchain system locally generates a to-do blockchain account book for each group that matches each node;
[0087] Each node obtains the serial numbers of each ledger book that matches each group to-do blockchain ledger book, and stores all the ledger book serial numbers in the group to-do blockchain ledger book maintained locally.
[0088] Based on the above embodiments, the group pending transaction request generation module 310 can be specifically used for:
[0089] The first node obtains the local account book serial number from the group to-do blockchain account book maintained locally and encrypts it to generate a first encrypted account book serial number;
[0090] The first node obtains node identifiers corresponding to a plurality of first target group members who need to complete to-do items;
[0091] The first node generates a group to-do transaction request according to the to-do items, the first encrypted account book sequence number, and the node identifiers corresponding to the plurality of first target group members who need to complete the to-do items.
[0092] Based on the above embodiments, the group pending transaction request execution module 330 can be specifically used for:
[0093] When receiving the group pending transaction request, each second node obtains each node identifier in the group pending transaction request, and determines whether the node identifiers include a node identifier corresponding to the local node identifier;
[0094] When the target second node determines that the multiple node identifiers include a node identifier corresponding to the local node identifier, it determines that the group pending transaction request points to the local node, and obtains the first encrypted account book sequence number included in the group pending transaction request;
[0095] The target second node performs a decryption operation on the first encrypted account book sequence number included in the group pending transaction request to determine whether the group pending transaction request is a legitimate request;
[0096] After determining that the group pending transaction request is a legitimate request, the target second node updates the locally maintained group pending transaction blockchain account book according to the pending items in the group pending transaction request and the first encrypted account book sequence number;
[0097] After executing the group pending transaction request, the target second node updates the locally maintained group pending transaction blockchain account book, and generates a transaction completion request to broadcast to the blockchain system.
[0098] Based on the above embodiments, the group pending transaction request execution module 330 can also be specifically used for:
[0099] The target second node uses a key pre-stored locally to perform a decryption operation on the first encrypted account book sequence number included in the group pending transaction request to obtain the first account book sequence number;
[0100] The target second node traverses the stored account book sequence numbers in the group to-do blockchain account book maintained locally, and determines whether there is an account book sequence number that matches the first account book sequence number;
[0101] When the target second node determines that there is an account book sequence number matching the first account book sequence number in the locally maintained group to-do blockchain account book, it determines that the group to-do transaction request is a legitimate request.
[0102] Based on the above embodiments, the group pending transaction request execution module 330 can also be specifically used for:
[0103] After executing the group to-do transaction request, the target second node updates the locally maintained group to-do blockchain account book, obtains the local account book serial number from the locally maintained group to-do blockchain account book for encryption, and generates a second encrypted account book serial number matching the local node;
[0104] The target second node obtains node identifiers corresponding to multiple second target group members that need to receive the transaction completion request broadcast;
[0105] The target second node generates a transaction completion request and broadcasts the transaction completion request to the blockchain system according to the execution result of the group pending transaction request, the second encrypted account book serial number, and the node identifiers corresponding to multiple second target group members who need to receive the transaction completion request broadcast.
[0106] On the basis of the above embodiments, a group pending transaction receiving feedback request sending module may also be included, after the target second node updates the locally maintained group pending transaction blockchain account book according to the pending items in the group pending transaction request and the first encrypted account book sequence number, specifically used to:
[0107] The target second node generates a group pending transaction reception feedback request, and broadcasts the group pending transaction reception feedback request to the blockchain system;
[0108] When the first node receives the group pending transaction reception feedback request, if it is determined that the group pending transaction reception feedback request points to the local node, then after determining that the group pending transaction reception feedback request is a legitimate request, the locally maintained group pending transaction blockchain account book is updated.
[0109] On the basis of the above embodiments, a transaction completion request sending module may also be included. After the target second node executes the group pending transaction request, it updates the locally maintained group pending blockchain account book, and generates a transaction completion request and broadcasts it to the blockchain system. When the first node receives the transaction completion request, if it is determined that the transaction completion request points to the local node, then after determining that the transaction completion request is a legitimate request, it updates the locally maintained group pending blockchain account book.
[0110] The device for realizing a group to-do function based on blockchain provided in an embodiment of the present invention can execute the method for realizing a group to-do function based on blockchain provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
[0111] Embodiment 4
[0112] Figure 4A schematic diagram of the structure of an electronic device 40 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0113] like Figure 4 As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can 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 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.
[0114] 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, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0115] The processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 41 executes the various methods and processes described above, such as the method for implementing the group to-do function based on blockchain as described in an embodiment of the present invention. That is:
[0116] The first node generates a group pending transaction request, wherein the group pending transaction request includes node identifiers corresponding to a plurality of first target group members who need to complete pending items;
[0117] The first node broadcasts the group pending transaction request to the blockchain system, and updates the locally maintained group pending transaction blockchain account book according to the group pending transaction request;
[0118] When each second node receives the group pending transaction request, if it is determined that the group pending transaction request points to the local node, then after determining that the group pending transaction request is a legitimate request, it updates the locally maintained group pending transaction blockchain account book, and after executing the group pending transaction request, generates a transaction completion request and broadcasts it to the blockchain system.
[0119] In some embodiments, the group to-do function implementation method based on blockchain can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 40 via ROM 42 and / or communication unit 49. When the computer program is loaded into RAM 43 and executed by processor 41, one or more steps of the group to-do function implementation method based on blockchain described above can be performed. Alternatively, in other embodiments, the processor 41 can be configured to execute the group to-do function implementation method based on blockchain in any other appropriate manner (for example, by means of firmware).
[0120] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0121] Computer programs 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, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0122] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0123] To provide interaction with a user, the systems and techniques described herein may 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 the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may 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 input, voice input, or tactile input).
[0124] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0125] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0126] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0127] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for implementing a group to-do function based on blockchain, which is executed by a node in a blockchain system composed of group members in an instant messaging group, characterized in that: include: The first node generates a group pending transaction request, wherein the group pending transaction request includes node identifiers corresponding to a plurality of first target group members who need to complete pending items; The first node broadcasts the group pending transaction request to the blockchain system, and updates the locally maintained group pending transaction blockchain account book according to the group pending transaction request; When receiving the group pending transaction request, if each second node determines that the group pending transaction request points to the local node, after determining that the group pending transaction request is a legitimate request, it updates the locally maintained group pending transaction blockchain account book, and after executing the group pending transaction request, generates a transaction completion request and broadcasts it to the blockchain system; The first node generates a group pending transaction request, including: The first node obtains the local account book serial number from the group to-do blockchain account book maintained locally and encrypts it to generate a first encrypted account book serial number; The first node obtains node identifiers corresponding to a plurality of first target group members who need to complete to-do items; The first node generates a group to-do transaction request according to the to-do items, the first encrypted account book sequence number, and the node identifiers corresponding to the plurality of first target group members who need to complete the to-do items.
2. The method according to claim 1, characterized in that Before the first node generates a group pending transaction request, it also includes: When each group member joins the instant messaging group, each node corresponding to each group member in the blockchain system locally generates a to-do blockchain account book for each group that matches each node; Each node obtains the serial numbers of each ledger book that matches each group to-do blockchain ledger book, and stores all the ledger book serial numbers in the group to-do blockchain ledger book maintained locally.
3. The method according to claim 1, characterized in that When each second node receives the group pending transaction request, if it is determined that the group pending transaction request points to the local node, after determining that the group pending transaction request is a legitimate request, it updates the locally maintained group pending transaction blockchain account book, and after executing the group pending transaction request, generates a transaction completion request and broadcasts it to the blockchain system, including: When receiving the group pending transaction request, each second node obtains each node identifier in the group pending transaction request, and determines whether the node identifiers include a node identifier corresponding to the local node identifier; When the target second node determines that the multiple node identifiers include a node identifier corresponding to the local node identifier, it determines that the group pending transaction request points to the local node, and obtains the first encrypted account book sequence number included in the group pending transaction request; The target second node performs a decryption operation on the first encrypted account book sequence number included in the group pending transaction request to determine whether the group pending transaction request is a legitimate request; After determining that the group pending transaction request is a legitimate request, the target second node updates the locally maintained group pending transaction blockchain account book according to the pending items in the group pending transaction request and the first encrypted account book sequence number; After executing the group pending transaction request, the target second node updates the locally maintained group pending transaction blockchain account book, and generates a transaction completion request to broadcast to the blockchain system.
4. The method according to claim 3, characterized in that The target second node performs a decryption operation on the first encrypted account book sequence number included in the group pending transaction request to determine whether the group pending transaction request is a legitimate request, including: The target second node uses a key pre-stored locally to perform a decryption operation on the first encrypted account book sequence number included in the group pending transaction request to obtain the first account book sequence number; The target second node traverses the stored account book sequence numbers in the group to-do blockchain account book maintained locally, and determines whether there is an account book sequence number that matches the first account book sequence number; When the target second node determines that there is an account book sequence number matching the first account book sequence number in the locally maintained group to-do blockchain account book, it determines that the group to-do transaction request is a legitimate request.
5. The method according to claim 4, characterized in that After executing the group pending transaction request, the target second node updates the locally maintained group pending blockchain account book, and generates a transaction completion request and broadcasts it to the blockchain system, including: After executing the group to-do transaction request, the target second node updates the locally maintained group to-do blockchain account book, obtains the local account book serial number from the locally maintained group to-do blockchain account book for encryption, and generates a second encrypted account book serial number matching the local node; The target second node obtains node identifiers corresponding to multiple second target group members who need to receive the transaction completion request broadcast; The target second node generates a transaction completion request and broadcasts the transaction completion request to the blockchain system according to the execution result of the group pending transaction request, the second encrypted account book serial number, and the node identifiers corresponding to multiple second target group members who need to receive the transaction completion request broadcast.
6. The method according to claim 5, characterized in that After the target second node updates the locally maintained group to-do blockchain account book according to the to-do items in the group to-do transaction request and the first encrypted account book sequence number, the method further includes: The target second node generates a group pending transaction reception feedback request, and broadcasts the group pending transaction reception feedback request to the blockchain system; When the first node receives the group pending transaction reception feedback request, if it is determined that the group pending transaction reception feedback request points to the local node, then after determining that the group pending transaction reception feedback request is a legitimate request, the first node updates the locally maintained group pending transaction blockchain account book; After the target second node executes the group pending transaction request, updates the locally maintained group pending blockchain account book, and generates a transaction completion request and broadcasts it to the blockchain system, it also includes: When the first node receives the transaction completion request, if it is determined that the transaction completion request points to the local node, then after determining that the transaction completion request is a legitimate request, the locally maintained group to-do blockchain account book is updated.
7. A device for realizing group to-do functions based on blockchain, executed by nodes in a blockchain system composed of group members in an instant messaging group, characterized in that: include: A group pending transaction request generation module, configured to generate a group pending transaction request at a first node, wherein the group pending transaction request includes node identifiers corresponding to a plurality of first target group members who need to complete pending items; A group pending transaction request broadcasting module, configured for the first node to broadcast the group pending transaction request to the blockchain system, and to update the locally maintained group pending transaction blockchain account book according to the group pending transaction request; A group pending transaction request execution module, for each second node, when receiving the group pending transaction request, if it is determined that the group pending transaction request points to the local node, then after determining that the group pending transaction request is a legitimate request, updating the locally maintained group pending transaction blockchain account book, and after executing the group pending transaction request, generating a transaction completion request and broadcasting it to the blockchain system; The group pending transaction request generation module is specifically used to: The first node obtains the local account book serial number from the group to-do blockchain account book maintained locally and encrypts it to generate a first encrypted account book serial number; The first node obtains node identifiers corresponding to a plurality of first target group members who need to complete to-do items; The first node generates a group to-do transaction request according to the to-do items, the first encrypted account book sequence number, and the node identifiers corresponding to the plurality of first target group members who need to complete the to-do items.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, 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 so that the at least one processor can execute the blockchain-based group to-do function implementation method described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the blockchain-based group to-do function implementation method described in any one of claims 1 to 6 when executed.
