Detailed Description
In order to enable a person skilled in the art to better understand the technical solutions in one or more embodiments of the present specification, the technical solutions in one or more embodiments of the present specification will be clearly and completely described below with reference to the drawings in one or more embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one or more embodiments of the present disclosure without inventive faculty, are intended to be within the scope of the present application.
One or more embodiments of the present disclosure provide a blockchain-based transaction early warning method, device and equipment, which automatically perform early warning analysis on a transaction request sent by a terminal device of a supplier user based on a blockchain intelligent contract, so as to effectively monitor accounts provided by a core enterprise, avoid the occurrence of illegal transactions and other phenomena caused by the supplier user using the accounts provided by the core enterprise, and promote the stable and orderly development of supply chain finance.
Fig. 1 is a schematic diagram of an application scenario of a transaction early warning system based on blockchain according to one or more embodiments of the present disclosure, as shown in fig. 1, where the system includes: the system comprises a blockchain node, terminal equipment of a core enterprise user and terminal equipment of a provider user; the terminal equipment of the core enterprise user and the terminal equipment of the provider user can be mobile phones, tablet computers, desktop computers, portable notebook computers and the like, and the terminal equipment of the core enterprise user and the terminal equipment of the provider user are in communication connection with the block chain link points through wireless networks.
Specifically, the terminal device of the core enterprise user receives accounts payable data sent by the core enterprise user and sends the accounts payable data to the blockchain node; the accounts payable data comprises account amount, user information (such as name, enterprise name of the enterprise, contact information and the like) of the provider user, account opening bank information (such as agricultural bank) of the provider user, account information (such as card number of a bank card) of the account opening bank of the provider user, payment mode and the like;
the blockchain node is used for receiving accounts payable data sent by the terminal equipment of the core enterprise user, and sending the accounts payable data to the terminal equipment of the provider user according to the user information of the provider user included in the accounts payable data so as to enable the provider user to audit the accounts payable data; generating transaction credential data according to accounts payable data when receiving audit passing information sent by terminal equipment of a provider user; acquiring transaction rules of transaction credential data and deploying intelligent contracts in a blockchain according to the acquired transaction rules; when a transaction request based on transaction credential data sent by terminal equipment of a provider user is received, carrying out early warning analysis on the transaction request through a deployed intelligent contract;
The terminal equipment of the supplier user receives accounts payable data sent by the blockchain node, displays the accounts payable data so that the supplier user can conduct auditing, and sends the auditing passing information to the blockchain node when the auditing passing information sent by the supplier user is received; and when transaction data based on the transaction credential data sent by the provider user is received, generating a transaction request according to the received transaction data, and sending the transaction request to the blockchain node so that the blockchain node processes the transaction request. After receiving the account corresponding to the transaction credential data provided by the core enterprise user, the provider user can use the account to conduct transactions with other provider users, such as account transfer-out, transfer-in, financing and the like; correspondingly, the transaction data comprises the amount of the transaction account, the user information and the bank account information of the user of the transfer-out provider of the transaction account, the user information and the bank account information of the user of the transfer-in provider of the transaction account, and the like.
According to the transaction early warning system based on the blockchain, the intelligent contract is distributed in the blockchain according to the transaction rule by acquiring the transaction rule of the transaction credential data, so that the transaction request sent by the terminal equipment of the supplier user is automatically subjected to early warning analysis based on the intelligent contract, the account provided by the core enterprise is effectively monitored, the phenomenon that the supplier user utilizes the account provided by the core enterprise to conduct illegal transaction and the like is avoided, and the stable and orderly development of supply chain finance is promoted.
FIG. 2 is a flow diagram of a blockchain-based transaction pre-warning method provided by one or more embodiments of the present disclosure, where the method of FIG. 2 can be performed by the blockchain node of FIG. 1, as shown in FIG. 2, and the method includes the steps of:
step S102, block chain link points receive accounts payable data sent by terminal equipment of a core enterprise user;
step S104, the blockchain node generates transaction credential data according to the payable account data;
step S106, the block chain link points acquire transaction rules of the transaction voucher data, and intelligent contracts are deployed in the block chain according to the acquired transaction rules;
step S108, when the blockchain node receives a transaction request based on transaction credential data sent by terminal equipment of a provider user, early warning analysis is carried out on the transaction request based on the deployed intelligent contract.
In one or more embodiments of the present disclosure, early warning analysis is automatically performed on a transaction request sent by a terminal device of a supplier user based on an intelligent contract deployed in a blockchain, so that effective supervision of accounts provided by a core enterprise is achieved, illegal transactions and other phenomena performed by the supplier user using accounts provided by the core enterprise are avoided, and stable and orderly development of supply chain finance is promoted.
Since the accounts payable data includes the accounts amount and the related information of the suppliers, in order to ensure the accuracy of the transaction credential data generated based on the accounts payable data, in one or more embodiments of the present disclosure, as shown in fig. 3, step S102 includes:
step S102-2, the block link point transmits the accounts payable data to the terminal equipment of the corresponding provider user according to the user information of the provider user included in the accounts payable data, so that the provider user can audit the accounts payable data;
step S102-4, if the blockchain node receives the audit passing information sent by the terminal equipment of the provider user within the preset time, generating transaction credential data according to the accounts payable data.
Specifically, the block chain link point sends the received accounts payable data to terminal equipment of the provider user according to the contact information included in the user information of the provider user, judges whether audit passing information sent by the terminal equipment of the provider user is received within a preset time length, and generates transaction credential data according to the accounts payable data when the judgment result is yes; if the judgment result is negative, the blockchain node sends transaction failure information to the terminal equipment of the core enterprise user; the contact way is such as a mailbox, account information of a provider user on a financial platform of a supply chain and the like. Therefore, the accounts payable data is sent to the provider user for auditing, so that the risk of disputes caused by misoperation of generated transaction credential data due to misoperation of information included in the accounts payable data is reduced.
Typically, in order to clarify transaction matters between the core enterprise and the provider, such as account amounts, transaction rules, etc., the core enterprise and the provider will sign a transaction contract; further, in order to minimize the user operation and avoid unnecessary trouble caused by input errors when the user manually inputs information, in one or more embodiments of the present disclosure, step S104 further includes:
step A, a block chain link point receives an electronic contract sent by terminal equipment of a core enterprise user;
specifically, the core enterprise user operates the terminal equipment thereof, and uploads an electronic contract signed by the core enterprise and the provider or an electronic scanning piece of the signed paper contract, which is collectively referred to as an electronic contract in the specification; and the terminal equipment of the core enterprise user receives the electronic contract uploaded by the core enterprise user, and sends the received electronic contract to the blockchain node, and the blockchain node receives the electronic contract sent by the terminal equipment of the core enterprise user. It should be noted that the electronic contract may be signed by the core enterprise user and the vendor, or by other users specified by the core enterprise and other users specified by the vendor; it should be further noted that the core enterprise user may upload the electronic contract before or after the accounts payable data is submitted, or may submit the accounts payable data and upload the electronic contract at the same time; that is, the step a may be performed before the step S102, may be performed after the step S102, or may be performed simultaneously with the step S102.
Correspondingly, step S104 includes:
the blockchain node searches a preset key field in the received electronic contract, and takes the clauses comprising the key field as the transaction rules of the transaction credential data.
The key field can be set according to the needs in practical application, for example, the key field comprises a financing ratio, and the term of the financing ratio field in the electronic contract, namely, the term that the financing ratio is not greater than 50% of the account amount, is used as a transaction rule of the transaction credential data. The method comprises the steps that the clauses comprising preset key fields are obtained from the electronic contract sent by the terminal equipment of a core enterprise user, the obtained clauses are used as the transaction rules of transaction evidence data, and user operation is reduced on the basis of ensuring consistency of the transaction rules and contract agreements; and the validity of the intelligent contract deployed based on the transaction rule is ensured, and the accuracy and the validity of the early warning analysis result are further ensured.
Because accounts payable data sent by different core enterprise users are different, transaction rules agreed between different core enterprises and different suppliers are different, so that transaction credential data generated by blockchain nodes according to accounts payable data sent by terminal equipment of different core enterprise users are different, and intelligent contracts deployed according to the transaction rules of the transaction credential data are also different; in order to effectively differentiate the transaction credential data, effectively differentiate the smart contracts, and accurately identify the smart contracts corresponding to different transaction credential data, in one or more embodiments of the present disclosure, after step S104, the method further includes:
Step B, the block chain link point generates an identification of transaction credential data;
after step S106, the method further includes:
step C1, generating contract identification of an intelligent contract by block chain link points;
and C2, performing association record on the identification of the generated transaction certificate data and the contract identification by the block link point to obtain association record information.
Further, considering that the core enterprise user and the provider user may have a plurality of transaction credential data, in order for the core enterprise user and the provider user to distinguish and manage their respective transaction credential data, and query the transaction records of the transaction credential data, step B further includes: the block link point sends the generated transaction credential data to the terminal equipment of the core enterprise user and the terminal equipment of the provider user in correspondence with the identification of the transaction credential data.
The intelligent contract for early warning analysis is determined according to the identification of the transaction credential data and the associated record information when the transaction request based on the transaction credential data is received. Specifically, as shown in fig. 4, in step S108, early warning analysis is performed on the transaction request based on the smart contract, including:
Step S108-2, the block link point obtains an associated contract identification from the associated record information according to the identification of the transaction credential data included in the transaction request;
step S108-4, the blockchain node calls a corresponding intelligent contract according to the acquired contract identification, determines whether transaction data meets the transaction rule of the transaction credential data based on the called intelligent contract, if so, executes step S108-6, and if not, executes step S108-8;
step S108-6, the block link point executes corresponding transaction operation according to the transaction data included in the transaction request, generates transaction record information, writes the transaction record information into the block chain, and sends transaction success information to terminal equipment of a provider user;
specifically, the block link point executes corresponding transaction operation according to the transaction data included in the transaction request, records the transaction data in association with the identification of the transaction voucher data, takes the recorded information as transaction record information, writes the transaction record information into the block chain, and sends transaction success information to the terminal equipment of the provider user.
The transaction data includes, but is not limited to, the amount of the transaction account, user information and bank account information of the transfer-out provider user of the transaction account, user information and bank account information of the transfer-in provider user of the transaction account. As an example, when the transaction request is used for requesting an account transfer (such as a transfer out) operation, the account to be transferred is transferred out of a bank account corresponding to the bank account information of the transfer-out supplier user with an amount of the account to be transferred included in the transaction data, and transferred into the bank account corresponding to the bank account information of the transfer-in supplier user, and the identification of the transaction credential data, the amount of the account to be transferred, the transfer time of the account to be transferred, the identity information of the transfer-out supplier user, the bank account information, the identity information of the transfer-in supplier user, and the bank account information are associated and recorded, and the recorded information is used as transaction record information, the transaction record information is written into the blockchain, and the transaction success information is transmitted to the terminal device of the supplier user.
In step S108-8, the blockchain node sends transaction failure information to the terminal device of the provider user.
Therefore, the intelligent contract automatically performs early warning analysis on the transaction request sent by the terminal equipment of the provider user to determine whether the transaction data meets the transaction rule of the transaction credential data, so that the phenomena that the provider user performs illegal transaction by using account provided by a core enterprise are avoided, the effective supervision of the account provided by the core enterprise is realized, and the sustainable development of supply chain finance is promoted. Meanwhile, by writing transaction record information into the blockchain, the non-tamper property and the disclosure and the investigation property of transaction data are ensured, and a data basis is provided for inquiring the transaction of the accounts provided by the core enterprise user. Based on this, in one or more embodiments of the present description, the method further comprises:
step D1, a block link point receives a transaction inquiry request sent by terminal equipment of a core enterprise user, wherein the transaction inquiry request comprises identification of transaction credential data to be inquired;
step D2, the blockchain node acquires corresponding transaction record information from the blockchain according to the identification of the transaction credential data to be queried;
Specifically, the block link point matches the identification of the transaction credential data to be queried with the identification of the transaction credential data in the transaction record information stored in the block chain; if the matching is successful, the corresponding transaction record information is used as the transaction record information corresponding to the identification of the transaction credential data to be queried.
Step D3, the blockchain node generates a circulation path diagram of accounts corresponding to the identification of the transaction credential data to be queried according to the acquired transaction record information;
specifically, the blockchain node acquires the amount of the transaction account, the user information of the user of the provider from which the transaction account is transferred and the user information of the user of the provider from which the transaction account is transferred in the transaction record information; and generating a circulation path diagram of the accounts corresponding to the identification of the transaction credential data to be queried according to the amount of the transaction accounts, the user information of the transfer-out provider user of the transaction accounts and the user information of the transfer-in provider user.
And D4, the block chain link point sends the circulation path diagram to the terminal equipment of the core enterprise user so as to display the circulation path diagram on the terminal equipment of the core enterprise user.
The circulation path diagram of the accounts corresponding to the identification of the transaction credential data to be inquired is generated, and the circulation path diagram is sent to the terminal equipment of the core enterprise user, so that all circulation nodes of the corresponding accounts are clearly and clearly displayed to the core enterprise user, the core enterprise user does not need to manually comb the circulation process of the accounts, and the inquiring experience of the core enterprise user is improved.
In one or more embodiments of the present disclosure, in order to avoid that the accounts payable data is maliciously tampered with and inconsistent with the transaction credential data, after the step B, the method further includes: the accounts payable data, the transaction credential data, and the identity of the transaction credential data are recorded in association and the recorded information is written into the blockchain.
In practical application, some provider users exist, after accounts provided by core enterprise users are received, no transaction operation is performed on the accounts, so that the accounts cannot be played, and risks such as illegal fund collection exist; in one or more embodiments of the present disclosure, a core enterprise user may set an operation period for performing a transaction operation on all accounts or a part of accounts corresponding to an account amount provided by the core enterprise user by a provider user, and when the operation period is reached, remind the provider user if it is determined that the provider user does not perform the transaction operation on all or a part of accounts provided by the core enterprise user; specifically, the method further comprises the steps of:
step E1, receiving an operation period of transaction operation of all accounts or part of accounts corresponding to the accounts by a provider from terminal equipment of a core enterprise user by a block link point;
Step E2, when the core enterprise user pays all accounts or part of accounts corresponding to the account amount to the provider user, the blockchain node records the payment time;
and E3, the blockchain node counts the time by taking the payment time as the starting time, and if the operation period is reached, the blockchain node determines that the supplier user does not conduct transaction operation on all accounts or part of accounts corresponding to the account amount, and then sends prompt information to the terminal equipment of the supplier user.
Specifically, the blockchain node counts the time by taking the payment time as the starting time, when the operation period is reached, corresponding transaction record information is searched in the blockchain according to the identification of the transaction certificate data, if the corresponding transaction record information is searched, the fact that the provider user performs transaction operation on all accounts or part of accounts corresponding to the account amount in the operation period is determined, if the corresponding transaction record information is not searched, the fact that the provider user does not perform transaction operation on all accounts or part of accounts corresponding to the account amount in the operation period is determined, and prompt information is sent to terminal equipment of the corresponding provider user.
In a specific embodiment, taking the example that the block link point receives accounts payable data and an electronic contract sent by a terminal device of a core enterprise user at the same time, as shown in fig. 5, the method includes:
Step S202, block chain link points receive accounts payable data and electronic contracts sent by terminal equipment of core enterprise users;
step S204, the blockchain node sends the payable account data to the terminal equipment of the corresponding supplier user according to the user information of the supplier user included in the payable account data;
step S206, the block chain node judges whether the audit passing information sent by the terminal equipment of the supplier user is received within the preset time period, if yes, the step S208 is executed, otherwise, the transaction failure information is sent to the terminal equipment of the core enterprise user;
step S208, the blockchain node generates transaction credential data according to the payable account data and generates an identifier of the transaction credential data;
step S210, the block chain link correlates records of accounts payable data, transaction credential data and identifications of the transaction credential data, writes the recorded information into a block chain, and correspondingly sends the generated transaction credential data and identifications of the transaction credential data to terminal equipment of a core enterprise user and terminal equipment of a provider user;
step S212, the blockchain node searches a preset key field in the electronic contract, and takes the clauses comprising the key field as a transaction rule of transaction credential data;
Step S214, the block chain link points distribute intelligent contracts in the block chain according to transaction rules and generate contract identifications of the intelligent contracts;
step S216, the block link point carries out association record on the identification of the generated transaction certificate data and the contract identification to obtain association record information;
step S218, when the blockchain node receives a transaction request based on transaction credential data sent by terminal equipment of a provider user, acquiring a corresponding contract identifier from associated record information according to the identifier of the transaction credential data included in the transaction request;
step S220, the blockchain node calls a corresponding intelligent contract according to the acquired contract identification, determines whether transaction data included in the transaction request meets the transaction rule of the transaction credential data or not based on the intelligent contract, if yes, step S222 is executed, and otherwise, transaction failure information is sent to terminal equipment of a provider user;
step S222, the block link points execute corresponding transaction operations according to the transaction data, and carry out association record on the identification of the transaction data and the transaction voucher data, and the recorded information is used as transaction record information;
in step S224, the block link writes the transaction record information into the block chain, and generates transaction success information to the terminal device of the provider user.
The specific implementation process of step S202 to step S224 may refer to the foregoing related description, and the repetition is not repeated here.
In one or more embodiments of the present disclosure, when the block link point receives accounts payable data sent by a terminal device of a core enterprise user, transaction credential data is generated according to the accounts payable data; acquiring transaction rules of transaction voucher data, and deploying intelligent contracts in a blockchain according to the transaction rules; and when the block link point receives a transaction request based on the transaction credential data sent by the terminal equipment of the provider user, carrying out early warning analysis on the transaction request based on the intelligent contract. Therefore, through the embodiment of the specification, the transaction request sent by the terminal equipment of the supplier user is automatically subjected to early warning analysis based on the intelligent contract deployed in the blockchain, so that the effective supervision of the account provided by the core enterprise is realized, the phenomenon that the supplier user uses the account provided by the core enterprise to conduct illegal transaction and the like is avoided, and the stable and orderly development of the supply chain finance is promoted.
Corresponding to the transaction early warning method based on the blockchain described in the above fig. 2 to 5, one or more embodiments of the present disclosure further provide a transaction early warning device based on the blockchain based on the same technical concept. Fig. 6 is a schematic block diagram of a block chain-based transaction pre-warning device according to one or more embodiments of the present disclosure, where the device is configured to perform the block chain-based transaction pre-warning method described in fig. 2 to 5, and as shown in fig. 6, the device includes:
A receiving module 301 that receives accounts payable data transmitted from a terminal device of a core enterprise user;
a first generation module 302 that generates transaction credential data from accounts payable data;
an acquisition module 304 that acquires transaction rules for the transaction credential data;
a deployment module 305 that deploys smart contracts in the blockchain according to transaction rules;
and the early warning module 306 is used for carrying out early warning analysis on the transaction request based on the intelligent contract when receiving the transaction request based on the transaction credential data and sent by the terminal equipment of the provider user.
In one or more embodiments of the present disclosure, early warning analysis is automatically performed on a transaction request sent by a terminal device of a supplier user based on an intelligent contract deployed in a blockchain, so that effective supervision of accounts provided by a core enterprise is achieved, illegal transactions and other phenomena caused by the supplier user using the accounts provided by the core enterprise are avoided, and stable and orderly development of supply chain finance is promoted.
Optionally, the accounts payable data includes user information of the vendor user;
the first generating module 302 sends the accounts payable data to the terminal device of the corresponding provider user according to the user information of the provider user, so that the provider user can audit the accounts payable data; the method comprises the steps of,
And if the audit passing information sent by the terminal equipment of the provider user is received within the preset time, generating transaction credential data according to the accounts payable data.
Optionally, the receiving module 301 further receives an electronic contract sent by a terminal device of the core enterprise user before the obtaining module 303 obtains the transaction rule of the transaction credential data;
the obtaining module 303 searches a preset key field in the electronic contract, and uses terms including the key field as a transaction rule of the transaction credential data.
Optionally, the apparatus further comprises: a second generation module;
the second generation module generates an identification of the transaction credential data after the first generation module 302 generates the transaction credential data from accounts payable data; the method comprises the steps of,
after the deployment module 302 deploys the intelligent contract in the blockchain according to the transaction rule, a contract identifier of the intelligent contract is generated, and the identifier of the transaction credential data and the contract identifier are associated and recorded to obtain associated record information.
Optionally, the early warning module 306 obtains an associated contract identifier from the associated record information according to the identifier of the transaction credential data included in the transaction request; the method comprises the steps of,
Calling a corresponding intelligent contract according to the acquired contract identification, and determining whether the transaction data meets the transaction rule of the transaction evidence data or not based on the called intelligent contract;
if yes, corresponding transaction operation is executed according to the transaction data, transaction record information is generated, the transaction record information is written into the blockchain, and transaction success information is sent to terminal equipment of the provider user;
if not, sending transaction failure information to the terminal equipment of the provider user.
Optionally, the early warning module 306 records the transaction data in association with the identification of the transaction credential data, and uses the recorded information as transaction record information.
Optionally, the second generation module, after generating the identification of the transaction credential data, associates the accounts payable data, the transaction credential data, and the identification of the transaction credential data with a record and writes the recorded information into the blockchain.
Optionally, the accounts payable data includes an account amount, the apparatus further comprising: the device comprises a recording module, a timing module and a sending module;
the receiving module 301 further receives an operation period of performing a transaction operation on all accounts or part of accounts corresponding to the accounts by the provider user, which is sent by the terminal device of the core enterprise user;
The recording module is used for recording the payment time when the core enterprise user pays all accounts or part of accounts corresponding to the account amount to the provider user;
the timing module is used for timing by taking the payment time as the initial time;
and the sending module is used for sending prompt information to terminal equipment of the provider user if the fact that the provider user does not conduct transaction operation on all accounts or part of accounts corresponding to the account amount is determined when the timing reaches the operation period.
The transaction early warning device based on the blockchain provided by one or more embodiments of the present disclosure can receive accounts payable data sent by a terminal device of a core enterprise user, and generate transaction credential data according to the accounts payable data; acquiring transaction rules of transaction voucher data, and deploying intelligent contracts in a blockchain according to the transaction rules; and when receiving a transaction request based on the transaction credential data sent by the terminal equipment of the provider user, performing early warning analysis on the transaction request based on the intelligent contract. Therefore, through the embodiment of the specification, the transaction request sent by the terminal equipment of the supplier user is automatically subjected to early warning analysis based on the intelligent contract deployed in the blockchain, so that the effective supervision of the account provided by the core enterprise is realized, the phenomenon that the supplier user uses the account provided by the core enterprise to conduct illegal transaction and the like is avoided, and the stable and orderly development of the supply chain finance is promoted.
It should be noted that, the embodiment of the transaction early warning device based on the blockchain in the present application and the embodiment of the transaction early warning method based on the blockchain in the present application are based on the same inventive concept, so that the specific implementation of the embodiment can refer to the implementation of the corresponding transaction early warning method based on the blockchain, and the repetition is omitted.
Further, according to the method shown in fig. 2 to 5, based on the same technical concept, one or more embodiments of the present disclosure further provide a blockchain-based transaction pre-warning device, where the device is configured to perform the blockchain-based transaction pre-warning method described above, and fig. 7 is a schematic structural diagram of the blockchain-based transaction pre-warning device provided by one or more embodiments of the present disclosure.
As shown in FIG. 7, blockchain-based transaction pre-warning devices may vary widely in configuration or performance, and may include one or more processors 401 and memory 402, where the memory 402 may store one or more storage applications or data. Wherein the memory 402 may be transient storage or persistent storage. The application program stored in memory 402 may include one or more modules (not shown in the figures), each of which may include a series of computer executable instructions in a blockchain-based transaction early warning device. Still further, the processor 401 may be configured to communicate with the memory 402 to execute a series of computer executable instructions in the memory 402 on the blockchain-based transaction pre-warning device. The blockchain-based transaction pre-warning device may also include one or more power supplies 403, one or more wired or wireless network interfaces 404, one or more input/output interfaces 405, one or more keyboards 406, and the like.
In one particular embodiment, a blockchain-based transaction pre-warning device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the blockchain-based transaction pre-warning device, and configured to be executed by one or more processors, the one or more programs including computer-executable instructions for:
receiving accounts payable data sent by terminal equipment of a core enterprise user;
generating transaction credential data from the accounts payable data;
acquiring a transaction rule of the transaction voucher data, and deploying an intelligent contract in a blockchain according to the transaction rule;
and when a transaction request based on the transaction credential data sent by the terminal equipment of the provider user is received, carrying out early warning analysis on the transaction request based on the intelligent contract.
In one or more embodiments of the present disclosure, early warning analysis is automatically performed on a transaction request sent by a terminal device of a supplier user based on an intelligent contract deployed in a blockchain, so that effective supervision of accounts provided by a core enterprise is achieved, illegal transactions and other phenomena caused by the supplier user using the accounts provided by the core enterprise are avoided, and stable and orderly development of supply chain finance is promoted.
Optionally, the computer executable instructions, when executed, the accounts payable data comprising user information of the vendor user, the generating transaction credential data from the accounts payable data comprising:
according to the user information of the provider user, sending the accounts payable data to the terminal equipment of the corresponding provider user so that the provider user can audit the accounts payable data;
and if the audit passing information sent by the terminal equipment of the provider user is received within the preset time, generating transaction credential data according to the accounts payable data.
Optionally, the computer executable instructions, when executed, further comprise, prior to the obtaining the transaction rules of the transaction credential data:
receiving an electronic contract sent by terminal equipment of the core enterprise user;
the transaction rule for acquiring the transaction credential data comprises:
searching a preset key field in the electronic contract, and taking the clauses comprising the key field as the transaction rule of the transaction evidence data.
Optionally, the computer executable instructions, when executed, further comprise, after generating transaction credential data from the accounts payable data:
Generating an identification of the transaction credential data;
after the intelligent contract is deployed in the blockchain according to the transaction rule, the method further comprises:
generating a contract identification of the smart contract;
and carrying out association record on the identification of the transaction certificate data and the contract identification to obtain association record information.
Optionally, the transaction request, when executed, includes an identification of the transaction credential data and transaction data, the pre-alarm analysis of the transaction request based on the smart contract comprising:
acquiring an associated contract identification from the associated record information according to the identification of the transaction credential data;
calling a corresponding intelligent contract according to the acquired contract identification, and determining whether the transaction data meets the transaction rule of the transaction evidence data or not based on the called intelligent contract;
if yes, corresponding transaction operation is executed according to the transaction data, transaction record information is generated, the transaction record information is written into the blockchain, and transaction success information is sent to terminal equipment of the provider user;
if not, sending transaction failure information to the terminal equipment of the provider user.
Optionally, the computer executable instructions, when executed, generate transaction record information comprising:
and associating and recording the transaction data with the identification of the transaction credential data, and taking the recorded information as transaction record information.
Optionally, the computer executable instructions, when executed, further comprise, after said generating the identification of the transaction credential data:
record the accounts payable data, the transaction credential data, and an identification of the transaction credential data in association and write the recorded information into the blockchain.
Optionally, the computer executable instructions, when executed, the accounts payable data comprises an account amount, the method further comprising:
receiving an operation period of transaction operation of all accounts or part accounts corresponding to the accounts by the provider user, wherein the operation period is sent by the terminal equipment of the core enterprise user; the method comprises the steps of,
when the core enterprise user pays all accounts or part of accounts corresponding to the account amount to the provider user, recording payment time;
and taking the payment time as the starting time for timing, and if the operation period is reached, determining that the supplier user does not conduct transaction operation on all accounts or part accounts corresponding to the account amount, and sending prompt information to terminal equipment of the supplier user.
The transaction early warning device based on the blockchain provided by one or more embodiments of the present disclosure can generate transaction credential data according to accounts payable data when the accounts payable data sent by the terminal device of a core enterprise user is received; acquiring transaction rules of transaction voucher data, and deploying intelligent contracts in a blockchain according to the transaction rules; and when receiving a transaction request based on the transaction credential data sent by the terminal equipment of the provider user, performing early warning analysis on the transaction request based on the intelligent contract. Therefore, through the embodiment of the specification, the transaction request sent by the terminal equipment of the supplier user is automatically subjected to early warning analysis based on the intelligent contract deployed in the blockchain, so that the effective supervision of the account provided by the core enterprise is realized, the phenomenon that the supplier user uses the account provided by the core enterprise to conduct illegal transaction and the like is avoided, and the stable and orderly development of the supply chain finance is promoted.
It should be noted that, in the present specification, the embodiment of the transaction early warning device based on the blockchain is based on the same inventive concept as the embodiment of the transaction early warning method based on the blockchain in the present specification, so that the specific implementation of the embodiment may refer to the implementation of the corresponding transaction early warning method based on the blockchain, and the repetition is omitted.
Further, in accordance with the methods shown in fig. 2 to 5, based on the same technical concept, one or more embodiments of the present disclosure further provide a storage medium for storing computer executable instructions, where in a specific embodiment, the storage medium may be a U-disc, an optical disc, a hard disk, etc., and the computer executable instructions stored in the storage medium can implement the following flow when executed by a processor:
receiving accounts payable data sent by terminal equipment of a core enterprise user;
generating transaction credential data from the accounts payable data;
acquiring a transaction rule of the transaction voucher data, and deploying an intelligent contract in a blockchain according to the transaction rule;
and when a transaction request based on the transaction credential data sent by the terminal equipment of the provider user is received, carrying out early warning analysis on the transaction request based on the intelligent contract.
In one or more embodiments of the present disclosure, early warning analysis is automatically performed on a transaction request sent by a terminal device of a supplier user based on an intelligent contract deployed in a blockchain, so that effective supervision of accounts provided by a core enterprise is achieved, illegal transactions and other phenomena caused by the supplier user using the accounts provided by the core enterprise are avoided, and stable and orderly development of supply chain finance is promoted.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, the accounts payable data includes user information of the vendor user, the generating transaction credential data from the accounts payable data includes:
according to the user information of the provider user, sending the accounts payable data to the terminal equipment of the corresponding provider user so that the provider user can audit the accounts payable data;
and if the audit passing information sent by the terminal equipment of the provider user is received within the preset time, generating transaction credential data according to the accounts payable data.
Optionally, the computer executable instructions stored on the storage medium, when executed by the processor, further comprise, prior to the obtaining the transaction rules of the transaction credential data:
receiving an electronic contract sent by terminal equipment of the core enterprise user;
the transaction rule for acquiring the transaction credential data comprises:
searching a preset key field in the electronic contract, and taking the clauses comprising the key field as the transaction rule of the transaction evidence data.
Optionally, the computer executable instructions stored on the storage medium, when executed by the processor, further comprise, after generating transaction credential data from the accounts payable data:
Generating an identification of the transaction credential data;
after the intelligent contract is deployed in the blockchain according to the transaction rule, the method further comprises:
generating a contract identification of the smart contract;
and carrying out association record on the identification of the transaction certificate data and the contract identification to obtain association record information.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, the transaction request includes an identification of the transaction credential data and transaction data, the pre-warning analysis of the transaction request based on the smart contract includes:
acquiring an associated contract identification from the associated record information according to the identification of the transaction credential data;
calling a corresponding intelligent contract according to the acquired contract identification, and determining whether the transaction data meets the transaction rule of the transaction evidence data or not based on the called intelligent contract;
if yes, corresponding transaction operation is executed according to the transaction data, transaction record information is generated, the transaction record information is written into the blockchain, and transaction success information is sent to terminal equipment of the provider user;
if not, sending transaction failure information to the terminal equipment of the provider user.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, generate transaction record information comprising:
and associating and recording the transaction data with the identification of the transaction credential data, and taking the recorded information as transaction record information.
Optionally, the computer executable instructions stored on the storage medium, when executed by the processor, further comprise, after generating the credential identification of the transaction credential data:
record the accounts payable data, the transaction credential data, and an identification of the transaction credential data in association and write the recorded information into the blockchain.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, the accounts payable data comprises an account amount, the method further comprising:
receiving an operation period of transaction operation of all accounts or part accounts corresponding to the accounts by the provider user, wherein the operation period is sent by the terminal equipment of the core enterprise user; the method comprises the steps of,
when the core enterprise user pays all accounts or part of accounts corresponding to the account amount to the provider user, recording payment time;
And taking the payment time as the starting time for timing, and if the operation period is reached, determining that the supplier user does not conduct transaction operation on all accounts or part accounts corresponding to the account amount, and sending prompt information to terminal equipment of the supplier user.
The storage medium stores computer-executable instructions that, when executed by the processor, receive accounts payable data sent by a terminal device of a core enterprise user, and generate transaction credential data based on the accounts payable data; acquiring transaction rules of transaction voucher data, and deploying intelligent contracts in a blockchain according to the transaction rules; and when receiving a transaction request based on the transaction credential data sent by the terminal equipment of the provider user, performing early warning analysis on the transaction request based on the intelligent contract. Therefore, through the embodiment in the specification, the transaction request sent by the supplier user is automatically subjected to early warning analysis based on the intelligent contracts deployed in the blockchain, so that the effective supervision of the account provided by the core enterprise is realized, the phenomenon that the supplier user uses the account provided by the core enterprise to conduct illegal transaction and the like is avoided, and the stable and orderly development of the supply chain finance is promoted.
It should be noted that, the embodiment of the present application related to the storage medium and the embodiment of the present application related to the transaction pre-warning method based on the blockchain are based on the same inventive concept, so that the specific implementation of the embodiment may refer to the implementation of the corresponding transaction pre-warning method based on the blockchain, and the repetition is omitted.
In the 40 s of the 20 th century, improvements to one technology could clearly be distinguished as hardware improvements (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software improvements (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in the same piece or pieces of software and/or hardware when implementing the present application.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.