Data processing method based on smart contract and related equipment
Through smart contracts, the adjustment information and trigger conditions are defined on the blockchain, the problem of data immobility of financial products is solved, personalized processing of financial product data and instruction generation is realized, and the credibility and controllability of data processing is improved.
Patent Information
- Application Number
- CN202410542263.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-04-30
AI Technical Summary
The data of financial products is relatively fixed, uncontrollable and agnostic, which makes it impossible for customers to personalize their processing according to their own needs.
Using a smart contract-based data processing method, the adjustment information, trigger conditions and indicator data types in the smart contract are obtained through blockchain, the financial product data is collected, the indicator data is calculated, and adjustment instructions are generated when the trigger conditions are met, and the bank is sent. Or make adjustments to the insurance company equipment.
It improves the credibility and personalization of data processing of financial products, making the data and indicator data more controllable and knowable, and meets the specific needs of customers and target parties.
Smart Images

Figure CN118941382A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of blockchain data processing, and in particular relates to a data processing method and related equipment based on smart contracts. Background Art
[0002] The data of financial products such as stocks, funds, and bonds are complex and diverse, so it is particularly important to process the data of financial products.
[0003] Currently, data on a series of financial products is generally provided by agents or third-party websites. After receiving this data, customers choose financial products based on their own processing methods and risk tolerance.
[0004] However, the data on a series of financial products provided by agents or third-party websites are relatively fixed, and the source and processing methods of these data are often subject to multiple factors, and these data are often uncontrollable and unknowable. Summary of the invention
[0005] In view of the above problems, this application proposes a data processing method and related equipment based on smart contracts. In order to solve the problem that the data of financial products is relatively fixed, uncontrollable and unknowable, the specific solution is as follows:
[0006] A data processing method based on a smart contract, applied to an application server, the method comprising:
[0007] Obtain a smart contract from the blockchain, wherein the smart contract carries adjustment information, trigger conditions, source data type, and indicator data type, and the smart contract is a smart contract signed between the client and the target party, and the target party includes at least one of a bank and an insurance company;
[0008] Collecting data of financial products corresponding to the source data type from a network server, wherein the data of the financial products at the network server is obtained from the blockchain by a smart gateway and sent to the network server after being aggregated;
[0009] Calculating the data of the financial product to obtain indicator data corresponding to the indicator data type;
[0010] Determine whether the indicator data meets the trigger condition. If so, generate an instruction for adjusting at least one data of the financial product based on the adjustment information, and send the instruction to a target device, which includes a bank-side device and / or an insurance company-side device.
[0011] Optionally, the data of the financial product includes a phase rate of return, a compound rate of return, an excess phase rate of return, a phase drawdown rate and market value fluctuation; the indicator data includes an investment additional performance indicator and an investment redemption performance indicator;
[0012] The calculating the data of the financial product to obtain the indicator data corresponding to the indicator data type includes:
[0013] Calculate the stage rate of return, the compound rate of return and the excess stage rate of return according to a preset first calculation formula to obtain an additional investment performance indicator;
[0014] The investment additional performance indicator, the stage drawdown rate and the market value fluctuation are calculated according to a preset second calculation formula to obtain an investment redemption performance indicator.
[0015] Optionally, the smart contract is a first smart contract signed between the customer and the bank, the triggering condition of the first smart contract is a first triggering condition and a second triggering condition, the adjustment information includes first adjustment information and second adjustment information, and the instruction includes a first instruction and a second instruction;
[0016] The determining whether the indicator data satisfies the trigger condition, and if so, generating an instruction for adjusting at least one data of the financial product based on the adjustment information, and sending the instruction to a target device, wherein the target device includes a bank-side device and / or an insurance company-side device, including:
[0017] Determine whether the additional investment performance indicator and the investment redemption performance indicator meet the first trigger condition, and if so, generate a first instruction for controlling at least one data of the financial product based on the first adjustment information, and send the first instruction to a bank-side device, wherein the first instruction is used to instruct to gradually reduce the additional investment amount of the financial product according to a preset additional investment strategy;
[0018] Determine whether the investment redemption performance indicator meets the second trigger condition. If so, generate a second instruction for controlling at least one data of the financial product based on the second adjustment information, and send the second instruction to the bank-side device. The second instruction is used to instruct to gradually increase the redemption investment amount of the financial product according to a preset investment redemption strategy.
[0019] Optionally, the indicator data includes a return amount indicator, the smart contract is a second smart contract signed between the customer and the insurance company, the triggering condition of the second smart contract is a third triggering condition, the adjustment information includes third adjustment information, and the instruction includes a third instruction;
[0020] The determining whether the indicator data satisfies the trigger condition, and if so, generating an instruction for adjusting at least one data of the financial product based on the adjustment information, and sending the instruction to a target device, wherein the target device includes a bank-side device and / or an insurance company-side device, including:
[0021] Determine whether the return amount indicator satisfies the third trigger condition. If so, generate a third instruction for controlling at least one data of the financial product based on the third adjustment information, and send the third instruction to the insurance company side device. The third instruction is used to instruct compensation according to a preset compensation amount.
[0022] Optionally, the method further includes:
[0023] Determining whether all instructions corresponding to the adjustment information of the smart contract have been executed;
[0024] If all instructions corresponding to the adjustment information of the smart contract have been executed, a completed mark is added to the smart contract and removed from the blockchain;
[0025] If all instructions corresponding to the adjustment information of the smart contract have not been executed, an unfinished mark is added to the smart contract and waits in the blockchain.
[0026] A data processing device based on a smart contract, applied to an application server, comprising:
[0027] an acquisition unit, configured to acquire a smart contract from a blockchain, wherein the smart contract carries adjustment information, trigger conditions, source data type, and indicator data type, and the smart contract is a smart contract signed between a client and a target party, wherein the target party includes at least one of a bank and an insurance company;
[0028] A collection unit, configured to collect data of financial products corresponding to the source data type from a network server, wherein the data of the financial products at the network server is obtained from the blockchain by an intelligent gateway and sent to the network server after being collected;
[0029] A calculation unit, used to calculate the data of the financial product to obtain indicator data corresponding to the indicator data type;
[0030] A generating unit is used to determine whether the indicator data satisfies the trigger condition. If so, an instruction for adjusting at least one data of the financial product is generated based on the adjustment information, and the instruction is sent to a target device, which includes a bank-side device and / or an insurance company-side device.
[0031] Optionally, the data of the financial product includes a phase rate of return, a compound rate of return, an excess phase rate of return, a phase drawdown rate and market value fluctuation; the indicator data includes an investment additional performance indicator and an investment redemption performance indicator;
[0032] The computing unit comprises:
[0033] A first calculation subunit is used to calculate the stage rate of return, the compound rate of return and the excess stage rate of return according to a preset first calculation formula to obtain an additional investment performance indicator;
[0034] The second calculation subunit is used to calculate the investment additional performance indicator, the stage drawdown rate and the market value fluctuation according to a preset second calculation formula to obtain the investment redemption performance indicator.
[0035] A data processing device based on a smart contract, comprising a memory and a processor;
[0036] The memory is used to store programs;
[0037] The processor is used to execute the program to implement each step of the data processing method based on smart contract described in any one of the above items.
[0038] A readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, each step of the data processing method based on a smart contract described in any one of the above items is implemented.
[0039] A computer program product comprises a computer program, wherein when the computer program is executed by a processor, each step of the data processing method based on a smart contract as described above is implemented.
[0040] Based on the above technical solution, the present invention provides a data processing method based on smart contracts and related equipment, which can perform data processing based on smart contracts. Smart contracts are personalized contracts jointly formulated by customers and target parties of financial products according to specific needs. The adjustment information, trigger conditions, source data types and indicator data types contained therein are personalized, controllable and knowable to customers and target parties. This application can collect personalized data of financial products and calculate personalized indicator data, and then generate instructions when the indicator data meets the trigger conditions. These collection, calculation, condition judgment and instruction generation processes are all consistent with smart contracts, which improves the credibility of the data processing process of financial products, and also improves the credibility of the collected data and the calculated indicator data. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0042] Figure 1 A flowchart of a data processing method based on a smart contract disclosed in an embodiment of the present application;
[0043] Figure 2 A schematic diagram of data flow of a financial product disclosed in an embodiment of the present application;
[0044] Figure 3 A schematic diagram of the structure of a data processing device based on a smart contract disclosed in an embodiment of the present application;
[0045] Figure 4 This is a hardware structure block diagram of a data processing device based on a smart contract disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0046] It should be noted that the advertising display method and related devices in the Metaverse Bank provided by the present invention can be used in the field of big data or finance. The above is only an example and does not limit the application field of the advertising display method and related devices in the Metaverse Bank provided by the present invention.
[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable where appropriate, which is merely a way of distinguishing objects of the same attributes when describing the embodiments of the present invention. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, so that a process, method, system, product, or device that includes a series of units is not necessarily limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0049] In order to solve the problem that the data of financial products is relatively fixed, uncontrollable and unknowable, the present application provides a data processing method based on smart contracts. The data processing method based on smart contracts provided by the present application is further described in detail below in combination with the accompanying drawings and specific implementation methods.
[0050] Please refer to the attached Figure 1 , Figure 1 A flowchart of a data processing method based on a smart contract provided in an embodiment of the present application. The method is applied to an application server and may include the following steps:
[0051] Step S101: Obtain a smart contract from the blockchain. The smart contract carries adjustment information, trigger conditions, source data type, and indicator data type. The smart contract is a smart contract signed between a client and a target party. The target party includes at least one of a bank and an insurance company.
[0052] In this application, the client and the target party can jointly agree on specific commitments, including adjustment information, trigger conditions, source data types and indicator data types, which can be digitized using a programming language. The client and the target party sign using their respective private keys, and the commitments are disseminated through the P2P network and stored in the blockchain.
[0053] Specifically, banks , Insurance Company and customers The three parties can agree on a period Financial products Develop partnerships and sign smart contracts ; At the same time, banks and investment clients The first smart contract can be signed Insurance companies and investment clients A second smart contract can be signed .
[0054] in, The bank, insurance company and investment client agree to The three parties shall The details are confirmed and their respective private keys are used on the blockchain. Sign to ensure the validity of the contract.
[0055] The basic algorithm logic of the smart contract signed by the bank, insurance company and investment client can be referenced as follows: ; ; ; ;
[0056] The bank provides a package of financial products. If the customer chooses to buy a financial product The bank and the insurance company jointly initiate the insurance demand on the blockchain. If the insurance company responds, the three parties reach a cooperation intention. At this time, the cooperation cycle of the three parties on financial products is set. and number of stage splits After that, the customer account will be transferred all at once. To bank digital currency as commission, of which, is the commission adjustment parameter; is the number of shares of a financial product purchased; It is the market value of financial products, and is jointly determined by banks and insurance companies. and , and the insurance company will give a deductible ,in is the deductible adjustment parameter; It is the deductible limit for homogeneous financial products and gives the insured amount. The inventor of this application found that It can also be used as an adjustment parameter for the insured amount; It is the insured amount of homogeneous financial products.
[0057] The first smart contract stipulates that when the financial product provided by the bank meets the first trigger condition After that, the customer makes additional investment funds to the bank; at the same time, it is agreed that when the financial products provided by the bank meet the second trigger condition After that, the customer redeems the existing funds from the bank, and both parties The details are confirmed and their respective private keys are used on the blockchain. Sign to ensure the validity of the contract.
[0058] The second smart contract stipulates that the third trigger condition is met After that, the insurance company pays the claim to the customer, and the two parties The details are confirmed and their respective private keys are used on the blockchain. Sign to ensure the validity of the contract.
[0059] It should be noted that the basic algorithm logic of the first smart contract can be referred to as follows: ; ; ; ; ; ; ; ;
[0060] Under the terms of tripartite cooperation If the first trigger condition is met When the customer receives the investment, the investment additional action will be triggered, and the customer will automatically transfer the money in his digital currency account to the bank digital currency investment account of the financial product, and record the number and amount of additional investment, and update the second smart contract with the insurance company according to the amount and product attributes. .
[0061] Under the terms of tripartite cooperation If the second trigger condition is met When the redemption of the investment amount is triggered, the bank will automatically transfer the money in the digital currency account under the financial product to the customer's digital currency personal account and record the number and amount of additional investment. , the insurance company automatically transfers the money in the digital currency account related to the financial product to the customer's digital currency personal account.
[0062] Once the smart contract for this financial product ends, the customer will update the total amount of the bank's previous financial products. , and update the commission adjustment factor for tripartite contract investment ,in is the number of investments; is the number of redemptions; is the redemption amount; is the total investment amount; It is the adjustment parameter of the investment commission adjustment factor, which will be used to sign a smart contract the next time the two parties cooperate.
[0063] It should be noted that the basic algorithm logic of the second smart contract can be referred to as follows: ; ; ;
[0064] Under the terms of tripartite cooperation If the conditions for compensation are met, When the compensation action is triggered, Automatically transfer the funds in the digital currency account under this financial product to A personal digital currency account that records the number and amount of additional compensation.
[0065] Once the smart contract for this financial product ends, the insurance company will update the total amount of compensation for all previous financial products in cooperation with the bank. , and update the insured amount and deductible adjustment factor when the three parties sign the contract ,in, is the total amount of compensation paid; is the average total amount of compensation for homogeneous financial products, which is used for signing smart contracts when the two parties cooperate next time. It is the average loss of homogeneous financial products.
[0066] Step S102: Collect data of financial products corresponding to the source data type from the network server. The data of financial products at the network server is obtained from the blockchain by the intelligent gateway and sent to the network server after aggregation.
[0067] It should be noted that the data of financial products include stage yield, compound yield, excess stage yield, stage drawdown rate and market value fluctuation.
[0068] In this application, the blockchain technology and digital currency payment system can be used to collect the capital flow data on the blockchain network through the intelligent gateway and transmit it to the network server at the same time, and then send it to the application server for data processing and indicator analysis, and finally store it on the chain for use in smart contracts. In addition, the behavioral data of customers and targets can also be recorded and processed after the smart contract is triggered and stored on the chain for use in signing subsequent smart contracts. For ease of understanding, you can refer to Figure 2 , Figure 2 A schematic diagram of the data flow of a financial product disclosed in an embodiment of the present application.
[0069] Specifically, in , , Three parties in cycle After the partnership is established, trigger Starting with the unit phase as the interval, the data collection of financial products from the blockchain is carried out, and the following basic performance indicators are obtained:
[0070] Phase rate of return: ,in and Respectively represent To At this stage and of the asset value, and ; This indicator indicates the To The profitability of financial products during this period.
[0071] Compound rate of return: , which indicates the first to this The compound returns of financial products at different stages.
[0072] Excess stage rate of return: ,in Indicates To The index yield within this period; this indicator can represent the financial product from the 1st to the this The profitability of this financial product in the current market at each stage.
[0073] Phase retracement rate: ,in and Respectively represent the 1st to the this The highest and lowest asset market value in a certain period; this indicator can represent the risk level of the financial product.
[0074] Market value fluctuations: ,in Indicates To At this stage The market value of assets, Representation stage The average asset market value of this The degree of stability of the market value of the financial product at each stage.
[0075] Step S103: Calculate the data of the financial product to obtain indicator data corresponding to the indicator data type.
[0076] It should be noted that the indicator data includes investment increase performance indicators and investment redemption performance indicators.
[0077] In this application, the total amount of stage, namely , The stage yield, compound yield and excess stage yield can be calculated according to the preset first calculation formula to obtain the investment additional performance index, and then the investment additional performance index, stage retracement rate and market value fluctuation can be calculated according to the preset second calculation formula to obtain the investment redemption performance index.
[0078] Specifically, investment in additional performance indicators ,in ,and , Indicates the stage rate of return The weight factor of Represents compound rate of return The weight factor of Excess stage rate of return The weight factor. Above threshold or below the threshold hour, Increase to , and Down to and , truly reflects the financial products in the stage when the market encounters extreme situations Performance at the end of the day; when the market hour, Down to , and Increase to and , truly reflects the financial products in the stable market state in the stage Performance at the end.
[0079] Investment Redemption Performance Indicators ,in ,and Much greater than . Indicates the phase retracement rate The weight factor of express The weight factor of .
[0080] Step S104: Determine whether the indicator data meets the trigger condition. If so, generate an instruction for adjusting at least one data of the financial product based on the adjustment information, and send the instruction to the target device, which includes a bank-side device and / or an insurance company-side device.
[0081] It should be noted that the adjustment information includes first adjustment information, second adjustment information and third adjustment information, and the instruction includes first instruction, second instruction and third instruction corresponding to the adjustment information. The indicator data includes the return amount indicator.
[0082] In the present application, it is determined whether the investment additional performance indicator and the investment redemption performance indicator meet the first trigger condition for the first smart contract. If so, a first instruction for controlling at least one data of the financial product is generated based on the first adjustment information, and the first instruction is sent to the bank-side device. The first instruction is used to instruct the additional investment amount of the financial product to be gradually reduced according to a preset investment additional strategy.
[0083] Specifically, the first trigger condition for: and , and Respectively represent the investment additional performance indicators and investment redemption performance indicators of homogeneous financial products, and set the investment additional strategy ,in It is the lowest threshold of market conditions; is the current market conditions; It is an investment additional performance indicator; It is an additional performance indicator for investment in homogeneous financial products; It is the benchmark amount for additional investment. By adjusting the previous parameters, it is possible to gradually reduce the amount of additional investment and avoid chasing high prices when the market conditions gradually improve.
[0084] Determine whether the investment redemption performance indicator meets the second trigger condition for the first smart contract. If so, generate a second instruction for controlling at least one data of the financial product based on the second adjustment information, and send the second instruction to the bank-side device. The second instruction is used to instruct to gradually increase the redemption investment amount of the financial product according to a preset investment redemption strategy.
[0085] Specifically, the second trigger condition for: , and set investment redemption strategy ,in, It is the highest threshold of market conditions; It is the investment redemption performance indicator of the current market value; It is a performance indicator of investment and redemption of homogeneous financial products; is the redemption investment benchmark amount; It is the benchmark amount for redemption investment. By adjusting the previous parameters, it is possible to gradually increase the redemption investment amount to avoid deep losses when the market conditions become gradually sluggish.
[0086] The second intelligent judgment determines whether the return amount indicator meets the third trigger condition. If so, a third instruction for controlling at least one data of the financial product is generated based on the third adjustment information, and the third instruction is sent to the insurance company side device. The third instruction is used to instruct compensation according to the preset compensation amount.
[0087] Specifically, the third trigger condition for: > ,in is the return amount indicator, is the deductible amount; at the same time, set the insurance company's compensation amount: ,in is the market value at the time of redemption, yes The initial market value of the corresponding financial product when it is established. is the number of product shares held before redemption, is the compensation adjustment factor, and .
[0088] In summary, the data processing method based on smart contracts provided by the present invention can perform data processing based on smart contracts. Smart contracts are personalized contracts jointly formulated by customers and target parties of financial products according to specific needs. The adjustment information, trigger conditions, source data types and indicator data types contained therein are personalized, controllable and knowable to customers and target parties. The present application can collect personalized data of financial products and calculate personalized indicator data, and then generate instructions when the indicator data meets the trigger conditions. These collection, calculation, condition judgment and instruction generation processes are all consistent with smart contracts, which improves the credibility of the data processing process of financial products, and also improves the credibility of the collected data and the calculated indicator data.
[0089] Furthermore, the method may further include the steps of:
[0090] Step S105: Determine whether all instructions corresponding to the adjustment information of the smart contract have been executed.
[0091] In this application, smart contracts involving clients and targets in the blockchain can periodically check the state of the automaton, and traverse the state machines, trigger conditions, and adjustment information contained in each contract one by one.
[0092] When all instructions corresponding to the adjustment information of the smart contract have been executed, step S106 is executed.
[0093] Step S106: Add a completed mark to the smart contract and remove it from the blockchain.
[0094] In this application, the adjustment information that meets the triggering conditions in the smart contract can be pushed to the queue to be verified and wait for consensus. When the adjustment information enters the latest round of verification, it will be spread to each node of the financial product related party for verification to form a consensus, and then the adjustment information will be successfully executed and notified to the user. When all the adjustment information included in the contract is executed sequentially, the state machine will mark the status of the smart contract as completed and remove the smart contract from the latest block.
[0095] If all instructions corresponding to the adjustment information of the smart contract have not been executed, step S107 is executed.
[0096] Step S107: Add an unfinished mark to the smart contract and wait in the blockchain.
[0097] In this application, for the adjustment information in the smart contract that does not meet the trigger conditions, the state machine will mark the status of the smart contract as incomplete, continue to save it in the latest block waiting for the next round of processing, and mark it as in progress until the processing is completed. The entire adjustment information and state machine processing are automatically completed by the smart contract built into the underlying blockchain.
[0098] In summary, this process helps ensure that the execution of smart contracts on the blockchain is reliable and orderly, while also optimizing the efficiency of blockchain usage and avoiding unnecessary storage overhead.
[0099] The method is described in detail in the embodiments disclosed in the above-mentioned present application. The method of the present application can be implemented by various forms of devices. Therefore, the present application also discloses a data processing device based on a smart contract. A specific embodiment is given below for detailed description.
[0100] Please refer to the attached Figure 3 , Figure 3 This is a schematic diagram of the structure of a data processing device based on a smart contract disclosed in an embodiment of the present application. The device is applied to an application server, and the device includes:
[0101] The acquisition unit 11 is used to obtain a smart contract from the blockchain, wherein the smart contract carries adjustment information, trigger conditions, source data type and indicator data type, and the smart contract is a smart contract signed between a client and a target party, and the target party includes at least one of a bank and an insurance company.
[0102] The collection unit 12 is used to collect data of financial products corresponding to the source data type from the network server. The data of the financial products at the network server is obtained from the blockchain by the intelligent gateway and sent to the network server after aggregation.
[0103] The calculation unit 13 is used to calculate the data of the financial product to obtain indicator data corresponding to the indicator data type.
[0104] The generating unit 14 is used to determine whether the indicator data satisfies the trigger condition. If so, an instruction for adjusting at least one data of the financial product is generated based on the adjustment information, and the instruction is sent to a target device, which includes a bank-side device and / or an insurance company-side device.
[0105] As an implementable method, the data of the financial product includes the period rate of return, compound rate of return, excess period rate of return, period drawdown rate and market value fluctuation. The indicator data includes investment additional performance indicator and investment redemption performance indicator.
[0106] The calculation unit 13 includes:
[0107] The first calculation subunit is used to calculate the stage rate of return, the compound rate of return and the excess stage rate of return according to a preset first calculation formula to obtain an investment additional performance indicator.
[0108] The second calculation subunit is used to calculate the investment additional performance indicator, the stage drawdown rate and the market value fluctuation according to a preset second calculation formula to obtain the investment redemption performance indicator.
[0109] As an implementable embodiment, the smart contract is a first smart contract signed between the customer and the bank, the triggering condition of the first smart contract is a first triggering condition and a second triggering condition, the adjustment information includes first adjustment information and second adjustment information, and the instruction includes a first instruction and a second instruction;
[0110] The generating unit 14 comprises:
[0111] The first generating sub-unit is used to determine whether the investment additional performance indicator and the investment redemption performance indicator meet the first trigger condition. If so, a first instruction for controlling at least one data of the financial product is generated based on the first adjustment information, and the first instruction is sent to a bank-side device. The first instruction is used to instruct to gradually reduce the additional investment amount of the financial product according to a preset investment additional strategy.
[0112] The second generating sub-unit is used to determine whether the investment redemption performance indicator meets the second trigger condition. If so, a second instruction for controlling at least one data of the financial product is generated based on the second adjustment information, and the second instruction is sent to the bank-side device. The second instruction is used to instruct to gradually increase the redemption investment amount of the financial product according to a preset investment redemption strategy.
[0113] As an implementable embodiment, the indicator data includes a return amount indicator, the smart contract is a second smart contract signed between the customer and the insurance company, the triggering condition of the second smart contract is a third triggering condition, the adjustment information includes third adjustment information, and the instruction includes a third instruction;
[0114] The generating unit 14 comprises:
[0115] The third generating sub-unit is used to determine whether the return amount indicator satisfies the third trigger condition. If so, a third instruction for controlling at least one data of the financial product is generated based on the third adjustment information, and the third instruction is sent to the insurance company side device. The third instruction is used to instruct compensation according to a preset compensation amount.
[0116] As an implementable embodiment, the device further includes:
[0117] A judgment unit is used to judge whether all instructions corresponding to the adjustment information of the smart contract have been executed.
[0118] A first marking unit, configured to add a completed mark to the smart contract and remove it from the blockchain if all instructions corresponding to the adjustment information of the smart contract have been executed;
[0119] The second marking unit is used to add an unfinished mark to the smart contract and wait in the blockchain if the instructions corresponding to the adjustment information of the smart contract have not been executed.
[0120] Reference Figure 4 , Figure 4 A hardware structure block diagram of a data processing device based on a smart contract is provided in an embodiment of the present application. The hardware structure of the data processing device based on the smart contract may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4.
[0121] In the embodiment of the present application, the number of the processor 1 , the communication interface 2 , the memory 3 , and the communication bus 4 is at least one, and the processor 1 , the communication interface 2 , and the memory 3 communicate with each other through the communication bus 4 .
[0122] The processor 1 may be a central processing unit CPU, or an application-specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
[0123] The memory 3 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), etc., for example, at least one disk memory.
[0124] The memory stores a program, and the processor can call the program stored in the memory, and the program is used to:
[0125] Obtain a smart contract from the blockchain, wherein the smart contract carries adjustment information, trigger conditions, source data type, and indicator data type, and the smart contract is a smart contract signed between the client and the target party, and the target party includes at least one of a bank and an insurance company;
[0126] Collecting data of financial products corresponding to the source data type from a network server, wherein the data of the financial products at the network server is obtained from the blockchain by a smart gateway and sent to the network server after being aggregated;
[0127] Calculating the data of the financial product to obtain indicator data corresponding to the indicator data type;
[0128] Determine whether the indicator data meets the trigger condition. If so, generate an instruction for adjusting at least one data of the financial product based on the adjustment information, and send the instruction to a target device, which includes a bank-side device and / or an insurance company-side device.
[0129] Optionally, the detailed and extended functions of the program may refer to the above description.
[0130] The embodiment of the present application further provides a readable storage medium, which may store a program suitable for execution by a processor, the program being used to:
[0131] Obtain a smart contract from the blockchain, wherein the smart contract carries adjustment information, trigger conditions, source data type, and indicator data type, and the smart contract is a smart contract signed between the client and the target party, and the target party includes at least one of a bank and an insurance company;
[0132] Collecting data of financial products corresponding to the source data type from a network server, wherein the data of the financial products at the network server is obtained from the blockchain by a smart gateway and sent to the network server after being aggregated;
[0133] Calculating the data of the financial product to obtain indicator data corresponding to the indicator data type;
[0134] Determine whether the indicator data meets the trigger condition. If so, generate an instruction for adjusting at least one data of the financial product based on the adjustment information, and send the instruction to a target device, which includes a bank-side device and / or an insurance company-side device.
[0135] Optionally, the detailed and extended functions of the program may refer to the above description.
[0136] The present application also provides a computer program product, which may store a program suitable for execution by a processor, and the program is used to:
[0137] Obtain a smart contract from the blockchain, wherein the smart contract carries adjustment information, trigger conditions, source data type, and indicator data type, and the smart contract is a smart contract signed between the client and the target party, and the target party includes at least one of a bank and an insurance company;
[0138] Collecting data of financial products corresponding to the source data type from a network server, wherein the data of the financial products at the network server is obtained from the blockchain by a smart gateway and sent to the network server after being aggregated;
[0139] Calculating the data of the financial product to obtain indicator data corresponding to the indicator data type;
[0140] Determine whether the indicator data meets the trigger condition. If so, generate an instruction for adjusting at least one data of the financial product based on the adjustment information, and send the instruction to a target device, which includes a bank-side device and / or an insurance company-side device.
[0141] Optionally, the detailed and extended functions of the program may refer to the above description.
[0142] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0143] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0144] Through the description of the above implementation methods, the technicians in the relevant field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structures used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation method in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0145] In summary, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application is described in detail with reference to the above embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the above embodiments can still be modified, or some of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A data processing method based on smart contracts, characterized in that: Applied to an application server, the method comprises: Obtain a smart contract from the blockchain, wherein the smart contract carries adjustment information, trigger conditions, source data type, and indicator data type, and the smart contract is a smart contract signed between the client and the target party, and the target party includes at least one of a bank and an insurance company; Collecting data of financial products corresponding to the source data type from a network server, wherein the data of the financial products at the network server is obtained from the blockchain by a smart gateway and sent to the network server after being aggregated; Calculating the data of the financial product to obtain indicator data corresponding to the indicator data type; Determine whether the indicator data meets the trigger condition. If so, generate an instruction for adjusting at least one data of the financial product based on the adjustment information, and send the instruction to a target device, which includes a bank-side device and / or an insurance company-side device.
2. The data processing method based on smart contract according to claim 1, characterized in that: The data of the financial products include the periodic rate of return, compound rate of return, excess periodic rate of return, periodic drawdown rate and market value fluctuation; the indicator data include investment additional performance indicator and investment redemption performance indicator; The calculating the data of the financial product to obtain the indicator data corresponding to the indicator data type includes: Calculate the stage rate of return, the compound rate of return and the excess stage rate of return according to a preset first calculation formula to obtain an additional investment performance indicator; The investment additional performance indicator, the stage drawdown rate and the market value fluctuation are calculated according to a preset second calculation formula to obtain an investment redemption performance indicator.
3. The data processing method based on smart contract according to claim 2 is characterized in that: The smart contract is a first smart contract signed between the customer and the bank, the triggering condition of the first smart contract is a first triggering condition and a second triggering condition, the adjustment information includes first adjustment information and second adjustment information, and the instruction includes a first instruction and a second instruction; The determining whether the indicator data satisfies the trigger condition, and if so, generating an instruction for adjusting at least one data of the financial product based on the adjustment information, and sending the instruction to a target device, wherein the target device includes a bank-side device and / or an insurance company-side device, including: Determine whether the additional investment performance indicator and the investment redemption performance indicator meet the first trigger condition, and if so, generate a first instruction for controlling at least one data of the financial product based on the first adjustment information, and send the first instruction to a bank-side device, wherein the first instruction is used to instruct to gradually reduce the additional investment amount of the financial product according to a preset additional investment strategy; Determine whether the investment redemption performance indicator meets the second trigger condition. If so, generate a second instruction for controlling at least one data of the financial product based on the second adjustment information, and send the second instruction to the bank-side device. The second instruction is used to instruct to gradually increase the redemption investment amount of the financial product according to a preset investment redemption strategy.
4. The data processing method based on smart contract according to claim 1, characterized in that: The indicator data includes a return amount indicator, the smart contract is a second smart contract signed between the customer and the insurance company, the triggering condition of the second smart contract is a third triggering condition, the adjustment information includes third adjustment information, and the instruction includes a third instruction; The determining whether the indicator data satisfies the trigger condition, and if so, generating an instruction for adjusting at least one data of the financial product based on the adjustment information, and sending the instruction to a target device, wherein the target device includes a bank-side device and / or an insurance company-side device, including: Determine whether the return amount indicator satisfies the third trigger condition. If so, generate a third instruction for controlling at least one data of the financial product based on the third adjustment information, and send the third instruction to the insurance company side device. The third instruction is used to instruct compensation according to a preset compensation amount.
5. The data processing method based on smart contract according to claim 1, characterized in that: The method further comprises: Determining whether all instructions corresponding to the adjustment information of the smart contract have been executed; If all instructions corresponding to the adjustment information of the smart contract have been executed, a completed mark is added to the smart contract and removed from the blockchain; If all instructions corresponding to the adjustment information of the smart contract have not been executed, an unfinished mark is added to the smart contract and waits in the blockchain.
6. A data processing device based on smart contracts, characterized in that: Applied to an application server, the device comprises: an acquisition unit, configured to acquire a smart contract from a blockchain, wherein the smart contract carries adjustment information, trigger conditions, source data type, and indicator data type, and the smart contract is a smart contract signed between a client and a target party, wherein the target party includes at least one of a bank and an insurance company; A collection unit, configured to collect data of financial products corresponding to the source data type from a network server, wherein the data of the financial products at the network server is obtained from the blockchain by an intelligent gateway and sent to the network server after being collected; A calculation unit, used to calculate the data of the financial product to obtain indicator data corresponding to the indicator data type; A generating unit is used to determine whether the indicator data satisfies the trigger condition. If so, an instruction for adjusting at least one data of the financial product is generated based on the adjustment information, and the instruction is sent to a target device, which includes a bank-side device and / or an insurance company-side device.
7. The data processing device based on smart contract according to claim 6, characterized in that: The data of the financial products include the periodic rate of return, compound rate of return, excess periodic rate of return, periodic drawdown rate and market value fluctuation; the indicator data include investment additional performance indicator and investment redemption performance indicator; The computing unit comprises: A first calculation subunit is used to calculate the stage rate of return, the compound rate of return and the excess stage rate of return according to a preset first calculation formula to obtain an additional investment performance indicator; The second calculation subunit is used to calculate the investment additional performance indicator, the stage drawdown rate and the market value fluctuation according to a preset second calculation formula to obtain the investment redemption performance indicator.
8. A data processing device based on smart contracts, characterized in that: including memory and processor; The memory is used to store programs; The processor is used to execute the program to implement the various steps of the data processing method based on smart contracts as described in any one of claims 1 to 5.
9. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, each step of the data processing method based on a smart contract as described in any one of claims 1 to 5 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, each step of the data processing method based on a smart contract described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Block chain-based bond distribution data storage method, device and system
CN111125786A
Annuity risk processing method and device and electronic equipment
CN114387113A
Method and system on providing financial asset investment information
KR1020100124443A
A Mass Customizable Interactive, Multi-Faceted System For Data Collection, Processing, Analysis, Transmission, And Trading In Securities
US20100145873A1
