CN108694670B - Transaction data verification method, device and system - Google Patents

Transaction data verification method, device and system Download PDF

Info

Publication number
CN108694670B
CN108694670B CN201810832808.4A CN201810832808A CN108694670B CN 108694670 B CN108694670 B CN 108694670B CN 201810832808 A CN201810832808 A CN 201810832808A CN 108694670 B CN108694670 B CN 108694670B
Authority
CN
China
Prior art keywords
verification
target
field
rule
transaction data
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
CN201810832808.4A
Other languages
Chinese (zh)
Other versions
CN108694670A (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.)
Hongqiao Hi Tech Group Co ltd
Original Assignee
Zhuhai Hongqiao High Tech 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 Zhuhai Hongqiao High Tech Co ltd filed Critical Zhuhai Hongqiao High Tech Co ltd
Priority to CN201810832808.4A priority Critical patent/CN108694670B/en
Publication of CN108694670A publication Critical patent/CN108694670A/en
Application granted granted Critical
Publication of CN108694670B publication Critical patent/CN108694670B/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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The invention provides a transaction data verification method, a device and a system, wherein the method is applied to a block chain network, the block chain network is respectively communicated with a plurality of service platforms, and the method comprises the following steps: receiving a target document identification and transaction data corresponding to the target document identification sent by any service platform; determining a verification rule corresponding to the target document identification as a target verification rule in a preset corresponding relation between the document identification and the verification rule; verifying the transaction data by using a target verification rule; if the verification is passed, the target platform corresponding to the target document identification and the service platform for sending the target document identification is determined in the corresponding relation among the preset sending platform, the document identification and the target platform, and the transaction data is sent to the target platform, so that the technical problem that the transaction data verification system in the prior art is low in flexibility is solved, and the technical effect of improving the flexibility of the transaction data verification system is achieved.

Description

Transaction data verification method, device and system
Technical Field
The invention relates to the technical field of transaction data verification, in particular to a transaction data verification method, device and system.
Background
International Trade (also known as trader) refers to a state-spanning transaction of goods and services, generally consisting of import and export trades, and may also be referred to as import and export trades. Participants in international trade may include: international trade consignee, international trade service provider, international trade site operator and supervising agency. Each international trade participant corresponds to a service platform respectively, and transaction data are transmitted between the service platforms.
In practical application, due to actual business process requirements, the A business platform needs to transmit transaction data to the B business platform and the C business platform, data verification rules are arranged in the B business platform and the C business platform, and if the transaction data transmitted to the B business platform by the A business platform does not accord with the data verification rules in the B business platform, the B business platform refuses to receive the transaction data transmitted by the A business platform. Similarly, if the transaction data transmitted by the service platform A to the service platform C does not accord with the data verification rule in the service platform C, the service platform C refuses to receive the transaction data transmitted by the service platform A. Therefore, when the specific content of the transaction data transmitted by the service platform a changes, the data validation rule in the service platform B and the data validation rule in the service platform C are modified correspondingly, thereby causing a problem of low flexibility of the transaction data validation system.
Disclosure of Invention
In view of the above, the present invention provides a transaction data verification method, a transaction data verification device and a transaction data verification system, so as to alleviate the technical problem of low flexibility of the transaction data verification system in the prior art.
In a first aspect, an embodiment of the present invention provides a transaction data verification method, where the method is applied to a blockchain network, where the blockchain network is respectively in communication with multiple service platforms, and the method includes:
receiving a target document identification and transaction data corresponding to the target document identification sent by any one of the service platforms;
determining a verification rule corresponding to the target document identification as a target verification rule in a preset corresponding relation between the document identification and the verification rule;
verifying the transaction data by using the target verification rule;
and if the verification is passed, determining a target platform corresponding to the target document identification and a service platform for sending the target document identification in the corresponding relation among a preset sending platform, the document identification and the target platform, and sending the transaction data to the target platform.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the transaction data includes a plurality of target field identifications and field values corresponding to each of the target field identifications, the target validation rule includes a preset correspondence between a field identification and a field validation rule, and the validating the transaction data by using the target validation rule includes:
for each target field identification, determining a field verification rule corresponding to the target field identification as a target field verification rule in the corresponding relation between the field identification and the field verification rule;
verifying a field value corresponding to the target field identification by using the target field verification rule;
and if each field value in the transaction data passes the verification, determining that the transaction data passes the verification.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the target field validation rule includes: whether null validation rules, data type validation rules and data length validation rules are allowed or not, wherein the validation of the field value corresponding to the target field identifier by using the target field validation rules comprises the following steps:
verifying the field value by using the rule whether the field value is allowed to be null or not;
if the field value is allowed to pass the null verification, verifying the field value by using the data type verification rule;
if the data type of the field value passes the verification, verifying the field value by using the data length verification rule;
and if the data length of the field value passes the verification, determining that the field value passes the verification.
With reference to the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the verifying the field value by using the rule of whether to allow null verification includes:
if the verification rule of whether the field value is allowed to be null, and the field value is a null value, determining whether the verification of the field value allowed to be null is passed;
or, if the rule for allowing null verification is not allowed to be null and the field value is not a null value, determining whether the field value is allowed to pass null verification.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the verifying the field value by using the data type verification rule includes:
acquiring the data type of the field value;
and if the data type is consistent with the data type in the data type verification rule, determining that the data type of the field value passes verification.
With reference to the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where the verifying the field value by using the data length verification rule includes:
acquiring the data length of the field value;
and if the data length is consistent with the data length in the data length verification rule, determining that the data length of the field value passes verification.
With reference to the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the method further includes:
and if the verification fails, sending a verification failure notice to the service platform sending the target document identification.
In a second aspect, an embodiment of the present invention further provides a transaction data verification apparatus, including: the device comprises a receiving module, a determining module, a verifying module and a sending module;
the receiving module is used for receiving a target document identification and transaction data corresponding to the target document identification, which are sent by any service platform;
the determining module is used for determining the validation rule corresponding to the target document identification as a target validation rule in the corresponding relation between the preset document identification and the validation rule;
the verification module is used for verifying the transaction data by using the target verification rule;
and the sending module is used for determining a target platform corresponding to the target document identification and a service platform for sending the target document identification in the corresponding relation among a preset sending platform, the document identification and the target platform if the verification is passed, and sending the transaction data to the target platform.
In a third aspect, an embodiment of the present invention further provides a transaction data verification system, including: a plurality of service platforms and a blockchain network applying the method according to any of the first aspect, the blockchain network being in communication with the plurality of service platforms respectively.
In a fourth aspect, the present invention also provides a computer-readable medium having non-volatile program code executable by a processor, where the program code causes the processor to execute the method according to any one of the first aspect.
The embodiment of the invention has the following beneficial effects: the transaction data verification method provided by the embodiment of the invention is applied to a block chain network, the block chain network is respectively communicated with a plurality of service platforms, and the method comprises the following steps: receiving a target document identification and transaction data corresponding to the target document identification sent by any one of the service platforms; determining a verification rule corresponding to the target document identification as a target verification rule in a preset corresponding relation between the document identification and the verification rule; verifying the transaction data by using the target verification rule; and if the verification is passed, determining a target platform corresponding to the target document identification and a service platform for sending the target document identification in the corresponding relation among a preset sending platform, the document identification and the target platform, and sending the transaction data to the target platform.
Therefore, when the service platform A needs to transmit transaction data to the service platform B and the service platform C, and the specific content of the transaction data transmitted by the service platform A changes, only the verification rule in the blockchain network needs to be modified, and the data verification rule in the service platform B and the data verification rule in the service platform C do not need to be modified correspondingly, so that the problem of low flexibility of the transaction data verification system caused by the fact that the data verification rule in the service platform B and the data verification rule in the service platform C need to be modified correspondingly when the specific content of the transaction data transmitted by the service platform A changes is solved, the technical problem of low flexibility of the transaction data verification system in the prior art is solved, and the technical effect of improving the flexibility of the transaction data verification system is achieved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart of a transaction data validation method provided by an embodiment of the invention;
FIG. 2 is a flowchart of step S103 in FIG. 1;
FIG. 3 is a flowchart of step S202 in FIG. 2;
fig. 4 is a schematic structural diagram of a transaction data verification system according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Currently, International Trade (International Trade), also known as a general trader, refers to goods and services transactions across countries, generally consisting of import and export trades, and therefore may also be referred to as import and export trades. Participants in international trade may include: international trade consignee, international trade service provider, international trade site operator and supervising agency. Each international trade participant corresponds to a service platform respectively, and transaction data are transmitted between the service platforms.
In practical application, due to actual business process requirements, the A business platform needs to transmit transaction data to the B business platform and the C business platform, data verification rules are arranged in the B business platform and the C business platform, and if the transaction data transmitted to the B business platform by the A business platform does not accord with the data verification rules in the B business platform, the B business platform refuses to receive the transaction data transmitted by the A business platform. Similarly, if the transaction data transmitted by the service platform A to the service platform C does not accord with the data verification rule in the service platform C, the service platform C refuses to receive the transaction data transmitted by the service platform A. Therefore, when the specific content of the transaction data transmitted by the service platform a changes, the data verification rule in the service platform B and the data verification rule in the service platform C are modified correspondingly, which results in a problem of low flexibility of the transaction data verification system.
To facilitate understanding of the embodiment, a detailed description is first given of a transaction data verification method disclosed in the embodiment of the present invention, where the method is applied to a blockchain network, and the blockchain network is respectively in communication with a plurality of service platforms.
Illustratively, the plurality of service platforms may include: a consignee service platform, a service provider service platform, a site operator service platform and a supervision agency service platform.
Illustratively, the service provider service platform may include: a customs declaration service platform, a submission service platform, a ship generation service platform, a logistics transportation service platform, a goods generation service platform, a banking service platform, an insurance service platform, a financing service platform and the like.
Illustratively, the venue operator service platform may include: a wharf service platform, a port service platform, a bonded area service platform, a supervision place service platform and the like.
Illustratively, the regulatory agency service platform may include: customs service platform, quarantine service platform, maritime service platform, side inspection service platform, foreign exchange service platform, national tax service platform, business service platform and port service platform.
As shown in fig. 1, the transaction data verification method may include the following steps.
Step S101, the block chain network receives a target document identification and transaction data corresponding to the target document identification sent by any one of the service platforms.
Illustratively, the transaction data is data in the document. The transaction data may include: a plurality of target field identifications and a field value corresponding to each of the target field identifications. The transaction data may be as shown in table 1.
TABLE 1
Target field identification Field value
A field identification a field value
B field identification b field value
C field identification c field value
D field identification d field value
Step S102, in the corresponding relation between the preset document identification and the verification rule, the verification rule corresponding to the target document identification is determined as the target verification rule.
For example, the correspondence between the document identification and the validation rule may be as shown in table 2.
TABLE 2
Document identification Validating rules
E document identification E validation rules
F document identification F validation rules
G document identification G validation rules
H document identification H validation rules
I document identification I validation rules
J document identification J validation rules
For example, if the target document id is an H document id, it may be determined that the target validation rule is an H validation rule.
And step S103, verifying the transaction data by using the target verification rule.
For example, the target validation rule may include a preset correspondence between the field identification and the field validation rule. The correspondence between the field identification in the H-validation rule and the field validation rule may be as shown in table 3.
TABLE 3
Field identification Field validation rules
A field identification H1Field validation rules
B field identification H2Field validation rules
C field identification H3Field validation rules
D field identification H4Field validation rules
Exemplary, H1The field verification rule is used for verifying the field value corresponding to the A field identifier; h2The field verification rule is used for verifying the field value corresponding to the B field identifier; h3The field verification rule is used for verifying the field value corresponding to the C field identifier; h4The field validation rule is used to validate the field value corresponding to the D field identification.
As shown in fig. 2, step S103 may include the following steps.
Step S201, for each target field identifier, in the correspondence between the field identifier and the field validation rule, determining the field validation rule corresponding to the target field identifier as the target field validation rule.
Illustratively, for A field identification, the target field validation rule is determined to be H1The field validates the rule. For B field identification, determining that the target field validation rule is H2The field validates the rule. For the C field identification, determining that the target field validation rule is H3The field validates the rule. For D field identification, determining that the target field validation rule is H4The field validates the rule.
And step S202, verifying the field value corresponding to the target field identification by using the target field verification rule.
Exemplarily, by H1The field validation rule validates the a field value. By means of H2The field validation rule validates the b field value. By means of H3The field validation rule validates the c field value. By means of H4The field validation rule validates the d field value.
For example, the target field validation rule may include: whether null validation rules, data type validation rules, and data length validation rules are allowed.
As shown in fig. 3, step S202 may include the following steps.
Step S301, verifying the field value by using the rule of whether to allow null verification.
For example, the a field value is taken as an example for explanation. And verifying the a field value by using the verification rule of whether the a field value is allowed to be null.
Illustratively, step S301 may include the following steps.
And if the rule of whether the field value is allowed to be null and the field value is a null value, determining whether the field value is allowed to be null and passes the verification.
Or, if the rule for allowing null verification is not allowed to be null and the field value is not a null value, determining whether the field value is allowed to pass null verification.
Step S302, if the field value is allowed to pass the null verification, verifying the field value by using the data type verification rule.
Illustratively, if the a field value is allowed to pass the null verification, the a field value is verified by using the data type verification rule.
Illustratively, the verifying the field value by using the data type verification rule may include the following steps.
And acquiring the data type of the field value.
For example, the data types may be: primitive type, tuple, unit of record, algebraic data type, abstract data type, reference type, or function type.
The description will be given taking the digital data type as an example. The digital data types may include: integer, long integer, single precision floating point, double precision floating point, and monetary.
And if the data type is consistent with the data type in the data type verification rule, determining that the data type of the field value passes verification.
For example, taking integer as an example, if the data type of the a field value is integer, and the data type in the data type verification rule is also integer, it is determined that the data type of the a field value passes verification. And if the data type of the a field value is integer and the data type in the data type verification rule is single-precision floating point, determining that the data type verification of the a field value fails.
Step S303, if the data type of the field value passes the verification, the data length verification rule is used to verify the field value.
Illustratively, if the data type of the a field value is verified, the a field value is verified by using the data length verification rule.
Illustratively, the verifying the field value by using the data length verification rule may include the following steps.
And acquiring the data length of the field value.
Illustratively, the data length may be generally expressed in bytes.
And if the data length is consistent with the data length in the data length verification rule, determining that the data length of the field value passes verification.
For example, if the data length of the a field value is 2 bytes and the data length in the data length verification rule is 2 bytes, it is determined that the data length of the a field value is verified.
Step S304, if the data length of the field value passes the verification, it is determined that the field value passes the verification.
Illustratively, if the data length of the a field value verifies, it is determined that the a field value verifies.
Step S203, if each field value in the transaction data passes the verification, determining that the transaction data passes the verification.
Illustratively, if the a field value, the b field value, the c field value and the d field value are verified, the transaction data is determined to be verified.
And step S104, if the verification is passed, determining a target platform corresponding to the target document identification and a service platform for sending the target document identification in the corresponding relation among a preset sending platform, the document identification and the target platform, and sending the transaction data to the target platform.
For example, the correspondence between the sending platform, the document identification and the destination platform may be as shown in table 4.
TABLE 4
Sending platform Document identification Destination platform
A service platform E document identification B service platform
B service platform F document identification C service platform
C service platform G document identification D service platform
D service platform H document identification E service platform
E service platform I document identification F service platform
F service platform J document identification G service platform
Illustratively, if the D service platform sends the H-document identifier to the blockchain network, the target platform determined by the blockchain network is the E service platform. And if the verification is passed, the block chain network sends the transaction data to the E service platform.
In an embodiment of the present invention, the transaction data verification method provided in the embodiment of the present invention is applied to a blockchain network, where the blockchain network is respectively in communication with a plurality of service platforms, and the method includes: receiving a target document identification and transaction data corresponding to the target document identification sent by any one of the service platforms; determining a verification rule corresponding to the target document identification as a target verification rule in a preset corresponding relation between the document identification and the verification rule; verifying the transaction data by using the target verification rule; and if the verification is passed, determining a target platform corresponding to the target document identification and a service platform for sending the target document identification in the corresponding relation among a preset sending platform, the document identification and the target platform, and sending the transaction data to the target platform.
Therefore, when the service platform A needs to transmit transaction data to the service platform B and the service platform C, and the specific content of the transaction data transmitted by the service platform A changes, only the verification rule in the blockchain network needs to be modified, and the data verification rule in the service platform B and the data verification rule in the service platform C do not need to be modified correspondingly, so that the problem of low flexibility of the transaction data verification system caused by the fact that the data verification rule in the service platform B and the data verification rule in the service platform C need to be modified correspondingly when the specific content of the transaction data transmitted by the service platform A changes is solved, the technical problem of low flexibility of the transaction data verification system in the prior art is solved, and the technical effect of improving the flexibility of the transaction data verification system is achieved.
In practical applications, after the service platform that sends the transaction data, it is not known whether the transaction data is successfully sent, and in order to solve the problem, in another embodiment of the present invention, the transaction data verification method may further include:
and if the verification fails, sending a verification failure notice to the service platform sending the target document identification.
In the embodiment of the invention, if the transaction data sent by the service platform fails to be verified, the blockchain network sends a verification failure notice to the service platform. And when the service platform sending the transaction data receives the verification failure notice, the service platform knows that the transaction data is not successfully sent and needs to resend the transaction data. If the service platform sending the transaction data does not receive the verification failure notice, the service platform knows that the transaction data is successfully sent. Therefore, the efficiency and the practicability of the transaction data verification process are ensured.
In another embodiment of the present invention, a transaction data verification apparatus disclosed in the embodiment of the present invention is described in detail, including: the device comprises a receiving module, a determining module, a verifying module and a sending module;
the receiving module is used for receiving a target document identification and transaction data corresponding to the target document identification, which are sent by any service platform;
the determining module is used for determining the validation rule corresponding to the target document identification as a target validation rule in the corresponding relation between the preset document identification and the validation rule;
the verification module is used for verifying the transaction data by using the target verification rule;
and the sending module is used for determining a target platform corresponding to the target document identification and a service platform for sending the target document identification in the corresponding relation among a preset sending platform, the document identification and the target platform if the verification is passed, and sending the transaction data to the target platform.
In another embodiment of the present invention, a transaction data verification system disclosed in the embodiment of the present invention is described in detail, including: a plurality of service platforms and a blockchain network applying the method according to any of the above embodiments, the blockchain network being in communication with the plurality of service platforms, respectively.
Illustratively, the plurality of service platforms may include: a consignee service platform, a service provider service platform, a site operator service platform and a supervision agency service platform.
Illustratively, the service provider service platform may include: a customs declaration service platform, a submission service platform, a ship generation service platform, a logistics transportation service platform, a goods generation service platform, a banking service platform, an insurance service platform, a financing service platform and the like.
Illustratively, the venue operator service platform may include: a wharf service platform, a port service platform, a bonded area service platform, a supervision place service platform and the like.
Illustratively, the regulatory agency service platform may include: customs service platform, quarantine service platform, maritime service platform, side inspection service platform, foreign exchange service platform, national tax service platform, business service platform and port service platform.
For example, the transaction data verification system includes a blockchain network and four service platforms. As shown in fig. 4, the transaction data verification system may include: a block chain network 11 and four service platforms, the four service platforms are respectively: service platform 12, service platform 13, service platform 14 and service platform 15. The blockchain network 11 communicates with a service platform 12, a service platform 13, a service platform 14 and a service platform 15, respectively.
In a further embodiment of the present invention, a computer-readable medium having non-volatile program code executable by a processor and causing the processor to perform the method of any one of the above embodiments is disclosed.
Unless specifically stated otherwise, the relative steps, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the present invention.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In all examples shown and described herein, any particular value should be construed as merely exemplary, and not as a limitation, and thus other examples of example embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
The computer program product for performing the transaction data verification method provided by the embodiment of the present invention includes a computer-readable storage medium storing a nonvolatile program code executable by a processor, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, which is not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. 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 and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (9)

1. A transaction data verification method is characterized in that the method is applied to a block chain network, the block chain network is respectively communicated with a plurality of service platforms, and the method comprises the following steps:
receiving a target document identification and transaction data corresponding to the target document identification sent by any one of the service platforms;
determining a verification rule corresponding to the target document identification as a target verification rule in a preset corresponding relation between the document identification and the verification rule;
verifying the transaction data by using the target verification rule;
if the verification is passed, determining a target platform corresponding to the target document identification and a service platform for sending the target document identification in the corresponding relation among a preset sending platform, the document identification and the target platform, and sending the transaction data to the target platform;
the transaction data includes a plurality of target field identifications and field values corresponding to each of the target field identifications, the target validation rule includes a preset corresponding relationship between the field identifications and the field validation rules, and the validating the transaction data by using the target validation rule includes:
for each target field identification, determining a field verification rule corresponding to the target field identification as a target field verification rule in the corresponding relation between the field identification and the field verification rule;
verifying a field value corresponding to the target field identification by using the target field verification rule;
and if each field value in the transaction data passes the verification, determining that the transaction data passes the verification.
2. The transaction data validation method of claim 1, wherein the target field validation rule comprises: whether null validation rules, data type validation rules and data length validation rules are allowed or not, wherein the validation of the field value corresponding to the target field identifier by using the target field validation rules comprises the following steps:
verifying the field value by using the rule whether the field value is allowed to be null or not;
if the field value is allowed to pass the null verification, verifying the field value by using the data type verification rule;
if the data type of the field value passes the verification, verifying the field value by using the data length verification rule;
and if the data length of the field value passes the verification, determining that the field value passes the verification.
3. The transaction data validation method of claim 2, wherein said validating said field value using said whether null validation rule is allowed comprises:
if the verification rule of whether the field value is allowed to be null, and the field value is a null value, determining whether the verification of the field value allowed to be null is passed;
or, if the rule for allowing null verification is not allowed to be null and the field value is not a null value, determining whether the field value is allowed to pass null verification.
4. The transaction data validation method of claim 2, wherein said validating said field value using said data type validation rule comprises:
acquiring the data type of the field value;
and if the data type is consistent with the data type in the data type verification rule, determining that the data type of the field value passes verification.
5. The transaction data validation method of claim 2, wherein said validating said field value using said data length validation rule comprises:
acquiring the data length of the field value;
and if the data length is consistent with the data length in the data length verification rule, determining that the data length of the field value passes verification.
6. The transaction data validation method of claim 1, wherein the method further comprises:
and if the verification fails, sending a verification failure notice to the service platform sending the target document identification.
7. A transaction data verification device, comprising: the device comprises a receiving module, a determining module, a verifying module and a sending module;
the receiving module is used for receiving a target document identification and transaction data corresponding to the target document identification, which are sent by any service platform;
the determining module is used for determining the validation rule corresponding to the target document identification as a target validation rule in the corresponding relation between the preset document identification and the validation rule;
the verification module is used for verifying the transaction data by using the target verification rule;
the sending module is used for determining a target platform corresponding to the target document identification and a service platform for sending the target document identification in the corresponding relation among a preset sending platform, the document identification and the target platform if the verification is passed, and sending the transaction data to the target platform;
the transaction data comprises a plurality of target field identifications and field values corresponding to each target field identification, the target validation rule comprises a preset corresponding relationship between the field identifications and the field validation rule, and the validation module is further configured to: for each target field identification, determining a field verification rule corresponding to the target field identification as a target field verification rule in the corresponding relation between the field identification and the field verification rule; verifying a field value corresponding to the target field identification by using the target field verification rule; and if each field value in the transaction data passes the verification, determining that the transaction data passes the verification.
8. A transaction data validation system, comprising: a plurality of service platforms and a blockchain network applying the method according to any of claims 1 to 6, the blockchain network being in communication with the plurality of service platforms, respectively.
9. A computer-readable medium having non-volatile program code executable by a processor, wherein the program code causes the processor to perform the method of any of claims 1-6.
CN201810832808.4A 2018-07-25 2018-07-25 Transaction data verification method, device and system Active CN108694670B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810832808.4A CN108694670B (en) 2018-07-25 2018-07-25 Transaction data verification method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810832808.4A CN108694670B (en) 2018-07-25 2018-07-25 Transaction data verification method, device and system

Publications (2)

Publication Number Publication Date
CN108694670A CN108694670A (en) 2018-10-23
CN108694670B true CN108694670B (en) 2020-10-20

Family

ID=63851770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810832808.4A Active CN108694670B (en) 2018-07-25 2018-07-25 Transaction data verification method, device and system

Country Status (1)

Country Link
CN (1) CN108694670B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112215466A (en) * 2020-09-08 2021-01-12 支付宝(杭州)信息技术有限公司 Transaction data supervision processing method and device and electronic equipment
CN113378549B (en) * 2021-06-29 2023-02-14 平安普惠企业管理有限公司 Document verification method and device, computer equipment and storage medium
CN114880049A (en) * 2022-03-09 2022-08-09 深圳萨摩耶数字科技有限公司 Data processing method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1535217A4 (en) * 2002-06-11 2006-06-21 First Data Corp Value processing network and methods
CN105956923A (en) * 2016-04-20 2016-09-21 上海如鸽投资有限公司 Asset transaction platform and digital certification and transaction method for assets
CN106548091A (en) * 2016-10-14 2017-03-29 北京爱接力科技发展有限公司 A kind of data deposit card, the method and device of checking
CN107018119A (en) * 2016-08-30 2017-08-04 阿里巴巴集团控股有限公司 Authentication system, method and platform
CN107240017A (en) * 2017-07-20 2017-10-10 捷德(中国)信息科技有限公司 Block chain trade managing system and method
CN107833060A (en) * 2017-11-13 2018-03-23 中国银行股份有限公司 The verification method and system of intelligent contract transaction in a kind of block chain
CN108027867A (en) * 2015-07-14 2018-05-11 Fmr有限责任公司 Calculate efficient transfer accounts processing, audit and searcher, method and system
CN108229981A (en) * 2018-01-29 2018-06-29 杭州云象网络技术有限公司 A kind of anti-fake source tracing method of supply chain finance based on block chain

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120303525A1 (en) * 2011-05-23 2012-11-29 Sharath Sahadevan Methods and systems for verifying regulation compliance

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1535217A4 (en) * 2002-06-11 2006-06-21 First Data Corp Value processing network and methods
CN108027867A (en) * 2015-07-14 2018-05-11 Fmr有限责任公司 Calculate efficient transfer accounts processing, audit and searcher, method and system
CN105956923A (en) * 2016-04-20 2016-09-21 上海如鸽投资有限公司 Asset transaction platform and digital certification and transaction method for assets
CN107018119A (en) * 2016-08-30 2017-08-04 阿里巴巴集团控股有限公司 Authentication system, method and platform
CN106548091A (en) * 2016-10-14 2017-03-29 北京爱接力科技发展有限公司 A kind of data deposit card, the method and device of checking
CN107240017A (en) * 2017-07-20 2017-10-10 捷德(中国)信息科技有限公司 Block chain trade managing system and method
CN107833060A (en) * 2017-11-13 2018-03-23 中国银行股份有限公司 The verification method and system of intelligent contract transaction in a kind of block chain
CN108229981A (en) * 2018-01-29 2018-06-29 杭州云象网络技术有限公司 A kind of anti-fake source tracing method of supply chain finance based on block chain

Also Published As

Publication number Publication date
CN108694670A (en) 2018-10-23

Similar Documents

Publication Publication Date Title
CN109118214B (en) Method and device for operating intelligent contract
CN108694670B (en) Transaction data verification method, device and system
CN108280628A (en) Core based on block chain technology pays for method, apparatus, medium and electronic equipment
CN111178894B (en) Asset type registration and transaction record verification method and system
CN108494557A (en) Social security digital certificate management method, computer readable storage medium and terminal device
CN109146248A (en) Customs declaration risk management and control method, calculates equipment and storage medium at device
CN106327140B (en) Method and device for monitoring data modification
CN107451812B (en) APP payment method on mobile terminal based on block chain technology
JPH01163871A (en) Hierarchization system for slip compressed sentence
CN111931245A (en) Information processing method and device
CN111260488A (en) Data processing method and device and readable storage medium
CN112862475A (en) Block chain-based order financing method and system, equipment and storage medium
CN108805507A (en) A kind of implementation method and device of electronic bill of lading
CN110991962A (en) Freight waybill processing method and device based on block chain, computing equipment and medium
CN114219342A (en) Carbon asset management method and device based on non-homogeneous evidence
CN111915256B (en) Method for constructing dispatch fence, off-site signing and identifying method and related equipment
CN113743863A (en) Vehicle and goods matching method based on intelligent contract
CN111768199A (en) Digital currency transaction method and local wallet system
CN108921490A (en) A kind of sending method of notification information, storage medium and server
CN110852864B (en) Digital resource amount processing method, device and storage medium
CN111161081B (en) Method and storage medium for third party guarantee of Fu Fei Ting based on blockchain
CN111194441B (en) Data management method and related system based on block chain
CN109377378B (en) Industry relevancy risk determination device and system
CN112950198A (en) Cross-border trade supervision method and device based on block chain and storage medium
CN112231634A (en) Credit limit calculation method, system and equipment based on enterprise information

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
CP03 Change of name, title or address

Address after: 519000 Rooms 806, 901 and 902, No. 29, Lanwan Lane, Tangjiawan Town, Xiangzhou District, Zhuhai City, Guangdong Province

Patentee after: Hongqiao Hi Tech Group Co.,Ltd.

Address before: 519000 1st floor, area D, South Software Park, No.1, Tangjiawan Software Park Road, Xiangzhou District, Zhuhai City, Guangdong Province

Patentee before: ZHUHAI HONGQIAO HIGH-TECH Co.,Ltd.

CP03 Change of name, title or address