CN116980105A - Bill binding method, medium and system based on blockchain - Google Patents

Bill binding method, medium and system based on blockchain Download PDF

Info

Publication number
CN116980105A
CN116980105A CN202310800790.0A CN202310800790A CN116980105A CN 116980105 A CN116980105 A CN 116980105A CN 202310800790 A CN202310800790 A CN 202310800790A CN 116980105 A CN116980105 A CN 116980105A
Authority
CN
China
Prior art keywords
node
project
blockchain
ticket
bill
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
CN202310800790.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.)
China Southern Power Grid Internet Service Co ltd
Original Assignee
China Southern Power Grid Internet Service 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 China Southern Power Grid Internet Service Co ltd filed Critical China Southern Power Grid Internet Service Co ltd
Priority to CN202310800790.0A priority Critical patent/CN116980105A/en
Publication of CN116980105A publication Critical patent/CN116980105A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to the technical field of blockchains, in particular to a bill binding method, medium and system based on blockchains. According to the bill binding method based on the blockchain, after project information is linked, project nodes are newly generated, communication channels among the project nodes, the billing nodes and billing association persons are respectively opened, a sub-chain is further built between the billing nodes and the billing association persons by taking the project nodes as transit, the billing nodes bound by the billing association persons are identified through the project information when the sub-chain is built, the bill nodes pointed to the project nodes are built in sequence, and then the project nodes point to unidirectional sub-chains of the billing association persons, so that the bill which is related to the project information and is billed by the billing nodes is synchronously given to the billing association persons by the sub-chain after being linked. Because the sub-chain only records the bill uplink information of the item, which is equivalent to binding bills of one item on the sub-chain, only billing association persons can read bill information from the sub-chain, and the possibility of bill information leakage is greatly reduced.

Description

Bill binding method, medium and system based on blockchain
Technical Field
The invention relates to the technical field of blockchains, in particular to a bill binding method, medium and system based on blockchains.
Background
Blockchains are essentially understood as a distributed ledger or shared database, and data or information stored therein has characteristics of non-counterfeitability, full trace, traceability, openness, collective maintenance, and the like. Based on the characteristics, the blockchain technology lays a reliable trust foundation and has wide application prospect. For example, in the process of payment and bill issuing, an invoice alliance chain is established, an issuing node in an alliance member links the issued electronic invoice, and a payment node in the alliance member downloads the electronic invoice and performs payment. However, in the existing system, the billing node in the alliance member is generally the financial department of the service b party, the payment node is generally the financial department of the service a party, but the service communication and execution are generally carried out by the respective service departments of the service a party and the service b party, so that the invoice alliance chain needs to take the respective service departments of the service a party and the service b party as the alliance chain node, if a plurality of different projects exist between the first party and the second party at the same time, each different project uniformly links invoice information to a block chain, and leakage of invoice information among different project members is easy to cause.
Disclosure of Invention
The invention aims to solve the technical problem of providing a bill binding method based on a blockchain, wherein bill information among different projects is not easy to reveal on a bill alliance chain.
In order to solve the technical problems, in a first aspect, the invention provides a bill binding method based on a blockchain, comprising the following steps:
a project node generating step, namely if any node on the bill alliance chain uploads project information carrying bills on the blockchain, a new project node is generated;
a sub-chain constructing step, namely constructing a sub-chain between the invoicing node and the invoicing associated person through the project node, specifically, reading the invoicing associated person in the project information, identifying the invoicing node bound by the invoicing associated person, establishing a unidirectional sub-chain pointed by the invoicing node to the project node and pointed by the project node to the invoicing associated person, so that the invoicing associated person is synchronously given by the sub-chain after the invoicing associated person issues the bill associated with the project information.
Further, the item information carrying the bill also comprises bill information, and the bill information comprises one or more of bill number, bill type, bill surface amount, bill date and expiration date.
Further, the new project node is a virtual node constructed on the billing node, and the project node obtains the intelligent contract from the billing node.
Further, if a new intelligent contract is negotiated between the newly generated project node and the billing node within a preset time period after the project information carrying the bill is uploaded to the blockchain, the intelligent contract is used as a contract template to be bound to the newly generated project node.
Further, the method comprises a template referencing step, wherein the contract template is matched with the newly generated project node according to the associated billing node and project information carrying the bill.
Further, in the project node generation step, the newly generated project node verifies the authenticity and validity of the electronic ticket through an intelligent contract.
Further, at the item node of the blockchain, a unique identifier of the current transaction is generated from the order of the bound instrument and subchain.
Further, the unique identifier is stored in a database of the blockchain.
In a second aspect, the present invention provides a computer readable storage medium having stored thereon an executable computer program which when executed implements the blockchain-based ticket binding method described above.
In a third aspect, the present invention provides a bill binding system comprising a processor and a computer readable storage medium, the computer readable storage medium being a computer readable storage medium as described above, the processor executing a computer program in the computer readable storage medium to implement the blockchain-based bill binding method described above.
The beneficial effects are that:
according to the bill binding method based on the blockchain, after project information is linked, project nodes are newly generated, communication channels among the project nodes, the billing nodes and billing associated persons are respectively opened, the project nodes are further used as transit to construct sub-links between the billing nodes and the billing associated persons, the billing associated persons in the project information are firstly read when the sub-links are constructed, the billing nodes bound by the billing associated persons are identified, the billing nodes pointed to the project nodes by the billing nodes are sequentially established, and then the project nodes pointed to the billing associated persons are unidirectional sub-links, so that the billing associated persons are synchronously given by the sub-links after the bills associated with the project information are linked by the billing nodes, and as the sub-links only record the bill linking information of one project, only the billing associated persons can read the bill information from the sub-links, and other persons cannot read the bill information bound on the sub-links from the public links, so that the possibility of bill information leakage is greatly reduced.
Drawings
FIG. 1 is a flow diagram of a blockchain-based ticket binding method of the present invention.
Detailed Description
The invention is further described in detail below in connection with the detailed description.
The embodiment provides a bill binding system, which comprises a processor and a computer readable storage medium. The computer readable storage medium stores an executable bill binding program (i.e., a computer program), and a processor of the electronic terminal runs the bill binding program to implement the blockchain-based bill binding method as shown in fig. 1.
The following details the execution of the blockchain-based ticket binding method.
And a project node generating step, wherein if any node on the bill alliance chain uploads project information carrying the bill on the blockchain, the project node is newly generated, and the newly generated project node verifies the authenticity and the validity of the electronic bill through the intelligent contract.
A sub-chain constructing step, namely constructing a sub-chain between the invoicing node and the invoicing associated person through the project node, specifically, reading the invoicing associated person in the project information, identifying the invoicing node bound by the invoicing associated person, establishing a unidirectional sub-chain pointed by the invoicing node to the project node and pointed by the project node to the invoicing associated person, so that the invoicing associated person is synchronously given by the sub-chain after the invoicing associated person issues the bill associated with the project information.
The data/information uplink process for a blockchain is described in detail below.
In creating a transaction, in a blockchain transaction, a transaction first needs to be created. The transaction includes information such as sender, receiver, and transaction content. The sender needs to sign the transaction by using the private key of the sender, so as to ensure the authenticity of the transaction.
Broadcasting the transaction, after creating the transaction, the transaction needs to be broadcast to other nodes in the network. Each node adds the transaction to its own transaction pool to wait for processing.
The transaction is validated, and the node verifies the transaction, including verifying the sender's signature, etc. If the transaction verifies, the node packages the transaction into a chunk and adds the chunk to the blockchain.
Each node has the right to participate in the generation and verification of the block, and each node adds the block into the block chain after reaching the consensus.
The item information carrying the bill also comprises bill information, wherein the bill information comprises a bill number, a bill type, a bill surface amount, a bill date and an expiration date.
The new project node is a virtual node constructed on the billing node, and the project node acquires the intelligent contract from the billing node. If a new intelligent contract is negotiated between the newly generated project node and the billing node within a preset time period after the project information carrying the bill is uploaded to the blockchain, the intelligent contract is used as a contract template to be bound to the newly generated project node. The generated contract template is stored as a template library, and the contract template is matched with the newly generated project node at present according to the associated billing node and project information carrying the bill through a template referencing step.
Wherein at the item node of the blockchain, a unique identifier of the current transaction is generated from the order of the bound ticket and subchain, the unique identifier being stored in a database of the blockchain.
According to the bill binding method based on the blockchain, after project information is linked, project nodes are newly generated, communication channels among the project nodes, the billing nodes and billing associated persons are respectively opened, the project nodes are further used as transit to construct sub-links between the billing nodes and the billing associated persons, the billing associated persons in the project information are firstly read when the sub-links are constructed, the billing nodes bound by the billing associated persons are identified, the billing nodes pointed to the project nodes by the billing nodes are sequentially established, and then the project nodes pointed to the billing associated persons are unidirectional sub-links, so that the billing associated persons are synchronously given by the sub-links after the bills associated with the project information are linked by the billing nodes, and as the sub-links only record the bill linking information of one project, only the billing associated persons can read the bill information from the sub-links, and other persons cannot read the bill information bound on the sub-links from the public links, so that the possibility of bill information leakage is greatly reduced.
The above embodiments are merely embodiments of the present invention and are not intended to limit the scope of the patent protection. Insubstantial changes and substitutions can be made by one skilled in the art in light of the teachings of the invention, as yet fall within the scope of the claims.

Claims (10)

1. A bill binding method based on block chain is characterized by comprising the following steps:
a project node generating step, namely if any node on the bill alliance chain uploads project information carrying bills on the blockchain, a new project node is generated;
a sub-chain constructing step, namely constructing a sub-chain between the invoicing node and the invoicing associated person through the project node, specifically, reading the invoicing associated person in the project information, identifying the invoicing node bound by the invoicing associated person, establishing a unidirectional sub-chain pointed by the invoicing node to the project node and pointed by the project node to the invoicing associated person, so that the invoicing associated person is synchronously given by the sub-chain after the invoicing associated person issues the bill associated with the project information.
2. The blockchain-based ticket binding method of claim 1, wherein the item information carrying the ticket further includes ticket information including one or more of a ticket number, a ticket type, a ticket amount, a ticket out date, an expiration date.
3. The blockchain-based ticket binding method of claim 1, wherein the new project node is a virtual node built on the billing node from which the project node obtains the intelligent contract.
4. The blockchain-based ticket binding method of claim 3, wherein if a new intelligent contract is negotiated between a newly generated project node and an invoicing node within a preset time period after project information carrying a ticket is uploaded to a blockchain, the intelligent contract is bound to the newly generated project node as a contract template.
5. The blockchain-based ticket binding method of claim 4, including a template referencing step of matching a contract template to a currently newly generated project node based on its associated billing node and project information carrying the ticket.
6. The blockchain-based ticket binding method of claim 3, wherein in the project node generating step, the new project node verifies the authenticity and validity of the electronic ticket by a smart contract.
7. The blockchain-based ticket binding method of claim 1, wherein at the item node of the blockchain, a unique identifier of the current transaction is generated from the order of the bound ticket and subchain.
8. The blockchain-based ticket binding method of claim 7, wherein the unique identifier is stored in a database of the blockchain.
9. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor is capable of: a blockchain-based ticket binding method as in any of claims 1-8.
10. A ticket binding system comprising a processor, further comprising a computer readable storage medium as claimed in claim 9, a computer program on the computer readable storage medium being executable by the processor.
CN202310800790.0A 2023-06-30 2023-06-30 Bill binding method, medium and system based on blockchain Pending CN116980105A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310800790.0A CN116980105A (en) 2023-06-30 2023-06-30 Bill binding method, medium and system based on blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310800790.0A CN116980105A (en) 2023-06-30 2023-06-30 Bill binding method, medium and system based on blockchain

Publications (1)

Publication Number Publication Date
CN116980105A true CN116980105A (en) 2023-10-31

Family

ID=88475956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310800790.0A Pending CN116980105A (en) 2023-06-30 2023-06-30 Bill binding method, medium and system based on blockchain

Country Status (1)

Country Link
CN (1) CN116980105A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117892354A (en) * 2024-03-11 2024-04-16 云账户技术(天津)有限公司 Electronic receipt management method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117892354A (en) * 2024-03-11 2024-04-16 云账户技术(天津)有限公司 Electronic receipt management method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112686671B (en) Intelligent contract deployment method, device, equipment and medium based on block chain
CN116882994A (en) Method and system for providing authenticated, auditable and immutable input for intelligent contracts
CN111738725B (en) Cross-border resource transfer authenticity auditing method and device and electronic equipment
CN111444209B (en) Data processing method, device, equipment and medium based on block chain
CN110443075A (en) A kind of method and device of block chain intelligence contract verifying deployment
CN109951474A (en) A method of realizing that block chain is known together out block
CN110599323A (en) Resource processing method and processing equipment
CN110008716A (en) Block chain method of commerce and device, electronic equipment, storage medium
CN110264325A (en) A kind of invoice checking method and device based on block chain
CN112508565A (en) Guarantee financing method, system, equipment and storage medium based on block chain
CN112200646A (en) Material contract fund payment approval management system and method
CN110033370A (en) Account creation method and device, electronic equipment, storage medium
CN112053271B (en) Public service platform data evidence management method and system based on block chain
CN110597919A (en) Data management method, device and equipment based on block chain and storage medium
CN116980105A (en) Bill binding method, medium and system based on blockchain
CN111178887A (en) Distributed photovoltaic power generation and sale system and method based on block chain
CN108681553A (en) A kind of data processing method, device, terminal device and storage medium
CN109785021A (en) Charge calculation invoice system between a kind of electricity power enterprise and electric power enterprise
CN110245182B (en) Method, apparatus, device and medium for processing distributed data
CN110009323A (en) Block chain method of commerce and device, electronic equipment, storage medium
CN112258306A (en) Accounting information checking method and device, electronic equipment and storage medium
CN111209337A (en) Financial report generation system, method, device, equipment and medium based on block chain
CN116596551A (en) Supply chain product tracing method based on block chain, storage medium and electronic equipment
CN111292176A (en) Tax proxy method, device, electronic equipment and computer-readable storage medium
CN113643032A (en) Information processing method and device based on block chain and data management system

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