CN114978547A - Under-link transaction method, device and equipment based on block chain network - Google Patents

Under-link transaction method, device and equipment based on block chain network Download PDF

Info

Publication number
CN114978547A
CN114978547A CN202210567678.2A CN202210567678A CN114978547A CN 114978547 A CN114978547 A CN 114978547A CN 202210567678 A CN202210567678 A CN 202210567678A CN 114978547 A CN114978547 A CN 114978547A
Authority
CN
China
Prior art keywords
transaction
voting
data
node
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210567678.2A
Other languages
Chinese (zh)
Other versions
CN114978547B (en
Inventor
杨永红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fengmao Network Technology Shenzhen Co ltd
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202210567678.2A priority Critical patent/CN114978547B/en
Publication of CN114978547A publication Critical patent/CN114978547A/en
Application granted granted Critical
Publication of CN114978547B publication Critical patent/CN114978547B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures

Abstract

The invention relates to the technical field of block chains, in particular to a method, a device and equipment for downlink transaction based on a block chain network, wherein for any downlink transaction initiating node, the method comprises the following steps: responding to a transaction request submitted by a transaction initiating user, and generating downlink transaction information according to the transaction request; signing the downlink transaction information to obtain voting data; receiving the voting feedback data, judging whether the transaction request is executed, if so, finding at least one accounting node and sending an accounting request to the accounting node; receiving the execution result and sending a transaction result to a terminal corresponding to the transaction initiating user; the invention carries out the hash of partial non-sensitive and full data through the zone cross-chain network, and the transaction content is only published or transmitted at the nodes of the transaction participants through the zone cross-chain network, thereby greatly increasing the credibility of the data through the anti-tampering characteristic of the zone chain while ensuring the safety of the data.

Description

Under-link transaction method, device and equipment based on block chain network
Technical Field
The invention belongs to the technical field of block chains, and particularly relates to a method, a device and equipment for downlink transaction based on a block chain network.
Background
The block chain technology is built on a transmission network (also called as a block chain network), distributed node equipment (hereinafter referred to as nodes) in the transmission network generates block data by a preset consensus strategy through running a block chain program, and verifies and stores the block data by using a chain data structure, so that a data tamper-proof mechanism is finally realized, and a safe and reliable new technical idea is provided for business development.
In the existing blockchain network, transactions between nodes in the network need to be linked up, so that the disclosure of transaction contents is caused, and privacy is poor, and for some transactions with high privacy or high privacy requirement, a common solution is that the transactions participate in the nodes to directly perform offline transactions through a secure channel, and because the transactions are not linked up, the security and credibility of the transactions cannot be guaranteed in the blockchain network, how to solve the hidden danger through the blockchain technology is an urgent problem to be solved.
Disclosure of Invention
The invention aims to provide a method, a device and equipment for downlink transaction based on a block chain network, so as to solve the problem of poor security and credibility of the downlink transaction.
In order to achieve the above object, the embodiments of the present application provide the following technical solutions:
in one aspect, an embodiment of the present application provides a method for downlink transaction based on a blockchain network, where the method is applicable to any downlink transaction initiating node in the blockchain network, and includes: responding to a transaction request submitted by a transaction initiating user, and generating linked transaction information according to the transaction request, wherein the linked transaction information comprises a voting strategy and a reading-writing strategy; signing the offline transaction information to obtain voting data, and sending the voting data to a first master node, wherein the voting data are used for triggering the first master node to respectively send the voting data to each voting node according to the voting strategy, receiving a voting result fed back by each voting node, generating voting feedback data, and returning the voting feedback data, and the first master node is a node in charge of cross-domain voting in a first block domain; receiving the voting feedback data, judging whether to execute the transaction request according to the voting feedback data, if so, finding at least one accounting node according to the reading and writing strategy, and sending an accounting request to the at least one accounting node, wherein the accounting request is used for triggering the accounting node to execute the transaction request, and returning an execution result; and receiving the execution result, and sending a transaction result to a terminal corresponding to the transaction initiating user according to the execution result.
Optionally, the responding to the transaction request submitted by the transaction initiating user and generating the linked transaction information according to the transaction request includes:
calling the transaction request, wherein the transaction request comprises transaction content, and the transaction content is information reflecting transaction details;
matching corresponding transaction types according to the transaction contents;
detecting whether the corresponding transaction type is a down-link transaction, if so, matching a corresponding down-link transaction strategy according to the transaction type, marking as a first transaction strategy, and generating a transaction identifier;
and packaging the transaction content, the transaction type, the first transaction strategy and the transaction identifier to generate the offline transaction information.
Optionally, after the matching of the corresponding transaction type according to the transaction content, the method further includes:
calling the transaction content and user information of the initiating user, wherein the user information comprises first user authority information and first user account book information;
and judging whether the initiating user has the authority to initiate the transaction request according to the first user authority information, if so, judging whether the transaction content meets the execution condition according to the first user account book information, and if not, stopping executing the transaction request.
Optionally, the determining whether to execute the transaction request according to the voting feedback data, and if it is determined that the transaction request is executed, further includes:
and sending the downlink transaction information to a supervision node.
Optionally, the determining whether to execute the transaction request according to the voting feedback data includes:
retrieving the voting feedback data and the voting strategy, wherein the voting strategy comprises an execution condition;
counting a plurality of voting results in the voting feedback data, and calculating to obtain statistical data;
and judging whether the voting feedback data meet the execution conditions or not according to the statistical data, and if so, judging that the transaction request can be executed.
Optionally, the determining whether to execute the transaction request according to the voting feedback data, and if it is determined that the transaction request is executed, further includes:
packaging the offline transaction information and the voting feedback data to obtain accounting data;
and adding a verification execution signature in the accounting data to obtain the accounting request, wherein the verification execution signature is used for triggering the accounting node to execute the offline transaction information.
Optionally, the finding at least one accounting node according to the read-write policy and sending an accounting request to the at least one accounting node includes:
calling the read-write strategy, wherein the read-write strategy comprises at least one write-in node identifier and is used for limiting the read-write permission of each node participating in the offline transaction to the offline transaction content;
and sending the accounting request to at least one accounting node according to the at least one writing node identifier, wherein the accounting node is a block link point corresponding to the writing node identifier.
In a second aspect, this embodiment provides another method for downlink transaction based on a blockchain network, where the method is applied to any downlink transaction accounting node in the blockchain network, and includes:
acquiring an accounting request sent by a down-link transaction initiating node, wherein the accounting request comprises transaction content, a read-write strategy and a verification execution signature;
verifying the validity of the verification execution signature, if the verification execution signature is valid, generating certificate storage data according to the accounting request, and chaining the certificate storage data to obtain a certificate;
according to the transaction content, changing an account book corresponding to the accounting request, and recording the changed account book corresponding to the accounting request as a first account book;
packaging the first account book, the evidence storage data and the transaction content to obtain an execution result;
and respectively sending the execution results to a plurality of offline transaction participation nodes according to the read-write strategy.
Optionally, generating credential storage data according to the billing request, and chaining the credential storage data to a credential store, includes:
calling the accounting request, wherein the accounting request comprises offline transaction information, and the offline transaction information comprises transaction content, transaction identification, transaction type and a first transaction strategy;
performing hash calculation on the transaction content and the first transaction strategy to obtain a first hash value;
packaging the first hash value, the transaction identification and the transaction type to obtain evidence storage data;
and sending the certificate storage data to a second master node, wherein the certificate storage data is used for triggering the second master node to sign the certificate storage data, and sending the signed certificate storage data to the master node corresponding to each block domain respectively, and the signed certificate storage data is used for triggering the master node corresponding to each block domain to commonly identify the certificate storage data in the corresponding block domain.
In a third aspect, the present application provides a device for downlink transaction based on a blockchain network, where the device is applicable to any downlink transaction initiating node in the blockchain network, and includes:
the system comprises a first calculation module, a second calculation module and a third calculation module, wherein the first calculation module is used for responding to a transaction request submitted by a transaction initiating user and generating offline transaction information according to the transaction request, and the offline transaction information comprises a voting strategy and a reading-writing strategy;
the second calculation module is used for signing the offline transaction information to obtain voting data and sending the voting data to a first master node, the voting data are used for triggering the first master node to respectively send the voting data to each voting node according to the voting strategy and receive a voting result fed back by each voting node to generate voting feedback data and return the voting feedback data, and the first master node is a node responsible for cross-domain voting in a first block domain;
a third calculation module, configured to receive the voting feedback data, determine whether to execute the transaction request according to the voting feedback data, find at least one accounting node according to the read-write policy if it is determined that the transaction request is executed, and send an accounting request to the at least one accounting node, where the accounting request is used to trigger the accounting node to execute the transaction request, and return an execution result;
and the fourth calculation module is used for receiving the execution result and sending a transaction result to the terminal corresponding to the transaction initiating user according to the execution result.
In a fifth aspect, an embodiment of the present application provides a device for downlink transaction based on a blockchain network, where the device includes a memory and a processor. The memory is used for storing a computer program; the processor is used for realizing the steps of the block chain network-based downlink transaction method when executing the computer program.
In a sixth aspect, the present application provides a readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for downlink transaction based on a blockchain network.
The invention has the beneficial effects that:
the invention carries out the hash of partial non-sensitive and full data through the zone cross-chain network, and the transaction content is only published or transmitted at the nodes of the transaction participants through the zone cross-chain network, thereby greatly increasing the credibility of the data through the anti-tampering characteristic of the zone chain while ensuring the safety of the data.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic flow chart of a method for downlink transaction based on a blockchain network according to an embodiment of the present invention;
fig. 2 is a schematic flow chart b of a method for downlink transaction based on a blockchain network according to an embodiment of the present invention;
fig. 3 is a schematic flowchart illustrating an uplink credit consensus in a downlink transaction method based on a blockchain network according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for performing downlink transaction based on a blockchain network according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. 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: like reference numbers or letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Before the illustration, a blockchain network is explained as shown in fig. 1;
as shown in fig. 1, there are three ellipses formed by dotted lines, each dotted ellipse represents a blockchain domain network of an organization, nodes in the dotted ellipses can be understood as branch nodes of the organization, and each dotted ellipse at least contains one master node, such as a1 node, for executing cross-domain consensus operation;
under-chain transaction context: the method comprises the following steps that a plurality of parties for the offline transaction are provided, when the offline transaction occurs, only a specific transaction party has an accounting authority, the authority is usually specified by a transaction protocol signed by offline multiple parties, and management nodes of a block chain deploy respective authorities according to the protocol;
secondly, the parties involved in the transaction are not clients of the same organization (clients of the same organization, the local business system of the organization can be completed without a blockchain network).
Example 1
As shown in fig. 1-2, the present embodiment provides a method for performing an offline transaction based on a blockchain network, which includes step S1, step S2, step S3 and step S4.
The method comprises the steps that S1, a transaction initiating node responds to a transaction request submitted by a transaction initiating user, the transaction type of the transaction request is judged, if the transaction type is a link-down transaction type, link-down transaction information is generated according to the transaction request, the link-down transaction information comprises a voting strategy and a read-write strategy, the voting strategy is used for limiting nodes participating in voting, and the read-write strategy is used for limiting the accounting authority of the nodes participating in the transaction;
in step S1, the specific operation steps of generating the linked transaction information according to the transaction request are as follows:
s11, calling the transaction request, wherein the transaction request comprises transaction content which is information reflecting transaction details;
s12, according to the transaction content, matching corresponding transaction types, such as transaction type identifications in the transaction content or identifying the corresponding transaction types by analyzing identity information of a plurality of transaction participants in the transaction content;
in step S12, since the authority of the offline transaction is opened only for the specific user, the identity of the user needs to be verified when the branch node receives the offline transaction, and the verification step may be:
s121, calling the transaction content and user information of the initiating user, wherein the user information comprises first user authority information and first user account book information;
step S122, whether the initiating user has the authority to initiate the transaction request is judged according to the first user authority information, if yes, whether the transaction content meets the execution condition is judged according to the first user account book information, and if the transaction content does not meet the execution condition, the transaction request is stopped being executed.
S13, detecting whether the corresponding transaction type is a down-link transaction, if so, matching a corresponding down-link transaction strategy according to the transaction type, marking as a first transaction strategy, and generating a transaction identifier;
and S14, packaging the transaction content, the transaction type, the first transaction strategy and the transaction identifier to generate the offline transaction information.
Step S2, the transaction initiating node signs the offline transaction information to obtain voting data, and sends the voting data to a first master node, wherein the voting data are used for triggering the first master node to respectively send the voting data to each voting node according to the voting strategy, receiving the voting result fed back by each voting node, generating voting feedback data, and returning the voting feedback data to the transaction initiating node, and the first master node is a node in charge of cross-domain voting/communication in a first block domain, such as the node A3 shown in FIG. 1;
step S3, the transaction initiating node receives the voting feedback data, judges whether to execute the transaction request according to the voting feedback data, if so, finds at least one accounting node such as a node B1 in the figure 1 according to the reading and writing strategy, and sends an accounting request to the at least one accounting node, wherein the accounting request is used for triggering the accounting node to execute the transaction request, and returns an execution result to a transaction participating node;
secondly, when the transaction initiating node judges that the transaction is an executable transaction, in order to meet the supervision requirement, the pre-executed offline transaction information needs to be sent to the supervision node.
Next, in step S3, the specific operation step of the transaction initiating node determining whether to execute the transaction request according to the voting feedback data may be:
s31, retrieving the voting feedback data and the voting strategy, wherein the voting strategy comprises an execution condition;
s32, counting a plurality of voting results in the voting feedback data, and calculating to obtain statistical data;
and S33, judging whether the voting feedback data meet the execution conditions or not according to the statistical data, and if so, judging that the transaction request can be executed.
After determining that the transaction request needs to be executed, the method may further include:
s34, packaging the offline transaction information and the voting feedback data to obtain accounting data;
and S35, adding a verification execution signature in the accounting data to obtain the accounting request, wherein the verification execution signature is used for triggering the accounting node to execute the offline transaction information.
The method how to find the accounting node in the blockchain network can be as follows:
s36, calling the read-write strategy, wherein the read-write strategy comprises at least one write-in node identifier and is used for limiting the read-write permission of each node participating in the under-chain transaction to the under-chain transaction content;
and S37, sending the accounting request to at least one accounting node according to the at least one writing node identifier, wherein the accounting node is a block link point corresponding to the writing node identifier.
And S4, the transaction initiating node receives the execution result and sends the transaction result to the terminal corresponding to the transaction initiating user according to the execution result.
Example 2
As shown in fig. 3, this embodiment is based on embodiment 1, and this embodiment will further describe the step of consensus existence in a method for downlink transaction based on blockchain network from the perspective of an accounting node in downlink transaction, where the method includes:
s5, acquiring an accounting request sent by a down-link transaction initiating node, wherein the accounting request comprises transaction content, a read-write strategy and a verification execution signature;
s6, checking the validity of the verification execution signature, if the verification execution signature is valid, generating certificate storing data according to the accounting request, and linking the certificate storing data into a certificate to enable a data receiver to verify the authenticity of the data;
the operation of linking the certificate storing data to the certificate storing data in step S6 may be:
s61, calling the accounting request, wherein the accounting request comprises offline transaction information, and the offline transaction information comprises transaction content, transaction identification, transaction type and a first transaction strategy;
s62, performing hash calculation on the transaction content and the first transaction strategy to obtain a first hash value;
s63, packaging the first hash value, the transaction identification and the transaction type to obtain evidence storage data;
and S64, sending the certificate storing data to a second master node, wherein the certificate storing data are used for triggering the second master node to sign the certificate storing data, the signed certificate storing data are respectively sent to the master node corresponding to each block domain, and the signed certificate storing data are used for triggering the master node corresponding to each block domain to commonly identify the certificate storing data in the corresponding block domain.
S7, changing an account book corresponding to the accounting request according to the transaction content, and recording the changed account book corresponding to the accounting request as a first account book;
s8, packaging the first account book, the evidence storage data and the transaction content to obtain an execution result;
and S9, respectively sending the execution results to a plurality of nodes participating in the down-link transaction according to the read-write strategy.
Example 3
Based on embodiment 2, in this embodiment, a method for verifying data authenticity after a third party transaction participation node receives an execution result sent by an offline transaction accounting node in an offline transaction method based on a blockchain network will be further described in a perspective of the third party transaction participation node, where the method includes:
s101, receiving an execution result sent by a transaction accounting node under a link, wherein the execution result comprises a first account book, evidence storage data, a first transaction strategy and transaction content, and the evidence storage data comprises a first hash value, a transaction identifier and a transaction type;
step S102, according to the transaction identification, finding corresponding second evidence storing data in a local public account, wherein the second evidence storing data is the evidence storing data of the chain evidence storing in the step S6, so that a data receiving party can verify the authenticity of the data;
s103, detecting whether the second certificate storing data is the same as the certificate storing data or not, and if so, performing hash calculation on the transaction content and the first transaction strategy to obtain a verification hash;
and S104, comparing whether the verification hash value is the same as the first hash value, and if so, storing the first account book into a local private account book.
Example 4
The embodiment provides a device for downlink transaction based on a blockchain network, which is applicable to any downlink transaction initiating node in the blockchain network, and includes:
the system comprises a first calculation module, a second calculation module and a third calculation module, wherein the first calculation module is used for responding to a transaction request submitted by a transaction initiating user and generating offline transaction information according to the transaction request, and the offline transaction information comprises a voting strategy and a reading-writing strategy;
the second calculation module is used for signing the offline transaction information to obtain voting data and sending the voting data to a first master node, the voting data are used for triggering the first master node to respectively send the voting data to each voting node according to the voting strategy and receive a voting result fed back by each voting node to generate voting feedback data and return the voting feedback data, and the first master node is a node responsible for cross-domain voting in a first block domain;
the third calculation module is used for receiving the voting feedback data, judging whether the transaction request is executed according to the voting feedback data, if the transaction request is judged to be executed, finding at least one accounting node according to the reading and writing strategy, and sending an accounting request to the at least one accounting node, wherein the accounting request is used for triggering the accounting node to execute the transaction request and returning an execution result;
and the fourth calculation module is used for receiving the execution result and sending a transaction result to the terminal corresponding to the transaction initiating user according to the execution result.
It should be noted that, regarding the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated herein.
Example 5
Corresponding to the above method embodiment, the embodiment of the present disclosure further provides a block chain network-based downlink transaction device, and a block chain network-based downlink transaction device described below and a block chain network-based downlink transaction method described above may be referred to correspondingly.
Fig. 4 is a block diagram illustrating a blockchain network based down-link transaction device 800 according to an example embodiment. As shown in fig. 4, the electronic device 800 may include: a processor 801, a memory 802. The electronic device 800 may also include one or more of a multimedia component 803, an input/output (I/O) interface 804, and a communications component 805.
The processor 801 is configured to control the overall operation of the electronic device 800, so as to complete all or part of the steps of the method for downlink transaction based on the blockchain network. The memory 402 is used to store various types of data to support operation at the electronic device 800, such as instructions for any application or method operating on the electronic device 800 and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and so forth. The Memory 802 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia components 803 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 802 or transmitted through the communication component 805. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 804 provides an interface between the processor 801 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the electronic device 800 and other devices. Wireless communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding communication component 805 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described method of downlink transaction based on a blockchain network.
In another exemplary embodiment, a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the block chain network based downlink transaction method described above is also provided. For example, the computer readable storage medium may be the memory 802 described above that includes program instructions executable by the processor 801 of the electronic device 800 to perform the method for downlink transactions over a blockchain network described above.
Example 6
Corresponding to the above method embodiment, the embodiment of the present disclosure further provides a readable storage medium, and a readable storage medium described below and a method for performing a downlink transaction based on a blockchain network described above may be referred to correspondingly.
A readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the block chain network-based downlink transaction method of the above-mentioned method embodiment.
The readable storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various other readable storage media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or 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 method for downlink transaction based on block chain network is suitable for any downlink transaction initiating node in the block chain network, and is characterized in that the method comprises the following steps:
responding to a transaction request submitted by a transaction initiating user, and generating linked transaction information according to the transaction request, wherein the linked transaction information comprises a voting strategy and a reading-writing strategy;
signing the offline transaction information to obtain voting data, and sending the voting data to a first master node, wherein the voting data are used for triggering the first master node to respectively send the voting data to each voting node according to the voting strategy, receiving a voting result fed back by each voting node, generating voting feedback data, and returning the voting feedback data, and the first master node is a node in charge of cross-domain voting in a first block domain;
receiving the voting feedback data, judging whether to execute the transaction request according to the voting feedback data, if so, finding at least one accounting node according to the reading and writing strategy, and sending an accounting request to the at least one accounting node, wherein the accounting request is used for triggering the accounting node to execute the transaction request, and returning an execution result;
and receiving the execution result, and sending a transaction result to a terminal corresponding to the transaction initiating user according to the execution result.
2. The method for downlink transaction based on blockchain network according to claim 1, wherein the step of generating the downlink transaction information according to the transaction request in response to the transaction request submitted by the transaction initiating user comprises:
calling the transaction request, wherein the transaction request comprises transaction content, and the transaction content is information reflecting transaction details;
matching corresponding transaction types according to the transaction contents;
detecting whether the corresponding transaction type is a down-link transaction, if so, matching a corresponding down-link transaction strategy according to the transaction type, marking as a first transaction strategy, and generating a transaction identifier;
and packaging the transaction content, the transaction type, the first transaction strategy and the transaction identifier to generate the offline transaction information.
3. The blockchain network-based linked transaction method according to claim 1, wherein the determining whether to execute the transaction request according to the voting feedback data includes:
retrieving the voting feedback data and the voting strategy, wherein the voting strategy comprises an execution condition;
counting a plurality of voting results in the voting feedback data, and calculating to obtain statistical data;
and judging whether the voting feedback data meet the execution conditions or not according to the statistical data, and if so, judging that the transaction request can be executed.
4. The method of claim 1, wherein the determining whether to execute the transaction request according to the voting feedback data further comprises, after determining to execute the transaction request:
packaging the offline transaction information and the voting feedback data to obtain accounting data;
and adding a verification execution signature in the accounting data to obtain the accounting request, wherein the verification execution signature is used for triggering the accounting node to execute the offline transaction information.
5. The blockchain network-based offline transaction method of claim 1, wherein the finding at least one accounting node according to the read-write strategy and sending an accounting request to the at least one accounting node comprises:
calling the read-write strategy, wherein the read-write strategy comprises at least one write-in node identifier and is used for limiting the read-write permission of each node participating in the offline transaction to the offline transaction content;
and sending the accounting request to at least one accounting node according to the at least one writing node identifier, wherein the accounting node is a block link point corresponding to the writing node identifier.
6. A block chain network-based under-link transaction method is applicable to any under-link transaction accounting node in a block chain network, and is characterized by comprising the following steps:
acquiring an accounting request sent by a down-link transaction initiating node, wherein the accounting request comprises transaction content, a read-write strategy and a verification execution signature;
verifying the validity of the verification execution signature, if the verification execution signature is valid, generating certificate storage data according to the accounting request, and chaining the certificate storage data to ensure that a data receiver verifies the authenticity of the data;
according to the transaction content, changing an account book corresponding to the accounting request, and recording the changed account book corresponding to the accounting request as a first account book;
packaging the first account book, the evidence storage data and the transaction content to obtain an execution result;
and respectively sending the execution results to a plurality of offline transaction participation nodes according to the read-write strategy.
7. The blockchain network based offline transaction method of claim 6, wherein generating the credentialing data according to the billing request and crediting the credentialing data with an uplink comprises:
calling the accounting request, wherein the accounting request comprises offline transaction information, and the offline transaction information comprises transaction content, transaction identification, transaction type and a first transaction strategy;
performing hash calculation on the transaction content and the first transaction strategy to obtain a first hash value;
packaging the first hash value, the transaction identification and the transaction type to obtain evidence storage data;
and sending the certificate storing data to a second master node, wherein the certificate storing data is used for triggering the second master node to sign the certificate storing data, and sending the signed certificate storing data to the master node corresponding to each block domain respectively, and the signed certificate storing data is used for triggering the master node corresponding to each block domain to commonly identify the certificate storing data in the corresponding block domain.
8. A method for performing a downlink transaction based on a blockchain network is applicable to any downlink transaction participating node in the blockchain network, and is characterized by comprising the following steps:
receiving an execution result sent by a down-link transaction accounting section, wherein the execution result comprises a first account book, evidence storage data, a first transaction strategy and transaction content, and the evidence storage data comprises a first hash value, a transaction identifier and a transaction type;
finding corresponding second evidence storage data in a local public account book according to the transaction identifier;
detecting whether the second certificate storing data is the same as the certificate storing data or not, and if so, performing hash calculation on the transaction content and the first transaction strategy to obtain a verification hash;
and comparing whether the verification hash value is the same as the first hash value, and if so, saving the first account book to a local private account book.
9. An apparatus for downlink transaction based on blockchain network, the apparatus being suitable for any downlink transaction initiating node in the blockchain network, the apparatus comprising:
the system comprises a first calculation module, a second calculation module and a third calculation module, wherein the first calculation module is used for responding to a transaction request submitted by a transaction initiating user and generating offline transaction information according to the transaction request, and the offline transaction information comprises a voting strategy and a reading-writing strategy;
the second calculation module is used for signing the offline transaction information to obtain voting data and sending the voting data to a first master node, the voting data is used for triggering the first master node to respectively send the voting data to each voting node according to the voting strategy, receiving a voting result fed back by each voting node, generating voting feedback data and returning the voting feedback data, and the first master node is a node in charge of cross-domain voting in a first block domain;
the third calculation module is used for receiving the voting feedback data, judging whether the transaction request is executed according to the voting feedback data, if the transaction request is judged to be executed, finding at least one accounting node according to the reading and writing strategy, and sending an accounting request to the at least one accounting node, wherein the accounting request is used for triggering the accounting node to execute the transaction request and returning an execution result;
and the fourth calculation module is used for receiving the execution result and sending a transaction result to the terminal corresponding to the transaction initiating user according to the execution result.
10. An apparatus for performing a downlink transaction based on a blockchain network, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the blockchain network based method of downlink transaction according to any one of claims 1 to 5 when executing the computer program.
CN202210567678.2A 2022-05-23 2022-05-23 Under-chain transaction method, device and equipment based on blockchain network Active CN114978547B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210567678.2A CN114978547B (en) 2022-05-23 2022-05-23 Under-chain transaction method, device and equipment based on blockchain network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210567678.2A CN114978547B (en) 2022-05-23 2022-05-23 Under-chain transaction method, device and equipment based on blockchain network

Publications (2)

Publication Number Publication Date
CN114978547A true CN114978547A (en) 2022-08-30
CN114978547B CN114978547B (en) 2023-11-24

Family

ID=82985128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210567678.2A Active CN114978547B (en) 2022-05-23 2022-05-23 Under-chain transaction method, device and equipment based on blockchain network

Country Status (1)

Country Link
CN (1) CN114978547B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111859422A (en) * 2020-07-10 2020-10-30 郑州信大先进技术研究院 Digital asset deposit certificate system based on block chain
WO2021197092A1 (en) * 2020-04-02 2021-10-07 支付宝(杭州)信息技术有限公司 Deposit certificate and recovery of balance of blockchain account
CN114020797A (en) * 2021-10-26 2022-02-08 北京理工大学 Block chain distributed account book and database-based chain uplink and downlink mixed storage method
CN114329550A (en) * 2021-12-27 2022-04-12 中国科学技术大学先进技术研究院 Block chain down-link transaction method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021197092A1 (en) * 2020-04-02 2021-10-07 支付宝(杭州)信息技术有限公司 Deposit certificate and recovery of balance of blockchain account
CN111859422A (en) * 2020-07-10 2020-10-30 郑州信大先进技术研究院 Digital asset deposit certificate system based on block chain
CN114020797A (en) * 2021-10-26 2022-02-08 北京理工大学 Block chain distributed account book and database-based chain uplink and downlink mixed storage method
CN114329550A (en) * 2021-12-27 2022-04-12 中国科学技术大学先进技术研究院 Block chain down-link transaction method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114978547B (en) 2023-11-24

Similar Documents

Publication Publication Date Title
CN109102269B (en) Transfer method and device based on block chain, block chain node and storage medium
US20240031155A1 (en) Decentralized data authentication
CN109067543A (en) Digital certificate management method, device, computer equipment and storage medium
CN108092779A (en) A kind of method and device for realizing electronic signature
CN112738253B (en) Block chain-based data processing method, device, equipment and storage medium
CN110266872B (en) Address book data management and control method and device, cloud address book system, computer equipment and computer readable storage medium
KR20060112182A (en) Method and system for identity recognition
CN112434334A (en) Data processing method, device, equipment and storage medium
CN111429191A (en) Block chain-based electronic invoice flow management method, device and system
KR20220066823A (en) Blockchain - based phishing prevention system, apparatus, and method thereof
CN114117264A (en) Illegal website identification method, device, equipment and storage medium based on block chain
CN112417518A (en) File verification method and device, electronic equipment and computer readable medium
CN113852687B (en) File transmission method between block chain nodes
CN111339141A (en) Data transmission method, block link node equipment and medium
US11283623B1 (en) Systems and methods of using group functions certificate extension
CN112202564A (en) Transaction transfer method and device, electronic equipment and readable storage medium
CN110599211A (en) Ticket information processing method and device and computer equipment
CN114978547B (en) Under-chain transaction method, device and equipment based on blockchain network
TWM592629U (en) System to obtain appended data and execute corresponding operation when identity is confirmed
US11398916B1 (en) Systems and methods of group signature management with consensus
CN113890751A (en) Method, apparatus and readable storage medium for controlling voting of alliance link authority
CN112926956A (en) Block chain financial payment management method and system
CN112202734B (en) Service processing method, electronic device and readable storage medium
CN114567444B (en) Digital signature verification method, device, computer equipment and storage medium
US11265176B1 (en) Systems and applications to provide anonymous feedback

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20231101

Address after: 518000, Building A, Jingji Binhe Times Square, No. 9289 Binhe Road, Xiasha Community, Shatou Street, Futian District, Shenzhen City, Guangdong Province, 1006A

Applicant after: Fengmao Network Technology (Shenzhen) Co.,Ltd.

Address before: Room 1003, Unit 2, Building 54, Qingshui Road Garden, Xihuozhan Road, Qingyang District, Chengdu, Sichuan 610031

Applicant before: Yang Yonghong

GR01 Patent grant
GR01 Patent grant