Electronic bill cancellation method based on blockchain
Technical background:
Blockchain technology: a distributed ledger technology with the characteristics of decentralization, openness and transparency, and fast data synchronization, which is widely used in multiple fields.
Application field: The application of blockchain technology in electronic bill management aims to improve the efficiency and security of electronic bill cancellation processing.
Invention content:
Cancellation method: A blockchain-based electronic bill cancellation method is proposed, which is applied to node devices in blockchain. The method includes the steps of monitoring cancellation transactions, determining the electronic bill entry status, updating the bill status or issuing a red bill.
Cancellation process: The process of canceling electronic bills is described in detail, including when monitoring the cancellation transaction, first determining whether the target electronic bill has completed the entry processing; if not, updating the bill status to be canceled; if completed, issuing the red bill to the blockchain for evidence.
Specific implementation:
Entry status judgment: Determine whether the electronic bill has completed the entry processing by maintaining the entry status of the electronic bill or querying whether the corresponding entry result is stored in the blockchain.
Reversal bill creation: Call the bill creation logic in the smart contract on the blockchain to create a reversal bill, and ensure that the amount of the reversal bill is opposite to the amount of the target electronic bill to achieve financial balance.
Status update and push: After the cancellation process, update the status of the electronic bill, and push the status change to the relevant parties, such as the bill issuer, to trigger further refund processing.
Smart contract application:
Verification logic: The cancellation verification logic and refund verification logic are declared in the smart contract to determine whether the electronic bill meets the cancellation or refund conditions.
Event monitoring: The node device further processes the cancellation or refund process of the electronic bill by monitoring the verification pass events generated by the smart contract.
System architecture and device:
System diagram: It shows the overall architecture of the blockchain-based electronic bill cancellation system, including key components such as blockchain, node devices, bill issuer, and bill recipient.
Device module: A blockchain-based electronic bill cancellation device is proposed, including a determination module, an update module, a creation module, and an indication module, which are responsible for different links in the cancellation process.
Illustrations:
Illustration content: The key contents such as the organization of blockchain account status data, the creation and calling process of smart contracts, and the cancellation process of electronic bills are explained in detail through multiple illustrations.
Claims:
Scope of protection: The specific claims for protection are clarified, including the specific steps, device modules, electronic devices and computer-readable storage media of the blockchain-based electronic bill cancellation method.
The document elaborates on the implementation principle, specific process and application scenarios of the blockchain-based electronic bill cancellation method and device, aiming to improve the efficiency and security of electronic bill management through blockchain technology.