CN111899022B - Transaction information management method, device, equipment and computer readable storage medium - Google Patents

Transaction information management method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN111899022B
CN111899022B CN202010793586.7A CN202010793586A CN111899022B CN 111899022 B CN111899022 B CN 111899022B CN 202010793586 A CN202010793586 A CN 202010793586A CN 111899022 B CN111899022 B CN 111899022B
Authority
CN
China
Prior art keywords
supply
information
purchasing
account
contract identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010793586.7A
Other languages
Chinese (zh)
Other versions
CN111899022A (en
Inventor
梁伟道
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Qianhai Star Chain Zhongying Technology Co.,Ltd.
Original Assignee
Shenzhen Qianhai Star Tonghui Technology 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 Shenzhen Qianhai Star Tonghui Technology Co ltd filed Critical Shenzhen Qianhai Star Tonghui Technology Co ltd
Priority to CN202010793586.7A priority Critical patent/CN111899022B/en
Publication of CN111899022A publication Critical patent/CN111899022A/en
Priority to PCT/CN2021/111584 priority patent/WO2022028621A1/en
Application granted granted Critical
Publication of CN111899022B publication Critical patent/CN111899022B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3823Payment protocols; Details thereof insuring higher security of transaction combining multiple encryption tools for a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Data Mining & Analysis (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Security & Cryptography (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a transaction information management method, which comprises the following steps: when purchasing information which is uploaded by a purchasing account and contains a purchasing contract identifier is received, encrypting the purchasing information by using the purchasing contract identifier, and storing the encrypted purchasing information in a purchasing block corresponding to the purchasing account; when receiving supply information which is uploaded by a supply account and contains a supply contract identifier, judging whether the purchase contract identifier is matched with the supply contract identifier; if the purchase contract identification is matched with the supply contract identification, storing the supply information in a supply block corresponding to the supply account; and establishing a purchasing alliance chain according to the purchasing block and the supply block. The invention also discloses a transaction information management device, equipment and a computer readable storage medium. The invention improves the authenticity of the transaction.

Description

Transaction information management method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of blockchain, and in particular, to a method, an apparatus, a device and a computer-readable storage medium for managing transaction information.
Background
As is known, the block chaining technique is a chained data structure that combines data in a time-sequential manner by using cryptography as a guarantee. The blocks in the block chain are related through summary information, the head of each block comprises the summary information of the previous block, and all the blocks which are linked together can be ensured to be arranged in sequence through the summary information.
Because the blockchain has the characteristics of decentralization, openness, autonomy, anonymity, information non-falsification and the like, the blockchain can be understood as a worldwide distributed account book, if the blockchain technology is applied to transaction authenticity management, the method is helpful for improving the authenticity of transactions and provides great help for government organs, financial institutions and purchasing industries.
Disclosure of Invention
The invention mainly aims to provide a transaction information management method, aiming at solving the technical problem of how to improve the authenticity of a transaction through a alliance chain.
In addition, in order to achieve the above object, the present invention further provides a transaction information management method, including the steps of:
when purchasing information which is uploaded by a purchasing account and contains a purchasing contract identifier is received, encrypting the purchasing information by using the purchasing contract identifier, and storing the encrypted purchasing information in a purchasing block corresponding to the purchasing account;
when receiving supply information which is uploaded by a supply account and contains a supply contract identifier, judging whether the purchase contract identifier is matched with the supply contract identifier;
if the purchase contract identification is matched with the supply contract identification, storing the supply information in a supply block corresponding to the supply account;
and establishing a purchasing alliance chain according to the purchasing block and the supply block.
Optionally, after the step of encrypting the purchase information by using the purchase contract identifier and storing the encrypted purchase information in the purchase block corresponding to the purchase account when the purchase information including the purchase contract identifier uploaded by the purchase account is received, the method includes:
sending prompt information containing the purchase information to a supply account;
receiving supply feedback information uploaded by the supply account based on the purchase information, and sending the supply feedback information to the purchase account;
and when a confirmation instruction sent by the purchasing account based on the supply feedback information is received, sending the purchasing contract identifier to the supply account so that the supply account uploads supply information based on the purchasing contract identifier.
Optionally, the receiving the supply feedback information uploaded by the supply account based on the purchase information, and sending the supply feedback information to the purchase account includes:
receiving supply feedback information uploaded by the supply account based on the purchase information, and judging whether the supply feedback information is matched with the purchase information;
if the supply feedback information is not matched with the purchasing information, generating supply abnormity prompt information, and sending the supply feedback information and the supply abnormity prompt information to the purchasing account;
and if the supply feedback information is matched with the purchase information, sending the supply feedback information to the purchase account.
Optionally, after the step of sending the supply feedback information and the supply abnormality prompt information to the purchase account if the supply feedback information does not match the purchase information, the method includes:
generating the additional purchasing information containing the additional purchasing contract identifier according to the supply feedback information;
encrypting the purchasing information by using the additional purchasing contract identifier, and storing the encrypted additional purchasing information in the purchasing block;
receiving replenishment information uploaded by a new supply account and containing a replenishment contract identifier, and storing the replenishment information in a new supply block corresponding to the new supply account when the replenishment contract identifier is matched with the replenishment contract identifier;
and establishing a new purchasing alliance chain according to the purchasing block and the new supply block.
Optionally, after the step of establishing a purchasing alliance chain according to the purchasing block and the sourcing block, the method includes:
when an information query instruction is received, acquiring a target contract identifier corresponding to the information query instruction;
judging whether target purchasing information containing the target contract identification is stored in the purchasing alliance chain;
if the target purchasing information is stored in the purchasing alliance chain, judging whether target supply information corresponding to the target purchasing information is stored in the purchasing alliance chain or not;
and if the target supply information is stored in the purchasing alliance chain, sequentially outputting the target purchasing information and the target supply information.
Optionally, after the step of storing the supply information in the supply block corresponding to the supply account if the purchase contract identifier matches the supply contract identifier, the method includes:
when receiving shipping information uploaded by a shipping account based on the supply information, extracting a shipping contract identifier in the shipping information;
if the shipping contract identifier is the same as the supply contract identifier, storing the shipping information in a shipping block corresponding to the shipping account;
and establishing a purchasing alliance chain according to the purchasing block, the goods supply block and the goods delivery block.
Optionally, when receiving the supply information uploaded from the supply account and including the supply contract identifier, the step of determining whether the purchase contract identifier matches the supply contract identifier includes:
when receiving supply information which is uploaded by a supply account and contains a supply contract identifier, inquiring a preset character comparison table;
and judging whether the purchasing contract identifier is matched with the supply contract identifier or not according to the purchasing contract identifier, the supply contract identifier and the preset character comparison table.
Further, to achieve the above object, the present invention provides a transaction information management apparatus including:
the encryption storage module is used for encrypting the purchasing information by using the purchasing contract identifier when the purchasing information which is uploaded by the purchasing account and contains the purchasing contract identifier is received, and storing the encrypted purchasing information in a purchasing block corresponding to the purchasing account;
the judging module is used for judging whether the purchasing contract identifier is matched with the supply contract identifier or not when supply information which is uploaded by a supply account and contains the supply contract identifier is received;
the supply information storage module is used for storing the supply information in a supply block corresponding to the supply account if the purchase contract identifier is matched with the supply contract identifier;
and the alliance chain establishing module is used for establishing a purchasing alliance chain according to the purchasing block and the goods supply block.
Further, to achieve the above object, the present invention also provides a transaction information management apparatus including: a memory, a processor and a transaction information management program stored on the memory and operable on the processor, the transaction information management program when executed by the processor implementing the steps of the transaction information management method as described above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a transaction information management program which, when executed by a processor, implements the steps of the transaction information management method as described above.
The embodiment of the invention provides a transaction information management method, a device, equipment and a readable storage medium. In the embodiment of the invention, when a transaction information management program receives purchase information which is uploaded by a purchase account and contains a purchase contract identifier, the purchase information is firstly encrypted by using the purchase contract identifier, the encrypted purchase information is stored in a purchase block corresponding to the purchase account, then, when the transaction information management program receives supply information which is uploaded by a supply account and contains a supply contract identifier, whether the purchase contract identifier is matched with the supply contract identifier is judged, and when the purchase contract identifier is matched with the supply contract identifier, the supply information is stored in a supply block corresponding to the supply account, and finally, the purchase block and the supply block are associated through summary information such as transaction time or contract identifier and the like to form a purchase alliance chain.
Drawings
Fig. 1 is a schematic hardware structure diagram of an implementation manner of a transaction information management apparatus according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a transaction information management method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a transaction information management method according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a transaction information management method according to a third embodiment of the present invention;
FIG. 5 is a flowchart illustrating a transaction information management method according to a fourth embodiment of the present invention;
fig. 6 is a functional block diagram of an embodiment of a transaction information management device according to the invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The transaction information management terminal (also called terminal, equipment or terminal equipment) in the embodiment of the invention can be a PC, and can also be terminal equipment with data processing capability such as a smart phone, a tablet computer, a portable computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. 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 (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a transaction information management program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call a transaction information management program stored in the memory 1005, which when executed by the processor, implements operations in the transaction information management method provided by the embodiments described below.
Based on the hardware structure of the equipment, the embodiment of the transaction information management method is provided.
Referring to fig. 2, in a first embodiment of a transaction information management method of the present invention, the transaction information management method includes:
step S10, when receiving the purchase information including the purchase contract identifier uploaded by the purchase account, encrypting the purchase information using the purchase contract identifier, and storing the encrypted purchase information in the purchase block corresponding to the purchase account.
The transaction information management method in this embodiment is applied to a blockchain, which is a chained data structure, and each block in the blockchain is associated with another block.
The transaction information management method in this embodiment can be used in a transaction system, and the purchasing account in this embodiment refers to an account managed by a purchasing party in a transaction, and the purchasing party can upload the purchasing information to the block chain by logging in the purchasing account. The purchasing contract identifier in this embodiment is an identifier used for marking and encrypting each different purchasing contract, that is, each time a purchasing party has a purchasing plan, the purchasing contract (i.e., the purchasing information in this embodiment) is uploaded to the blockchain through the purchasing account, the purchasing contract identifier uploaded each time corresponds to a different purchasing contract identifier, and the purchasing contract identifier is also an encrypted password of the purchasing information. After the purchase information is encrypted, the purchase information is also stored in a purchase block in the block chain.
Step S20, when receiving the supply information uploaded from the supply account and including the supply contract identifier, determining whether the purchase contract identifier matches the supply contract identifier.
The supply account in this embodiment is an account managed by the supplier in the transaction system in response to a purchase plan made by the buyer, and the supplier logs in the supply account, and when the blockchain includes purchase information, the supplier can obtain the purchase information, and by checking the purchase quantity and the time required for purchase in the purchase information, the supplier responds to the purchase requirement of the buyer under the condition of considering the supply capability of the supplier, that is, the supplier uploads the supply information to the blockchain through the supply account, wherein the supply information includes the supply quantity, the supply time, and the like, and further includes a supply contract identifier similar to the definition of the purchase contract identifier, and the supply contract identifier is an identifier for identifying each different supply contract, that is, when the buyer has a purchase plan, and the purchase information is uploaded through the purchase account, when the purchase information is stored in the purchase block, a supplier can check the purchase information by logging in a supply account, and upload supply information containing a supply contract identifier based on the purchase information, and the transaction information management program judges whether the purchase contract identifier is matched with the supply contract identifier, so as to avoid interception or modification of the purchase information by a third party in the transaction process based on the consideration of transaction authenticity.
Step S30, if the purchase contract identifier matches the supply contract identifier, storing the supply information in a supply block corresponding to the supply account.
It can be known that, if the supply contract identifier matches the purchase contract identifier, it indicates that the transaction is authentic and reliable, and then the supply information is stored in the supply block. The purchasing party can check the supply information uploaded by the supply party by logging in the purchasing account, and can also confirm the supply capability of the supply party after checking the supply information.
Step S40, establishing a purchasing alliance chain according to the purchasing block and the supplying block.
It should be noted that the blockchain is a chained data structure, and the blocks are associated with each other through summary information, where the summary information may be transaction time or contract identifier, and the procurement block and the supply block are associated with each other through the summary information to form a federation chain.
Specifically, steps subsequent to step S10 include:
step a1, sending prompt information containing the purchase information to a supply account.
Step a2, receiving the supply feedback information uploaded by the supply account based on the purchase information, and sending the supply feedback information to the purchase account.
Step a3, when receiving the confirmation instruction sent by the purchasing account based on the supply feedback information, sending the purchasing contract identifier to the supplying account, so that the supplying account uploads the supplying information based on the purchasing contract identifier.
When the transaction information management program detects that the purchasing information is uploaded by the purchasing party based on the purchasing account, the purchasing information is encrypted by using the purchasing contract identifier, and the encrypted purchasing information is stored in the purchasing block, the transaction information management program sends prompt information containing the purchasing information to the supply account, and the purpose of sending the prompt information to the supply account is to inform the purchasing party of the purchasing requirement in the first time when the purchasing party has the purchasing requirement, and the supply party checks the purchasing information and the supply capacity of the supply party when receiving the prompt information containing the purchasing information, so that the supply party gives supply feedback information based on the purchasing information uploaded by the purchasing party and sends the purchasing feedback information to the purchasing account for checking of the account, wherein the supply feedback information reflects the current supply capacity of the supply party, after the purchasing party receives the supply feedback information, if a confirmation instruction sent by the purchasing party based on the supply feedback information is received, the transaction information management program sends a purchase contract identifier to the supply account, so that the supplying party uploads the supply information to the block chain based on the purchase contract identifier.
Specifically, the step a2 is a step of refining, which comprises:
and b1, receiving the supply feedback information uploaded by the purchase information of the supply account, and judging whether the supply feedback information is matched with the purchase information.
Step b2, if the supply feedback information does not match the purchasing information, generating supply abnormity prompting information, and sending the supply feedback information and the supply abnormity prompting information to the purchasing account.
Step b3, if the supply feedback information matches with the purchasing information, sending the supply feedback information to the purchasing account.
It can be known that the supply feedback information reflects the current supply capability of the supplier, therefore, when the transaction information management program receives the supply feedback information uploaded by the supply account, it will first determine whether the supply feedback information matches with the purchase information, specifically, the purchase information includes information such as purchase quantity and purchase date, if the supply quantity in the supply feedback information is less than the purchase quantity, or the supply date in the supply feedback information is later than the purchase date, the supply feedback information does not match with the purchase information, that is, when there is information that may affect the purchase plan of the buyer in the supply feedback information, the transaction information management program will determine that the supply feedback information does not match with the purchase information, and when there is no information that may affect the purchase plan of the buyer in the supply feedback information, the transaction information management program will determine that the supply feedback information matches with the purchase information, when the supply feedback information is not matched with the purchasing information, the transaction information management program generates supply abnormity prompt information which is sent to the purchasing account together with the supply feedback information, and when the supply feedback information is matched with the purchasing information, the transaction information management program only sends the supply feedback information to the purchasing account.
Specifically, the step after step b2 includes:
and c1, generating the additional purchasing information containing the additional purchasing contract identifier according to the supply feedback information.
And c2, encrypting the purchasing information by using the additional purchasing contract identifier, and storing the encrypted additional purchasing information in the purchasing block.
And c3, receiving replenishment information uploaded by the new supply account and containing a replenishment contract identifier, and storing the replenishment information in a new supply block corresponding to the new supply account when the replenishment contract identifier is matched with the replenishment contract identifier.
And c4, establishing a new purchasing alliance chain according to the purchasing block and the new supply block.
Therefore, when the supply feedback information is not matched with the purchasing information, it is indicated that there is information that may affect the purchasing plan of the purchasing party in the supply feedback information, that is, the supplying party cannot meet the purchasing requirement of the purchasing party, in this case, the purchasing party can only make a purchase to meet the requirement of the purchasing party, and because the current supplying party cannot meet the purchasing requirement of the purchasing party, the purchasing party needs to select another supplying party to complete the remaining supply (i.e., the replenishing information in this embodiment), the transaction information management program generates the replenishment information including the replenishment contract identifier according to the supply feedback information, where the replenishment contract identifier is similar to the purchasing contract identifier and the supplying contract identifier and is used to mark the contract identifier.
In this embodiment, when the transaction information management program receives purchase information including a purchase contract identifier uploaded by a purchase account, the purchase information is encrypted by using the purchase contract identifier, and the encrypted purchase information is stored in a purchase block corresponding to the purchase account, and then, when the transaction information management program receives supply information including a supply contract identifier uploaded by a supply account, whether the purchase contract identifier matches the supply contract identifier is judged, and when the purchase contract identifier matches the supply contract identifier, the supply information is stored in a supply block corresponding to the supply account, and finally, the purchase block and the supply block are associated with each other through summary information such as transaction time or contract identifier, so as to form a purchase alliance chain.
Further, referring to fig. 3, a second embodiment of the transaction information management method of the present invention is proposed on the basis of the above-mentioned embodiment of the present invention.
This embodiment is a step after step S40 in the first embodiment, and the present embodiment is different from the above-described embodiments of the present invention in that:
step S50, when receiving the information query instruction, obtaining a target contract identifier corresponding to the information query instruction.
Step S60, determine whether the purchasing alliance chain stores the target purchasing information including the target contract identifier.
Step S70, if the target purchasing information is stored in the purchasing alliance chain, determining whether the target supply information corresponding to the target purchasing information is stored in the purchasing alliance chain.
Step S80, if the target supply information is stored in the purchasing alliance chain, sequentially outputting the target purchasing information and the target supply information.
It should be noted that, after the purchasing alliance chain is established, the transaction information management program further supports the user to query the relevant information in the purchasing alliance chain, and this embodiment provides a specific implementation of information query. After the purchasing alliance chain is established, when the transaction information management program receives an information query instruction, a target contract identifier corresponding to the information query instruction is obtained, wherein the information query instruction is an instruction of query information manually triggered by a user or automatically triggered by a program, the target contract identifier is a contract identifier input when the information query instruction is triggered, namely, the user can query information corresponding to the target contract identifier by inputting the target contract identifier, after the target contract identifier is obtained, the transaction information management program firstly searches whether a purchasing block of the purchasing alliance chain contains target purchasing information corresponding to the target contract identifier, and when the purchasing block contains the target purchasing information, further judges whether a supplying block of the purchasing alliance chain contains the target supplying information corresponding to the target purchasing information, and obviously, the target supplying information refers to, and when the supplier receives the target purchasing information, the supplying information uploaded through the supplying account is transmitted. If the supply block also contains target supply information, the target purchase information and the target supply information are output together, namely, when the user inputs the target contract identifier, the transaction information management program inquires and outputs the target purchase information and the target supply information.
In the embodiment, the target purchasing information and the target goods supply information corresponding to the target contract identifier are inquired by inputting the target contract identifier, so that the applicability of the purchasing alliance chain is increased, and the verification method of transaction authenticity is provided.
Further, referring to fig. 4, a third embodiment of the transaction information management method of the present invention is proposed on the basis of the above-mentioned embodiment of the present invention.
This embodiment is a step after step S30 in the first embodiment, and the present embodiment is different from the above-described embodiments of the present invention in that:
and step S90, when receiving the shipping information uploaded by the shipping account based on the supply information, extracting the shipping contract identifier in the shipping information.
Step S100, if the shipping contract identifier is the same as the supply contract identifier, storing the shipping information in a shipping block corresponding to the shipping account.
Step S110, a purchasing alliance chain is established according to the purchasing block, the goods supplying block and the goods transporting block.
It should be noted that the purchasing alliance chain may be formed by associating more blocks, and in this embodiment, a shipping account is newly added, where the shipping account is essentially the same as the purchasing account and the supply account, and is different from a manager responsible for account management, and when a transaction between a purchasing party and a supplying party needs a shipping party, it is necessary to set up the shipping account, the shipping account in this embodiment is an account managed by a party responsible for shipping in the transaction, and by logging in the shipping account, the shipping party can upload shipping information to the block chain, where the shipping information includes a shipping contract identifier, and the shipping contract identifier in this embodiment is an identifier used to mark and encrypt each different shipping contract, that is, whenever the supplying party has a plan, the supplying information is uploaded to the block chain through the shipping account, and the uploaded information is essentially a supplying contract, the uploaded supply information is also corresponding to different supply contract identifications.
In this embodiment, the purpose of determining whether the shipping contract identifier is the same as the shipping contract identifier is also to determine the authenticity of the transaction, after the shipping information is confirmed, the supplier sends the shipping contract identifier to the supplier, knowing that the shipping contract identifier matches the purchasing contract identifier, and if the shipping contract identifier is the same as the shipping contract identifier, the shipping contract identifier also matches the purchasing contract identifier, which plays a role when the purchaser verifies the shipping information stored in the shipping block by the supplier, and the purchasing block, the shipping block and the shipping block are associated to form a purchasing alliance chain.
In the embodiment, the application method of the purchasing alliance chain in various transaction scenes is provided by adding the shipping account and the corresponding shipping block, and the method is more suitable for various transaction modes.
Further, referring to fig. 5, a fourth embodiment of the transaction information management method of the present invention is proposed on the basis of the above-mentioned embodiment of the present invention.
This embodiment is a step of the first embodiment, which is a refinement of step S20, and the difference between this embodiment and the above-described embodiment of the present invention is:
step S21, when the supply information uploaded from the supply account and including the identification of the supply contract is received, the preset character comparison table is queried.
And step S22, judging whether the purchasing contract mark is matched with the supply contract mark according to the purchasing contract mark, the supply contract mark and the preset character comparison table.
In this embodiment, a method for determining whether a purchase contract identifier is matched with a supply contract identifier is provided, and specifically, when a transaction information management program receives supply information including a supply contract identifier uploaded by a supply account, a preset character comparison table is queried, where the preset character comparison table is a data table in which a character correspondence relationship is stored, specifically, characters include numbers and symbols, for example, 1 corresponds to 5, 2 corresponds to 3, 4 corresponds to 6, and a corresponds to h, and then the purchase contract identifier 142a is matched with the supply contract identifier 563 h.
In this embodiment, a method for determining whether the purchase contract identifier is matched with the supply contract identifier is provided, so that the transaction authenticity is realized, and the security of transaction data is also ensured.
In addition, referring to fig. 6, an embodiment of the present invention further provides a transaction information management apparatus, including:
the encryption storage module 10 is configured to encrypt the purchase information by using the purchase contract identifier when receiving the purchase information including the purchase contract identifier uploaded by the purchase account, and store the encrypted purchase information in a purchase block corresponding to the purchase account;
a first judging module 20, configured to, when receiving supply information including a supply contract identifier uploaded from a supply account, judge whether the purchase contract identifier matches the supply contract identifier;
a supply information storage module 30, configured to store the supply information in a supply block corresponding to the supply account if the purchase contract identifier matches the supply contract identifier;
and the alliance chain establishing module 40 is used for establishing a purchasing alliance chain according to the purchasing block and the supply block.
Optionally, the transaction information management apparatus includes:
the prompt information sending module is used for sending prompt information containing the purchase information to a supply account;
the uploading module receives supply feedback information uploaded by the supply account based on the purchasing information and sends the supply feedback information to the purchasing account;
and the confirmation instruction sending module is used for sending the purchase contract identifier to the supply account when receiving a confirmation instruction sent by the purchase account based on the supply feedback information, so that the supply account uploads supply information based on the purchase contract identifier.
Optionally, the uploading module includes:
the matching judgment unit is used for receiving supply feedback information uploaded by the supply account based on the purchase information and judging whether the supply feedback information is matched with the purchase information;
the supply abnormity prompting unit is used for generating supply abnormity prompting information if the supply feedback information is not matched with the purchase information, and sending the supply feedback information and the supply abnormity prompting information to the purchase account;
and the supply feedback information sending unit is used for sending the supply feedback information to the purchase account if the supply feedback information is matched with the purchase information.
Optionally, the transaction information management apparatus includes:
the supply feedback information generating module is used for generating supply feedback information according to the supply information;
the encryption module is used for encrypting the purchasing information by using the additional purchasing contract identifier and storing the encrypted additional purchasing information in the purchasing block;
the replenishment information uploading module is used for receiving replenishment information which is uploaded by a new supply account and contains a replenishment contract identifier, and storing the replenishment information in a new supply block corresponding to the new supply account when the replenishment contract identifier is matched with the replenishment contract identifier;
and the purchasing alliance chain reconstruction module is used for establishing a new purchasing alliance chain according to the purchasing block and the new supply block.
Optionally, the transaction information management apparatus includes:
the target contract identifier acquisition module is used for acquiring a target contract identifier corresponding to an information query instruction when the information query instruction is received;
the second judgment module is used for judging whether the target purchasing information containing the target contract identifier is stored in the purchasing alliance chain;
the third judging module is used for judging whether the target supply information corresponding to the target purchasing information is stored in the purchasing alliance chain if the target purchasing information is stored in the purchasing alliance chain;
and the output module is used for sequentially outputting the target purchasing information and the target supply information if the target supply information is stored in the purchasing alliance chain.
Optionally, the transaction information management apparatus includes:
the delivery contract identifier extraction module is used for extracting the delivery contract identifier in the delivery information when the delivery information uploaded by a delivery account based on the supply information is received;
the first storage module is used for storing the shipping information in a shipping block corresponding to the shipping account if the shipping contract identifier is the same as the supply contract identifier;
and the alliance chain establishing module is used for establishing a purchasing alliance chain according to the purchasing block, the goods supplying block and the goods transporting block.
Optionally, the determining module includes:
the query unit is used for querying a preset character comparison table when receiving supply information which is uploaded by a supply account and contains a supply contract identifier;
and the matching judgment unit is used for judging whether the purchasing contract identifier is matched with the supply contract identifier or not according to the purchasing contract identifier, the supply contract identifier and the character comparison table.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the operations in the transaction information management method provided by the above embodiments.
The method executed by each program module can refer to each embodiment of the method of the present invention, and is not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity/action/object from another entity/action/object without necessarily requiring or implying any actual such relationship or order between such entities/actions/objects; the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
For the apparatus embodiment, since it is substantially similar to the method embodiment, it is described relatively simply, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, in that elements described as separate components may or may not be physically separate. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement it without inventive effort.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A transaction information management method is characterized by comprising the following steps:
when purchasing information which is uploaded by a purchasing account and contains a purchasing contract identifier is received, encrypting the purchasing information by using the purchasing contract identifier, and storing the encrypted purchasing information in a purchasing block corresponding to the purchasing account;
when receiving supply information which is uploaded by a supply account and contains a supply contract identifier, inquiring a preset character comparison table;
judging whether the purchasing contract identifier is matched with the supply contract identifier or not according to the purchasing contract identifier, the supply contract identifier and the preset character comparison table;
if the purchasing contract identification and the supply contract identification correspond to each other in the preset character comparison table, determining that the purchasing contract identification is matched with the supply contract identification, and storing the supply information in a supply block corresponding to the supply account;
and establishing a purchasing alliance chain according to the purchasing block and the supply block.
2. The transaction information management method of claim 1, wherein after the step of encrypting the purchase information using the purchase contract identifier and storing the encrypted purchase information in the purchase block corresponding to the purchase account when the purchase information including the purchase contract identifier uploaded by the purchase account is received, the method comprises:
sending prompt information containing the purchase information to a supply account;
receiving supply feedback information uploaded by the supply account based on the purchase information, and sending the supply feedback information to the purchase account;
and when a confirmation instruction sent by the purchasing account based on the supply feedback information is received, sending the purchasing contract identifier to the supply account so that the supply account uploads supply information based on the purchasing contract identifier.
3. The method for managing transaction information according to claim 2, wherein the step of receiving the supply feedback information uploaded by the supply account based on the purchase information and sending the supply feedback information to the purchase account comprises:
receiving supply feedback information uploaded by the supply account based on the purchase information, and judging whether the supply feedback information is matched with the purchase information;
if the supply feedback information is not matched with the purchasing information, generating supply abnormity prompt information, and sending the supply feedback information and the supply abnormity prompt information to the purchasing account;
and if the supply feedback information is matched with the purchase information, sending the supply feedback information to the purchase account.
4. The transaction information management method of claim 3, wherein after the step of sending the supply feedback information and the supply anomaly prompting information to the purchasing account if the supply feedback information does not match the purchasing information, the method comprises:
generating the additional purchasing information containing the additional purchasing contract identifier according to the supply feedback information;
encrypting the purchasing information by using the additional purchasing contract identifier, and storing the encrypted additional purchasing information in the purchasing block;
receiving replenishment information uploaded by a new supply account and containing a replenishment contract identifier, and storing the replenishment information in a new supply block corresponding to the new supply account when the replenishment contract identifier is matched with the replenishment contract identifier;
and establishing a new purchasing alliance chain according to the purchasing block and the new supply block.
5. The transaction information management method of claim 1, wherein the step of establishing a chain of purchase associations based on the procurement block and the sourcing block is followed by:
when an information query instruction is received, acquiring a target contract identifier corresponding to the information query instruction;
judging whether target purchasing information containing the target contract identification is stored in the purchasing alliance chain;
if the target purchasing information is stored in the purchasing alliance chain, judging whether target supply information corresponding to the target purchasing information is stored in the purchasing alliance chain or not;
and if the target supply information is stored in the purchasing alliance chain, sequentially outputting the target purchasing information and the target supply information.
6. The transaction information management method of claim 1, wherein after the step of determining that the purchase contract identifier matches the supply contract identifier and storing the supply information in a supply block corresponding to the supply account if the purchase contract identifier and the supply contract identifier correspond to each other in the predetermined character comparison table, the method comprises:
when receiving shipping information uploaded by a shipping account based on the supply information, extracting a shipping contract identifier in the shipping information;
if the shipping contract identifier is the same as the supply contract identifier, storing the shipping information in a shipping block corresponding to the shipping account;
and establishing a purchasing alliance chain according to the purchasing block, the goods supply block and the goods delivery block.
7. A transaction information management apparatus, characterized by comprising:
the encryption storage module is used for encrypting the purchasing information by using the purchasing contract identifier when the purchasing information which is uploaded by the purchasing account and contains the purchasing contract identifier is received, and storing the encrypted purchasing information in a purchasing block corresponding to the purchasing account;
the preset character comparison table query module is used for querying the preset character comparison table when receiving the supply information which is uploaded by the supply account and contains the supply contract identification;
the judging module is used for judging whether the purchasing contract identifier is matched with the supply contract identifier or not according to the purchasing contract identifier, the supply contract identifier and the preset character comparison table;
a supply information storage module, configured to determine that the purchase contract identifier matches the supply contract identifier if the purchase contract identifier and the supply contract identifier correspond to each other in the preset character comparison table, and store the supply information in a supply block corresponding to the supply account;
and the alliance chain establishing module is used for establishing a purchasing alliance chain according to the purchasing block and the goods supply block.
8. A transaction information management apparatus characterized by comprising: memory, a processor and a transaction information management program stored on the memory and executable on the processor, the transaction information management program when executed by the processor implementing the steps of the transaction information management method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that a transaction information management program is stored thereon, which when executed by a processor implements the steps of the transaction information management method according to any one of claims 1 to 6.
CN202010793586.7A 2020-08-07 2020-08-07 Transaction information management method, device, equipment and computer readable storage medium Active CN111899022B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010793586.7A CN111899022B (en) 2020-08-07 2020-08-07 Transaction information management method, device, equipment and computer readable storage medium
PCT/CN2021/111584 WO2022028621A1 (en) 2020-08-07 2021-08-09 Transaction information management method and apparatus, and device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010793586.7A CN111899022B (en) 2020-08-07 2020-08-07 Transaction information management method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111899022A CN111899022A (en) 2020-11-06
CN111899022B true CN111899022B (en) 2021-11-30

Family

ID=73246636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010793586.7A Active CN111899022B (en) 2020-08-07 2020-08-07 Transaction information management method, device, equipment and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN111899022B (en)
WO (1) WO2022028621A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111899022B (en) * 2020-08-07 2021-11-30 深圳前海星际同辉科技有限公司 Transaction information management method, device, equipment and computer readable storage medium
CN113205193B (en) * 2021-04-27 2024-05-21 安徽中科晶格技术有限公司 Block chain-based waste treatment method, system, equipment and storage medium
CN117294451A (en) * 2022-06-15 2023-12-26 顺丰科技有限公司 Purchasing collaboration method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111260446A (en) * 2020-02-03 2020-06-09 深圳点链科技有限公司 Block chain-based delivery management method, device, equipment and readable storage medium
CN111415250A (en) * 2020-04-30 2020-07-14 中国银行股份有限公司 Method and device for managing accounts receivable based on block chain, storage medium and equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075284A (en) * 2006-12-26 2007-11-21 腾讯科技(深圳)有限公司 Method and system for inputting character
US20180165586A1 (en) * 2016-12-09 2018-06-14 Cognitive Scale, Inc. Providing Procurement Related Cognitive Insights Using Blockchains
UA120374C2 (en) * 2017-04-20 2019-11-25 Варваренко Олександр OPEN FREIGHT MARKET SIMULATION SYSTEM AND METHOD OF OPEN FREIGHT MARKET DISPLAY
CN111125785A (en) * 2019-12-23 2020-05-08 深圳前海星际同辉科技有限公司 Account checking method based on block chain, account checking device and readable storage medium
CN111899022B (en) * 2020-08-07 2021-11-30 深圳前海星际同辉科技有限公司 Transaction information management method, device, equipment and computer readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111260446A (en) * 2020-02-03 2020-06-09 深圳点链科技有限公司 Block chain-based delivery management method, device, equipment and readable storage medium
CN111415250A (en) * 2020-04-30 2020-07-14 中国银行股份有限公司 Method and device for managing accounts receivable based on block chain, storage medium and equipment

Also Published As

Publication number Publication date
CN111899022A (en) 2020-11-06
WO2022028621A1 (en) 2022-02-10

Similar Documents

Publication Publication Date Title
CN111899022B (en) Transaction information management method, device, equipment and computer readable storage medium
US11113699B2 (en) Open registry for identity of things
CN112689979B (en) Article identity management method, terminal, microprocessor unit, identification device and system
US10348368B2 (en) Managing NFC devices based on downloaded data
CN110083620A (en) Based on the data query method and device of block chain, storage medium, electronic device
CN112199719A (en) Data processing method, device, equipment and computer readable storage medium
CN111541549B (en) Block chain based information transfer method, device, equipment and storage medium
US9742810B2 (en) Network node security using short range communication
US20190259233A1 (en) Electronic apparatus and operating method thereof
KR20210111066A (en) Electronic device for providing transaction related information account and operating method therof
JP6249579B1 (en) Warehouse management method and warehouse management system
CN111061984B (en) Information pushing method, information associating method, information pushing equipment, information associating equipment and computer storage medium
US9801216B1 (en) Peer-to-peer configuration
US11336333B2 (en) NFC device, reader/writer device and methods for authorizing and performing an update
CN109544265B (en) Electronic lock information processing method, electronic device and storage medium
CN104871194A (en) Item authenticity
US20190066043A1 (en) Method and system for tracking products
KR20140115861A (en) Method of banking services using mobile device
CN109741191B (en) Insurance scheme configuration method, device, equipment and storage medium based on self-help card
KR20110019678A (en) Method for managementing of application and system thereof
KR102085672B1 (en) Package Shipping System by Using characteristic Identifier and Method thereof
US8745101B2 (en) Terminal and method for identifying contents
KR20160037092A (en) An electronic tag and authentication method, device and system thereof
JP5520108B2 (en) Authentication processing system and authentication processing program
JP2021117973A (en) Portable terminal and communication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee after: Shenzhen Qianhai Star Chain Zhongying Technology Co.,Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee before: Shenzhen Qianhai star Tonghui Technology Co.,Ltd.

CP01 Change in the name or title of a patent holder