CN111310202A - Information processing method for block chain network, block chain node device and medium - Google Patents

Information processing method for block chain network, block chain node device and medium Download PDF

Info

Publication number
CN111310202A
CN111310202A CN202010067991.0A CN202010067991A CN111310202A CN 111310202 A CN111310202 A CN 111310202A CN 202010067991 A CN202010067991 A CN 202010067991A CN 111310202 A CN111310202 A CN 111310202A
Authority
CN
China
Prior art keywords
random number
block chain
point device
encrypted
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010067991.0A
Other languages
Chinese (zh)
Inventor
郑罗海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010067991.0A priority Critical patent/CN111310202A/en
Publication of CN111310202A publication Critical patent/CN111310202A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/602Providing cryptographic facilities or services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the application discloses an information processing method for a block chain network, block chain link point equipment and a medium. Wherein the method comprises the following steps: acquiring bill information by first block chain link point equipment, and generating a random number according to the bill information; the first block chain link point equipment encrypts the bill information by using a random number to obtain encrypted bill information; the first block link point device determines at least one second block link point device associated with the bill information in a block chain network to which the first block link point device belongs; the first block chain node point equipment encrypts the random number by using the public key of each second block chain node point equipment to obtain an encrypted random number; and the first block chain node equipment links the encrypted bill information and the encrypted random number. By adopting the method and the device, the node equipment irrelevant to the bill information can be prevented from acquiring the bill information, and the safety of the bill information can be improved.

Description

Information processing method for block chain network, block chain node device and medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to an information processing method, a block link point device, and a medium for a block link network.
Background
The block chain technology is applied to the fields closely related to the life of people, such as the field of public service, the field of internet of things and logistics, the field of insurance, the field of finance and the like by virtue of the advantages that the block chain technology does not depend on a third-party management mechanism or hardware facilities and the like. Currently, any node device in the blockchain network can acquire the ticket information on the chain, but there is at least one piece of ticket information only related to a part of node devices in the blockchain network, for example, the blockchain network includes 50 node devices, where a certain piece of ticket information is only related to a first node device, a second node device, and a third node device, and in order to ensure the security of the ticket information, how to avoid the node device unrelated to the ticket information from acquiring the ticket information becomes a hot topic of current research.
Disclosure of Invention
The embodiment of the invention provides an information processing method for a block chain network, block chain link point equipment and a medium, which can prevent node equipment irrelevant to bill information from acquiring the bill information and improve the safety of the bill information.
In a first aspect, an embodiment of the present application provides an information processing method for a blockchain network, where the method includes:
acquiring bill information by first block chain link point equipment, and generating a random number according to the bill information;
the first block chain node point equipment encrypts the bill information by using the random number to obtain encrypted bill information;
the first block link point device determining at least one second block link point device associated with the ticket information in a block chain network to which the first block link point device belongs;
the first block chain node point device encrypts the random number by using the public key of each second block chain node point device to obtain an encrypted random number;
and the first block chain node equipment links the encrypted bill information and the encrypted random number.
In a second aspect, an embodiment of the present application provides an information processing method for a blockchain network, where the method includes:
the second block chain link point device acquires encrypted bill information and an encrypted random number related to the second block chain link point device from a chain, wherein the encrypted random number is obtained by encrypting the random number by the first block chain link point device by using a public key of the second block chain link point device;
the second block chain node point device decrypts the encrypted random number by using a private key of the second block chain node point device to obtain the random number;
and the second block chain node equipment decrypts the encrypted bill information by using the random number to obtain the bill information.
In a third aspect, an embodiment of the present application provides a block link point apparatus, where the apparatus includes:
the bill information acquisition module is used for acquiring bill information;
the random number generating module is used for generating a random number according to the bill information;
the bill information encryption module is used for encrypting the bill information by using the random number to obtain encrypted bill information;
a node device determining module, configured to determine at least one second block link point device associated with the ticket information in a block chain network to which the first block link point device belongs;
the random number encryption module is used for encrypting the random numbers by using the public key of each second block chain link point device to obtain encrypted random numbers;
and the uplink module is used for uplink transmission of the encrypted bill information and the encrypted random number.
In a fourth aspect, an embodiment of the present application provides a block link point apparatus, where the apparatus includes:
an obtaining module, configured to obtain encrypted ticket information and an encrypted random number related to the second block link point device from a chain, where the encrypted random number is obtained by encrypting, by the first block link point device, a random number using a public key of the second block link point device;
the random number decryption module is used for decrypting the encrypted random number by using a private key of the second block chain node equipment to obtain the random number;
and the bill information decryption module is used for decrypting the encrypted bill information by using the random number to obtain the bill information.
In a fifth aspect, embodiments of the present application provide a block-link point device that includes a processor and a memory, the processor and the memory coupled. A memory for storing a computer program. A processor for invoking a computer program for causing a blockchain node device to perform the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a block-link point device that includes a processor and a memory, the processor and the memory coupled. A memory for storing a computer program. A processor for invoking a computer program for causing a blockchain node device to perform the method according to the second aspect.
In a seventh aspect, the present application provides a computer-readable storage medium, which stores a computer program, the computer program comprising program instructions, which, when executed by a processor, cause the processor to perform the method according to the first aspect.
In an eighth aspect, embodiments of the present application provide a computer-readable storage medium, which stores a computer program, the computer program comprising program instructions, which, when executed by a processor, cause the processor to perform the method according to the second aspect.
According to the embodiment of the application, the first block chain node point equipment generates the random number according to the bill information, and the first block chain node point equipment encrypts the bill information by using the random number to obtain the encrypted bill information. Meanwhile, the first block chain link point device determines at least one second block chain link point device associated with the bill information in a block chain network to which the first block chain link point device belongs, the first block chain link point device encrypts the random number by using the public key of each second block chain link point device to obtain the encrypted random number, and the first block chain link point device uplinks the encrypted bill information and the encrypted random number, so that node devices irrelevant to the bill information can be prevented from acquiring the bill information, and the safety of the bill information can be improved.
Drawings
In order to more clearly describe the technical solutions in the embodiments or background art of the present application, the drawings required to be used in the embodiments of the present application will be described below.
FIG. 1 is a schematic illustration of a ticket provided by an invoicer to a payee;
FIG. 2 is a block diagram of an information handling system according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of an information processing method according to an embodiment of the present invention;
FIG. 4 is a schematic block link point apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of another blockchain node device disclosed in the embodiment of the present application;
fig. 6 is a schematic structural diagram of another blockchain node device disclosed in an embodiment of the present application;
fig. 7 is a schematic structural diagram of another blockchain node device disclosed in an embodiment of the present application.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
The embodiment of the invention provides an information processing method for a block chain network, block chain link point equipment and a medium. In the method, first block chain link point equipment acquires bill information and generates a random number according to the bill information, and the first block chain link point equipment encrypts the bill information by using the random number to obtain encrypted bill information. Meanwhile, the first block chain link point device determines at least one second block chain link point device associated with the bill information in a block chain network to which the first block chain link point device belongs, the first block chain link point device encrypts the random number by using the public key of each second block chain link point device to obtain an encrypted random number, and the first block chain link point device uplinks the encrypted bill information and the encrypted random number.
Through the embodiment of the invention, the bill information stored in the chain is the encrypted bill information. The block chain link point device in the block chain network wants to acquire the bill information from the chain, and needs to decrypt the encrypted bill information by using a random number. However, the random number stored in the chain is the encrypted random number, and the block link point device needs to decrypt the encrypted random number first, so that the encrypted ticket information can be decrypted by using the random number obtained by decryption. Since the encrypted random number is obtained by encrypting the random number using the public key of each second block-link point device, the encrypted random number needs to be decrypted using the private key of the second block-link point device. However, the private key of the second block chain node point device is only owned by the second block chain node point device, and other block chain node point devices cannot acquire the private key.
Alternatively, the first blockchain node device may be any node device in the blockchain network associated with the billing information, such as a billing party, a ticketing party, a tax return or a tax bureau. The second block link point device may be a node device other than the first block link point device among at least one node device associated with the ticket information, for example, the at least one node device associated with the ticket information includes enterprise a, enterprise B, user D, and tax authority, and assuming that the first block link point device is enterprise a, the second block link point device may include enterprise B, user D, and tax authority.
Optionally, the first blockchain node device may be elected according to a consensus algorithm for each node device associated with the ticket information in the blockchain network. The first block link point device may be any node device associated with the ticket information. The consensus algorithm includes, but is not limited to, a Proof of Work (PoW) algorithm, a Proof of rights (PoS) algorithm, a cleared Proof of rights (DPoS) algorithm, a Practical Byzantine Fault Tolerance (PBFT) algorithm, and the like. The first block chain node point device may be configured to encrypt the ticket information using a random number to obtain encrypted ticket information, encrypt the random number using a public key of each second block chain node point device to obtain an encrypted random number, and uplink the encrypted ticket information and the encrypted random number.
The consensus mechanism is a mathematical algorithm for establishing trust and obtaining rights and interests among different node devices in the block chain network; the consensus mechanism is a mathematical algorithm commonly approved by each node device of the block chain network, and can be the above consensus algorithm. The information processing method can make each node device to identify the bill information by using a common identification mechanism in the block chain network.
The block chain is a novel application mode of computer technologies such as distributed data storage, consensus mechanism and encryption algorithm, and is essentially a decentralized database; the blockchain can be composed of a plurality of serial transaction records (also called blocks) which are connected in series by cryptography and protect the contents, and the distributed accounts connected in series by the blockchain can effectively record the transaction by multiple parties and can permanently check the transaction (can not be tampered).
The bill information may include a bill, the bill may be an invoice or a financial bill, and the bill may be a bill a as shown in fig. 1, and includes related information of the invoicing party and the invoiced party, such as an enterprise, a tax number, a unit address, a telephone number, and the like of the invoicing party and the invoiced party. For example, assuming that the bill is an invoice, the node device associated with the bill information may include a tax bureau, and assuming that the bill is a financial bill, the node device associated with the bill information may include a financial hall. Optionally, the ticket information may further include a tax payer, for example, user D may be assigned to enterprise B, and user D purchases an air ticket on an air ticket selling platform of enterprise a, so that enterprise a may issue a ticket to user D, so that user D may reimburse enterprise B based on the ticket, where enterprise a is the invoicing party, enterprise B is the invoicee receiving party, and user D is the reimbursement party. Optionally, the billing information may further include a billing facilitator, and as further illustrated in the above example, assuming that enterprise a is billed to user D through the billing facilitator, i.e., the facilitator authorized by enterprise a and used to provide billing to enterprise a, the billing information may further include the billing facilitator.
In order to better understand the information processing method, the block link point device, and the medium for the block chain network disclosed in the embodiments of the present invention, first, a description is given below of an architecture of a system to which the embodiments of the present invention are applicable.
Referring to fig. 2, fig. 2 is a schematic diagram of an architecture of an information processing system according to an embodiment of the present invention. As shown in fig. 2, the system may include a first block link point device and at least one second block link point device, the first block link point device and the at least one second block link point device comprising a block chain network. The system architecture shown in fig. 2 is only used for example, and does not constitute a limitation to the embodiment of the present invention, for example, a third block chain node device and/or a fourth block chain node device may also be included in a block chain network, where the third block chain node device and the fourth block chain node device are not associated with the ticket information acquired by the first block chain node device. In addition, the first and at least one second blockchain link point devices are all node devices in the blockchain network associated with the ticket information. Different pieces of bill information may be associated with the same node device or different node devices, and the number of the node devices associated with different pieces of bill information may be the same or different, and is not specifically limited by the embodiment of the present application.
In the information processing system, taking an example that enterprise a issues a bill to enterprise B as an example, the bill information may include the bill, and assuming that the bill is specifically an invoice, the node device associated with the bill information may include a node device corresponding to enterprise a, a node device corresponding to enterprise B, and a node device corresponding to a tax bureau. In one example, the node device corresponding to enterprise a may serve as a first block-node device, the node device corresponding to enterprise B and the node device corresponding to the taxing authority may serve as a second block-node device. After the enterprise A issues an invoice to the enterprise B, the first block chain link point device can acquire bill information containing the invoice, a random number is generated according to the bill information, and the first block chain link point device encrypts the bill information by using the random number to obtain encrypted bill information. Meanwhile, the first block link point device determines at least one second block link point device associated with the bill information in the block chain network to which the first block link point device belongs, namely the node device corresponding to the enterprise B and the node device corresponding to the tax bureau. The first block chain node point equipment encrypts the random number by using the public key of the node equipment corresponding to the enterprise B to obtain an encrypted random number 1, encrypts the random number by using the public key of the node equipment corresponding to the tax bureau to obtain an encrypted random number 2, and then the first block chain node point equipment can uplink the encrypted bill information, the encrypted random number 1 and the encrypted random number 2.
If enterprise B wants to obtain the ticket information from the chain, node device corresponding to enterprise B may obtain the encrypted ticket information and encrypted random number 1 from the chain, and the node device corresponding to enterprise B decrypts encrypted random number 1 using private key of enterprise B to obtain random number, and then decrypts the encrypted ticket information using the random number to obtain the ticket information.
If the tax bureau wants to obtain the bill information from the chain, the node device corresponding to the tax bureau can obtain the encrypted bill information and the encrypted random number 2 from the chain, decrypt the encrypted random number 2 by using a private key of the tax bureau to obtain the random number, and then decrypt the encrypted bill information by using the random number to obtain the bill information.
Based on the above description, an embodiment of the present invention proposes an information processing method as shown in fig. 3, which may include the following steps S301 to S308:
s301, the first block chain link point device acquires bill information and generates a random number according to the bill information.
In one example, if the first block link point device is a biller or a ticketing facilitator authorized by the biller, the first block link point device can instrument the ticket and then generate ticket information containing the ticket.
In another example, if the first block link point device is a node device other than a billing party or a ticket facilitator, such as a ticketed party, tax return, tax authority, or financial hall, then after the billing party or ticket facilitator makes a ticket, the billing party may send the ticket to the first block link point device, which generates ticket information containing the ticket.
Further, the first block link point device may generate a random number through a random number generation algorithm and ticket information. The random numbers correspond to the bill information one by one, and the random numbers generated by the first block link point equipment according to different bill information are different. For example, the first block link point device may generate a random number through a random number generator and ticket information. As another example, the first block link point device may generate a random number via a pseudo random number generator and ticket information. As another example, the first block link point device may generate the random number by mixing the random number generator and the ticket information. For another example, the first blockchain node device may obtain a hash value of the ticket information, and generate a random number according to the hash value.
S302, the first block chain node equipment encrypts the bill information by using the random number to obtain the encrypted bill information.
In a specific implementation, the first block link point device may encrypt the ticket information according to a preset symmetric encryption algorithm and the random number, so as to obtain the encrypted ticket information. For example, the preset symmetric Encryption Algorithm may include a Data Encryption Standard (DES) Algorithm, a Triple DES (3 DES) Algorithm, an Advanced Encryption Standard (AES) Algorithm, a Blowfish Algorithm, an RC5 Algorithm, an International Data Encryption Algorithm (IDEA), or the like.
S303, the first block link point device determines at least one second block link point device associated with the ticket information in the block chain network to which the first block link point device belongs.
In one implementation, a first block chain node device may obtain an association object from the ticket information, and determine, according to the association object, the at least one second block chain node device in the block chain network, where the at least one second block chain node device includes a block chain node device corresponding to the association object.
In one example, if the invoicing party invoices the invoicee party, the node devices associated with the billing information include a node device corresponding to the invoicee party, and a node device corresponding to the tax authority. Assuming that the first block link point device is a node device corresponding to a billing party, the associated object obtained from the ticket information by the first block link point device may be a name of a ticket receiver, the first block link point device may use a node device corresponding to the ticket receiver indicated by the name of the ticket receiver as a second block link point device, and the first block link point device may further use a node device corresponding to a tax bureau as a second block link point device.
In another example, if the invoicing party invoices the invoicee party through the ticket facilitator, the node devices associated with the ticket information include a node device corresponding to the invoicer, a node device corresponding to the ticket facilitator, a node device corresponding to the invoicee party, and a node device corresponding to the tax authority. Assuming that the first block link point device is a node device corresponding to a billing facilitator, the associated object acquired by the first block link point device from the billing information may be a name of an invoker and a name of a person to be invoiced, the first block link point device may use the node device corresponding to the invoiced party indicated by the name of the invoiced party as a second block link point device, the first block link point device may further use the node device corresponding to the person to be invoiced indicated by the name of the person to be invoiced as a second block link point device, and the first block link point device may further use the node device corresponding to the tax bureau as a second block link point device.
In another example, if the user requests the invoicing party to invoice the invoicee party, the node devices associated with the billing information include the node device the user is logged in, the node device corresponding to the invoicee party, and the node device corresponding to the tax authority. Assuming that the first block link point device is a node device corresponding to a billing party, the associated object acquired by the first block link point device from the billing information may be a name of a ticketing party, the first block link point device may use a node device corresponding to the ticketing party indicated by the name of the ticketing party as a second block link point device, the first block link point device may also use a node device corresponding to a tax bureau as a second block link point device, and the first block link point device may also use a node device registered by the user as a second block link point device.
And S304, the first block chain node point device encrypts the random number by using the public key of each second block chain node point device to obtain the encrypted random number.
In a specific implementation, for any one of the second block chain node point devices, the first block chain node point device may encrypt the random number according to a preset asymmetric encryption algorithm and a public key of the second block chain node point device, so as to obtain the encrypted random number. Illustratively, the preset asymmetric encryption algorithm may include an RSA algorithm, Elgamal, a knapsack algorithm, a Rabin algorithm, or an Elliptic Curve Cryptography (ECC) algorithm, etc.
For example, after the first block link point device uses the node device corresponding to the ticketing party indicated by the name of the ticketing party and the node device corresponding to the tax authority as the second block link point device, the random number may be encrypted by using the public key of the ticketing party to obtain an encrypted random number. The first block link point device may further encrypt the random number using a public key of the tax bureau to obtain another encrypted random number.
For another example, after the first block link point device uses the node device corresponding to the ticketing party indicated by the name of the ticketing party, the node device corresponding to the tax bureau, and the node device registered by the user as the second block link point device, the random number may be encrypted by using the public key of the ticketing party to obtain the encrypted random number. The first block link point device may further encrypt the random number using a public key of the tax bureau to obtain another encrypted random number. The first block link point device may further encrypt the random number using the public key of the user to obtain another encrypted random number.
The number of the encrypted random numbers is the same as that of the second block link point devices, and the encrypted random numbers are different from each other.
S305, the first block chain node equipment links the encrypted bill information and the encrypted random number.
The first block chain node device may distribute the encrypted ticket information and each encrypted random number to the block chain network to which the first block chain node device belongs. For example, a first blockchain node device may generate a block from the encrypted ticket information and each encrypted random number and distribute the block to a blockchain network.
S306, the second block link point device obtains encrypted ticket information and an encrypted random number related to the second block link point device from the chain.
S307, the second block chain node point device decrypts the encrypted random number by using the private key of the second block chain node point device to obtain the random number.
In a specific implementation, the second block link point device may decrypt the encrypted random number according to a preset asymmetric decryption algorithm and a private key of the second block link point device to obtain the random number.
And S308, the second block chain link point device decrypts the encrypted bill information by using the random number to obtain the bill information.
In a specific implementation, the second block link point device may decrypt the encrypted ticket information according to a preset symmetric decryption algorithm and the random number to obtain the ticket information.
In the embodiment of the invention, the first block chain node point device encrypts the bill information by using the public key of the second block chain node point device, so that the encrypted bill information can be decrypted only by using the private key of the second block chain node point device, that is, only the second block chain node point device can acquire the bill information, and other node devices in the block chain network cannot acquire the bill information, so that the safety of the bill information can be improved.
In the embodiment shown in fig. 3, the first block chain node device encrypts the ticket information by using a random number to obtain encrypted ticket information, then the first block chain node device encrypts the random number by using the public key of each second block chain node device to obtain an encrypted random number, and the first block chain node device uplinks the encrypted ticket information and the encrypted random number. And the second block chain node point equipment decrypts the encrypted random number by using a private key of the second block chain node point equipment to obtain a random number, and then the second block chain node point equipment decrypts the encrypted bill information by using the random number to obtain the bill information. According to the embodiment of the invention, only the node equipment associated with the bill information can successfully decrypt the encrypted bill information to obtain the bill information, and the node equipment not associated with the bill information cannot decrypt the encrypted random number to obtain the random number because the node equipment cannot obtain the private key of the second block link node equipment, so that the encrypted random number cannot be used for decrypting the encrypted bill information to obtain the bill information, and the reliability of the bill information can be improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a block link point apparatus according to an embodiment of the present disclosure, where the block link point apparatus is used to perform steps performed by a first block link point apparatus in the method embodiment corresponding to fig. 3. The block link node device may include a ticket information acquisition module 401, a random number generation module 402, a ticket information encryption module 403, a node device determination module 404, a random number encryption module 405, and an uplink module 406. Wherein:
a ticket information acquiring module 401, configured to acquire ticket information;
a random number generation module 402, configured to generate a random number according to the ticket information;
a ticket information encryption module 403, configured to encrypt the ticket information using the random number to obtain encrypted ticket information;
a node device determining module 404, configured to determine at least one second block-link point device associated with the ticket information in a block chain network to which the block-link point device belongs;
a random number encryption module 405, configured to encrypt the random number using the public key of each second block link point device to obtain an encrypted random number;
a cochain module 406, configured to cochain the encrypted ticket information and the encrypted random number.
In one implementation, the node device determining module 404 determines at least one second blockchain link point device associated with the ticket information in a blockchain network to which the blockchain node device belongs, including:
acquiring a tax related object from the bill information;
and determining the at least one second block chain node point device in the block chain network according to the tax related object, wherein the at least one second block chain node point device comprises a block chain node point device corresponding to the tax related object.
In one implementation, the ticket information encryption module 403 encrypts the ticket information by using the random number to obtain encrypted ticket information, including:
and encrypting the bill information according to a preset symmetric encryption algorithm and the random number to obtain the encrypted bill information.
In one implementation, the encrypting the random number by the random number encrypting module 405 using the public key of each second block link point device to obtain an encrypted random number includes:
and encrypting the random number according to a preset asymmetric encryption algorithm and a public key of the second block chain link point equipment to obtain the encrypted random number.
It should be noted that details that are not mentioned in the embodiment corresponding to fig. 4 and specific implementation manners of the steps executed by each module may refer to the embodiment shown in fig. 3 and the foregoing details, and are not described again here.
Referring to fig. 5, fig. 5 is a schematic structural diagram of another block chain node device according to an embodiment of the present disclosure. The block link node device comprises a processor 501, a memory 502 and a communication interface 503, wherein the processor 501, the memory 502 and the communication interface 503 are connected through one or more communication buses.
The processor 501 is configured to support the block-link point device to perform the corresponding function of the first block-link point device in the method described in fig. 3. The Processor 501 may be a Central Processing Unit (CPU), a Network Processor (NP), a hardware chip, or any combination thereof.
The memory 502 is used to store program codes and the like. Memory 502 may include volatile Memory (volatile), such as Random Access Memory (RAM); the Memory 502 may also include a non-volatile Memory (non-volatile Memory), such as a Read Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk Drive (HDD) or a Solid State Drive (SSD); the memory 502 may also comprise a combination of memories of the kind described above.
The communication interface 503 is used for receiving and sending data, for example, the communication interface 503 is used for receiving a ticket issuing request sent by the second node device, or the communication interface 503 is used for uplink transmission of encrypted ticket information and the encrypted random number, and so on.
In an embodiment of the present invention, the block link node device includes a plurality of communication interfaces, wherein a communication interface for transmitting data and a communication interface for receiving data may not be the same communication interface.
The processor 501 may call the program code stored in the memory 502 to perform the following operations:
acquiring bill information and generating a random number according to the bill information;
encrypting the bill information by using the random number to obtain encrypted bill information;
determining at least one second blockchain node device associated with the ticket information in a blockchain network to which the blockchain node device belongs;
encrypting the random number by using the public key of each second block chain link point device to obtain an encrypted random number;
the encrypted ticket information and the encrypted random number are uplinked through the communication interface 503.
In one implementation, when determining at least one second blockchain node device associated with the ticket information in the blockchain network to which the blockchain node device belongs, the processor 501 is specifically configured to:
acquiring a tax related object from the bill information;
and determining the at least one second block chain node point device in the block chain network according to the tax related object, wherein the at least one second block chain node point device comprises a block chain node point device corresponding to the tax related object.
In one implementation, when the processor 501 encrypts the ticket information by using the random number to obtain encrypted ticket information, the processor is specifically configured to:
and encrypting the bill information according to a preset symmetric encryption algorithm and the random number to obtain the encrypted bill information.
In one implementation, when the processor 501 encrypts the random number by using the public key of each second block link point device to obtain an encrypted random number, specifically:
and encrypting the random number according to a preset asymmetric encryption algorithm and a public key of the second block chain link point equipment to obtain the encrypted random number.
Further, the processor 501 may further cooperate with the communication interface 503 to execute operations corresponding to the first block link point device in the method embodiment shown in fig. 3, which may be referred to the description in the method embodiment specifically, and is not described herein again.
An embodiment of the present application further provides a computer-readable storage medium, which can be used to store a computer program used by the block-link point device in the embodiment shown in fig. 3, and which contains a program designed for executing the first block-link point device in the above embodiment.
The computer readable storage medium includes, but is not limited to, flash memory, hard disk, solid state disk.
Embodiments of the present application further provide a computer program product, which when executed by a computer device, can execute the method designed for the first block link point device in the embodiment of fig. 3.
In an embodiment of the present application, there is further provided a chip including a processor and a memory, where the memory is used to store a computer program, the processor is used to call and run the computer program from the memory, and the computer program is used to implement the method designed for the first block link point device in the above method embodiment.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a block link point apparatus according to an embodiment of the present disclosure, where the block link point apparatus is used to perform steps performed by a second block link point apparatus in the method embodiment corresponding to fig. 3. The block link point device may include an acquisition module 601, a random number decryption module 602, and a ticket information decryption module 603. Wherein:
an obtaining module 601, configured to obtain encrypted ticket information and an encrypted random number related to the block chain node device from a chain, where the encrypted random number is obtained by encrypting, by the first block chain node device, a random number using a public key of the block chain node device;
a random number decryption module 602, configured to decrypt the encrypted random number using a private key of the blockchain node device to obtain the random number;
the ticket information decryption module 603 is configured to decrypt the encrypted ticket information using the random number to obtain the ticket information.
In one implementation manner, the decrypting the encrypted random number by the random number decryption module 602 using a private key of the blockchain node device to obtain the random number includes:
and decrypting the encrypted random number according to a preset asymmetric encryption algorithm and a private key of the block chain node equipment to obtain the random number.
In one implementation, the decrypting the encrypted ticket information by the ticket information decrypting module 603 using the random number to obtain the ticket information includes:
and decrypting the encrypted bill information according to a preset symmetric encryption algorithm and the random number to obtain the bill information.
It should be noted that details that are not mentioned in the embodiment corresponding to fig. 6 and specific implementation manners of the steps executed by each module may refer to the embodiment shown in fig. 3 and the foregoing details, and are not described again here.
Referring to fig. 7, fig. 7 is a schematic structural diagram of another block chain node device according to an embodiment of the present disclosure. The block link node device comprises a processor 701, a memory 702 and a communication interface 703, wherein the processor 701, the memory 702 and the communication interface 703 are connected through one or more communication buses.
The processor 701 is configured to support the block-link point device to perform the corresponding function of the second block-link point device in the method described in fig. 3. The Processor 701 may be a Central Processing Unit (CPU), a Network Processor (NP), a hardware chip, or any combination thereof.
The memory 702 is used to store program codes and the like. The Memory 702 may include volatile Memory (volatile), such as Random Access Memory (RAM); the Memory 702 may also include a non-volatile Memory (non-volatile Memory), such as a Read Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk Drive (HDD) or a Solid State Drive (SSD); the memory 702 may also comprise a combination of the above types of memory.
The communication interface 703 is used for receiving and sending data, for example, the communication interface 703 is used for receiving a ticket issuing request sent by the second block node device, or the communication interface 703 is used for acquiring encrypted ticket information and an encrypted random number related to the block node device from the chain, and the like.
In an embodiment of the present invention, the block link node device includes a plurality of communication interfaces, wherein a communication interface for transmitting data and a communication interface for receiving data may not be the same communication interface.
The processor 701 may call the program code stored in the memory 702 to perform the following operations:
acquiring encrypted bill information and an encrypted random number related to the block chain node device from a chain through a communication interface 703, where the encrypted random number is obtained by encrypting the random number by using a public key of the block chain node device by the first block chain node device;
decrypting the encrypted random number by using a private key of the blockchain node equipment to obtain the random number;
and decrypting the encrypted bill information by using the random number to obtain the bill information.
In an implementation manner, when the processor 701 decrypts the encrypted random number by using a private key of the blockchain node device to obtain the random number, specifically, the processor is configured to:
and decrypting the encrypted random number according to a preset asymmetric encryption algorithm and a private key of the block chain node equipment to obtain the random number.
In one implementation, when the processor 701 decrypts the encrypted ticket information by using the random number to obtain the ticket information, specifically:
and decrypting the encrypted bill information according to a preset symmetric encryption algorithm and the random number to obtain the bill information.
Further, the processor 701 may further cooperate with the communication interface 703 to execute operations corresponding to the second block link point device in the method embodiment shown in fig. 3, which may be referred to the description in the method embodiment specifically, and is not described herein again.
An embodiment of the present application further provides a computer-readable storage medium, which can be used to store a computer program used by the block-link point device in the embodiment shown in fig. 3, and which contains a program designed for executing the second block-link point device in the above embodiment.
The computer readable storage medium includes, but is not limited to, flash memory, hard disk, solid state disk.
Embodiments of the present application further provide a computer program product, which when executed by a computer device, can execute the method designed for the second block link point device in the embodiment of fig. 3.
In an embodiment of the present application, there is further provided a chip including a processor and a memory, where the memory is used to store a computer program, the processor is used to call and run the computer program from the memory, and the computer program is used to implement the method designed for the second block link point device in the above method embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in or transmitted over a computer-readable storage medium. The computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. An information processing method for a blockchain network, the method comprising:
acquiring bill information by first block chain link point equipment, and generating a random number according to the bill information;
the first block chain node point equipment encrypts the bill information by using the random number to obtain encrypted bill information;
the first block link point device determining at least one second block link point device associated with the ticket information in a block chain network to which the first block link point device belongs;
the first block chain node point device encrypts the random number by using the public key of each second block chain node point device to obtain an encrypted random number;
and the first block chain node equipment links the encrypted bill information and the encrypted random number.
2. The method of claim 1, wherein the first block link point device determines at least one second block link point device associated with the ticket information in a block chain network to which the first block link point device belongs, comprising:
the first block chain link point equipment acquires a tax related object from the bill information;
the first block chain link point device determines the at least one second block chain link point device in the block chain network according to the tax related object, and the at least one second block chain link point device comprises a block chain link point device corresponding to the tax related object.
3. The method of claim 1, wherein the first block link point device encrypts the ticket information using the random number to obtain encrypted ticket information, and comprises:
and the first block chain node equipment encrypts the bill information according to a preset symmetric encryption algorithm and the random number to obtain the encrypted bill information.
4. The method of claim 1, wherein the first block-node device encrypts the random number using a public key of each second block-node device to obtain an encrypted random number, comprising:
for any one second block chain node point device, the first block chain node point device encrypts the random number according to a preset asymmetric encryption algorithm and a public key of the second block chain node point device to obtain the encrypted random number.
5. An information processing method for a blockchain network, the method comprising:
the second block chain link point device acquires encrypted bill information and an encrypted random number related to the second block chain link point device from a chain, wherein the encrypted random number is obtained by encrypting the random number by the first block chain link point device by using a public key of the second block chain link point device;
the second block chain node point device decrypts the encrypted random number by using a private key of the second block chain node point device to obtain the random number;
and the second block chain node equipment decrypts the encrypted bill information by using the random number to obtain the bill information.
6. The method of claim 5, wherein the second block-link-point device decrypts the encrypted random number using a private key of the second block-link-point device to obtain the random number, and comprises:
and the second block chain node point equipment decrypts the encrypted random number according to a preset asymmetric encryption algorithm and a private key of the second block chain node point equipment to obtain the random number.
7. The method of claim 5, wherein the second blockchain node device decrypts the encrypted ticket information using the random number to obtain ticket information, and comprises:
and the second block chain node equipment decrypts the encrypted bill information according to a preset symmetric encryption algorithm and the random number to obtain the bill information.
8. A block link point apparatus, comprising:
the bill information acquisition module is used for acquiring bill information;
the random number generating module is used for generating a random number according to the bill information;
the bill information encryption module is used for encrypting the bill information by using the random number to obtain encrypted bill information;
a node device determining module, configured to determine at least one second block link point device associated with the ticket information in a block chain network to which the first block link point device belongs;
the random number encryption module is used for encrypting the random numbers by using the public key of each second block chain link point device to obtain encrypted random numbers;
and the uplink module is used for uplink transmission of the encrypted bill information and the encrypted random number.
9. A block link point apparatus, comprising:
an obtaining module, configured to obtain encrypted ticket information and an encrypted random number related to the second block link point device from a chain, where the encrypted random number is obtained by encrypting, by the first block link point device, a random number using a public key of the second block link point device;
the random number decryption module is used for decrypting the encrypted random number by using a private key of the second block chain node equipment to obtain the random number;
and the bill information decryption module is used for decrypting the encrypted bill information by using the random number to obtain the bill information.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to execute the information processing method for a blockchain network according to any one of claims 1 to 4, or cause the processor to execute the information processing method for a blockchain network according to any one of claims 5 to 7.
CN202010067991.0A 2020-01-20 2020-01-20 Information processing method for block chain network, block chain node device and medium Pending CN111310202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010067991.0A CN111310202A (en) 2020-01-20 2020-01-20 Information processing method for block chain network, block chain node device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010067991.0A CN111310202A (en) 2020-01-20 2020-01-20 Information processing method for block chain network, block chain node device and medium

Publications (1)

Publication Number Publication Date
CN111310202A true CN111310202A (en) 2020-06-19

Family

ID=71146978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010067991.0A Pending CN111310202A (en) 2020-01-20 2020-01-20 Information processing method for block chain network, block chain node device and medium

Country Status (1)

Country Link
CN (1) CN111310202A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189727A (en) * 2018-09-14 2019-01-11 江西理工大学 A kind of block chain ciphertext cloud storage sharing method based on property broker re-encryption
CN109918937A (en) * 2017-12-13 2019-06-21 航天信息股份有限公司 A kind of information processing method, device, equipment and medium
CN110070443A (en) * 2019-04-23 2019-07-30 深圳前海微众银行股份有限公司 A kind of bill processing method and device based on block chain
CN110400188A (en) * 2018-08-16 2019-11-01 深圳市智税链科技有限公司 Electronic bill generation method, device, storage medium and computer equipment
CN110633963A (en) * 2019-09-16 2019-12-31 腾讯科技(深圳)有限公司 Electronic bill processing method, electronic bill processing device, computer-readable storage medium and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918937A (en) * 2017-12-13 2019-06-21 航天信息股份有限公司 A kind of information processing method, device, equipment and medium
CN110400188A (en) * 2018-08-16 2019-11-01 深圳市智税链科技有限公司 Electronic bill generation method, device, storage medium and computer equipment
CN109189727A (en) * 2018-09-14 2019-01-11 江西理工大学 A kind of block chain ciphertext cloud storage sharing method based on property broker re-encryption
CN110070443A (en) * 2019-04-23 2019-07-30 深圳前海微众银行股份有限公司 A kind of bill processing method and device based on block chain
CN110633963A (en) * 2019-09-16 2019-12-31 腾讯科技(深圳)有限公司 Electronic bill processing method, electronic bill processing device, computer-readable storage medium and equipment

Similar Documents

Publication Publication Date Title
US11451392B2 (en) Token-based secure data management
CN110851496B (en) Method, apparatus, accounting node and medium for querying transaction information in blockchain network
US20200372503A1 (en) Transaction messaging
WO2020103566A1 (en) Blockchain certificate storage method and apparatus, and computer device
WO2019214312A1 (en) Blockchain-based logistics information transmission method, system and device
CN108370315B (en) Secure computer cluster with encryption
CN111931238B (en) Block chain-based data asset transfer method, device and equipment
US20160261404A1 (en) Methods and systems for obfuscating data and computations defined in a secure distributed transaction ledger
US20140249940A1 (en) Electronic authorization system and method
CN111147432B (en) KYC data sharing system with confidentiality and method thereof
CN113228011A (en) Data sharing
US11195177B1 (en) Distributed ledger systems for tracking recurring transaction authorizations
JP2002091299A (en) System and method for digital signature, mediation method and system for digital signature, information terminal, and recording medium
CN110708162B (en) Resource acquisition method and device, computer readable medium and electronic equipment
CN110084600B (en) Processing and verifying method, device, equipment and medium for resolution transaction request
US11405396B2 (en) Secure management and provisioning of interaction data using permissioned distributed ledgers
KR102033042B1 (en) Login authentication system using block chain, login authentication method and login service application method
CN115114658B (en) Verifiable data transaction method, device, equipment and medium based on blockchain
CN110599270B (en) Electronic bill generation method and device and computer equipment
JP5403481B2 (en) Personal information management device for preventing falsification of personal information and denial of distribution of personal information
WO2018220541A1 (en) Protocol-based system and method for establishing a multi-party contract
CN110992032A (en) Method and device for evaluating credible users by combining multiple parties
WO2021114495A1 (en) Supply chain transaction privacy protection system and method based on blockchain, and related device
US20230327863A1 (en) Data management and encryption in a distributed computing system
US20230283466A1 (en) Content protection system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40024723

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination