CN117455487A - Block chain-based data processing method, device, equipment and readable storage medium - Google Patents

Block chain-based data processing method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN117455487A
CN117455487A CN202311477511.8A CN202311477511A CN117455487A CN 117455487 A CN117455487 A CN 117455487A CN 202311477511 A CN202311477511 A CN 202311477511A CN 117455487 A CN117455487 A CN 117455487A
Authority
CN
China
Prior art keywords
draft
pass
target
asset
field
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
CN202311477511.8A
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 CN202311477511.8A priority Critical patent/CN117455487A/en
Publication of CN117455487A publication Critical patent/CN117455487A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a data processing method, a device, equipment and a readable storage medium based on a blockchain, wherein the method comprises the following steps: receiving draft making transactions comprising draft receiving object information and draft service life, then calling draft passing contract to generate target draft passing according to draft making transactions, distributing chain ownership of the target draft passing to the draft receiving object information, and writing draft receiving object information and passing circulation state into a target asset deliverer field and a target passing circulation state field respectively; when the system time reaches the service life of the draft, and the through certificate circulation state is stored in the target through certificate circulation state field, and draft receiving object information is stored in the target asset delivery party field, the through certificate circulation state stored in the target through certificate circulation state field is replaced by the through certificate non-circulation state, and asset delivery prompt information is sent to the draft service side. By adopting the invention, timeliness and safety of the draft can be improved.

Description

Block chain-based data processing method, device, equipment and readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data processing method, apparatus, device and readable storage medium based on a blockchain.
Background
A draft (Money Order) is one of the most common types of notes that a drawer issues, and a payor pays unconditionally a determined amount of Money to a payee or ticket holder at the time of a meeting or on a specified date.
In international trade, a draft is one of the most widely used credit tools in settlement of international trade because of lack of trust, the buyer must pay for goods or make a promise of payment before obtaining the goods. However, in the conventional international bill transfer system, the transfer of the bill is usually performed by means of letter mailing, and mailing often requires a certain time for transfer, and may be affected by various factors on the way, such as weather, customs inspection, etc., resulting in delay and uncertainty of delivery, so that the timeliness and security of the conventional bill are very low.
Disclosure of Invention
The embodiment of the application provides a data processing method, device and equipment based on a blockchain and a readable storage medium, which can improve timeliness and security of a draft.
An aspect of an embodiment of the present application provides a data processing method based on a blockchain, including:
receiving a draft making transaction for a first asset sent by a draft service party; the draft making transaction includes draft face information; the draft face information includes draft receiving object information and draft service life;
according to draft making transaction, a draft passing contract is called, a target draft passing is generated through the draft passing contract, on-chain ownership of the target draft passing is distributed to draft receiving object information, the draft receiving object information is written into a target asset delivery person field in a target draft passing storage space, and a passing circulation state is written into a target passing circulation state field in the target draft passing storage space; the target draft passing card storage space is a draft passing card storage space bound with a target draft passing card identifier of the target draft passing card in the draft passing card contract;
when the system time reaches the service life of the draft, the circulation state stored in the target through certificate circulation state field is a through certificate circulation state, and the object information stored in the target asset delivery person field is draft receiving object information, replacing the through certificate circulation state stored in the target through certificate circulation state field with a through certificate non-circulation state, and sending asset delivery prompt information to a draft service side; the asset delivery prompt is used for indicating the draft service side to transfer the first asset to the draft receiving object corresponding to the draft receiving object information.
An aspect of an embodiment of the present application provides a data processing apparatus based on a blockchain, including:
the first receiving module is used for receiving a draft making transaction for the first asset, which is sent by the draft service side; the draft making transaction includes draft face information; the draft face information includes draft receiving object information and draft service life;
the pass processing module is used for calling a pass contract according to the draft making transaction, generating a target draft pass through the draft contract, distributing the on-chain ownership of the target draft pass to draft receiving object information, writing the draft receiving object information into a target asset delivery person field in a target draft pass storage space, and writing a pass circulation state into a target pass circulation state field in the target draft pass storage space; the target draft passing card storage space is a draft passing card storage space bound with a target draft passing card identifier of the target draft passing card in the draft passing card contract;
the delivery prompting module is used for replacing the general certificate circulation state stored in the target general certificate circulation state field with the general certificate non-circulation state when the system time reaches the service life of the draft and the circulation state stored in the target general certificate circulation state field is the general certificate circulation state and the object information stored in the target asset delivery person field is the draft receiving object information, and sending asset delivery prompting information to the draft service side; the asset delivery prompt is used for indicating the draft service side to transfer the first asset to the draft receiving object corresponding to the draft receiving object information.
Wherein, above-mentioned data processing apparatus still includes:
the communication flow module is used for receiving the communication flow request transaction; the pass transfer request transaction comprises pass transfer request object information, pass transfer object information and a target draft pass identifier;
the pass transfer module is also used for acquiring a target pass transfer state field and a target asset delivery person field in the draft pass contract according to a target draft pass identifier contained in the pass transfer request transaction;
the pass transfer module is further configured to read draft receiving object information from the target asset delivery person field if the transfer state stored in the target pass transfer state field is a pass transfer state;
and the pass transfer module is further used for transferring the on-chain ownership of the target draft pass of the draft receiving object information to the pass transfer object information and replacing the draft receiving object information stored in the target asset delivery person field with the pass transfer object information if the pass transfer request object information is the same as the draft receiving object information.
Wherein, above-mentioned data processing apparatus still includes:
the redemption prompting module is used for receiving the asset redemption transaction in advance; the asset pre-redemption transaction includes redemption object information, asset pre-redemption dates and target draft pass identifications;
The redemption prompting module is also used for acquiring a target currency state field and a target asset delivery person field in the currency notes contract according to a target currency notes identifier contained in the asset redemption transaction in advance;
the redemption prompting module is further used for reading draft receiving object information from the target asset delivery person field if the circulation state stored in the target through certificate circulation state field is the through certificate circulation state;
the redemption prompting module is further used for replacing the general certificate circulation state stored in the target general certificate circulation state field with a general certificate circulation suspension state if the redemption object information is the same as the draft receiving object information, determining the amount of the asset to be redeemed in advance according to the time relation among the asset amount of the first asset, the asset advanced redemption date and the draft service life, and sending asset advanced redemption information to the draft service side; the asset pre-redemption information is used for indicating the pre-redemption date of the asset by the draft service side, and transferring the pre-redemption asset corresponding to the pre-redemption asset amount to the draft receiving object corresponding to the draft receiving object information.
Wherein, above-mentioned data processing apparatus still includes:
the redemption verification module is used for receiving the asset advanced redemption verification information generated by the draft service side according to the asset advanced redemption information, and performing redemption verification on the asset advanced redemption verification information to obtain redemption verification results;
And the redemption verification module is further used for replacing the pass-through card pause circulation state stored in the target pass-through card circulation state field with the pass-through card circulation state and replacing the draft receiving object information stored in the target asset delivery person field with draft service side information corresponding to the draft service side if the redemption verification result is the redemption verification passing result.
Wherein, above-mentioned data processing apparatus still includes:
the redemption failure module is used for replacing the through certificate pause circulation state stored in the target through certificate circulation state field with a through certificate circulation state if the asset advanced redemption proof information generated by the draft service side according to the asset advanced redemption information is not received within a preset waiting period; and sending prompt information of early redemption failure to the draft receiving object.
The target draft pass storage space also comprises a target sub pass identification field and a target asset delivery amount field;
the above data processing apparatus further includes:
the amount storage module is used for taking the asset amount corresponding to the first asset as the target asset amount and storing the target asset amount into a target asset delivery amount field;
the pass splitting module is used for receiving a pass splitting request transaction sent by a draft receiving object aiming at a target draft pass; the pass splitting request transaction comprises at least two pass splitting object information and asset splitting amounts respectively corresponding to the at least two pass splitting object information; the sum of the asset splitting amounts respectively corresponding to the at least two pass splitting object information is equal to the target asset amount;
The pass splitting module is further used for carrying out pass splitting processing on the target draft pass according to at least two pass splitting object information and asset splitting amounts respectively corresponding to the at least two pass splitting object information to obtain at least two sub draft passes, and distributing chain ownership of the at least two sub draft passes to the at least two pass splitting object information respectively;
the first storage module is used for replacing the through certificate circulation state stored in the target through certificate circulation state field with a through certificate split state, replacing the target asset amount stored in the target asset delivery amount field with a default zero amount, and writing sub-draft through certificate identifiers respectively corresponding to at least two sub-draft through certificates into a target sub-through certificate identification field;
the second storage module is used for writing at least two pass splitting object information, asset splitting amounts, pass circulation states and target draft pass identifiers which correspond to the at least two pass splitting object information respectively into at least two sub draft pass storage spaces; the sub-draft pass storage space refers to a draft pass storage space bound with a sub-draft pass identifier in a draft pass contract.
Wherein, a sub draft pass storage space comprises a pass circulation status field, an asset delivery person field, an asset delivery amount field and a father pass identification field;
A second memory module comprising:
the traversing unit is used for traversing at least two pieces of the general certificate split object information and acquiring kth piece of general certificate split object information; the k-th pass splitting object information has the chain ownership of the k-th sub-draft pass;
the writing unit is used for writing the k-th pass splitting object information into an asset delivery person field in the k-th sub-draft pass storage space, writing the asset splitting amount corresponding to the k-th pass splitting object information into an asset delivery amount field in the k-th sub-draft pass storage space, writing the pass circulation state into a pass circulation state field in the k-th sub-draft pass storage space, and writing the target draft pass identification into a father pass identification field in the k-th sub-draft pass storage space; the kth sub-draft pass storage space refers to a draft pass storage space bound with the kth sub-draft pass identifier in the draft pass contract.
Wherein, above-mentioned data processing apparatus still includes:
the asset inquiry module is used for acquiring a target pass flow state field, a target asset delivery person field and a target asset delivery amount field from the draft contract according to the target draft pass contained in the asset delivery inquiry request when receiving an asset delivery inquiry request containing the target draft pass sent by the asset delivery inquiry object;
And the first reply module is used for determining draft receiving object information stored in the target asset delivery person field as asset delivery object information, determining target asset amount stored in the target asset delivery amount field as asset delivery amount information and sending the asset delivery object information and the asset delivery amount information to an asset delivery inquiry object if the circulation state stored in the target circulation state field is a circulation state of the through certificate.
Wherein, above-mentioned data processing apparatus still includes:
the second reply module is used for acquiring a target sub-pass identification field from the draft contract according to the target draft pass if the circulation state stored in the target pass circulation state field is the split state of the pass;
the second reply module is further configured to obtain at least two sub-draft pass storage spaces according to at least two sub-draft pass identifications stored in the target sub-pass identification field, determine at least two pass splitting object information stored in the at least two sub-draft pass storage spaces as asset delivery object information, determine asset splitting amounts respectively corresponding to the at least two pass splitting object information stored in the at least two sub-draft pass storage spaces as asset delivery amount information, and send the asset delivery object information and the asset delivery amount information to the asset delivery query object.
The target draft pass storage space also comprises a target ticket face information field;
the above data processing apparatus further includes:
the ticket face storage module is used for writing the ticket face information of the draft into a target ticket face information field in the target draft pass storage space;
the ticket face query module is used for acquiring a target ticket face information field from a ticket passing contract according to a target ticket passing identifier contained in the ticket query request when receiving a ticket query request containing the target ticket passing identifier sent by a ticket content query object;
and the ticket face query module is also used for transmitting the ticket face information of the draft stored in the target ticket face information field to the draft content query object.
Wherein, above-mentioned data processing apparatus still includes:
the authentication module is used for receiving a draft making request transaction sent by a draft initiating object; the draft making request transaction comprises draft making content information; the draft making content information comprises draft initiating object information, asset amount corresponding to the first asset and draft service side information;
the authentication module is also used for calling a draft passing contract according to the draft making request transaction, and performing authentication processing on draft initiating object information and the asset amount corresponding to the first asset in the draft passing contract to obtain an authentication result;
The authentication module is also used for generating an draft making request according to the draft making content information if the authentication result is an authentication passing result, and sending the draft making request to a draft service side; the draft request is for instructing the draft service party to generate a draft transaction for the first asset based on the draft content information.
In one aspect, a computer device is provided, including: a processor, a memory, a network interface;
the processor is connected to the memory and the network interface, where the network interface is used to provide a data communication network element, the memory is used to store a computer program, and the processor is used to call the computer program to execute the method in the embodiment of the present application.
In one aspect, embodiments of the present application provide a computer readable storage medium having a computer program stored therein, the computer program being adapted to be loaded by a processor and to perform a method according to embodiments of the present application.
In one aspect, the embodiments of the present application provide a computer program product or a computer program, where the computer program product or the computer program includes computer instructions, where the computer instructions are stored in a computer readable storage medium, and where a processor of a computer device reads the computer instructions from the computer readable storage medium, and where the processor executes the computer instructions, so that the computer device performs a method in an embodiment of the present application.
In the embodiment of the application, a draft making transaction for the first asset sent by a draft service side can be received, wherein the draft making transaction comprises draft face information, and the draft face information comprises draft receiving object information and draft service life; then, according to the draft issuing transaction, a draft passing contract is called, a target draft passing is generated through the draft passing contract, the chain ownership of the target draft passing is distributed to draft receiving object information, the draft receiving object information is written into a target asset delivery person field in a target draft passing storage space, a passing circulation state is written into a target passing circulation state field in the target draft passing storage space, and the target draft passing storage space refers to a draft passing storage space bound with a target draft passing identifier of the target draft passing in the draft passing contract; and finally, when the system time reaches the service life of the draft, the circulation state stored in the through certificate circulation state field is the through certificate circulation state, and the object information stored in the asset delivery person field is the draft receiving object information, replacing the through certificate circulation state stored in the through certificate circulation state field with the through certificate non-circulation state, and sending asset delivery prompt information to the draft service side. The asset delivery prompt information is used for indicating the draft service side to transfer the first asset to a draft receiving object corresponding to the draft receiving object information. According to the method provided by the embodiment of the application, the draft can be circulated in the form of the pass in the blockchain, the digitalization of the draft is realized, so that the timeliness of the draft is improved, the circulation state corresponding to the pass and the asset delivery object of the first asset related to the draft can be inquired in the pass contract, the condition that the asset is delivered to the wrong object when the service life of the draft is reached can be ensured, and the safety of the draft is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a network architecture according to an embodiment of the present application;
fig. 2a is a schematic diagram of an application scenario of a draft making request according to an embodiment of the present application;
fig. 2b is a schematic diagram of an application scenario for generating a draft pass according to an embodiment of the present application;
FIG. 2c is a schematic illustration of an application scenario for asset delivery provided by an embodiment of the present application;
FIG. 3 is a flowchart of a data processing method based on a blockchain according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a draft clearance contract provided by an embodiment of the present application;
FIG. 5 is a flow chart of a method for currency bill and currency document transfer based on blockchain according to an embodiment of the present application;
FIG. 6 is a flow chart of a blockchain-based method for pre-redemption of draft passes provided in an embodiment of the present application;
FIG. 7 is a schematic flow chart of a method for splitting a bill of exchange pass based on a blockchain according to an embodiment of the present application;
FIG. 8 is a block chain based data processing apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
For ease of understanding, the following simple explanation of partial nouns is first made:
1. blockchain (Block chain): in a narrow sense, the blockchain is a chain data structure taking a block as a basic unit, and the block uses a digital abstract to verify the transaction history acquired before, so that the blockchain is suitable for the requirements of tamper resistance and expandability in a distributed accounting scene; in a broad sense, blockchain also refers to distributed accounting techniques implemented by blockchain structures, including distributed consensus, privacy and security protection, point-to-point communication techniques, network protocols, smart contracts, and the like.
The goal of the blockchain is to implement a distributed data logging ledger that allows only additions and not deletions. The basic structure of the ledger floor is a linear linked list. The linked list is formed by serially connecting blocks, the Hash value of the preceding block is recorded in the following blocks, and whether each block (and the transaction in the block) is legal or not can be rapidly checked by calculating the Hash value. If a node in the network proposes to add a new block, a consensus acknowledgement must be made for the block via a consensus mechanism.
2. Block (block): the data packet carrying transaction data on the blockchain network is a data structure marked with a timestamp and a hash value corresponding to a preceding block, and the block verifies and confirms the transaction in the block through a consensus mechanism of the network. The Block includes a Block Header (Block Header) and a Block Body (Block Body), where the Block Header can record meta information of the current Block and includes data such as a current version number, a hash value corresponding to a previous Block, a timestamp, a random number, a hash value of a Merkle Root (Merkle Root), and the like. The block may record detailed data generated over a period of time, including all transaction records or other information generated during the creation of the block for which the current block is verified, and may be understood as a representation of the ledger. In addition, the detailed data of the block may include generating a unique Merkle Root record in the block header through a hash process of a Merkle Tree (Merkle Tree).
The successor Block, also called Parent Block (Parent Block), is a Block chain that performs temporal ordering by recording the hash value corresponding to the Block and the hash value corresponding to the Parent Block in the Block header.
3. Hash value (hash): also called information characteristic value or eigenvalue, hash value is generated by converting input data of arbitrary length into a password by hash algorithm and performing fixed output, and original input data cannot be retrieved by decrypting the hash value, which is a one-way encryption function. In a blockchain, each block (except the initial block) contains a hash value of the successor block, which is the potential core foundation and most important aspect in blockchain technology, which preserves the authenticity of the recorded and viewed data, as well as the integrity of the blockchain as a whole.
4. Smart Contract: the concept of intelligent contracts has three major elements of commitment, agreement and digital form, so that the application range of the blockchain can be expanded to all links of transaction, payment, settlement and clearing in the financial industry. Intelligent contracts refer to the immediate execution of corresponding contract terms when a pre-programmed condition is triggered, the working principle of which is similar to the if-then statement of a computer program.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a blockchain network according to an embodiment of the present application. The blockchain network as shown in fig. 1 may include, but is not limited to, a blockchain network to which the federated chain corresponds. The blockchain network may include a plurality of blockchain nodes, and the plurality of blockchain nodes may include a blockchain node 10a, a blockchain node 10b, a blockchain node 10c, a blockchain node 10d, …, and a blockchain node 10n. Each blockchain node can receive data sent by the outside during normal operation, perform blockchain uplink processing based on the received data, and also can send the data to the outside. To ensure data interworking between the various blockchain nodes, a data connection may exist between each blockchain node, such as between blockchain node 10a and blockchain node 10b, between blockchain node 10a and blockchain node 10c, and between blockchain node 10b and blockchain node 10 c.
It should be understood that the above data connection is not limited to a connection manner, and may be directly or indirectly connected through a wired communication manner, may be directly or indirectly connected through a wireless communication manner, and may also be connected through other connection manners, which is not limited herein.
It will be appreciated that data or block transfer may be performed between the blockchain nodes via the data connections described above. The blockchain network may implement data connection between blockchain nodes based on node identifiers, and for each blockchain node in the blockchain network, each blockchain node may store node identifiers of other blockchain nodes having a connection relationship with itself, so as to broadcast the acquired data or generated blocks to other blockchain nodes according to the node identifiers of the other blockchain nodes, for example, the blockchain node 10a may maintain a node identifier list as shown in table 1, where the node identifier list stores node names and node identifiers of the other nodes:
TABLE 1
Node name Node identification
Node 10a AAA.AAA.AAA.AAA
Node 10b BBB.BBB.BBB.BBB
Node 10c CCC.CCC.CCC.CCC
Node 10d DDD.DDD.DDD.DDD
Node 10n EEE.EEE.EEE.EEE
The node identifier may be any of a protocol (Internet Protocol, IP) address for interconnection between networks, and any other information that can be used to identify a node in a blockchain network, and the IP address is only illustrated in table 1. For example, the blockchain node 10a may send information (e.g., a block) to the blockchain node 10b through the node identification bbb.bbb.bbb.bbb.bbb, and the blockchain node 10b may determine that the information was sent by the blockchain node 10a through the node identification aaa.aaa.aaa.
In a blockchain, a block must be consensus-passed through consensus nodes in the blockchain network before the block is uplink, and the block can be added to the blockchain after the consensus passes. It will be appreciated that when a blockchain is used in some contexts of a government or commercial establishment, not all participating nodes in the blockchain (i.e., blockchain nodes in the blockchain network described above) have sufficient resources and necessity to become consensus nodes of the blockchain. For example, in the blockchain network shown in fig. 1, blockchain node 10a, blockchain node 10b, blockchain node 10c, and blockchain node 10d may be considered as consensus nodes in the blockchain network. The consensus nodes in the blockchain network participate in consensus, namely, consensus is carried out on the blocks (comprising a batch of transactions), namely, voting is carried out on the blocks; while non-consensus nodes do not participate in consensus, but will help propagate block and vote messages, and synchronize status with each other, etc.
As shown in fig. 1, any blockchain node in the blockchain network may receive a draft making transaction for a first asset sent by a draft server, where the draft making transaction includes draft face information, and the draft face information includes draft receiving object information and draft service life; then, the blockchain node may invoke a draft passing contract according to the draft issuing transaction, generate a target draft passing through the draft passing contract, assign on-chain ownership of the target draft passing to draft receiving object information, write the draft receiving object information into a target asset deliverer field in a target draft passing storage space, and write a passing-through state into a target passing-through state field in the target draft passing storage space. The target draft passing storage space refers to a draft passing storage space bound with a target draft passing identifier of the target draft passing in the draft passing contract. When the blockchain node determines that the system time reaches the draft service life, the circulation state stored in the pass circulation state field is a pass circulation state, and the object information stored in the asset delivery person field is draft receiving object information, the pass circulation state stored in the pass circulation state field can be replaced by a pass non-circulation state, and then asset delivery prompt information is sent to the draft service side, wherein the asset delivery prompt information is used for indicating the draft service side to transfer the first asset to a draft receiving object corresponding to the draft receiving object information.
It is understood that the data processing method provided in the embodiments of the present application may be performed by a computer device, including but not limited to the blockchain node (which may be a terminal or a server) described above. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligence platforms. The terminal may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc.
It is to be appreciated that embodiments of the present application may be applied to a variety of scenarios including, but not limited to, cloud technology, artificial intelligence, blockchain, intelligent driving, and the like.
It will be appreciated that in the specific embodiments of the present application, related data such as transaction data, status data, etc. are referred to, and when the above embodiments of the present application are applied to specific products or technologies, user permissions or consents need to be obtained, and the collection, use and processing of related data need to comply with related laws and regulations and standards of related countries and regions.
To facilitate understanding of the above-described implementation of the draft pass generation and asset delivery hints, please refer to fig. 2 a-2 c together. The blockchain node 21 shown in fig. 2 a-2 c may be any blockchain node in the blockchain network in the embodiment corresponding to fig. 1, for example, the blockchain node 21 may be the blockchain node 10b; the terminal device 20, the terminal device 22, and the terminal device 23 shown in fig. 2 a-2 c may be all terminal devices capable of performing data interaction with the blockchain node 21 to implement functions such as data uplink and on-chain data query; the terminal device 20 may be a terminal device associated with the importer a, the terminal device 22 may be a terminal device associated with a bank (or may be an intermediary enterprise trusted by both the importer a and the exporter B), and the terminal device 23 may be a terminal device associated with the exporter B.
Referring to fig. 2a, fig. 2a is a schematic diagram of an application scenario of a draft making request according to an embodiment of the present application. As shown in fig. 2a, assuming that importer a and exporter B are ready to conduct a cross-site transaction, the transaction contents are the importer purchasing goods c from exporter B at a price of 2000 yuan. Since the goods need a certain time to be transported across the ground, the interests of both parties can be guaranteed by making a draft to the bank (importer a can receive goods c and exporter B can receive 2000 yuan). After the goods c are sent from the location d of the exporter B for 10 months and 16 days, the exporter B can inform the importer a of the transportation information of the goods c, the importer a can determine an asset delivery date after estimating the transportation time of the goods c, the importer a can send a draft request transaction 201 to the blockchain node 21 through the associated terminal device 20, the draft request transaction 201 can include draft content information, such as identity information of the importer a and the exporter B, protocol content of the importer a and the exporter B, asset amount (i.e. 2000), draft service life (which may be abbreviated as 10/25) and the like, and after the importer a requests the transaction 201 together through the draft consensus, the blockchain node 21 can call the draft contract 211 to authenticate the importer a and the asset through the draft contract 211, for example, whether the importer a has the capability of being in the white list 2000 or not. If the authentication result is an authentication passing result, the blockchain node 21 may generate an draft request 212 according to draft content information, and then send the draft request 212 to a bank, and after receiving the draft request 212, the bank may generate a draft transaction for generating a draft pass for the 2000 yuan according to the draft content included in the draft request 212. The pass refers to the encrypted digital rights and interests evidence which can circulate in the blockchain, and the draft pass refers to the digital rights and interests evidence for representing draft. It will be appreciated that a draft is typically a ticket issued by a drawer (e.g., importer a), and a payor (e.g., bank) is commissioned to deliver a specified asset to a ticket holder (e.g., exporter B) unconditionally on a specified date, thus characterizing that an object has rights to acquire the specified asset from the payor on the specified date when the object has ownership of the chain of draft passes.
Further, referring to fig. 2b, fig. 2b is a schematic diagram of an application scenario for generating a draft pass according to an embodiment of the present application. As shown in fig. 2b, the bank may send a draft transaction 221, which may include draft face information, to the blockchain node 21 via the associated terminal device 22. After the blockchain nodes 21 together pass through the consensus of the draft making transaction 221 in other blockchain nodes (not shown in the figure) in the blockchain network, the draft pass contract 211 is called according to the draft making transaction 221, the draft pass x is generated through the draft pass 211, and the on-chain ownership of the draft pass x is distributed to the exporter B. Then, the blockchain node 21 stores the draft passing information corresponding to the draft passing x, as shown in fig. 2b, in the draft passing contract 211, a plurality of draft passing storage spaces, such as a draft passing storage space 211a, draft passing storage spaces 211b, …, and draft passing storage space 211n, where one draft passing storage space is used for storing draft passing information corresponding to one draft passing. Assuming that the blockchain node 21 stores the draft passing information corresponding to the draft passing x into the draft passing storage space 211b, as shown in fig. 2b, the draft passing storage space 211b may include a plurality of fields for storing different information, for example, the draft passing storage space 211b may include a space identifier field, an asset deliverer field, a ticket information field, and a passing circulation status field, and of course, other fields for storing other information may be constructed according to actual situations. The space identification field is used for storing a draft passing identification corresponding to the draft passing, the asset delivery person field is used for storing object information of assets to be delivered by a bank, namely object information with ownership on a draft passing x chain, the ticket face information field is used for storing draft face information, and the passing circulation state field is used for storing the draft passing in the current circulation state. Thus, as shown in fig. 2B, the blockchain node 21 may write the draft pass identification of the draft pass x in the space identification field in the draft pass storage space 211B, write the object information of the exporter B in the asset delivery field in the draft pass storage space 211B, write the draft face information corresponding to the draft pass x in the face information field in the draft pass storage space 211B, and write the pass circulation status in the draft pass storage space 211B, which is used to characterize that the exporter B may transfer the on-chain ownership of the draft pass x to other objects.
The blockchain node 21 then returns the provisioning result 213 to the terminal device 22. The issuing result 213 may include a generation result of the draft pass x, and a draft pass identifier corresponding to the draft pass x. After receiving the provisioning result 213, the terminal device 22 may forward the provisioning result 213 to the terminal device 20 associated with the importer a and the terminal device 23 associated with the exporter B. It may be appreciated that, after the draft passing identification corresponding to the draft passing identification x is obtained through the issuing result 213, whether it is the importer a or the exporter B, the draft inquiry request including the draft passing identification of the draft passing identification x may be sent to the blockchain node through the associated terminal device, and the blockchain node 21 may find the draft passing storage space 211B in the draft passing contract 211 according to the draft passing identification of the draft passing identification x in the draft inquiry request, and then acquire the draft face information from the face information field included therein and return the draft face information to the terminal device that initiates the draft inquiry request.
Further, referring to fig. 2c, fig. 2c is a schematic view of an application scenario of asset delivery according to an embodiment of the present application. In the draft face information corresponding to the draft pass, the term for which the payor needs to pay the asset to the payer and the term for which the payer needs to pay the asset to the bearer are usually agreed. It is assumed that in the draft face information corresponding to the draft pass x, it is agreed that the importer a needs to deliver the asset to the bank at and before 10 months 21, and as shown in fig. 2c, the importer a can transfer 2000 elements agreed by the draft pass x to the bank through its associated terminal device 20 at 10 months 21. In addition, in the draft face information corresponding to the draft pass x, it is also possible to agree that the bank needs to pay the assets transferred by the importer a to the ticket holder in the draft service life, that is, in 10 months and 25 days. It will be appreciated that the ticket holder at this point is not necessarily the exporter B, as the exporter B has the authority to transfer the on-chain ownership of the draft pass x to other objects, in other words, the time between the creation of the draft pass x and the date the bank needs to deliver the asset to the ticket holder is circulated over the blockchain. Therefore, as shown in fig. 2c, when the blockchain node 21 determines that the draft lifetime of the draft pass x is reached, the draft pass information may be read from the draft pass storage space 211B bound to the draft pass x in the draft pass contract 211, and if it is determined that the circulation state stored in the pass circulation state field is the pass circulation state, the object information stored in the asset deliverer field is read, and assuming that the object information stored at this time is the object information of the exporter B, the blockchain node 21 may update the circulation state stored in the pass circulation state field to the pass non-circulation state, and then generate the asset delivery hint information 214, and transmit the asset delivery hint information 214 to the terminal device 22 associated with the bank. The asset delivery prompt information 214 is used for prompting the object that the asset corresponding to the bank draft pass x arrives at the delivery date and needs to be delivered. As shown in fig. 2c, after the bank obtains the asset delivery prompt 214 through the associated terminal device 22, 2000 yuan can be transferred to the exporter B through the terminal device 22.
Therefore, in the method, the draft can be circulated in the blockchain in real time in a digital draft passing form, so that timeliness of the draft is improved, and in addition, draft passing information corresponding to the draft passing form, such as circulation state, asset delivery objects and the like, is recorded in the blockchain, so that conditions of one draft with multiple purposes or error delivery and the like can be prevented, and safety of the draft is improved.
Further, referring to fig. 3, fig. 3 is a flow chart of a data processing method based on a blockchain according to an embodiment of the present application. The method may be performed by a blockchain node (e.g., any of the blockchain nodes in the blockchain network in the embodiment of fig. 1 described above, such as blockchain node 10 a). The following will describe the method performed by the blockchain link point as an example, wherein the blockchain-based data processing method may at least include the following steps S101-S103:
step S101, receiving a draft making transaction for a first asset sent by a draft service side; the draft making transaction includes draft face information; the draft face information includes draft receiving object information and draft service life.
In particular, a draft is a common ticket issued by a drawer, which pays a determined amount unconditionally to a payee or ticket holder at the time of ticket witness or on a specified date. For example, in international trade, due to lack of trust, a buyer must pay money or make a promise of payment before obtaining goods, and use of a bond certificate, draft, which is a purpose of paying money and being able to circulate transfer, becomes a major settlement tool in international trade, and according to international convention, people generally use a long-term draft (also called international follow-up draft) to settle a transaction, which is a command for requesting an importer (drawer) or an agent thereof (payer) to pay a certain amount to an exporter (ticket holder) at a certain time. Taking an international draft as an example, the draft face information generally includes: the method may include the steps of a draft initiating object (i.e., a drawer, typically an importer or buyer, who commits to pay the asset), a draft receiving object (i.e., a ticket holder, typically an exporter or seller, who will have access to collect the asset in the future), a payment asset amount (i.e., the amount of the asset that the draft initiating object needs to pay to the draft receiving object, e.g., the amount of the asset is actually the amount paid when the asset is in currency), a payment date (i.e., the date the draft initiating object commits to pay the asset), a draft service (i.e., a payor, the object that the draft receiving object receives the asset), and a draft lifetime (i.e., the date the draft service pays the asset to the draft receiving object).
In particular, the draft service party refers to an object trusted by the draft initiating object to pay the first asset, typically a third party service platform trusted by the draft initiating object and the draft receiving object, for example, in an import-export business, the draft service party is typically a bank or an enterprise, and may also be the draft initiating object itself. In import-export business, traditional paper draft is required to be transferred in a mailing mode, so that the timeliness and the safety of the draft are low. In the application, the draft can be circulated on the blockchain in an electronic certificate passing mode, so that the digitalization of the international bill draft is realized, and the timeliness and the safety of the international bill draft are improved. Thus, after receiving the request for the draft of the first asset, the draft service side may send a draft transaction for the first asset to the blockchain node, and it may be understood that the draft transaction may include draft face information (i.e., some basic information of the draft, such as identity information of the draft service side, identity information of the draft initiating object, identity information of the draft receiving object, and asset amount information of the first asset, etc.) required for generating the draft pass.
Alternatively, the draft initiation request may be sent directly to the draft service party, but the draft service party is required to verify whether the draft initiation object has the authority to draft the draft, for example, whether the draft initiation object has the ability to pay the first asset. In order to save labor and time for the draft service party, authentication of the draft initiating object may be accomplished by block link points. After committing to pay the first asset to the draft receiving object, the draft initiating object may send a draft request transaction to the block link, the draft request transaction including draft content information including draft initiating object information, an asset amount corresponding to the first asset, and draft service side information. After receiving the draft making request transaction sent by the draft initiating object, the blockchain node can call a draft passing contract according to the draft making request transaction, and then perform authentication processing on the draft initiating object information and the asset amount corresponding to the first asset in the draft passing contract to obtain an authentication result; if the authentication result is an authentication passing result, generating a draft making request according to draft making content information, and sending the draft making request to a draft service side; the draft request is for instructing the draft service party to generate a draft transaction for the first asset based on the draft content information.
The method comprises the following steps of carrying out authentication processing on the bill initiating object information and the asset amount corresponding to the first asset in the bill passing contract to obtain a feasible implementation process of an authentication result, wherein the feasible implementation process can be as follows: obtaining an authorized object set, wherein the authorized object set can comprise object information of at least two authorized objects and asset conditions of each authorized object, traversing the authorized object set by a blockchain node according to draft initiating object information, if traversing to legal object information which is the same as draft initiating object information in the authorized object set, performing payment estimation according to asset conditions and asset amounts corresponding to first assets, namely estimating whether the first assets can be paid according to asset conditions of the draft initiating object, and if the estimation result is an estimation passing result, determining that the authentication result is an authentication passing result. For easy understanding, assuming that the object information is an object identification code, the authorized object set stores legal identification codes corresponding to authorized objects, the authorized object set 1 includes { xbz165, wqp, qpz }, where xbz165, wqb132, qpz901 respectively correspond to legal identification codes of one authorized object, the object identification code of the draft initiating object 2 extracted by the blockchain node from the draft request transaction is xyz468, then the blockchain node traverses the authorized object set 1 to find the identification code identical to xyz468, after traversing, the authorized object set 1 does not have the identification code identical to xyz468, and the service node determines that the draft initiating object 2 does not have the bill issuing authority, i.e. the authentication result is an authentication failure result. It will be appreciated that if the same identification code as xyz468 is found in the authorized object set 1, the block link point will determine if the asset instance of the draft initiating object 2 is capable of paying for the first asset and if so, the authentication result will be an authentication pass result.
Step S102, according to the draft issuing transaction, a draft passing contract is called, a target draft passing is generated through the draft passing contract, on-chain ownership of the target draft passing is distributed to the draft receiving object information, the draft receiving object information is written into a target asset delivery person field in a target draft passing storage space, and a passing and circulating state is written into a target passing and circulating state field in the target draft passing storage space.
Specifically, it will be appreciated that when the blockchain node receives a draft making transaction (other transactions mentioned in this application are the same as the draft making request transaction described above), it needs to confirm that the draft making transaction passes the consensus of the consensus node cluster in the blockchain network before executing the draft making transaction.
Specifically, after the target draft pass is generated, the block chain link point distributes the chain ownership of the target draft pass to draft receiving object information, or after the common identification of the common identification node is confirmed, the association relation between the pass identification of the target draft pass and the draft receiving object information is written into the block chain account book, and when the association relation between the pass identification of the target draft pass and the draft receiving object information is written into the block chain account book, the block chain node can determine that the chain ownership of the target draft pass is distributed to the draft receiving object information.
Specifically, the draft passing storage space is a storage address in a draft passing contract, one draft passing contract can contain a plurality of draft passing storage spaces, and one draft passing storage space can be used for storing draft passing information corresponding to one draft passing. It is understood that the target draft passing storage space refers to a draft passing storage space bound with a target draft passing identifier of the target draft passing in the draft passing contract, that is, a draft passing storage space used for storing draft passing information of the target draft passing in the draft passing contract.
Specifically, an assembly bill passing card storage space may include an asset deliverer field and a passing card circulation state field, where the asset deliverer field is used to store asset delivery object information corresponding to an asset delivery object that needs to be delivered by a final assembly bill service side, and the passing card circulation state field is used to store a current circulation state of an assembly bill passing card, for example, the current circulation state may be a passing card circulation state, which indicates that the assembly bill passing card may be circulated at this time, that is, transferred to other objects; the current circulation state can be a state that the pass can not circulate, which indicates that the pass of the draft can not circulate at the moment, and generally, when the pass of the draft reaches the service life of the draft, the blockchain node can determine that the pass of the draft is in the state that the pass can not circulate. It will be appreciated that the target asset deliverer field refers to an asset deliverer field in the target draft clearance storage space and the target clearance state field refers to a clearance state field in the target draft clearance storage space.
It will be appreciated that in practical applications, a draft passing card storage space may include a plurality of fields for storing draft passing card information with different attributes, that is, may include other fields besides an asset deliverer field and a passing card circulation status field, and the specific field design may be performed according to practical situations. In order to facilitate understanding of the structural relationships among the draft passing contract, the draft passing storage space and the fields contained therein, please refer to fig. 4, fig. 4 is a schematic diagram of a draft passing contract provided in the embodiment of the present application. The draft passing contract may be stored in a blockchain node (e.g., any blockchain node in the blockchain network described in the embodiment corresponding to fig. 1 above), and the draft passing contract 4 shown in fig. 4 mainly consists of four parts, namely, a role authority 41, a contract description 42, a draft passing container 43 and an operation log 44.
As shown in fig. 4, the role authority 41 is used to indicate the identity of an object, which may include a creator and manager of a draft contract, and an authorized object that allows an application to issue a draft. In a typical draft clearance system, the creator and manager of the contract may be an industrial and commercial administrative authority with draft administrative rights. The authorized objects that allow the application to make the draft are typically specified by the draft service party, and it is understood that the legal object information corresponding to the authorized objects may be stored in the authorized object set mentioned in the embodiment corresponding to fig. 3 above.
As shown in fig. 4, the contract description 42 is used to record the name, type, and total amount of the asset of the draft contract, for example, the contract name is draft, the contract category is draft contract, and the number of issued draft corresponds to the total amount of the asset.
As shown in fig. 4, the electronic bill container 43 is used for storing actual draft passing information, and includes a draft passing storage space 431, a draft passing storage space 432, and draft passing storage spaces 433 and …. Taking the draft pass storage space 433 as an example for the draft pass information storage explanation, the draft pass storage space 433 includes a space identification field 4331, an asset deliverer field 4332, a face information field 4333, a pass circulation status field 4334, an asset delivery amount field 4435, a child pass identification field 4336, and a parent pass identification field 4337. The space identifier field 4331 is used for recording the draft passing identifier, and it can be understood that the draft passing identifier corresponding to each draft passing is unique, that is, the draft passing identifiers corresponding to different draft passing identifiers are different, so that the draft passing identifier can distinguish the draft passing storage spaces corresponding to different draft passing identifiers. The asset deliverer field 4332 is used to record the owner information of the current draft pass, in other words, record the object information currently having ownership of the draft pass chain, that is, record the asset delivery object information corresponding to the asset delivery object that the draft service needs to deliver the asset when the draft lifetime is reached. The face information field 4333 is used to record face information of the draft. The through-card circulation status field 4334 is used for recording circulation status of the draft through-card, and by analyzing the bill circulation field 4334, whether the draft through-card can be circulated at present can be rapidly determined. Wherein the asset delivery amount field 4335 is used to record the amount of the asset that the draft service party needs to deliver to the asset delivery object. In addition, for some types of pass, splitting can be performed, splitting of pass can be based on splitting of asset amount, for example, asset amount to be delivered corresponding to pass 1 is 1000, today pass receiving object wants to split it into two parts on average, then pass 1 can be split into two parts on average on chain to obtain pass 2 and pass 3, asset amount to be delivered corresponding to pass 2 is 500, asset amount to be delivered corresponding to pass 3 is 500, at this time pass 2 and pass 3 can be referred to as child pass of pass 1, and pass 1 is parent pass of pass 2 and pass 3. Therefore, it can be understood that the sub-pass identification field 4336 is used to record the sub-draft pass identification (i.e. the pass identification corresponding to the sub-draft pass split by the draft pass), and if the current draft pass is not split, the sub-pass identification field 4336 may be empty. The parent pass identification field 4337 is used for recording a parent pass identification (i.e. a pass identification of a parent pass from which a draft pass is split), and if the current draft pass is directly generated by a draft pass contract and is not obtained by splitting other draft passes, the corresponding parent pass identification field 4337 may be empty.
As shown in fig. 4, the operation log 44 is used to record key operations in the draft ticket contract, including the assignment of contract role rights, creation of draft ticket and various changes to the flow, and associate these operations with blockchain transaction identifications.
Optionally, the object may query the data stored in any field in the corresponding draft pass storage space according to the draft pass identifier. For example, when the target draft passing storage space contains a target face information field, the block link point writes draft face information into the target face information field in the target draft passing storage space when generating the target draft passing. When the blockchain node receives a draft inquiry request which is sent by a draft content inquiry object and contains a target draft passing identification, acquiring a target ticket face information field from a draft passing contract according to the target draft passing identification contained in the draft inquiry request; and sending the draft face information stored in the target draft face information field to a draft content query object.
Step S103, when the system time reaches the service life of the draft, the circulation state stored in the target through certificate circulation state field is the through certificate circulation state, and the object information stored in the target asset delivery person field is the draft receiving object information, the through certificate circulation state stored in the target through certificate circulation state field is replaced by the through certificate non-circulation state, and asset delivery prompt information is sent to the draft service side.
Specifically, when the draft service life is reached, if the draft receiving object does not transfer the chain ownership of the target draft to other objects, then the draft passing information stored in the target draft passing storage space in the draft passing contract will not be changed, at this time, when the system time is determined to reach the draft service life, the circulation state read from the target draft circulation state field is still the first stored draft circulation state, and the object information read from the target asset deliverer field is still the draft receiving object information, so the asset delivery prompt information generated by the block chain point is used for indicating the draft service side to transfer the first asset to the draft receiving object corresponding to the draft receiving object information.
Optionally, if the draft receiving object performs some operations based on the target draft pass before the draft service period is reached, for example, the draft receiving object transfers the on-chain ownership of the target draft pass to other objects, and the blockchain node updates the target asset deliverer field, as described in the embodiment corresponding to fig. 5 below; for another example, when the draft receiving object performs asset redemption to the draft service side in advance, the blockchain node updates the target asset deliverer field and the target through certificate circulation status field, which can be described in the following embodiment corresponding to fig. 6; for another example, when the target draft pass is split, the blockchain node updates the target asset deliverer field and the target pass flow status field, as described in the embodiment corresponding to fig. 7 below. In short, after some operations are performed by the draft receiving object based on the target draft passing, the blockchain node may update the draft passing information stored in the target draft passing storage space according to the operation result. Therefore, when the blockchain node determines that the system time reaches the draft service life, the circulation state stored in the through card circulation state field is read first, and only when the read circulation state is determined to be the through card circulation state, the object information stored in the target through card circulation state field is continuously read, the read object information is determined to be the asset delivery object information, and then asset delivery prompt information aiming at the asset delivery object information is generated for reminding a draft service side to transfer the first asset to the asset delivery object corresponding to the asset delivery object information.
By adopting the method provided by the embodiment of the application, the draft can be issued on the blockchain in the form of the pass, not only can the draft data be prevented from being tampered by the blockchain technology, but also the pass of the draft can be realized. In addition, the method and the system for managing the bill of exchange pass have the advantages that the bill of exchange pass contract is standardized, so that the bill of exchange pass is issued and operated more normally, a role authority system of the bill of exchange pass and a data maintenance mode of the bill of exchange pass are constructed through the bill of exchange pass contract, the management of the whole life cycle of the bill of exchange pass can be realized while the business requirements of creation, circulation and the like of the bill of exchange pass are met, the tracing and maintenance of an asset delivery object are guaranteed, and the uniqueness and the safety of the bill of exchange pass are guaranteed.
Further, referring to fig. 5, fig. 5 is a flow chart of a bill of exchange through-card circulation method based on blockchain according to an embodiment of the present application. The method may be performed by a blockchain node (e.g., any of the blockchain nodes in the blockchain network in the embodiment of fig. 1 described above, such as blockchain node 10 a). The following is an example of the implementation of the present method by blockchain node 500. As shown in fig. 5, before the implementation of the draft passing method, the draft passing storage space 5001 in the blockchain node 500 stores information about draft passing identified as a draft passing identification x, specifically: the space identifier field stores a draft pass identifier x, the asset delivery field stores draft receiving object information, and the pass transfer field stores a pass transfer state, and it is understood that the draft pass storage space 5001 may also include other fields, but the method does not involve data reading and updating of other fields, and therefore is not shown. How the related information of the draft pass is stored in the draft pass storage space 5001 can be referred to the description of the embodiment corresponding to fig. 3, and the description is omitted here. As shown in fig. 5, the blockchain-based data processing method may at least include the following steps S201 to S204:
Step S201, receiving a certificate circulation request transaction; the pass flow request transaction comprises pass flow request object information, pass flow object information and a target draft pass identifier.
Specifically, the token circulation request object information refers to identity information of a token circulation request object, wherein the token circulation request object refers to a user who wants to perform on-chain ownership transfer operation of a target draft token. As shown in fig. 5, assuming that the terminal device 50 corresponding to the pass transfer request object wants to transfer a draft pass identified as a draft pass identification x to the pass transfer object, the terminal device 50 obtains the pass transfer request object information of the pass transfer request object, the pass transfer object information of the pass transfer object, and the target draft pass identification (i.e., draft pass identification x), generates a pass transfer request transaction, and sends the transaction to the blockchain node 500.
Step S202, a target currency state field and a target asset delivery person field in the draft currency contract are obtained according to the target draft currency identifier contained in the currency request transaction.
Specifically, after the blockchain node 500 obtains the pass transfer request transaction, a target draft pass identifier (i.e., a draft pass identifier x) is extracted from the pass transfer request transaction, and then, the blockchain node 500 searches, in a draft pass container of a draft pass contract, a draft pass identifier stored in a space identifier field for a target draft pass storage space of the target draft pass identifier, as a draft pass storage space corresponding to the draft pass requested to transfer. As shown in fig. 6, the draft passing card storage space corresponding to the draft passing card requested to be circulated, that is, the target draft passing card storage space may be the target draft passing card storage space 5001. Further, the blockchain node 500 may determine a passthrough circulation status field in the target draft passthrough storage space as the target passthrough circulation status field and an asset deliverer field in the target draft passthrough storage space as the target passthrough circulation status field.
Step S203, if the circulation status stored in the target through-certificate circulation status field is the through-certificate circulation status, the draft receiving object information is read from the target asset delivery person field.
In particular, blockchain node 500 needs to verify a priori whether the flow state stored in the target flow state field is a flow state that is flow-enabled, if the circulation state stored in the target pass circulation state field is a pass circulation state, the target draft pass is not split or is previously honored or other conditions occur, and circulation can be performed on the blockchain.
Step S204, if the pass transfer request object information is the same as the draft receiving object information, transferring the on-chain ownership of the target draft passing through the draft receiving object information to the pass transfer object information, and replacing the draft receiving object information stored in the target asset delivery person field with the pass transfer object information.
Specifically, after determining that the target draft pass can be passed, the blockchain node 500 needs to verify the pass-through request object information first, and determines that the pass-through request object information has chain ownership of the target draft pass. Accordingly, the blockchain node 500 may read the draft receiving object information from the target asset deliverer field in the target draft pass storage space corresponding to the target draft pass and then compare the pass flow request object information with the draft receiving object information. If the draft receiving object information and the through-certificate circulation request object information are the same, the verification of the through-certificate circulation request object information is passed, and the blockchain node 500 may transfer the on-chain ownership of the target draft through-certificate possessed by the draft receiving object information to the through-certificate circulation object information through the draft through-certificate contract. It will be appreciated that transferring the on-chain ownership of the target draft pass through to the through-flow object information included in the draft receiving object information requires a consensus process through a consensus network (i.e., a network formed by consensus nodes in the block chain network in the embodiment corresponding to fig. 1 described above), and the transfer of the on-chain ownership of the target draft pass through included in the draft receiving object information to the through-flow object information is acknowledged by each block link point in the entire blockchain. The blockchain node 500 may then update the target draft pass storage space, i.e., update the target asset deliverer field it contains. As shown in fig. 5, after the blockchain node 500 updates the draft pass storage 5001, the data stored in the other fields in the draft pass storage 5001 are not changed, but the draft receiving object information stored in the asset deliverer field is updated to pass through the object information.
Optionally, the blockchain node 500 invokes the draft passing contract to complete the transfer of the on-chain ownership of the target draft passing with the draft receiving object information to the passing object information, and the update of the target draft passing storage space, and may also write into the operation log of the draft passing contract, so as to facilitate the subsequent review.
By adopting the method provided by the embodiment of the application, after the target draft passes, the new asset delivery object can be checked at any time in the target draft pass storage space, so that all conditions of one draft and multiple persons are avoided, and the safety of draft passes is improved.
Further, referring to fig. 6, fig. 6 is a flowchart of a method for pre-redemption of a bill of exchange card based on blockchain according to an embodiment of the present application. The method may be performed by a blockchain node (e.g., any of the blockchain nodes in the blockchain network in the embodiment of fig. 1 described above, such as blockchain node 10 a). The following description will be given by way of example of the present method being performed by blockchain node 600. As shown in fig. 6, before the draft passing method is executed, related information of a draft passing card identified as a draft passing card identification x is stored in a draft passing card storage space 6001 in the blockchain node 600, specifically: the space identifier field stores a draft pass identifier x, the asset delivery field stores draft receiving object information, and the pass transfer field stores a pass transfer state, and it is understood that the draft pass storage space 6001 may also include other fields, but the method does not involve data reading and updating of other fields, and is therefore not shown. How the information related to the draft pass is stored in the draft pass storage space 6001 can be referred to the description of the embodiment corresponding to fig. 3, and the description is omitted here. The following description will be given by taking the implementation of the method by the blockchain node 600 as an example, where the blockchain-based data processing method may at least include the following steps S301 to S306:
Step S301, receiving an asset early redemption transaction; the asset pre-redemption transaction includes redemption object information, asset pre-redemption dates, and target draft pass identifications.
Specifically, the redemption object information refers to identity information of the redemption object, where the redemption object refers to a user who wants to acquire an asset associated with a draft pass in advance, and it should be noted that, in general, the draft service side allows the draft holder to apply for acquiring the asset associated with the draft in advance when the draft service life is not reached, but at this time, the draft service side generally needs to collect a part of the asset associated with the draft as a commission or draw. As shown in fig. 6, assuming that the redemption object corresponding to the terminal device 60 wants to redeem the asset associated with the draft pass identification as the draft pass identification x in advance, the terminal device 60 obtains the redemption object information of the redemption object, the asset redemption date in advance, and the target draft pass identification (i.e., draft pass identification x), generates an asset redemption transaction in advance, and sends the asset redemption transaction to the blockchain node 600.
Step S302, a target currency state field and a target asset delivery person field in the draft currency contract are obtained according to the target draft currency identification contained in the asset pre-redemption transaction.
Specifically, after the blockchain node 600 obtains the asset pre-redemption transaction, the target draft pass identifier (i.e., the draft pass identifier x) is extracted from the asset pre-redemption transaction, and then, the blockchain node 600 searches, in the draft pass container of the draft pass contract, for a target draft pass storage space in which the draft pass identifier stored in the space identifier field is also the target draft pass identifier, as a draft pass storage space corresponding to the draft pass requesting to embody the redeemed asset. As shown in fig. 6, the draft pass storage space corresponding to the draft pass of the request for the advance redemption of the asset, that is, the target draft pass storage space may be the target draft pass storage space 6001. Further, blockchain node 600 may determine a passthrough circulation status field in the target draft passthrough storage space as the target passthrough circulation status field and an asset deliverer field in the target draft passthrough storage space as the target passthrough circulation status field.
Step S303, if the circulation status stored in the target through-certificate circulation status field is a through-certificate circulation status, reading draft receiving object information from the target asset delivery person field.
Specifically, the blockchain node 600 needs to verify whether the circulation state stored in the target currency state field is a currency state or not, and if the circulation state stored in the target currency state field is a currency state, it indicates that the target draft currency is not split or previously redeemed or other situations occur, and the target draft can be redeemed in advance.
And step S304, if the redemption object information is the same as the draft receiving object information, replacing the through certificate circulation state stored in the target through certificate circulation state field with a through certificate circulation suspension state, determining the pre-redemption asset amount according to the time relation among the asset amount of the first asset, the pre-redemption date of the asset and the draft service life, and transmitting the pre-redemption information of the asset to a draft service side.
Specifically, after the blockchain node 600 verifies that the redemption object information is successful, the currency-capable circulation state stored in the target currency circulation state field is replaced with the currency-suspended circulation state, because a certain time is required for transferring the money order service to the money order receiving object to the assets that are redeemed in advance, the target money order can be prevented from being repeatedly redeemed or transferred in the time by modifying the currency-suspended circulation state. As shown in fig. 6, at this time, the circulation state stored in the target through-card circulation state field, that is, the through-card circulation state field of the draft through-card storage space 6001 is the through-card suspension circulation state.
Specifically, after updating the target currency status field, blockchain node 600 may determine the pre-redemption asset amount based on the time relationship between the asset amount of the first asset, the pre-redemption date of the asset, and the draft lifetime, and send the pre-redemption information for the asset to the draft service. The method comprises the steps that the asset pre-redemption information is used for indicating an draft service party to transfer pre-redemption assets corresponding to the pre-redemption asset amount to draft receiving objects corresponding to draft receiving object information on the pre-redemption date of the assets. Wherein one possible embodiment of determining the pre-redemption asset amount based on the time relationship between the asset amount of the first asset, the pre-redemption date of the asset and the draft lifetime may be: determining the number of unit time between the pre-redemption date of the asset and the service life of the draft, determining the corresponding amount of unit time of each unit time, multiplying the amount of unit time by the number of unit time to obtain the pre-deducted asset amount, and subtracting the asset amount of the first asset from the pre-deducted asset amount to obtain the pre-redemption asset amount. The unit time can be one hour or one day, and the unit time amount can be set according to actual conditions.
And step S305, receiving the asset early redemption verification information generated by the draft service side according to the asset early redemption information, and performing redemption verification on the asset early redemption verification information to obtain a redemption verification result.
Specifically, the asset pre-redemption proof information is proof information for proving that the draft service side has transferred the asset corresponding to the pre-redemption asset amount to the draft receiving object. For example, the asset early redemption proof information may be a transfer serial number, through which the blockchain node 600 may query a corresponding transfer order and a transfer initiator and a transfer receiver, and if it is determined that the transfer amount is an early redemption asset amount and the transfer initiator is a transfer ticket initiator and the transfer receiver is a transfer receiving object, it may be determined that the redemption verification result is a redemption verification passing result.
And step S306, if the redemption verification result is a redemption verification passing result, replacing the pass suspension circulation state stored in the target pass circulation state field with the pass circulation state, and replacing the draft receiving object information stored in the target asset delivery field with draft service side information corresponding to the draft service side.
Specifically, when the redemption verification result is determined to be the redemption verification passing result, the blockchain node 600 may replace the certificate suspension state stored in the target certificate transfer state field with a certificate transfer state, and replace the draft receiving object information stored in the target asset deliverer field with draft server information corresponding to the draft server. As shown in fig. 6, at this time, the data stored in the asset deliverer field in the draft pass storage space 6001 is the draft service side information, and the pass circulation state field is the pass circulation state, which means that the draft service side can transfer the draft pass corresponding to the draft pass identifier x before the draft service life arrives, or can directly acquire the first asset when the draft service life arrives, and does not deliver the first asset to other people.
Optionally, if the asset advanced redemption proof information generated by the draft service side according to the asset advanced redemption information is not received within the preset wait period, the blockchain node 600 may replace the through certificate suspension circulation state stored in the target through certificate circulation state field with a through certificate circulation state; and sending prompt information of early redemption failure to the draft receiving object.
By adopting the method provided by the embodiment of the application, after the redemption object initiates the advance redemption of the target money order card, the circulation state of the target money order card can be updated into the card passing suspension circulation state, so that the target money order card can be temporarily locked, the advance redemption transaction or the card passing circulation request transaction of the asset aiming at the target money order card is repeatedly initiated when the asset of the target money order card is subjected to the advance redemption transaction, the condition of one ticket with multiple purposes is avoided, and the security of the money order card is improved.
Further, referring to fig. 7, fig. 7 is a flow chart of a bill of exchange and license splitting method based on blockchain according to an embodiment of the present application. The method may be performed by a blockchain node (e.g., any of the blockchain nodes in the blockchain network in the embodiment of fig. 1 described above, such as blockchain node 10 a). The following description will exemplify the execution of the present method by blockchain node 700. As shown in fig. 7, before the implementation of the draft passing method, the draft passing storage space 7001 in the blockchain node 700 stores information about a draft passing with a draft passing identifier being a draft passing identifier x, specifically: the space identification field stores draft pass identification x, the asset delivery person field stores draft receiving object information, the pass circulation field stores pass circulation state, the son pass identification field is empty, the father pass identification field is empty, and the asset delivery amount field stores asset amount 2000. It will be appreciated that the draft pass storage 7001 may also include other fields, but no data reading or updating of other fields is involved in the method and is therefore not shown. How the related information of the draft pass is stored in the draft pass storage space 7001 can be referred to the description of the corresponding embodiment of fig. 3, and the description thereof will not be repeated here. The following description will take the present method performed by the blockchain node 700 as an example, where the blockchain-based data processing method may at least include the following steps S401-S404:
Step S401, receiving a pass splitting request transaction sent by a draft receiving object aiming at a target draft pass; the pass splitting request transaction comprises at least two pass splitting object information and asset splitting amounts respectively corresponding to the at least two pass splitting object information; and the sum of the asset splitting amounts respectively corresponding to the at least two certificate splitting object information is equal to the target asset amount.
Specifically, the object of draft receiving, that is, the object currently having ownership of the chain of the target draft passing cards, may apply for splitting the target draft passing cards, where the draft passing cards obtained after splitting are sub draft passing cards of the target draft passing cards, and the sum of the asset splitting data corresponding to the sub draft passing cards should be equal to the target asset amount corresponding to the target draft passing cards. Wherein the target asset amount is an asset amount of the first asset corresponding to the target draft pass. As shown in fig. 7, the draft receiving object corresponding to the terminal device 70 wants to split the draft pass as the draft pass identifier x, split the draft pass into a sub-draft pass with a corresponding amount of 1200 and a sub-draft pass with a corresponding amount of 800, transfer the sub-draft pass with a corresponding amount of 1200 to the pass splitting object 1, transfer the sub-draft pass with a corresponding amount of 800 to the pass splitting object 2, respond to the operation of the draft receiving object, obtain at least two pass splitting object information of the draft receiving object information and asset splitting amounts corresponding to the at least two pass splitting object information respectively, that is, pass splitting object information 1 corresponding to the pass splitting object 1, pass splitting object information 2 corresponding to the pass splitting object 2, and 1200 corresponding to the pass splitting object information 1 and 800 corresponding to the pass splitting object information 2, and then generate a pass splitting request transaction, and send the transaction to the block chain node 700.
And step S402, carrying out pass splitting treatment on the target draft pass according to the at least two pass splitting object information and the asset splitting amount respectively corresponding to the at least two pass splitting object information to obtain at least two sub draft passes, and respectively distributing the chain ownership of the at least two sub draft passes to the at least two pass splitting object information.
Specifically, it can be understood that before the process of issuing a pass splitting, the blockchain node 700 needs to verify whether the draft receiving object information included in the pass splitting request transaction has the on-chain ownership of the target draft passing and whether the circulation state of the target draft passing is a circulation state, and the verification process can refer to the verification process of the pass circulating request object information and the target pass circulation state field in the embodiment corresponding to fig. 5, which is not described herein.
Specifically, the blockchain node 700 may implement splitting of the target draft pass according to the pass splitting function in the draft pass contract, after obtaining at least two sub draft passes, allocate the on-chain ownership of the at least two sub draft passes to the consensus process that the at least two pass splitting object information needs to pass through the consensus network (i.e. the network formed by the consensus nodes in the blockchain network in the embodiment corresponding to fig. 1 described above), and the at least two pass splitting object information has the on-chain ownership of the at least two sub draft passes respectively and is only acknowledged by each blockchain link point in the whole blockchain.
Step S403, the through certificate circulation state stored in the target through certificate circulation state field is replaced by the through certificate split state, the target asset amount stored in the target asset delivery amount field is replaced by the default zero amount, and the sub-draft through certificate identifications respectively corresponding to the at least two sub-draft through certificates are written into the target sub-through certificate identification field.
Specifically, after the on-chain ownership allocation of the sub-draft pass is completed, the blockchain node 700 may update the target draft pass storage space first. As shown in fig. 7, after the blockchain node 700 updates the target draft pass storage space, that is, the draft pass storage space 7001, the data stored in the other fields in the draft pass storage space 7001 is not changed, but the pass circulation status field is updated to be in a split status for passing the license, the asset delivery amount field is updated to be 0 (a feasible default zero amount), and the draft pass identification y and the draft pass identification x are written in the sub pass identification field.
Step S404, writing the at least two pass splitting object information, the asset splitting amount corresponding to the at least two pass splitting object information, the pass-through and circulation state and the target draft pass-through identification into at least two sub draft pass-through storage spaces; the sub-draft pass storage space refers to a draft pass storage space bound with a sub-draft pass identifier in a draft pass contract.
Specifically, after the on-chain ownership allocation of the sub-draft passes is completed, the blockchain node 700 also needs to record draft pass information for each sub-draft pass. The structure of a sub-draft pass storage space can be the same as that of a target draft pass storage space, and the sub-draft pass storage space can comprise a pass circulation state field, an asset delivery person field, an asset delivery amount field and a father pass identification field; one possible embodiment of writing at least two pass splitting object information, an asset splitting amount, a pass rotatable state, and a target draft pass identifier corresponding to the at least two pass splitting object information into at least two sub draft pass storage spaces may be: traversing at least two pieces of pass splitting object information to obtain kth pass splitting object information; the k-th pass splitting object information has the chain ownership of the k-th sub-draft pass; writing the k-th pass splitting object information into an asset deliverer field in the k-th sub-pass storage space, writing the asset splitting amount corresponding to the k-th pass splitting object information into an asset delivery amount field in the k-th sub-pass storage space, writing the pass-through circulation state into a pass-through circulation state field in the k-th sub-pass storage space, and writing the target pass-through identification into a father pass-through identification field in the k-th sub-pass storage space; the kth sub-draft pass storage space refers to a draft pass storage space bound with the kth sub-draft pass identifier in the draft pass contract.
As shown in fig. 7, the blockchain node 700 may write draft pass information of a draft pass identified as a draft pass of the draft pass identification y into the draft pass storage space 7002 in an idle state, then, in the draft pass storage space 7002, the space identification field stores the draft pass identification y, the asset deliverer field stores the pass split object information 1, the pass circulation state field stores the pass circulation state field, the asset delivery amount field stores the asset amount 1200, the child pass identification field is empty, and the parent pass identification field stores the draft pass identification x. Then, the blockchain node 700 may write the draft pass information of the draft pass identified as the draft pass of the draft pass identification z into the draft pass storage space 7003 in the idle state, then, in the draft pass storage space 7003, the space identification field stores the draft pass identification z, the asset deliverer field stores the pass split object information 2, the pass circulation state field stores the pass circulation state field, the asset delivery amount field stores the asset amount 800, the child pass identification field is empty, and the father pass identification field stores the draft pass identification x.
Optionally, when an asset delivery inquiry request including a target draft passing card sent by an asset delivery inquiry object is received, a target passing card circulation state field, a target asset deliverer field and a target asset delivery amount field are obtained from the draft contract according to the target draft passing card included in the asset delivery inquiry request; if the transfer state stored in the target pass transfer state field is a pass transfer state, determining draft receipt object information stored in the target asset deliverer field as asset delivery object information, determining a target asset amount stored in the target asset delivery amount field as asset delivery amount information, and transmitting the asset delivery object information and the asset delivery amount information to an asset delivery query object. For example, assuming that before the execution of step S401, the blockchain node 700 receives the asset delivery inquiry request including the draft pass identification x sent by the asset delivery inquiry object, then the blockchain node 700 may acquire the draft pass storage space 7001 according to the draft pass identification x, at which time the circulation state stored in the pass circulation state field in the draft pass storage space 7001 is the pass circulation state, the blockchain node 700 may determine draft receipt object information stored in the asset deliverer field in the draft pass storage space 7001 as asset delivery object information, and determine 2000 stored in the draft pass storage space 7001 as asset delivery amount information.
Optionally, if the circulation state stored in the target pass circulation state field is a split state of pass, acquiring a target sub pass identification field from the draft contract according to the target draft pass; according to at least two sub-draft pass identifications stored in the target sub-pass identification field, at least two sub-draft pass storage spaces are obtained, at least two pass splitting object information stored in the at least two sub-draft pass storage spaces is determined to be asset delivery object information, asset splitting amounts respectively corresponding to the at least two pass splitting object information stored in the at least two sub-draft pass storage spaces are determined to be asset delivery amount information, and the asset delivery object information and the asset delivery amount information are sent to an asset delivery inquiry object. For example, after the execution of step S404 is completed, when the blockchain node 700 receives an asset delivery inquiry request including a draft pass identification x sent by an asset delivery inquiry object, the blockchain node 700 may acquire the draft pass storage space 7001 according to the draft pass identification x, at this time, the flow state stored in the draft pass flow state field in the draft pass storage space 7001 is in the split state, and the blockchain node 700 may acquire the draft pass storage space 7002 and the draft pass storage space 7003 according to the draft pass identification y and the draft pass identification z stored in the sub-pass identification field in the draft pass storage space 7001, respectively, and then determine the draft split object information 1 stored in the asset deliverer field in the draft pass storage space 7002 and the draft pass object information 2 stored in the asset deliverer field in the draft pass storage space 7003 as asset delivery object information, and determine the asset amount stored in the asset split amount field 1200 in the draft pass storage space 7002 and the asset delivery amount information stored in the draft pass storage space 7003 as asset delivery amount information 800.
According to the method provided by the embodiment of the application, the draft pass can be split in the blockchain network to obtain the sub draft pass corresponding to different asset splitting amounts respectively, so that the draft receiving object can flexibly process the first asset corresponding to the draft pass conveniently, the draft receiving object can be divided into multiple parts and simultaneously distributed to multiple people, and flexibility and convenience of draft use are improved.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a data processing apparatus based on a blockchain according to an embodiment of the present application. The data processing apparatus 1 may be a computer program (comprising program code) running on a computer device, for example the data processing apparatus 1 is an application software; the data processing apparatus 1 may be adapted to perform the respective steps of the data processing method provided in the embodiments of the present application. As shown in fig. 8, the data processing apparatus 1 may include: a first receiving module 101, a certification processing module 102 and a delivery prompting module 103.
A first receiving module 101, configured to receive a draft making transaction for a first asset sent by a draft service party; the draft making transaction includes draft face information; the draft face information includes draft receiving object information and draft service life;
The pass processing module 102 is configured to invoke a pass contract according to a draft making transaction, generate a target draft pass through the draft contract, allocate on-chain ownership of the target draft pass to draft receiving object information, write the draft receiving object information into a target asset deliverer field in a target draft pass storage space, and write a pass-through state into a target pass-through state field in the target draft pass storage space; the target draft passing card storage space is a draft passing card storage space bound with a target draft passing card identifier of the target draft passing card in the draft passing card contract;
a delivery prompting module 103, configured to replace the through-card conveyable state stored in the target through-card conveyable state field with the through-card non-conveyable state when it is determined that the system time reaches the draft service life, the circulation state stored in the target through-card conveyable state field is the through-card conveyable state, and the object information stored in the target asset delivery person field is the draft receiving object information, and send asset delivery prompting information to the draft server; the asset delivery prompt is used for indicating the draft service side to transfer the first asset to the draft receiving object corresponding to the draft receiving object information.
The specific implementation manner of the first receiving module 101, the certification processing module 102, and the delivery prompting module 103 may refer to the description of step S101 to step S103 in the embodiment corresponding to fig. 3, and will not be repeated here.
Wherein, the above-mentioned data processing apparatus 1, further include: the pass flow module 104.
The certificate circulation module 104 is configured to receive a certificate circulation request transaction; the pass transfer request transaction comprises pass transfer request object information, pass transfer object information and a target draft pass identifier;
the currency conversion module 104 is further configured to obtain a target currency conversion status field and a target asset deliverer field in a draft currency contract according to a target draft identifier included in the currency conversion request transaction;
the pass transfer module 104 is further configured to read draft receipt object information from the target asset deliverer field if the transfer state stored in the target pass transfer state field is a pass transfer state;
the pass transfer module 104 is further configured to transfer, if the pass transfer request object information is the same as the draft receiving object information, the on-chain ownership of the target draft pass included in the draft receiving object information to the pass transfer object information, and replace the draft receiving object information stored in the target asset deliverer field with the pass transfer object information.
The specific implementation manner of the certificate circulation module 104 may refer to the description of step S201 to step S204 in the embodiment corresponding to fig. 5, and the description is not repeated here.
Wherein, the above-mentioned data processing apparatus 1, further include: redemption alert module 105.
A redemption hint module 105 for receiving an asset pre-redemption transaction; the asset pre-redemption transaction includes redemption object information, asset pre-redemption dates and target draft pass identifications;
the redemption prompting module 105 is further configured to obtain a target currency status field and a target asset deliverer field in the draft currency contract according to a target draft currency identifier included in the asset pre-redemption transaction;
the redemption prompting module 105 is further configured to read draft receiving object information from the target asset deliverer field if the circulation status stored in the target through-card circulation status field is a through-card circulation status;
the redemption prompting module 105 is further configured to, if the redemption object information is the same as the draft receiving object information, replace the through-certificate-rotatable state stored in the target through-certificate-rotatable state field with a through-certificate-rotatable state, determine an asset amount for advanced redemption according to a time relationship between the asset amount of the first asset, the asset advanced redemption date and the draft service life, and send asset advanced redemption information to the draft service side; the asset pre-redemption information is used for indicating the pre-redemption date of the asset by the draft service side, and transferring the pre-redemption asset corresponding to the pre-redemption asset amount to the draft receiving object corresponding to the draft receiving object information.
The specific implementation of the redemption prompting module 105 may refer to the description of step S301 to step S304 in the embodiment corresponding to fig. 6, which is not described herein.
Wherein, the above-mentioned data processing apparatus 1, further include: redemption verification module 106.
The redemption verification module 106 is configured to receive asset advanced redemption verification information generated by the draft service side according to the asset advanced redemption information, perform redemption verification on the asset advanced redemption verification information, and obtain a redemption verification result;
the redemption verification module 106 is further configured to replace the certificate suspension circulation status stored in the target certificate circulation status field with a certificate circulation status, and replace the draft receiving object information stored in the target asset deliverer field with draft service side information corresponding to the draft service side if the redemption verification result is a redemption verification passing result.
The specific implementation of the redemption verification module 106 may refer to the description of step S305-step S306 in the embodiment corresponding to fig. 6, which is not repeated here.
Wherein, the above-mentioned data processing apparatus 1, further include: redemption failure module 107.
A redemption failure module 107, configured to replace the through certificate suspension circulation state stored in the target through certificate circulation state field with a through certificate circulation state if the asset advanced redemption proof information generated by the draft service side according to the asset advanced redemption information is not received within a preset waiting period; and sending prompt information of early redemption failure to the draft receiving object.
The specific implementation of the redemption failure module 107 may refer to the optional description of step S306 in the embodiment corresponding to fig. 6, which is not described herein.
The target draft pass storage space also comprises a target sub pass identification field and a target asset delivery amount field;
the data processing apparatus 1 further includes: an amount storage module 108, a certification splitting module 109, a first storage module 110 and a second storage module 111.
An amount storage module 108, configured to store the target asset amount in the target asset delivery amount field with the asset amount corresponding to the first asset as the target asset amount;
the pass splitting module 109 is configured to receive a pass splitting request transaction sent by a draft receiving object for a target draft pass; the pass splitting request transaction comprises at least two pass splitting object information and asset splitting amounts respectively corresponding to the at least two pass splitting object information; the sum of the asset splitting amounts respectively corresponding to the at least two pass splitting object information is equal to the target asset amount;
the pass splitting module 109 is further configured to perform pass splitting processing on the target draft pass according to at least two pass splitting object information and asset splitting amounts respectively corresponding to the at least two pass splitting object information, obtain at least two sub draft passes, and allocate chain ownership of the at least two sub draft passes to the at least two pass splitting object information respectively;
The first storage module 110 is configured to replace the through-card rotatable state stored in the target through-card rotatable state field with a through-card split state, replace the target asset amount stored in the target asset delivery amount field with a default zero amount, and write sub-draft through-card identifiers corresponding to at least two sub-draft through-cards respectively into the target sub-through-card identifier field;
a second storage module 111, configured to write at least two pass splitting object information, an asset splitting amount, a pass circulation state, and a target draft pass identifier corresponding to the at least two pass splitting object information, respectively, into at least two sub draft pass storage spaces; the sub-draft pass storage space refers to a draft pass storage space bound with a sub-draft pass identifier in a draft pass contract.
The specific implementation manner of the amount storage module 108, the certification splitting module 109, the first storage module 110 and the second storage module 111 may refer to the description of step S401 to step S404 in the embodiment corresponding to fig. 7, and will not be described herein.
Wherein, a sub draft pass storage space comprises a pass circulation status field, an asset delivery person field, an asset delivery amount field and a father pass identification field;
The second storage module 111 includes: traversing unit 1111 and writing unit 1112.
A traversing unit 1111, configured to traverse at least two pieces of the certificate splitting object information and obtain kth certificate splitting object information; the k-th pass splitting object information has the chain ownership of the k-th sub-draft pass;
a writing unit 1112, configured to write the k-th clearance splitting object information into an asset deliverer field in the k-th sub-draft clearance storage space, write the asset splitting amount corresponding to the k-th clearance splitting object information into an asset delivery amount field in the k-th sub-draft clearance storage space, write the clearance-rotatable status into a clearance-rotatable status field in the k-th sub-draft clearance storage space, and write the target draft clearance identification into a father clearance identification field in the k-th sub-draft clearance storage space; the kth sub-draft pass storage space refers to a draft pass storage space bound with the kth sub-draft pass identifier in the draft pass contract.
The specific implementation manner of the traversing unit 1111 and the writing unit 1112 may refer to the description of step S404 in the embodiment corresponding to fig. 7, and the description is not repeated here.
Wherein, the above-mentioned data processing apparatus 1, further include: the asset inquiry module 112 and the first reply module 113.
The asset inquiry module 112 is configured to, when receiving an asset delivery inquiry request including a target draft pass sent by an asset delivery inquiry object, acquire a target draft pass flow status field, a target asset deliverer field, and a target asset delivery amount field from a draft contract according to the target draft pass included in the asset delivery inquiry request;
and the first reply module 113 is configured to determine draft receiving object information stored in the target asset delivery person field as asset delivery object information, determine a target asset amount stored in the target asset delivery amount field as asset delivery amount information, and send the asset delivery object information and the asset delivery amount information to the asset delivery query object if the circulation status stored in the target circulation status field is a circulation status.
The specific implementation manner of the asset query module 112 and the first reply module 113 may refer to the optional description of step S404 in the embodiment corresponding to fig. 7, which is not described herein.
Wherein, the above-mentioned data processing apparatus 1, further include: a second reply module 114.
A second reply module 114, configured to obtain a target sub-pass identifier field from the draft contract according to the target draft pass if the circulation status stored in the target pass circulation status field is a split status of the pass;
The second reply module 114 is further configured to obtain at least two sub-draft pass storage spaces according to at least two sub-draft pass identifications stored in the target sub-pass identification field, determine at least two pass splitting object information stored in the at least two sub-draft pass storage spaces as asset delivery object information, determine asset splitting amounts respectively corresponding to the at least two pass splitting object information stored in the at least two sub-draft pass storage spaces as asset delivery amount information, and send the asset delivery object information and the asset delivery amount information to the asset delivery query object.
The specific implementation of the second reply module 114 may refer to the optional description of step S404 in the embodiment corresponding to fig. 7, which is not repeated here.
The target draft pass storage space also comprises a target ticket face information field;
the data processing apparatus 1 further includes: the ticket storage module 115 and the ticket query module 116.
The ticket face storage module 115 is configured to write the ticket face information of the draft into a target ticket face information field in a target draft pass storage space;
the ticket face query module 116 is configured to, when receiving a draft query request including a target draft pass identifier sent by a draft content query object, obtain a target ticket face information field from a draft pass contract according to the target draft pass identifier included in the draft query request;
The face query module 116 is further configured to send the face information of the draft stored in the target face information field to the draft content query object.
The detailed implementation manner of the ticket storage module 115 and the ticket query module 116 may refer to the optional description of step S102 in the embodiment corresponding to fig. 3, which is not described herein.
Wherein, the above-mentioned data processing apparatus 1, further include: an authentication module 117.
An authentication module 117 for receiving a draft making request transaction transmitted by a draft initiating object; the draft making request transaction comprises draft making content information; the draft making content information comprises draft initiating object information, asset amount corresponding to the first asset and draft service side information;
the authentication module 117 is further configured to invoke a draft passing contract according to the draft issuing request transaction, and perform authentication processing on the draft initiating object information and the asset amount corresponding to the first asset in the draft passing contract to obtain an authentication result;
the authentication module 117 is further configured to generate an draft making request according to the draft making content information if the authentication result is an authentication passing result, and send the draft making request to the draft service side; the draft request is for instructing the draft service party to generate a draft transaction for the first asset based on the draft content information.
The specific implementation of the authentication module 117 may refer to the optional description of step S101 in the embodiment corresponding to fig. 3, which is not repeated here.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 9, the data processing apparatus 1 in the embodiment corresponding to fig. 8 described above may be applied to a computer device 1000, and the computer device 1000 may include: processor 1001, network interface 1004, and memory 1005, and in addition, the above-described computer device 1000 may further include: a user interface 1003, and at least one communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display (Display), a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface, among others. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1005 may also optionally be at least one storage device located remotely from the processor 1001. As shown in fig. 9, an operating system, a network communication module, a user interface module, and a device control application may be included in a memory 1005, which is one type of computer-readable storage medium.
In the computer device 1000 shown in fig. 9, the network interface 1004 may provide a network communication network element; while user interface 1003 is primarily used as an interface for providing input to a user; and the processor 1001 may be used to invoke a device control application stored in the memory 1005 to implement:
receiving a draft making transaction for a first asset sent by a draft service party; the draft making transaction includes draft face information; the draft face information includes draft receiving object information and draft service life;
according to draft making transaction, a draft passing contract is called, a target draft passing is generated through the draft passing contract, on-chain ownership of the target draft passing is distributed to draft receiving object information, the draft receiving object information is written into a target asset delivery person field in a target draft passing storage space, and a passing circulation state is written into a target passing circulation state field in the target draft passing storage space; the target draft passing card storage space is a draft passing card storage space bound with a target draft passing card identifier of the target draft passing card in the draft passing card contract;
when the system time reaches the service life of the draft, the circulation state stored in the target through certificate circulation state field is a through certificate circulation state, and the object information stored in the target asset delivery person field is draft receiving object information, replacing the through certificate circulation state stored in the target through certificate circulation state field with a through certificate non-circulation state, and sending asset delivery prompt information to a draft service side; the asset delivery prompt is used for indicating the draft service side to transfer the first asset to the draft receiving object corresponding to the draft receiving object information.
It should be understood that the computer device 1000 described in the embodiments of the present application may perform the description of the data processing method in any of the foregoing embodiments corresponding to any of fig. 3, 5, 6, and 7, and will not be repeated herein. In addition, the description of the beneficial effects of the same method is omitted.
Furthermore, it should be noted here that: the embodiments of the present application further provide a computer readable storage medium, in which the aforementioned computer program executed by the data processing apparatus 1 is stored, and the computer program includes program instructions, when executed by the processor, can execute the description of the data processing method in any of the embodiments corresponding to fig. 3, 5, 6, and 7, and therefore, the description will not be repeated here. In addition, the description of the beneficial effects of the same method is omitted. For technical details not disclosed in the embodiments of the computer-readable storage medium according to the present application, please refer to the description of the method embodiments of the present application.
The computer readable storage medium may be the data processing apparatus provided in any one of the foregoing embodiments or an internal storage unit of the computer device, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash card (flash card) or the like, which are provided on the computer device. Further, the computer-readable storage medium may also include both internal storage units and external storage devices of the computer device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
Furthermore, it should be noted here that: embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium and executes the computer instructions to cause the computer device to perform the method provided by any of the corresponding embodiments of fig. 3, 5, 6, 7, previously described.
The terms first, second and the like in the description and in the claims and drawings of the embodiments of the present application are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the term "include" and any variations thereof is intended to cover a non-exclusive inclusion. For example, a process, method, apparatus, article, or device that comprises a list of steps or elements is not limited to the list of steps or modules but may, in the alternative, include other steps or modules not listed or inherent to such process, method, apparatus, article, or device.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied as electronic hardware, as a computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of network elements in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether these network elements are implemented in hardware or software depends on the specific application and design constraints of the solution. The skilled person may use different methods for implementing the described network elements for each specific application, but such implementation should not be considered beyond the scope of the present application.
The foregoing disclosure is only illustrative of the preferred embodiments of the present application and is not intended to limit the scope of the claims herein, as the equivalent of the claims herein shall be construed to fall within the scope of the claims herein.

Claims (15)

1. A blockchain-based data processing method, comprising:
receiving a draft making transaction for a first asset sent by a draft service party; the draft making transaction includes draft face information; the draft face information includes draft receiving object information and draft service life;
according to the draft issuing transaction, a draft passing contract is called, a target draft passing is generated through the draft passing contract, the on-chain ownership of the target draft passing is distributed to the draft receiving object information, the draft receiving object information is written into a target asset deliverer field in a target draft passing storage space, and a passing circulation state is written into a target passing circulation state field in the target draft passing storage space; the target draft passing card storage space is a draft passing card storage space bound with a target draft passing card identifier of the target draft passing card in the draft passing card contract;
When the system time reaches the service life of the draft, the circulation state stored in the target through certificate circulation state field is the through certificate circulation state, and the object information stored in the target asset delivery person field is the draft receiving object information, the through certificate circulation state stored in the target through certificate circulation state field is replaced by the through certificate non-circulation state, and asset delivery prompt information is sent to the draft service side; the asset delivery prompt message is used for indicating the draft service side to transfer the first asset to a draft receiving object corresponding to the draft receiving object message.
2. The method as recited in claim 1, further comprising:
receiving a pass flow request transaction; the pass flow request transaction comprises pass flow request object information, pass flow object information and the target draft pass identifier;
acquiring the target currency status field and the target asset delivery person field in the draft currency contract according to the target draft currency identification contained in the currency request transaction;
if the circulation state stored in the target pass circulation state field is the pass circulation state, reading the draft receiving object information from the target asset delivery person field;
And if the pass flow request object information is the same as the draft receiving object information, transferring the on-chain ownership of the target draft passing through card of the draft receiving object information to the pass flow object information, and replacing the draft receiving object information stored in the target asset delivery person field with the pass flow object information.
3. The method as recited in claim 1, further comprising:
receiving an asset redemption transaction in advance; the asset pre-redemption transaction includes redemption object information, asset pre-redemption dates and the target draft pass identification;
acquiring the target currency status field and the target asset deliverer field in the draft currency contract according to the target draft currency identification contained in the asset pre-redemption transaction;
if the circulation state stored in the target pass circulation state field is the pass circulation state, reading the draft receiving object information from the target asset delivery person field;
if the redemption object information is the same as the draft receiving object information, replacing the through certificate circulation state stored in the target through certificate circulation state field with a through certificate suspension circulation state, determining an early redemption asset amount according to the asset amount of the first asset, the early redemption date of the asset and the time relation between the draft service life, and sending asset early redemption information to the draft service side; the asset pre-redemption information is used for indicating the draft service side to transfer the pre-redemption asset corresponding to the pre-redemption asset amount to the draft receiving object corresponding to the draft receiving object information on the asset pre-redemption date.
4. A method according to claim 3, further comprising:
receiving asset early redemption verification information generated by the draft service side according to the asset early redemption information, and performing redemption verification on the asset early redemption verification information to obtain a redemption verification result;
and if the redemption verification result is a redemption verification passing result, replacing the pass suspension circulation state stored in the target pass circulation state field with the pass circulation state, and replacing the draft receiving object information stored in the target asset delivery person field with draft service side information corresponding to the draft service side.
5. A method according to claim 3, further comprising:
if the asset pre-redemption proof information generated by the draft service side according to the asset pre-redemption information is not received within a preset waiting period, replacing the through certificate pause circulation state stored in the target through certificate circulation state field with the through certificate circulation state; and sending prompt information of early redemption failure to the draft receiving object.
6. The method of claim 1, wherein the target draft clearance storage space further comprises a target sub-clearance identification field and a target asset delivery amount field;
The method further comprises the steps of:
taking the asset amount corresponding to the first asset as a target asset amount, and storing the target asset amount into the target asset delivery amount field;
receiving a pass splitting request transaction sent by the draft receiving object aiming at the target draft pass; the pass splitting request transaction comprises at least two pass splitting object information and asset splitting amounts respectively corresponding to the at least two pass splitting object information; the sum of the asset splitting amounts respectively corresponding to the at least two pass splitting object information is equal to the target asset amount;
performing pass splitting treatment on the target draft pass according to the at least two pass splitting object information and the asset splitting amount respectively corresponding to the at least two pass splitting object information to obtain at least two sub draft passes, and respectively distributing chain ownership of the at least two sub draft passes to the at least two pass splitting object information;
replacing the through certificate transferable state stored in the target through certificate transfer state field with a through certificate split state, replacing the target asset amount stored in the target asset delivery amount field with a default zero amount, and writing sub-draft through certificate identifiers respectively corresponding to the at least two sub-draft through certificates into the target sub-through certificate identifier field;
Writing the at least two pass splitting object information, the asset splitting amount corresponding to the at least two pass splitting object information, the pass-through and circulation state and the target draft pass identifier into at least two sub draft pass storage spaces; the sub-draft passing storage space refers to a draft passing storage space bound with a sub-draft passing identifier in the draft passing contract.
7. The method of claim 6, wherein a sub-draft pass storage space includes a pass flow status field, an asset delivery person field, an asset delivery amount field, and a parent pass identification field;
the writing of the at least two pass split object information, the asset split amount corresponding to the at least two pass split object information, the pass-through circulation state and the target draft pass identifier into at least two sub draft pass storage spaces includes:
traversing the at least two pieces of pass splitting object information to obtain kth pass splitting object information; the k-th pass splitting object information has the chain ownership of the k-th sub-draft pass;
writing the k-th pass splitting object information into an asset delivery person field in a k-th sub-pass storage space, writing an asset splitting amount corresponding to the k-th pass splitting object information into an asset delivery amount field in the k-th sub-pass storage space, writing the pass-through circulation state into a pass circulation state field in the k-th sub-pass storage space, and writing the target pass identification into a father pass identification field in the k-th sub-pass storage space; the kth sub-draft passing storage space refers to a draft passing storage space bound with the kth sub-draft passing identification in the draft passing contract.
8. The method as recited in claim 6, further comprising:
when an asset delivery inquiry request containing the target draft passing card sent by an asset delivery inquiry object is received, acquiring the target draft passing card circulation state field, the target asset deliverer field and the target asset delivery amount field from the draft contract according to the target draft passing card contained in the asset delivery inquiry request;
and if the circulation state stored in the target pass circulation state field is the pass circulation state, determining the draft receiving object information stored in the target asset delivery person field as asset delivery object information, determining the target asset amount stored in the target asset delivery amount field as asset delivery amount information, and transmitting the asset delivery object information and the asset delivery amount information to the asset delivery inquiry object.
9. The method as recited in claim 8, further comprising:
if the circulation state stored in the target pass circulation state field is the split state of the pass, acquiring the target sub-pass identification field from the draft contract according to the target draft pass;
According to at least two sub-draft pass identifications stored in the target sub-draft pass identification field, acquiring at least two sub-draft pass storage spaces, determining at least two pass splitting object information stored in the at least two sub-draft pass storage spaces as asset delivery object information, determining asset splitting amounts respectively corresponding to the at least two pass splitting object information stored in the at least two sub-draft pass storage spaces as asset delivery amount information, and transmitting the asset delivery object information and the asset delivery amount information to the asset delivery query object.
10. The method of claim 1, wherein the target draft pass storage space further comprises a target face information field;
the method further comprises the steps of:
writing the draft face information into a target face information field in the target draft pass storage space;
when receiving a draft inquiry request which is sent by a draft content inquiry object and contains the target draft passing identification, acquiring the target ticket face information field from the draft passing contract according to the target draft passing identification contained in the draft inquiry request;
And sending the draft face information stored in the target draft face information field to the draft content query object.
11. The method as recited in claim 1, further comprising:
receiving an draft making request transaction sent by a draft initiating object; the draft making request transaction comprises draft making content information; the draft making content information comprises draft initiating object information, asset amount corresponding to a first asset and draft service side information;
invoking the draft passing contract according to the draft issuing request transaction, and carrying out authentication processing on the draft initiating object information and the asset amount corresponding to the first asset in the draft passing contract to obtain an authentication result;
if the authentication result is an authentication passing result, generating an draft making request according to the draft making content information, and sending the draft making request to the draft service side; the draft making request is used for instructing the draft service side to generate draft making transaction for the first asset according to the draft making content information.
12. A blockchain-based data processing device, comprising:
The first receiving module is used for receiving a draft making transaction for the first asset, which is sent by the draft service side; the draft making transaction includes draft face information; the draft face information includes draft receiving object information and draft service life;
the pass processing module is used for calling a pass contract according to the draft making transaction, generating a target draft pass through the draft contract, distributing the on-chain ownership of the target draft pass to the draft receiving object information, writing the draft receiving object information into a target asset delivery person field in a target draft pass storage space, and writing a pass-through circulation state into a target pass circulation state field in the target draft pass storage space; the target draft passing card storage space is a draft passing card storage space bound with a target draft passing card identifier of the target draft passing card in the draft passing card contract;
a delivery prompting module, configured to replace the through certificate conveyable state stored in the target through certificate conveyable state field with a through certificate non-conveyable state when it is determined that the system time reaches the draft service life, the circulation state stored in the target through certificate conveyable state field is the through certificate conveyable state, and the object information stored in the target asset delivery person field is the draft receiving object information, and send asset delivery prompting information to the draft service side; the asset delivery prompt message is used for indicating the draft service side to transfer the first asset to a draft receiving object corresponding to the draft receiving object message.
13. A computer device, comprising: a processor, a memory, and a network interface;
the processor is connected to the memory, the network interface for providing data communication functions, the memory for storing program code, the processor for invoking the program code to perform the method of any of claims 1-11.
14. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program adapted to be loaded by a processor and to perform the method of any of claims 1-11.
15. A computer program product comprising computer programs/instructions which, when executed by a processor, are adapted to carry out the method of any one of claims 1-11.
CN202311477511.8A 2023-11-07 2023-11-07 Block chain-based data processing method, device, equipment and readable storage medium Pending CN117455487A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311477511.8A CN117455487A (en) 2023-11-07 2023-11-07 Block chain-based data processing method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311477511.8A CN117455487A (en) 2023-11-07 2023-11-07 Block chain-based data processing method, device, equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN117455487A true CN117455487A (en) 2024-01-26

Family

ID=89592704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311477511.8A Pending CN117455487A (en) 2023-11-07 2023-11-07 Block chain-based data processing method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN117455487A (en)

Similar Documents

Publication Publication Date Title
US20230360036A1 (en) Blockchain-implemented method and system for access control on remote internet-enabled resources
TWI829626B (en) Blockchain-based method and system for specifying the recipient of an electronic communication
CN110620810B (en) Non-linked ownership of continuous asset transfer over blockchain
KR101987692B1 (en) Registry and Automation Management Methods for Smart Contracts in Blockchain Enforcement
TWI716140B (en) Data processing method and device based on blockchain
Baird et al. Hedera: A governing council & public hashgraph network
US20190130394A1 (en) Systems and Methods to Validate Transactions For Inclusion in Electronic Blockchains
KR20190099076A (en) Electronic bill management methods, devices and recording media
CN110998631A (en) Distributed account book technology
US20150095243A1 (en) Online-id-handling computer system and method
US20220156837A1 (en) Distributed ledger implementation for entity formation and monitoring system
CN110599348B (en) Method, device, equipment and storage medium for stock right incentive
CN112613877B (en) Intelligent contract triggering method and device applied to block chain network and related equipment
CN111383114A (en) Asset information management method and device based on block chain
CN111292174A (en) Tax payment information processing method and device and computer readable storage medium
CN111095863A (en) Block chain based system and method for communicating, storing and processing data over a block chain network
CN111402033A (en) Asset information management method and device based on block chain
CN111324661A (en) User cooperation method, device and medium based on block chain
CN115310920A (en) Management method, device and storage medium for cross-chain interoperation management based on governance chain
CN110784324B (en) Node admission method and device
CN112400298B (en) Verification transaction system and method for adding to an electronic blockchain
CN110727735A (en) Method, device and equipment for cooperatively completing task event based on block chain technology
CN117455487A (en) Block chain-based data processing method, device, equipment and readable storage medium
CN112837043B (en) Block chain-based data processing method and device and electronic equipment
CN117291595A (en) Block chain-based data processing method, device, equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication