CN111459672B - Transaction processing method, device, equipment and medium based on block chain network - Google Patents

Transaction processing method, device, equipment and medium based on block chain network Download PDF

Info

Publication number
CN111459672B
CN111459672B CN202010239594.7A CN202010239594A CN111459672B CN 111459672 B CN111459672 B CN 111459672B CN 202010239594 A CN202010239594 A CN 202010239594A CN 111459672 B CN111459672 B CN 111459672B
Authority
CN
China
Prior art keywords
current transaction
key
node
transaction
user node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010239594.7A
Other languages
Chinese (zh)
Other versions
CN111459672A (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.)
Baidu International Technology Shenzhen Co ltd
Original Assignee
Baidu International Technology Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Baidu International Technology Shenzhen Co ltd filed Critical Baidu International Technology Shenzhen Co ltd
Priority to CN202010239594.7A priority Critical patent/CN111459672B/en
Publication of CN111459672A publication Critical patent/CN111459672A/en
Application granted granted Critical
Publication of CN111459672B publication Critical patent/CN111459672B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system

Abstract

The application discloses a transaction processing method, device, equipment and medium based on a blockchain network, and relates to the technical field of blockchains. When the method is executed by a user node in a blockchain network, the scheme is as follows: if the user has the current transaction processing requirement, determining the current transaction number, and generating a current transaction key according to the user node key, the user node key chain code and the current transaction number; encrypting the current transaction information text by adopting the current transaction key to obtain a first current transaction information ciphertext; and sending a current transaction processing request to the home full-quantity node in the blockchain network according to the current transaction number and the first current transaction information ciphertext, wherein the current transaction processing request is used for indicating the home full-quantity node to process the current transaction processing request. The embodiment of the application generates the secret key through the hierarchical deterministic encryption technology, encrypts, transmits and processes the current transaction information text, and improves the security of transaction processing.

Description

Transaction processing method, device, equipment and medium based on block chain network
Technical Field
The embodiment of the application relates to the technical field of Internet, in particular to a block chain technology. Specifically, the embodiment of the application provides a transaction processing method, a transaction processing device, transaction processing equipment and a transaction processing medium based on a blockchain network.
Background
The blockchain is a distributed shared ledger and database, and has the characteristics of decentralization, non-tampering, whole trace, traceability, collective maintenance, disclosure transparency and the like. These features ensure the "honest" and "transparent" of the blockchain, laying a foundation for creating trust for the blockchain.
However, when the transaction is processed based on the blockchain network, the problem that encrypted transaction data is easy to crack and cause the leakage of the transaction data still exists, and the security of the transaction data is difficult to be effectively ensured. In addition, for encrypted transaction data, it is difficult for regulatory authorities to effectively regulate.
Disclosure of Invention
The embodiment of the application provides a transaction processing method, device, equipment and medium based on a blockchain network.
In a first aspect, an embodiment of the present application provides a transaction processing method based on a blockchain network, which is executed by a user node in the blockchain network, the method including:
if the user has the current transaction processing requirement, determining a current transaction number, and generating a current transaction key according to a user node key, a user node key chain code and the current transaction number;
encrypting the current transaction information text by adopting the current transaction key to obtain a first current transaction information ciphertext;
And sending a current transaction processing request to a home full-quantity node in a blockchain network according to the current transaction number and the first current transaction information ciphertext, wherein the current transaction processing request is used for indicating the home full-quantity node to process the current transaction processing request.
In a second aspect, an embodiment of the present application provides a transaction processing method based on a blockchain network, which is executed by a home full-scale node in the blockchain network, the method including:
acquiring a current transaction request sent by an associated user node; the current transaction processing request is initiated according to the current transaction number and the first current transaction information ciphertext; the first current transaction information ciphertext is obtained by encrypting a current transaction information original text by adopting a current transaction key; the current transaction key is generated according to a user node key, a user node key chain code and the current transaction number;
and processing the current transaction processing request, and writing the current transaction number and the first current transaction information ciphertext into a blockchain.
In a third aspect, an embodiment of the present application provides a transaction processing method based on a blockchain network, performed by a supervisory node, the method including:
Acquiring target transaction data to be decrypted; the target transaction data comprises a target transaction number and a target transaction information ciphertext; the target transaction information ciphertext is obtained by encrypting a target transaction information original text by adopting a target transaction key; the target transaction key is determined according to the target transaction number;
controlling to determine a target transaction key according to the target transaction number;
and decrypting the target transaction information ciphertext according to the target transaction key to obtain a decryption result.
In a fourth aspect, an embodiment of the present application further provides a transaction processing device based on a blockchain network, configured to a user node in the blockchain network, where the device includes:
the current transaction key generation module is used for determining a current transaction number if the user has a current transaction processing requirement, and generating a current transaction key according to the user node key, the user node key chain code and the current transaction number;
the first current transaction information ciphertext determination module is used for encrypting the current transaction information ciphertext by adopting the current transaction key to obtain a first current transaction information ciphertext;
the current transaction request sending module is used for sending a current transaction request to a home full-quantity node in a blockchain network according to the current transaction number and the first current transaction information ciphertext, and is used for indicating the home full-quantity node to process the current transaction request.
In a fifth aspect, an embodiment of the present application further provides a transaction processing apparatus based on a blockchain network, configured to attribute a full-volume node in the blockchain network, where the apparatus includes:
a current transaction request acquisition module, configured to acquire a current transaction request sent by an associated user node; the current transaction processing request is initiated according to the current transaction number and the first current transaction information ciphertext; the first current transaction information ciphertext is obtained by encrypting a current transaction information original text by adopting a current transaction key; the current transaction key is generated according to a user node key, a user node key chain code and the current transaction number;
and the processing module is used for processing the current transaction processing request and writing the current transaction number and the first current transaction information ciphertext into a blockchain.
In a sixth aspect, an embodiment of the present application further provides a transaction processing apparatus configured to a supervisory node and based on a blockchain network, where the apparatus includes:
the target transaction data acquisition module is used for acquiring target transaction data to be decrypted; the target transaction data comprises a target transaction number and a target transaction information ciphertext; the target transaction information ciphertext is obtained by encrypting a target transaction information original text by adopting a target transaction key; the target transaction key is determined according to the target transaction number;
The target transaction key determining module is used for controlling the determination of a target transaction key according to the target transaction number;
and the decryption result determining module is used for decrypting the target transaction information ciphertext according to the target transaction key to obtain a decryption result.
In a seventh aspect, an embodiment of the present application further provides a transaction processing device based on a blockchain network, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method performed by a user node in a blockchain network, or by a home full-scale node in a blockchain network, or by a supervisory node, as described in any of the embodiments of the application.
In an eighth aspect, embodiments of the present application further provide a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method performed by a user node in a blockchain network according to any of the embodiments of the present application, or to perform the method performed by a home full complement node in a blockchain network according to any of the embodiments of the present application, or to perform the method performed by a supervising node according to any of the embodiments of the present application.
By adopting the technical scheme of the embodiment of the application, the key is generated by the hierarchical deterministic encryption technology, and the current transaction information text is transmitted and processed in an encrypted way, so that the security of transaction processing is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are included to provide a better understanding of the present application and are not to be construed as limiting the application. Wherein:
FIG. 1 is a flow chart of a method of blockchain network-based transaction performed by a user node in a blockchain network in accordance with an embodiment of the present application;
FIG. 2 is a flow chart of another blockchain network-based transaction method performed by a user node in a blockchain network in accordance with an embodiment of the present application;
FIG. 3 is a flow chart of a blockchain network-based transaction method performed by a home full-dose node in a blockchain network in accordance with an embodiment of the present application;
FIG. 4 is a flow chart of another blockchain network-based transaction method performed by a home full-dose node in a blockchain network in accordance with embodiments of the present application;
FIG. 5 is a flow chart of a method of blockchain network-based transaction performed by a supervising node according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a specific implementation structure of a transaction processing method based on a blockchain network according to an embodiment of the present application;
FIG. 7 is a signaling diagram of a blockchain network-based transaction method provided by an embodiment of the present application;
FIG. 8 is a block chain network based transaction device configured for user nodes in a block chain network according to an embodiment of the present application;
FIG. 9 is a block chain network based transaction device configured at a home full-volume node in a block chain network according to an embodiment of the present application;
FIG. 10 is a schematic diagram of a transaction device based on a blockchain network configured at a supervising node according to an embodiment of the present application;
FIG. 11 is a block diagram of an electronic device for implementing a blockchain network-based transaction method in accordance with an embodiment of the application.
Detailed Description
Exemplary embodiments of the present application will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present application are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the embodiment of the application, the user nodes in the blockchain network can be lightweight nodes, and the lightweight nodes are similar to all nodes and are deployed with deployment data of the blockchain, such as intelligent contracts, consensus mechanisms and the like. Thus, the transaction request interaction process of the blockchain may be engaged, but not all of the blockdata is stored. When the lightweight node needs to inquire transaction data in the block chain, the block data can be acquired from other nodes in real time and verified in a set mode. The lightweight node has low requirement on hardware configuration of equipment deployed by the lightweight node, the lightweight node can be integrated on an operating system level to control hardware in terminal equipment, and meanwhile, the lightweight node can interact with upper-layer application software to provide blockchain support for functions of the application software. The home full-scale node in the blockchain network can be the full-scale node to which the target user node belongs, a plurality of user nodes can be attributed to the same full-scale node, but one user node cannot be attributed to a different full-scale node. The other full-quantity nodes are full nodes to which other user nodes belong, and have the same functions and roles as the home full-quantity nodes.
FIG. 1 is a flow chart of a method of blockchain network-based transaction performed by a user node in a blockchain network in accordance with an embodiment of the present application. The embodiment is applicable to the case of processing transactions based on a blockchain network. Typically, the present embodiment may be applied to a case where the user node generates the current transaction key according to the current transaction number, the user node key, and the user node chain code, and requests the blockchain network to process after encrypting the current transaction information original text. Referring to fig. 1, a blockchain network-based transaction method performed by a user node in a blockchain network according to an embodiment of the present application may include:
S110, if the user has the current transaction processing requirement, determining the current transaction number, and generating a current transaction key according to the user node key, the user node key chain code and the current transaction number.
The current transaction processing requirement may be a requirement of uplink storage of information related to the current transaction in the user node. The current transaction number is used to identify the current transaction requirement, and may be a self-increment number automatically generated for the user node. The user node key and the user node key chain code may be assigned for a home full-scale node to which the user node belongs.
In the embodiment of the present application, the process of generating the current transaction key according to the user node key, the user node key chain code and the current transaction number may be: the user node determines a user node public key and a user node public key chain code according to the user node private key and the user node private key chain code, inputs the user node public key, the user node public key chain code and the current transaction number into a hierarchical deterministic key derivative function, such as a one-way hash function, to obtain 512-bit hash data, loads the first 256 bits on the user node private key to derive a sub-private key, and determines the sub-public key according to the sub-private key to serve as the current transaction public key.
In the embodiment of the application, the current transaction number can also comprise a current transaction key number and a current transaction elliptic curve number. The current transaction key number and the current transaction elliptic curve number are used to identify the hierarchy to which the current transaction key corresponds. The embodiment of the application combines the current transaction key number and the current transaction elliptic curve number, reflects the depth information of the key, hierarchically determines the key for the user node and the current transaction requirements, and generates different current transaction keys according to different current transaction requirements, so that the generated current transaction keys correspond to the current transaction requirements, the problem that the security of related information of different current transaction requirements is difficult to guarantee due to the common key is avoided, and the security transmission and processing of the related information of the current transaction are realized.
And S120, encrypting the current transaction information text by adopting the current transaction key to obtain a first current transaction information ciphertext.
Illustratively, in order to ensure the security of the transmission and processing of the current transaction information text, the current transaction information text needs to be encrypted. In the embodiment of the application, the current transaction key is adopted to encrypt the current transaction information text to obtain the first current transaction information ciphertext, and the method has the advantages that the current transaction key corresponds to the current transaction processing requirement because the current transaction number is introduced in the generation process of the current transaction key, the current transaction key has uniqueness, and the security of the related information of the current transaction can be ensured by adopting the current transaction key to encrypt the current transaction information text. In addition, the current transaction key is determined by the user node according to the user node key, the user node key chain code and the current transaction number, and the user node key chain code are distributed to the user node for the home total node, so that the home total node can decrypt the first current transaction information ciphertext by adopting the user node key, the user node key chain code and the current transaction number when decryption requirements exist.
S130, according to the current transaction number and the first current transaction information ciphertext, sending a current transaction processing request to a home full-quantity node in a blockchain network, wherein the current transaction processing request is indicated to be processed by the home full-quantity node.
The user node sends the current transaction processing request comprising the current transaction number and the first current transaction information ciphertext to the home full-dose node in the blockchain network, the home full-dose node in the blockchain network processes the current transaction processing request, the home full-dose node uniformly processes and manages the current transaction processing request of the user node, and other nodes cannot acquire the related information of the current transaction processing request without permission of the home full-dose node, so that the safety of the related information of the current transaction processing request is improved.
According to the technical scheme, the current transaction number is introduced, the current transaction key is generated by combining the user node key and the user node key chain code, the current transaction key is adopted to encrypt the current transaction information original text, the depth information of the current transaction key is reflected through the current transaction number, and the hierarchical determination of the key is realized, so that the security of the current transaction information original text is improved, and meanwhile, the encrypted current transaction information original text is conveniently processed by the attributive full-quantity node.
FIG. 2 is a flow chart of another blockchain network-based transaction method performed by a user node in a blockchain network in accordance with an embodiment of the present application. This embodiment is an alternative to the embodiments described above. Referring to fig. 2, another blockchain-based transaction method performed by a user node in a blockchain network according to the present embodiment may include:
s210, sending an activation request to the home full-dose node, wherein the activation request is used for indicating the home full-dose node to execute the following steps: and determining a user node number, and determining the user node key and the user node key chain code according to the home full-quantity node key, the home full-quantity node key chain code and the user node number.
The activation request may be sent to the home full-volume node when the user node has a current transaction requirement. When the user node does not have the current transaction processing requirement, an activation request can be sent to the home full-quantity node to instruct the home full-quantity node to determine the user node number, the user node key and the user node key chain code are determined according to the home full-quantity node key, the home full-quantity node key chain code and the user node number, and the user node key chain code are returned to the user node, so that the user node can perform subsequent processing according to the user node key and the user node key chain code when the current transaction processing requirement is generated.
In the embodiment of the present application, the process of generating the user node key and the user node key chain code may be: the password management service allocates a home total node number for a home total node in the blockchain network and generates a root private key and a root private key chain code. And generating a home full node private key and a home full node private key chain code by adopting a hierarchical deterministic encryption technology according to the root private key, the root private key chain code and the home full node number, and issuing the home full node private key and the home full node private key chain code to the home full node through CA certificate verification. The user node sends an activation request to the home total node, the home total node allocates a user node number to the user node after receiving the activation request, generates a user node key and a user node key chain code according to the user node number, the home total node private key and the home total node private key chain code, and sends the user node key and the user node key chain code to the user node.
The user node key and the user node key chain code are distributed to the user node for the home total node, so that the hierarchical determination of the key is realized, and when decryption requirements exist, the home total node can decrypt the first current transaction information ciphertext by adopting the user node key, the user node key chain code and the current transaction number.
S220, if the user has the current transaction processing requirement, determining the current transaction number, and generating a current transaction key according to the user node key, the user node key chain code and the current transaction number.
In the embodiment of the application, as described above, the user node key and the user node key chain code can be obtained through the home full-quantity node in advance, or when the user has the current transaction processing requirement, an activation request can be sent to the home full-quantity node, and the home full-quantity node is instructed to determine the user node key and the user node key chain code and send the user node key and the user node key chain code to the user node. The specific time for acquiring the user node key and the user node key from the home full-scale node is not limited herein.
S230, encrypting the current transaction information text by adopting the current transaction key to obtain a first current transaction information ciphertext.
S240, carrying out hash processing on the current transaction information text to obtain a current transaction information abstract.
In the embodiment of the application, the current transaction information text is hashed to obtain the current transaction information abstract, so that the query efficiency of the current transaction information text is improved, and the signature is convenient to carry out, so that whether the information in the current transaction processing request is correct or not is determined through subsequent signature verification.
S250, signing the current transaction number, the first current transaction information ciphertext and the current transaction information abstract by adopting the account key of the user node to obtain signature data.
In the embodiment of the application, the current transaction number, the first current transaction information ciphertext and the current transaction information abstract are signed by adopting the account key of the user node to obtain signature data, so that the attribution full-quantity node can conveniently check the signature according to the signature data, and the safety verification of the current transaction information text is realized.
S260, generating a current transaction processing request comprising the signature data, a current transaction number, the first current transaction information ciphertext and the current transaction information abstract.
In the embodiment of the application, because the current transaction request comprises signature data, a current transaction number, a first current transaction information ciphertext and a current transaction information abstract, the attribution full-quantity node can decrypt the first current transaction information ciphertext according to the current transaction number in the current transaction request by combining a user node key and a user node key chain code, and adopts an account key of the user node to carry out signature verification according to the signature data and the current transaction information abstract, thereby realizing the safety verification of the current transaction request.
S270, sending a current transaction request to a home full-dose node in the blockchain network, wherein the current transaction request is used for indicating the home full-dose node to process the current transaction request.
In the embodiment of the application, after receiving the current transaction request sent by the associated user node, the home total node can decrypt the signature data in the current transaction request by adopting the account key of the user node to obtain the current transaction information abstract. Determining a current transaction key by adopting a current transaction number, a user node key and a user node key chain code in a current transaction request, decrypting a first current transaction information ciphertext to obtain a current transaction information original text, carrying out hash processing on the current transaction information original text to obtain abstract information of the current transaction information original text, comparing the abstract information of the current transaction information original text with the current transaction information abstract, if the abstract information is consistent with the current transaction information abstract, checking the signature, and verifying the security of the current transaction request by indicating that the current transaction request is sent by a user node associated with a home total number of nodes and is not tampered.
If the current transaction request passes the signature verification, the home total node stores the current transaction number, the first current transaction information ciphertext and the current transaction information abstract included in the current transaction request in a uplink manner.
According to the technical scheme, the current transaction information abstract is determined by carrying out hash processing on the current transaction information text, and signature data is obtained by signing, so that the attribution full-quantity node can conveniently carry out security verification on the current transaction processing request, the fact that the current transaction information text is accurate and reliable and is not tampered is determined, and further security uplink storage is achieved.
FIG. 3 is a flow chart of a blockchain network-based transaction method performed by a home full-volume node in a blockchain network in accordance with an embodiment of the present application. The embodiment is applicable to the case of processing transactions based on a blockchain network. Typically, the embodiment can be applied to the situation that the home total node in the blockchain network determines the current transaction key according to the current transaction number in the current transaction request for the user node, so as to process the current transaction request. Details not described in detail in the embodiments of the application are found in the above embodiments. Referring to fig. 3, a blockchain network-based transaction method performed by a home full-dose node in a blockchain network according to an embodiment of the present application may include:
s310, acquiring a current transaction request sent by an associated user node; the current transaction processing request is initiated according to the current transaction number and the first current transaction information ciphertext; the first current transaction information ciphertext is obtained by encrypting a current transaction information original text by adopting a current transaction key; the current transaction key is generated according to the user node key, the user node key chain code and the current transaction number.
Wherein the user node key and the user node key chain code are assigned to the associated user node for the home full-size node. Specifically, if the user has a current transaction processing requirement, the user node determines a current transaction number, and generates a current transaction key according to the user node key, the user node key chain code and the current transaction number. And encrypting the current transaction information text by adopting the current transaction key to obtain a first current transaction information ciphertext. And carrying out hash processing on the current transaction information original text to obtain a current transaction information abstract. And signing the current transaction number, the first current transaction information ciphertext and the current transaction information abstract by adopting the account key of the user node to obtain signature data. Generating a current transaction request comprising the signature data, the current transaction number, the first current transaction information ciphertext and the current transaction information abstract, and sending the current transaction request to a home total node to which the user node belongs. The home full-dose node acquires a current transaction request sent by the associated user node to process the current transaction request.
S320, processing the current transaction processing request, and writing the current transaction number and the first current transaction information ciphertext into a blockchain.
In the embodiment of the application, after receiving the current transaction request sent by the associated user node, the home total node can decrypt the signature data in the current transaction request by adopting the account key of the user node to obtain the current transaction information abstract. Determining a current transaction key by adopting a current transaction number, a user node key and a user node key chain code in a current transaction request, decrypting a first current transaction information ciphertext to obtain a current transaction information original text, carrying out hash processing on the current transaction information original text to obtain abstract information of the current transaction information original text, comparing the abstract information of the current transaction information original text with the current transaction information abstract, if the abstract information is consistent with the current transaction information abstract, checking the signature, and verifying the security of the current transaction request by indicating that the current transaction request is sent by a user node associated with a home total number of nodes and is not tampered.
If the current transaction request passes the signature verification, the home total node stores the current transaction number, the first current transaction information ciphertext and the current transaction information abstract included in the current transaction request in a uplink manner.
According to the technical scheme, the home full-quantity node in the blockchain network processes the current transaction request, unified processing and management of the current transaction request of the user node are achieved through the home full-quantity node, other nodes cannot acquire relevant information of the current transaction request without permission of the home full-quantity node, therefore, the situation that the relevant information of the current transaction request is revealed is avoided, and safety of the relevant information of the current transaction request is improved.
FIG. 4 is a flow chart of another blockchain network-based transaction method performed by a home full-dose node in a blockchain network in accordance with an embodiment of the present application. This embodiment is an alternative to the embodiments described above. Referring to fig. 4, another blockchain-based transaction method performed by a home full-dose node in a blockchain network according to the present embodiment may include:
s410, responding to an activation request sent by the user node, determining a user node number, and determining the user node key and the user node key chain code according to the home total node key, the home total node key chain code and the user node number.
The activation request may be sent to the home full-volume node when the user node has a current transaction requirement. When the user node does not have the current transaction processing requirement, an activation request can be sent to the home full-quantity node to instruct the home full-quantity node to determine the user node number, the user node key and the user node key chain code are determined according to the home full-quantity node key, the home full-quantity node key chain code and the user node number, and the user node key chain code are returned to the user node, so that the user node can perform subsequent processing according to the user node key and the user node key chain code when the current transaction processing requirement is generated.
In the embodiment of the present application, the specific steps may be: before determining the user node key and the user node key chain code, further comprising: and acquiring the home full-quantity node key and the home full-quantity node key chain code generated according to the root key, the root key chain code and the home full-quantity node number from a key management service. The password management service allocates a home total node number for a home total node in the blockchain network and generates a root private key and a root private key chain code. And generating a home full node private key and a home full node private key chain code by adopting a hierarchical deterministic encryption technology according to the root private key, the root private key chain code and the home full node number, and issuing the home full node private key and the home full node private key chain code to the home full node through CA certificate verification. After receiving an activation request sent by an associated user node, the home total node allocates a user node number to the user node, generates a user node key and a user node key chain code according to the user node number, the home total node private key and the home total node private key chain code, and sends the user node key and the user node key chain code to the user node.
The scheme has the advantages that each key is determined in a layering mode, the safety of encryption information can be improved, and key derivation is achieved when decryption requirements exist. In addition, the user node number and the current transaction number are introduced to embody the depth information of the user node key and the current transaction key, so that the corresponding hierarchy of the key is conveniently defined, the current transaction key is associated with the current transaction processing requirement, the uniqueness is realized, the problem that the security of related information of different current transactions is difficult to guarantee due to the common key is avoided, and the safe transmission and processing of the related information of the current transaction are realized.
S420, acquiring a current transaction request sent by an associated user node; the current transaction processing request is initiated according to the current transaction number and the first current transaction information ciphertext; the first current transaction information ciphertext is obtained by encrypting a current transaction information original text by adopting a current transaction key; the current transaction key is generated according to the user node key, the user node key chain code and the current transaction number.
S430, determining a current transaction key according to the attribution full quantity node key, the attribution full quantity node key chain code and the current transaction number.
In an embodiment of the present application, the home full-quantity node may authorize other full-quantity nodes to view the current transaction information text, for example, the home full-quantity node is a market node in the D1 area, and the associated user nodes include a market a node and a market b node. The other full-quantity nodes are market nodes in the D2 area, and the associated user nodes comprise a market c node and a market D node. The market node in the D1 area can authorize the market node in the D2 area to view the transaction information texts sent to the market node in the D1 area by the market a node and the market b node.
When other full-quantity nodes have access to the current transaction information text, the home full-quantity node generates a user node key and a user node key chain code according to the home full-quantity node key, the home full-quantity node key chain code and the related user node number, and determines the current transaction key according to the current transaction number, the user node number and the user node number chain code in the current transaction request so as to facilitate the follow-up processing of the current transaction request by adopting the current transaction key. The current transaction key adopted for encrypting the first current transaction information ciphertext in the current transaction request is generated according to the user node key, the user node key and the current transaction number, and the user node key chain code are generated by the home total node according to the home total node key, the home total node key chain code and the user node number, so that when the home total node acquires the current transaction request, the current transaction key can be deduced according to the current transaction number, the home total node key and the home total node key chain code in the current transaction request, so that the current transaction request can be processed conveniently.
S440, decrypting the first current transaction information ciphertext by adopting the current transaction key to obtain a current transaction information ciphertext.
S450, encrypting the current transaction information text by adopting account keys of other total nodes to obtain a second current transaction information ciphertext.
For example, in order to enable the other full-quantity nodes to view the current transaction information text and ensure the security of the current transaction information text, the account keys of the other full-quantity nodes are adopted to encrypt the current transaction information text to obtain the second current transaction information ciphertext, so that the other full-quantity nodes can decrypt the second current transaction information ciphertext by adopting the account keys of the other full-quantity nodes to obtain the current transaction information text.
And S460, the second current transaction information ciphertext is sent to the other full-quantity nodes, so that the other full-quantity nodes adopt account keys of the other full-quantity nodes to decrypt the second current transaction information ciphertext to obtain the current transaction information ciphertext.
In the embodiment of the invention, other full-quantity nodes adopt other full-quantity nodes to remember the account key to decrypt the second current transaction information ciphertext to obtain the current transaction information ciphertext, thereby realizing the access to the current transaction information ciphertext in the home full-quantity node, ensuring the security of the current transaction information ciphertext and realizing information sharing.
According to the embodiment of the application, the attribution full-quantity node determines the current transaction key according to the attribution full-quantity node key, the attribution full-quantity node key chain code and the current transaction number, so that the first current transaction information ciphertext in the current transaction processing request is decrypted, the current transaction information ciphertext is obtained, the current transaction information ciphertext is encrypted by adopting account keys of other full-quantity nodes to obtain the second current transaction information ciphertext, and the second current transaction information ciphertext is sent to other full-quantity nodes, thereby enabling the other full-quantity nodes to access the current transaction information ciphertext in the attribution full-quantity node, and realizing information sharing on the basis of ensuring the safety of the current transaction information ciphertext.
FIG. 5 is a flow chart of a method of blockchain network-based transaction performed by a supervising node according to an embodiment of the present application. The embodiment is applicable to the case of processing transactions based on a blockchain network. Typically, the present embodiment may be applied to a case where the supervisory node decrypts the target transaction information ciphertext in the target transaction data, so as to implement target transaction data supervision. Referring to fig. 5, a blockchain network-based transaction method performed by a supervising node according to an embodiment of the present application may include:
S510, obtaining target transaction data to be decrypted; the target transaction data comprises a target transaction number and a target transaction information ciphertext; the target transaction information ciphertext is obtained by encrypting a target transaction information original text by adopting a target transaction key; the target transaction key is determined according to the target transaction number.
In an embodiment of the present application, the supervisory node may be a supervisory authority node for supervising target transaction data in a blockchain network. The supervising node may obtain target transaction data to be decrypted from the blockchain network to supervise the target transaction data. The target transaction data is the data in each current transaction processing request stored in the uplink of each full-quantity node. The encryption mode of the target transaction information ciphertext may be the same as the encryption mode of the first current transaction information ciphertext.
S520, the control determines a target transaction key according to the target transaction number.
Because the target transaction data comprises the target transaction information ciphertext, the supervision node needs to determine the target transaction key to decrypt the target transaction information ciphertext, so that verification supervision on the target transaction information ciphertext is realized.
In the embodiment of the application, the control determines the target transaction key according to the target transaction number, and the method comprises the following steps: sending a target transaction decryption request to a key management service; the target transaction decryption request comprises the target transaction number and is used for indicating a key supervision service to determine the target transaction key according to the target transaction number. The target transaction decryption request further includes a supervisory node key, which may be, for example, a supervisory node public key, configured to instruct the key supervisory service to encrypt the target transaction key with the supervisory node key, and feed back a target transaction key ciphertext to the supervisory node.
For example, the target transaction key used for encrypting the target transaction information ciphertext in the target transaction data is generated according to the user node key, the user node key and the target transaction number, the user node key and the user node key chain code are generated by the home full node according to the home full node key, the home full node key chain code and the user node number, and the home full node key chain code are generated by the key management service according to the root key, the root key chain code and the home full node number, so that the supervisory node can request the key management service to deduce the target transaction key according to the root key, the root key chain code, the home full node number and the target transaction number, encrypt the target transaction key by adopting the supervisory node key, send the encrypted target transaction key to the supervisory node, and decrypt by adopting the supervisory node key to obtain the target transaction key. The key management service may encrypt the root key, the root key chain code and the home total node number by using the supervisory node key, then send the encrypted root key, the root key chain code and the home total node number to the supervisory node, and derive the target transaction key after decryption by the supervisory node. The target transaction decryption request may further include a target transaction information ciphertext, the key management service derives a target transaction key according to the root key, the root key chain code and the target transaction number, decrypts the target transaction information ciphertext by using the target transaction key to obtain a target transaction information text, encrypts the target transaction information text by using the supervision node key, and sends the encrypted target transaction information text to the supervision node, so that the supervision node can decrypt by using the supervision node key to obtain a decryption result. The method has the beneficial effects that the supervision node determines the target transaction key through the key management service, so that the supervision of target transaction data is realized under the condition that the target transaction is ensured not to be revealed.
In the embodiment of the present application, if the key management service refuses the target transaction decryption request of the supervisory node, the supervisory node may further send the target transaction decryption request to the consensus governance node, specifically, the control determines the target transaction key according to the target transaction number, including: sending a target transaction decryption request to the consensus management node; wherein root key fragments are stored in the consensus governance node; if the number of the common control nodes feeding back the root key fragments is larger than the number threshold, recovering the root key and the root key chain code according to the fed back root key fragments; and determining a target transaction key according to the root key, the root key chain code and the target transaction number.
Illustratively, the key management service pre-splits the root key into M root key fragments, which are distributed to M consensus governance nodes. The supervision node sends a target transaction decryption request to the consensus governance node, if the root key fragments fed back by the N consensus governance nodes are acquired, wherein N is greater than a quantity threshold value, the supervision node can recover the root key according to the N root key fragments to obtain a target transaction key, and further deduce the target transaction key, so that the target transaction key can still be determined through the consensus governance node under the condition that the key management service refuses the target transaction decryption request, and the target transaction data is supervised.
S530, decrypting the target transaction information and the root key chain code according to the target transaction key, and obtaining a decryption result by decrypting the ciphertext.
In the embodiment of the application, the target transaction data also comprises a target transaction information abstract; the target transaction information abstract is obtained by carrying out hash processing on the target transaction information original text; correspondingly, after decrypting the target transaction information ciphertext to obtain a decryption result, the method further comprises the steps of: determining summary information of the decryption result; and comparing the target transaction information abstract in the target transaction data with the abstract information of the decryption result, and determining whether decryption is correct or not according to the comparison result.
Illustratively, the decryption result is hashed to obtain summary information of the decryption result. If the summary information of the decryption result is consistent with the summary of the target transaction information, the decryption is correct, and the decryption result is the original text of the target transaction information. If the target transaction information is inconsistent, the decryption is incorrect, and the decryption result is not the target transaction information original text. And the comparison and verification of the abstract information are combined, so that the target transaction data is more comprehensively and accurately checked and supervised safely.
According to the embodiment of the application, the supervision node is used for controlling the determination of the target transaction key according to the target transaction number and decrypting the target transaction information ciphertext in the target transaction data, so that the supervision of the target transaction to the information original is realized on the basis of ensuring the security of the target transaction information original.
Fig. 6 is a schematic diagram of a specific implementation structure of a transaction processing method based on a blockchain network according to an embodiment of the present application. Fig. 7 is a signaling diagram of a transaction processing method based on a blockchain network according to an embodiment of the present application. As shown in fig. 6 and fig. 7, the specific implementation flow of the embodiment of the present application is:
the password management service allocates the home full-quantity node numbers for the home full-quantity nodes (home full-quantity node X and home full-quantity node Y) in the blockchain network and generates a root private key and a root private key chain code. And generating a home total node private key and a home total node private key chain code (a key combination M and a key combination N) by adopting a hierarchical deterministic encryption technology according to the root private key, the root private key chain code and the home total node number, and issuing the home total node private key and the home total node private key chain code (the key combination M and the key combination N) to the home total node through CA certificate verification. After receiving the activation request, the home total node allocates a user node number to the user node (user node A, user node B, user node C and user node D), generates a user node key and a user node key chain code (key combination a, key combination B, key combination C and key combination D) according to the user node number, the home total node private key and the home total node private key chain code, and sends the user node key and the user node key chain code to the user node.
If the user has a current transaction processing requirement, the user node determines a current transaction number and generates a current transaction key (key a ', key b', key c 'and key d') according to the user node key, the user node key chain code and the current transaction number. And encrypting the current transaction information text by adopting the current transaction key to obtain a first current transaction information ciphertext. And carrying out hash processing on the current transaction information original text to obtain a current transaction information abstract. And signing the current transaction number, the first current transaction information ciphertext and the current transaction information abstract by adopting the account key of the user node to obtain signature data. Generating a current transaction request comprising the signature data, the current transaction number, the first current transaction information ciphertext and the current transaction information abstract, and sending the current transaction request to a home total node to which the user node belongs. The home full-dose node acquires a current transaction request sent by the associated user node to process the current transaction request.
After receiving the current transaction request sent by the associated user node, the home total node can decrypt the signature data in the current transaction request by adopting the account key of the user node to obtain the current transaction information abstract. Determining a current transaction key by adopting a current transaction number, a user node key and a user node key chain code in a current transaction request, decrypting a first current transaction information ciphertext to obtain a current transaction information original text, carrying out hash processing on the current transaction information original text to obtain abstract information of the current transaction information original text, comparing the abstract information of the current transaction information original text with the current transaction information abstract, if the abstract information is consistent with the current transaction information abstract, checking the signature, and verifying the security of the current transaction request by indicating that the current transaction request is sent by a user node associated with a home total number of nodes and is not tampered. If the current transaction request passes the signature verification, the home total node stores the current transaction number, the first current transaction information ciphertext and the current transaction information abstract included in the current transaction request in a uplink manner.
When other full-quantity nodes have access requirements on the current transaction information text, the home full-quantity node generates a user node key and a user node key chain code according to the home full-quantity node key, the home full-quantity node key chain code and the associated user node number, determines a current transaction key according to the current transaction number, the user node number and the user node number chain code in the current transaction processing request, decrypts the first current transaction information ciphertext by adopting the current transaction key to obtain the current transaction information text, encrypts the current transaction information text by adopting the account keys of the other full-quantity nodes to obtain a second current transaction information ciphertext, sends the second current transaction information ciphertext to the other full-quantity nodes, and decrypts the second current transaction information ciphertext by adopting the account keys of the other full-quantity nodes to obtain the current transaction information text.
The supervising node may obtain target transaction data to be decrypted from the blockchain network to supervise the target transaction data. The supervising node may send a target transaction decryption request including the target transaction number and the supervising node key to the key management node, request the key management service to derive the target transaction key according to the root key, the root key chain code, the home total node number and the target transaction number, encrypt the target transaction key with the supervising node key, and send the encrypted target transaction key to the supervising node. The key management service may decrypt the root key, the root key chain code and the home total node number by using the supervisory node key, and then send the decrypted root key, the root key chain code and the home total node number to the supervisory node, and derive the target transaction key from the supervisory node. The target transaction decryption request may further include a target transaction information ciphertext, the key management service derives a target transaction key according to the root key, the root key chain code and the target transaction number, decrypts the target transaction information ciphertext by using the target transaction key to obtain a target transaction information original text, encrypts the target transaction information original text by using the supervision node key, and sends the encrypted target transaction information original text to the supervision node, so that the supervision node can decrypt by using the supervision node key to obtain a decryption result.
The policing node may also send a target transaction decryption request to the consensus governance node if the key management service denies the target transaction decryption request of the policing node. The key management service divides the root key into M root key fragments in advance and distributes the root key fragments to M consensus governance nodes. And the supervision node sends a target transaction decryption request to the consensus governance node, and if the root key fragments fed back by the N consensus governance nodes are acquired, wherein N is greater than a quantity threshold, the supervision node can recover the root key according to the N root key fragments to obtain a target transaction key, further derive the target transaction key, and decrypt the target transaction information ciphertext by adopting the target transaction key to obtain a decryption result.
And the supervision node hashes the decryption result to obtain abstract information of the decryption result. If the summary information of the decryption result is consistent with the summary of the target transaction information, the decryption is correct, and the decryption result is the original text of the target transaction information. If the target transaction information is inconsistent, the decryption is incorrect, and the decryption result is not the target transaction information original text, so that the safety verification and supervision of the target transaction data are realized.
It should be noted that, although only two home total nodes and two user nodes associated with each other are shown in fig. 6, the formula governing node only shows four, and the other nodes only show one, but the number of the nodes of each type is not limited, and one or more nodes may actually be provided. Similarly, although only one node is shown in fig. 7 for each type of node, the number of nodes is not limited, and a plurality of nodes may be actually used. The number of the common identification governing nodes can be determined according to the number of the root private key fragments determined by the key management service.
The specific implementation flow provided by the embodiment of the application has the corresponding beneficial effects of the transaction processing method based on the block chain provided by any embodiment of the application.
FIG. 8 is a block chain network based transaction apparatus for a user node in a block chain network according to an embodiment of the present application. Referring to fig. 8, a transaction processing device 600 based on a blockchain network configured at a user node in the blockchain network according to an embodiment of the present application includes: a current transaction key generation module 601, a first current transaction information ciphertext determination module 602, and a current transaction request transmission module 603.
The current transaction key generation module 601 is configured to determine a current transaction number if a user has a current transaction requirement, and generate a current transaction key according to a user node key, a user node key chain code, and the current transaction number.
The first current transaction information ciphertext determination module 602 is configured to encrypt a current transaction information ciphertext using the current transaction key to obtain a first current transaction information ciphertext.
The current transaction request sending module 603 is configured to send a current transaction request to a home full-dose node in a blockchain network according to the current transaction number and the first current transaction information ciphertext, and is configured to instruct the home full-dose node to process the current transaction request.
In an embodiment of the present application, the apparatus further includes:
an activation request sending module, configured to send an activation request to the home agent node, where the activation request is used to instruct the home agent node to perform the following steps: and determining a user node number, and determining the user node key and the user node key chain code according to the home full-quantity node key, the home full-quantity node key chain code and the user node number.
In the embodiment of the present application, the current transaction request sending module 603 includes:
the hash processing unit is used for carrying out hash processing on the current transaction information text to obtain a current transaction information abstract;
the signature unit is used for signing the current transaction number, the first current transaction information ciphertext and the current transaction information abstract by adopting the account key of the user node to obtain signature data;
and the current transaction request generation unit is used for generating a current transaction request comprising the signature data, the current transaction number, the first current transaction information ciphertext and the current transaction information abstract.
In the embodiment of the application, the current transaction number comprises a current transaction key number and a current transaction elliptic curve number.
The transaction processing device based on the block chain, which is configured at the user node in the block chain network and provided by the embodiment of the application, can execute the transaction processing method based on the block chain, which is executed by the user node in the block chain network and provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method.
FIG. 9 is a block chain network based transaction apparatus configured in a full-volume node in a block chain network according to an embodiment of the present application. Referring to fig. 9, a blockchain network-based transaction device 700 configured at a home full-volume node in a blockchain network according to an embodiment of the present application includes: a current transaction request acquisition module 701 and a processing module 702.
The current transaction request acquiring module 701 is configured to acquire a current transaction request sent by an associated user node; the current transaction processing request is initiated according to the current transaction number and the first current transaction information ciphertext; the first current transaction information ciphertext is obtained by encrypting a current transaction information original text by adopting a current transaction key; the current transaction key is generated according to a user node key, a user node key chain code and the current transaction number;
And the processing module 702 is configured to process the current transaction request, and write the current transaction number and the first current transaction information ciphertext into a blockchain.
In an embodiment of the present application, the apparatus further includes:
and the activation request response module is used for responding to the activation request sent by the user node, determining the user node number, and determining the user node key and the user node key chain code according to the home total node key, the home total node key chain code and the user node number.
In an embodiment of the present application, the apparatus further includes:
the current transaction key determining module is used for determining a current transaction key according to the attribution total node key, the attribution total node key chain code and the current transaction number;
the current transaction information original text determining module is used for decrypting the first current transaction information ciphertext by adopting the current transaction key to obtain a current transaction information original text;
the second current transaction ciphertext determining module is used for encrypting the current transaction information text by adopting account keys of other total nodes to obtain a second current transaction information ciphertext;
And the second current transaction ciphertext sending module is used for sending the second current transaction information ciphertext to the other full-quantity nodes, so that the other full-quantity nodes adopt the account keys of the other full-quantity nodes to decrypt the second current transaction information ciphertext to obtain the current transaction information ciphertext.
In an embodiment of the present application, the apparatus further includes:
and the key acquisition module is used for acquiring the home total node key and the home total node key chain code generated according to the root key, the root key chain code and the home total node number from the key management service.
The transaction processing device based on the block chain, which is configured at the home total node in the block chain network, can execute the transaction processing method based on the block chain, which is executed by the home total node in the block chain network and provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method.
Fig. 10 is a schematic structural diagram of a transaction processing device based on a blockchain network configured at a supervisory node according to an embodiment of the present application. Referring to fig. 10, a transaction processing device 800 based on a blockchain network configured at a supervisory node according to an embodiment of the present application includes: a target transaction data acquisition module 801, a target transaction key determination module 802, and a decryption result determination module 803.
The target transaction data acquisition module 801 is configured to acquire target transaction data to be decrypted; the target transaction data comprises a target transaction number and a target transaction information ciphertext; the target transaction information ciphertext is obtained by encrypting a target transaction information original text by adopting a target transaction key; the target transaction key is determined according to the target transaction number;
a target transaction key determining module 802, configured to control determining a target transaction key according to the target transaction number;
and the decryption result determining module 803 is configured to decrypt the target transaction information ciphertext according to the target transaction key to obtain a decryption result.
In an embodiment of the present application, the target transaction key determining module 802 includes:
a first target transaction decryption request transmitting unit configured to transmit a target transaction decryption request to a key management service; the target transaction decryption request comprises the target transaction number and is used for indicating a key supervision service to determine the target transaction key according to the target transaction number.
In the embodiment of the application, the target transaction decryption request further comprises a supervision node key, and the supervision node key is used for indicating the key supervision service to encrypt the target transaction key by adopting the supervision node key and feeding back a target transaction key ciphertext to the supervision node.
In an embodiment of the present application, the target transaction key determining module 802 includes:
a second target transaction decryption request sending unit, configured to send a target transaction decryption request to the consensus management node; wherein root key fragments are stored in the consensus governance node;
the recovery unit is used for recovering the root key and the root key chain code according to the fed back root key fragments if the number of the common control nodes feeding back the root key fragments is larger than the number threshold;
and the key determining unit is used for determining a target transaction key according to the root key, the root key chain code and the target transaction number.
In the embodiment of the application, the target transaction data also comprises a target transaction information abstract; the target transaction information abstract is obtained by carrying out hash processing on the target transaction information original text;
correspondingly, the device further comprises:
the summary information determining module is used for determining summary information of the decryption result;
and the digest comparison module is used for comparing the digest of the target transaction information in the target transaction data with the digest information of the decryption result and determining whether the decryption is correct or not according to the comparison result.
The transaction processing device based on the blockchain, which is configured at the supervision node and provided by the embodiment of the application, can execute the transaction processing method based on the blockchain, which is executed by the supervision node and provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method.
According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
FIG. 11 is a block diagram of an electronic device of a blockchain network-based transaction method in accordance with an embodiment of the application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the applications described and/or claimed herein.
As shown in fig. 11, the electronic device includes: one or more processors 901, memory 902, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). In fig. 11, a processor 901 is taken as an example.
Memory 902 is a non-transitory computer readable storage medium provided by the present application. Wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the blockchain network-based transaction method provided by the present application. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the blockchain network-based transaction method provided by the present application.
The memory 902 is used as a non-transitory computer readable storage medium, and may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to a blockchain network-based transaction method in an embodiment of the present application (e.g., the current transaction key generation module 601, the first current transaction information ciphertext determination module 602, and the current transaction request transmission module 603 shown in fig. 8, or the current transaction request acquisition module 701 and the processing module 702 shown in fig. 9, or the target transaction data acquisition module 801, the target transaction key determination module 802, and the decryption result determination module 803 shown in fig. 10). The processor 901 executes various functional applications of the server and data processing, i.e., implements the blockchain network-based transaction method in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 902.
The memory 902 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for a function; the storage data area may store data created from use of the blockchain network-based transaction electronic device, and the like. In addition, the memory 902 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 902 optionally includes memory remotely located relative to processor 901, which may be connected to the blockchain network-based transaction electronics via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the blockchain network-based transaction method may further include: an input device 903 and an output device 904. The processor 901, memory 902, input devices 903, and output devices 904 may be connected by a bus or other means, for example in fig. 11.
The input device 903 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the blockchain network-based transaction electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointer stick, one or more mouse buttons, a track ball, a joystick, and the like. The output means 904 may include a display device, auxiliary lighting means (e.g., LEDs), tactile feedback means (e.g., vibration motors), and the like. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, 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, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme provided by the embodiment of the application, the knowledge in the knowledge graph is enriched, so that the knowledge graph can generate larger application value in intelligent information services such as intelligent search, intelligent question-answering, personalized recommendation and the like.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed embodiments are achieved, and are not limited herein.
The above embodiments do not limit the scope of the present application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of the present application.

Claims (18)

1. A method of transaction processing based on a blockchain network, performed by a user node in the blockchain network, the method comprising:
if the user has the current transaction processing requirement, determining a current transaction number, and generating a current transaction key according to a user node key, a user node key chain code and the current transaction number;
encrypting the current transaction information text by adopting the current transaction key to obtain a first current transaction information ciphertext;
and sending a current transaction processing request to a home full-quantity node in a blockchain network according to the current transaction number and the first current transaction information ciphertext, wherein the current transaction processing request is used for indicating the home full-quantity node to process the current transaction processing request.
2. The method of claim 1, wherein prior to determining the current transaction number, further comprising:
sending an activation request to the home full-dose node, wherein the activation request is used for indicating the home full-dose node to execute the following steps: and determining a user node number, and determining the user node key and the user node key chain code according to the home full-quantity node key, the home full-quantity node key chain code and the user node number.
3. The method of claim 1, wherein sending a current transaction request to a home full-dose node in a blockchain network based on the current transaction number and the first current transaction information ciphertext comprises:
carrying out hash processing on the current transaction information original text to obtain a current transaction information abstract;
signing the current transaction number, the first current transaction information ciphertext and the current transaction information abstract by adopting an account key of the user node to obtain signature data;
generating a current transaction request including the signature data, a current transaction number, the first current transaction information ciphertext, and the current transaction information digest.
4. The method of claim 1, wherein the current transaction number comprises a current transaction key number and a current transaction elliptic curve number.
5. A method of transaction processing based on a blockchain network, performed by a home full-volume node in the blockchain network, the method comprising:
acquiring a current transaction request sent by an associated user node; the current transaction processing request is initiated according to the current transaction number and the first current transaction information ciphertext; the first current transaction information ciphertext is obtained by encrypting a current transaction information original text by adopting a current transaction key; the current transaction key is generated according to a user node key, a user node key chain code and the current transaction number;
And processing the current transaction processing request, and writing the current transaction number and the first current transaction information ciphertext into a blockchain.
6. The method of claim 5, further comprising, prior to obtaining the current transaction request sent by the associated user node:
and responding to the activation request sent by the user node, determining a user node number, and determining the user node key and the user node key chain code according to the home full-quantity node key, the home full-quantity node key chain code and the user node number.
7. The method of claim 5, further comprising, after obtaining the current transaction request sent by the associated user node:
determining a current transaction key according to the home total node key, the home total node key chain code and the current transaction number;
decrypting the first current transaction information ciphertext by adopting the current transaction key to obtain a current transaction information text;
encrypting the current transaction information text by adopting account keys of other total nodes to obtain a second current transaction information ciphertext;
And sending the second current transaction information ciphertext to the other full-quantity nodes, so that the other full-quantity nodes adopt the account keys of the other full-quantity nodes to decrypt the second current transaction information ciphertext to obtain the current transaction information ciphertext.
8. The method of claim 6, further comprising, prior to determining the user node key and the user node keychain code:
and acquiring the home full-quantity node key and the home full-quantity node key chain code generated according to the root key, the root key chain code and the home full-quantity node number from a key management service.
9. A method of transaction processing based on a blockchain network, performed by a supervising node, the method comprising:
acquiring target transaction data to be decrypted; the target transaction data comprises a target transaction number and a target transaction information ciphertext; the target transaction information ciphertext is obtained by encrypting a target transaction information original text by adopting a target transaction key; the target transaction key is determined according to a user node key, a user node key chain code and the target transaction number;
controlling to determine a target transaction key according to the target transaction number;
And decrypting the target transaction information ciphertext according to the target transaction key to obtain a decryption result.
10. The method of claim 9, wherein controlling determining a target transaction key based on the target transaction number comprises:
sending a target transaction decryption request to a key management service; the target transaction decryption request comprises the target transaction number and is used for indicating a key supervision service to determine the target transaction key according to the target transaction number.
11. The method of claim 10, wherein the target transaction decryption request further comprises a policing node key for instructing the key policing service to encrypt the target transaction key using the policing node key and to feed back target transaction key ciphertext to the policing node.
12. The method of claim 9, wherein controlling determining a target transaction key based on the target transaction number comprises:
sending a target transaction decryption request to the consensus management node; wherein root key fragments are stored in the consensus governance node;
if the number of the common control nodes feeding back the root key fragments is larger than the number threshold, recovering the root key and the root key chain code according to the fed back root key fragments;
And determining a target transaction key according to the root key, the root key chain code and the target transaction number.
13. The method of claim 9, wherein the target transaction data further comprises a target transaction information summary; the target transaction information abstract is obtained by carrying out hash processing on the target transaction information original text;
correspondingly, after decrypting the target transaction information ciphertext to obtain a decryption result, the method further comprises the steps of:
determining summary information of the decryption result;
and comparing the target transaction information abstract in the target transaction data with the abstract information of the decryption result, and determining whether decryption is correct or not according to the comparison result.
14. A blockchain network-based transaction processing device configured for a user node in a blockchain network, the device comprising:
the current transaction key generation module is used for determining a current transaction number if the user has a current transaction processing requirement, and generating a current transaction key according to the user node key, the user node key chain code and the current transaction number;
the first current transaction information ciphertext determination module is used for encrypting the current transaction information ciphertext by adopting the current transaction key to obtain a first current transaction information ciphertext;
The current transaction request sending module is used for sending a current transaction request to a home full-quantity node in a blockchain network according to the current transaction number and the first current transaction information ciphertext, and is used for indicating the home full-quantity node to process the current transaction request.
15. A blockchain network-based transaction processing device configured to attribute a full-volume node in a blockchain network, the device comprising:
a current transaction request acquisition module, configured to acquire a current transaction request sent by an associated user node; the current transaction processing request is initiated according to the current transaction number and the first current transaction information ciphertext; the first current transaction information ciphertext is obtained by encrypting a current transaction information original text by adopting a current transaction key; the current transaction key is generated according to a user node key, a user node key chain code and the current transaction number;
and the processing module is used for processing the current transaction processing request and writing the current transaction number and the first current transaction information ciphertext into a blockchain.
16. A blockchain network-based transaction device configured at a supervising node, the device comprising:
The target transaction data acquisition module is used for acquiring target transaction data to be decrypted; the target transaction data comprises a target transaction number and a target transaction information ciphertext; the target transaction information ciphertext is obtained by encrypting a target transaction information original text by adopting a target transaction key; the target transaction key is determined according to a user node key, a user node key chain code and the target transaction number;
the target transaction key determining module is used for controlling the determination of a target transaction key according to the target transaction number;
and the decryption result determining module is used for decrypting the target transaction information ciphertext according to the target transaction key to obtain a decryption result.
17. A blockchain network-based transaction device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method performed by a user node in a blockchain network of any of claims 1-4, or the method performed by a home full-scale node in a blockchain network of any of claims 5-8, or the method performed by a supervising node of any of claims 9-13.
18. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method performed by a user node in a blockchain network of any of claims 1-4, or to perform the method performed by a home full-scale node in a blockchain network of any of claims 5-8, or to perform the method performed by a supervising node of any of claims 9-13.
CN202010239594.7A 2020-03-30 2020-03-30 Transaction processing method, device, equipment and medium based on block chain network Active CN111459672B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010239594.7A CN111459672B (en) 2020-03-30 2020-03-30 Transaction processing method, device, equipment and medium based on block chain network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010239594.7A CN111459672B (en) 2020-03-30 2020-03-30 Transaction processing method, device, equipment and medium based on block chain network

Publications (2)

Publication Number Publication Date
CN111459672A CN111459672A (en) 2020-07-28
CN111459672B true CN111459672B (en) 2023-09-29

Family

ID=71679325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010239594.7A Active CN111459672B (en) 2020-03-30 2020-03-30 Transaction processing method, device, equipment and medium based on block chain network

Country Status (1)

Country Link
CN (1) CN111459672B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112764887B (en) * 2021-01-15 2023-10-13 北京百度网讯科技有限公司 Method, device, equipment and storage medium for constructing transaction request
CN113726888B (en) * 2021-08-31 2023-07-21 安天科技集团股份有限公司 Method and device for processing password data based on block chain, electronic equipment and medium

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107070938A (en) * 2017-04-27 2017-08-18 电子科技大学 Data access control system based on block chain
CN108462568A (en) * 2018-02-11 2018-08-28 西安电子科技大学 A kind of secure file storage and sharing method based on block chain
CN108768630A (en) * 2018-05-25 2018-11-06 全链通有限公司 The encryption communication method and system of block chain node
JP2019029933A (en) * 2017-08-02 2019-02-21 富士通株式会社 Content distribution device, content distribution system, content distribution program, and content distribution method
CN109547218A (en) * 2019-01-18 2019-03-29 北京工业大学 It is a kind of improve BIP agreement alliance's chain node code key distribution and standby system
CN109768988A (en) * 2019-02-26 2019-05-17 安捷光通科技成都有限公司 Decentralization Internet of Things security certification system, facility registration and identity identifying method
CN109951295A (en) * 2019-02-27 2019-06-28 百度在线网络技术(北京)有限公司 Key handling and application method, device, equipment and medium
EP3540628A1 (en) * 2018-03-13 2019-09-18 NEC Laboratories Europe GmbH Mechanism for efficient validation of finality proof in lightweight distributed ledger clients
CN110300112A (en) * 2019-07-02 2019-10-01 石家庄铁道大学 Block chain key tiered management approach
CN110519260A (en) * 2019-08-23 2019-11-29 联想(北京)有限公司 A kind of information processing method and information processing unit
CN110674128A (en) * 2018-07-02 2020-01-10 国际商业机器公司 On-chain remediation of block chains
CN110692214A (en) * 2017-06-02 2020-01-14 维萨国际服务协会 Method and system for ownership verification using blockchains
CN110727737A (en) * 2019-10-29 2020-01-24 南京邮电大学 Intelligent medical data storage method based on multi-level block chain system architecture
CN110866740A (en) * 2019-11-14 2020-03-06 百度在线网络技术(北京)有限公司 Processing method and device for block chain transaction request, electronic equipment and medium
CN110933108A (en) * 2019-09-26 2020-03-27 腾讯科技(深圳)有限公司 Data processing method and device based on block chain network, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11159537B2 (en) * 2017-11-30 2021-10-26 Bank Of America Corporation Multicomputer processing for data authentication and event execution using a blockchain approach
US20190295049A1 (en) * 2018-03-22 2019-09-26 NEC Laboratories Europe GmbH System and method for secure transaction verification in a distributed ledger system
US10951401B2 (en) * 2018-03-30 2021-03-16 Bitnomial, Inc. Digital asset transfer system for secure digital asset transactions

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107070938A (en) * 2017-04-27 2017-08-18 电子科技大学 Data access control system based on block chain
CN110692214A (en) * 2017-06-02 2020-01-14 维萨国际服务协会 Method and system for ownership verification using blockchains
JP2019029933A (en) * 2017-08-02 2019-02-21 富士通株式会社 Content distribution device, content distribution system, content distribution program, and content distribution method
CN108462568A (en) * 2018-02-11 2018-08-28 西安电子科技大学 A kind of secure file storage and sharing method based on block chain
EP3540628A1 (en) * 2018-03-13 2019-09-18 NEC Laboratories Europe GmbH Mechanism for efficient validation of finality proof in lightweight distributed ledger clients
CN108768630A (en) * 2018-05-25 2018-11-06 全链通有限公司 The encryption communication method and system of block chain node
CN110674128A (en) * 2018-07-02 2020-01-10 国际商业机器公司 On-chain remediation of block chains
CN109547218A (en) * 2019-01-18 2019-03-29 北京工业大学 It is a kind of improve BIP agreement alliance's chain node code key distribution and standby system
CN109768988A (en) * 2019-02-26 2019-05-17 安捷光通科技成都有限公司 Decentralization Internet of Things security certification system, facility registration and identity identifying method
CN109951295A (en) * 2019-02-27 2019-06-28 百度在线网络技术(北京)有限公司 Key handling and application method, device, equipment and medium
CN110300112A (en) * 2019-07-02 2019-10-01 石家庄铁道大学 Block chain key tiered management approach
CN110519260A (en) * 2019-08-23 2019-11-29 联想(北京)有限公司 A kind of information processing method and information processing unit
CN110933108A (en) * 2019-09-26 2020-03-27 腾讯科技(深圳)有限公司 Data processing method and device based on block chain network, electronic equipment and storage medium
CN110727737A (en) * 2019-10-29 2020-01-24 南京邮电大学 Intelligent medical data storage method based on multi-level block chain system architecture
CN110866740A (en) * 2019-11-14 2020-03-06 百度在线网络技术(北京)有限公司 Processing method and device for block chain transaction request, electronic equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张晓薇 .基于区块链的物联网安全认证系统设计与实现.《中国优秀硕士学位论文全文数据库信息科技辑》.2020,(第03期),第I136-188页. *

Also Published As

Publication number Publication date
CN111459672A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN111683071B (en) Private data processing method, device, equipment and storage medium of block chain
CN111310216B (en) Block chain data processing method and device, electronic equipment and medium
CN111737366B (en) Private data processing method, device, equipment and storage medium of block chain
JP7069286B2 (en) Privacy data processing methods, privacy data processing devices, devices and media
CN111352996B (en) Data sharing method, device, equipment and medium based on block chain network
US11418320B2 (en) Blockchain-based data processing methods, devices, and media
CN111464297B (en) Transaction processing method, device, electronic equipment and medium based on block chain
WO2017128720A1 (en) Vtpm-based method and system for virtual machine security and protection
CN111459672B (en) Transaction processing method, device, equipment and medium based on block chain network
CN112016632A (en) Model joint training method, device, equipment and storage medium
CN111934872B (en) Key processing method, device, electronic equipment and storage medium
CN110610101A (en) Data storage method, device, equipment and storage medium
CN110909372A (en) Data processing method, device, equipment and medium
CN111339569A (en) Block chain data processing method and device, electronic equipment and medium
CN112989400B (en) Privacy transaction processing method, device, electronic equipment and medium
WO2022142436A1 (en) Data processing method and apparatus based on block chain, device, and storage medium
CN111400743B (en) Transaction processing method, device, electronic equipment and medium based on blockchain network
CN115600215A (en) System startup method, system information processing method, device, equipment and medium thereof
CN111371558A (en) Block chain data processing method and device, electronic equipment and medium
CN114363088B (en) Method and device for requesting data
US20240114012A1 (en) Zero-trust distributed data sharing
CN101119204B (en) Security electronic county annals system
CN201127035Y (en) County annals system based on interconnected network
CN111339197A (en) Block chain data processing method and device, electronic equipment and medium
CN201126590Y (en) Population census system based on interconnected network

Legal Events

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