A smart contract driven automated financial distribution system and method
The automated financial accounting method driven by smart contracts solves the problems of inefficiency and lack of transparency in the traditional financial accounting process, realizes real-time fund transfer and data immutability, and improves the efficiency and security of financial management.
Patent Information
- Application Number
- CN202510254753.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-05
- Publication Date
- 2026-02-13
- Estimated Expiration
- 2045-03-05
AI Technical Summary
Traditional financial accounting processes rely on manual intervention, which is inefficient, susceptible to human error, and lacks automation and intelligent support, resulting in slow fund transfers, low transparency, and an inability to meet the security, reliability, and transparency requirements of modern financial management.
An automated financial accounting method driven by smart contracts is adopted. A programmable accounting contract framework is created through a smart contract generation module. A multi-party consensus engine is used to generate accounting rule feature vectors. Transaction data is captured in real time and verified through a cross-chain transaction parser. An executable contract with a dynamic verification code is generated and executed, and the funds are transferred on the blockchain.
It improves the efficiency and transparency of financial accounting, eliminates errors caused by human intervention, ensures timely arrival and accurate allocation of funds, provides data openness, transparency and immutability, and enhances the security and fairness of financial management.
Smart Images

Figure CN120198236B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of financial distribution, and particularly relates to an intelligent contract driven automatic financial distribution system and method. BACKGROUND
[0002] With the rapid development of blockchain technology and smart contracts, many industries have begun to seek to leverage these emerging technologies to optimize traditional business processes, especially in the field of financial management. Traditional financial distribution processes often rely on manual intervention or centralized financial systems, which are not only inefficient, but also vulnerable to human error, information delays, and data security issues. Manual distribution often involves tedious calculations and confirmation steps, and due to the lack of automation and intelligent support, the process of transferring and confirming funds is relatively slow. In addition, traditional financial management systems have low transparency, and data in the distribution process often lacks real-time monitoring and traceability, which cannot effectively meet the needs of modern financial management for security, reliability, and transparency.
[0003] Currently, although some financial management systems have begun to use automated tools to improve efficiency, they still face problems such as insufficient flexibility of distribution rules, complex cross-chain data processing, and poor timeliness of fund transfers. The distribution rules in traditional systems are usually statically set and lack the ability to dynamically adapt to different scenarios and the needs of multiple parties. In particular, in scenarios involving multiple parties, how to coordinate distribution rules among multiple parties, ensure cross-chain data compatibility, and achieve real-time fund transfers remains a difficult problem to be solved. SUMMARY
[0004] Based on the above purpose, the present application provides an intelligent contract driven automatic financial distribution method.
[0005] An intelligent contract driven automatic financial distribution method, comprising the following steps:
[0006] S1: creating a programmable distribution contract framework including a distribution rule template library through an intelligent contract generation module, the distribution rule template library including a proportional allocation template, a step allocation template, and a condition trigger template;
[0007] S2: receiving distribution parameter selection instructions uploaded by each participant terminal through a multi-party consensus engine, and combining the selected distribution parameters to generate a distribution rule feature vector;
[0008] S3: matching a target distribution algorithm in the distribution rule template library based on the distribution rule feature vector, triggering an intelligent contract compilation module to generate an executable distribution contract with a dynamic check code;
[0009] S4: Capture transaction stream data in real time through cross-chain transaction parser, extract transaction feature elements and input executable revenue sharing contract through revenue sharing contract verification interface;
[0010] S5: Run executable revenue sharing contract in smart contract execution environment, generate revenue sharing execution result set including revenue sharing amount, payee account and revenue sharing voucher;
[0011] S6: Write revenue sharing execution result set into blockchain network through distributed ledger module, synchronously trigger fund transfer operation of each participant account.
[0012] Further, the S1 comprises:
[0013] S11, design revenue sharing rule template library, create programmable revenue sharing rule template library, support proportional allocation template, step allocation template and condition trigger template;
[0014] S12, create revenue sharing contract framework through smart contract generation module, the revenue sharing contract framework dynamically generates specific revenue sharing contract by inputting revenue sharing rule vector;
[0015] S13, execute revenue sharing contract;
[0016] S14, store different types of revenue sharing rule templates in the designed revenue sharing rule template library;
[0017] S15, smart contract trigger condition: set condition trigger, so that the contract automatically executes revenue sharing operation when the condition is met.
[0018] Further, the S2 comprises:
[0019] S21, receive revenue sharing parameter selection instructions uploaded by participant terminals, revenue sharing parameters including revenue sharing proportion, revenue sharing method, threshold setting and participant account information;
[0020] S22, verify and preprocess uploaded revenue sharing parameters: check the format and legality of parameters uploaded by each participant;
[0021] S23, consensus decision through multi-party consensus engine: the multi-party consensus engine collects revenue sharing parameters uploaded by all participants, uses PoW algorithm in the blockchain, and performs consistency check;
[0022] S24, combine to generate revenue sharing rule feature vector: convert the consensus revenue sharing parameters into feature vector, and the feature vector includes all revenue sharing rule information.
[0023] Further, the S3 comprises:
[0024] S31, matching target algorithm: according to each element in the revenue sharing rule feature vector, selecting the corresponding revenue sharing algorithm;
[0025] S32, triggering the smart contract compilation module: according to the matched target revenue sharing algorithm, triggering the smart contract compilation module to generate an executable revenue sharing contract;
[0026] S33, generating and verifying the executable revenue sharing contract: the generated revenue sharing contract is deployed through the smart contract execution environment, and before the contract execution, the dynamic check code is compared with the pre-stored contract code in the system;
[0027] S34, executing the revenue sharing operation.
[0028] Further, the S4 comprises:
[0029] S41, real-time capture of cross-chain transaction flow data: using a cross-chain transaction parser, real-time transaction information of different blockchain networks is received through API and RPC interface, and transaction flow data is captured in real time;
[0030] S42, extracting transaction feature elements: extracting transaction feature elements from the captured transaction flow data, constructing a feature vector and performing feature value standardization;
[0031] S43, inputting the executable revenue sharing contract through the revenue sharing contract verification interface: inputting the extracted transaction feature elements into the executable revenue sharing contract through the verification interface;
[0032] S44, executing the contract and generating the result: according to the input transaction data, the smart contract will execute according to the set revenue sharing rules and generate the result.
[0033] Further, the S5 comprises:
[0034] S51, running the executable revenue sharing contract in the smart contract execution environment;
[0035] S52, generating and outputting the revenue sharing execution result set.
[0036] Further, the S51 deploys the compiled revenue sharing contract to the smart contract execution environment of the blockchain, and triggers the execution function of the contract through the smart contract calling interface.
[0037] Further, the S52 generates an execution result set containing the revenue sharing amount, the payee account and the revenue sharing voucher after the contract execution is completed.
[0038] Further, the S6 comprises:
[0039] S61, writing the revenue sharing execution result set into the blockchain network through the distributed ledger module;
[0040] S62, synchronously triggering the fund transfer operation of each participant account: the automatic transfer of the account distribution amount is realized by triggering the fund transfer operation of the smart contract, and the fund state of the participant account is updated synchronously;
[0041] S63, blockchain data verification and traceability: through the event mechanism of the smart contract and the non-tamperability of the blockchain network.
[0042] An intelligent contract driven automatic financial distribution system for realizing the above-mentioned intelligent contract driven automatic financial distribution method, comprising the following modules:
[0043] The intelligent contract generation module: create a programmable distribution contract framework, and build a distribution rule template library including a proportional distribution template, a ladder distribution template and a condition trigger template;
[0044] The multi-party consensus engine module: receives the distribution parameter selection instruction uploaded by each participant terminal, and generates a distribution rule feature vector through a multi-party consensus mechanism;
[0045] The distribution contract compilation module: according to the generated distribution rule feature vector, match the target distribution algorithm in the distribution rule template library, trigger the smart contract compilation to generate an executable distribution contract with a dynamic check code;
[0046] Cross-chain transaction parser: real-time capture and parse data streams from different on-chain and off-chain, extract transaction feature elements, and input these elements into the executable distribution contract through the distribution contract verification interface;
[0047] The intelligent contract execution environment: running the executable distribution contract, and according to the contract logic, the generated distribution amount, the payee account and the distribution voucher, form the final distribution execution result set;
[0048] Distributed ledger module: the module writes the distribution execution result set into the blockchain network, and synchronously triggers the fund transfer operation of each participant account.
[0049] The beneficial effects of the present application are:
[0050] The present application provides an automatic financial distribution method by combining intelligent contract and blockchain technology, which not only greatly improves the efficiency of financial distribution, but also eliminates the errors and delays caused by manual intervention. Through the intelligent contract generation module, the distribution contract can be automatically created according to the preset distribution rule template to adapt to different scenarios and participant needs, so that the distribution rule is more flexible and automatic. In addition, the system can automatically execute fund transfer based on real-time capture and processing of transaction data, ensuring timely and accurate allocation of funds. This innovative technology eliminates the inefficient links in manual operation and improves the overall efficiency of financial management.
[0051] This invention uses distributed ledger technology to record all accounting operations on the blockchain, ensuring the openness, transparency, and immutability of the data. Through the decentralized nature of the blockchain, the system can effectively prevent data leakage and tampering, providing reliable protection for financial management involving multiple parties. In addition, the execution of smart contracts not only reduces human intervention and ensures the fairness of accounting operations, but also allows for real-time tracking and auditing of every transaction, improving the transparency and security of the entire financial process. Attached Figure Description
[0052] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only for this invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0053] Figure 1 This is a schematic diagram of the method flow according to an embodiment of the present invention;
[0054] Figure 2 This is a schematic diagram of the system modules in an embodiment of the present invention. Detailed Implementation
[0055] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to specific embodiments.
[0056] It should be noted that, unless otherwise defined, the technical or scientific terms used in this invention should have the ordinary meaning understood by one of ordinary skill in the art to which this invention pertains. The terms "first," "second," and similar terms used in this invention do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed following the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are used only to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0057] like Figure 1 As shown, a smart contract-driven automated financial accounting method includes the following steps:
[0058] S1: Create a programmable revenue sharing contract framework including a revenue sharing rule template library through an intelligent contract generation module, the revenue sharing rule template library including a proportional allocation template, a ladder allocation template, and a condition trigger template;
[0059] S2: Receive the revenue sharing parameter selection instructions uploaded by each participant terminal through the multi-party consensus engine, and combine the selected revenue sharing parameters to generate a revenue sharing rule feature vector;
[0060] S3: Match the target revenue sharing algorithm in the revenue sharing rule template library based on the revenue sharing rule feature vector, and trigger the intelligent contract compilation module to generate an executable revenue sharing contract with a dynamic check code;
[0061] S4: Capture transaction flow data in real time through a cross-chain transaction parser, extract transaction feature elements, and input the executable revenue sharing contract through a revenue sharing contract verification interface;
[0062] S5: Run the executable revenue sharing contract in the intelligent contract execution environment to generate a revenue sharing execution result set including a revenue sharing amount, a payee account, and a revenue sharing voucher;
[0063] S6: Write the revenue sharing execution result set into the blockchain network through a distributed ledger recording module, and synchronously trigger the fund transfer operation of each participant account.
[0064] S1 includes:
[0065] S11, design a revenue sharing rule template library, create a programmable revenue sharing rule template library, support proportional allocation templates, ladder allocation templates, and condition trigger templates, specifically including:
[0066] (1) Proportional allocation template: The proportional allocation template allocates funds to different payees according to a preset proportion, represented as:
[0067] Revenue sharing amount i = Total amount x p i , where p i is the allocation proportion of the i th payee (the sum of all proportions is 1);
[0068] (2) Ladder allocation template: The ladder allocation template allocates funds according to the interval of the total amount, suitable for scenarios of step-by-step allocation, represented as:
[0069]
[0070] Where A v is the threshold of the ladder, k v is the allocation coefficient of the corresponding interval, and m is the number of ladder levels;
[0071] (3) Condition trigger template: Condition trigger template triggers the revenue sharing operation according to the condition (such as when an event occurs), which is represented as:
[0072]
[0073] Wherein, the condition function f (condition c ) calculates the revenue sharing amount according to different conditions (such as sales, time, transaction, etc.);
[0074] S12, create a revenue sharing contract framework through the smart contract generation module, and dynamically generate a specific revenue sharing contract by inputting a revenue sharing rule vector (selecting proportional distribution, step distribution or condition trigger distribution), the core structure of the revenue sharing contract includes:
[0075] (1) Rule selection mechanism: based on the incoming revenue sharing parameters, select the appropriate template;
[0076] (2) Parameter input verification: verify the parameter input of all participants to ensure compliance with the contract rules;
[0077] (3) Funds distribution execution: according to the selected rules, execute the revenue sharing operation and record the results;
[0078] S13, execute the revenue sharing contract, the compilation process of the revenue sharing contract includes:
[0079] (1) Convert the user's input parameters (such as revenue sharing ratio, step threshold, etc.) into a revenue sharing rule feature vector;
[0080] (2) According to the revenue sharing rule feature vector, select the appropriate revenue sharing rule template, and dynamically generate the contract code according to the revenue sharing rule template;
[0081] (3) Compile the contract code into executable bytecode to generate a revenue sharing contract with a dynamic check code;
[0082] S14, store different types of revenue sharing rule templates in the designed revenue sharing rule template library;
[0083] S15, smart contract trigger condition: set the condition trigger so that the contract automatically executes the revenue sharing operation when the condition is met.
[0084] S2 includes:
[0085] S21, receive the revenue sharing parameter selection instruction uploaded by the participant terminal, the revenue sharing parameters include revenue sharing ratio, revenue sharing method, threshold setting, and participant account information;
[0086] S22, verify and preprocess the uploaded revenue sharing parameters: perform format and legality checks on the parameters uploaded by each participant, represented as:
[0087] (Verification of the proportional allocation rule, ensuring that the total proportion is 1);
[0088] where p q is the allocation proportion of the qth participant, ensuring that the sum of the proportions of all participants is 1;
[0089] S23, consensus decision making through a multi-party consensus engine: the multi-party consensus engine collects all the uploaded allocation parameters from the participants, and uses the PoW algorithm in the blockchain to perform consistency verification, represented as:
[0090]
[0091] where p q is the allocation parameter selected by the qth participant, w q is the weight value of the participant (which can be allocated based on participation or trust), and the parameter with the most votes is finally selected as the final rule;
[0092] S24, combination to generate the allocation rule feature vector: convert the consensus allocation parameters into a feature vector, which includes all the allocation rule information (proportional allocation, step allocation, condition triggering), and the specific steps are:
[0093] (1) Vectorization formula: according to different allocation template types, convert the parameters of each template into a feature vector, represented as:
[0094] Proportional allocation: v = [p1, p2,..., p n ];
[0095] Step allocation: v = [A1, A2,..., A m ,k1, k2,..., k m ];
[0096] Condition triggering: v = trigger condition 1, trigger condition 2,...;
[0097] (2) Combination of feature vectors: the final generated feature vector will contain the parameters of all allocation rules and be passed as input to the smart contract for reference during contract execution.
[0098] S3 includes:
[0099] S31, matching target algorithm: according to each element in the allocation rule feature vector, select the corresponding allocation algorithm, represented as:
[0100]
[0101] where w e is the weight of each allocation parameter, and f(feature parameter eAn algorithm matching function corresponding to each feature parameter;
[0102] S32, triggering the smart contract compiling module: according to the matched target distribution algorithm, triggering the smart contract compiling module to generate an executable distribution contract, the specific steps are:
[0103] (1) contract compilation: according to the target distribution algorithm, the smart contract compiling module converts the target distribution algorithm and related distribution rules into contract code;
[0104] (2) dynamic check code generation: the compiling module generates a dynamic check code (used to verify the correctness and legality of the contract, and ensure that the contract has not been tampered with before execution) using a hash algorithm, represented as:
[0105] Check code = SHA256 (contract code ‖ distribution rule parameters ‖ participant information), wherein "||" represents the splicing of contract code, distribution rule parameters and participant information to generate a unique check code;
[0106] S33, generating and verifying the executable distribution contract: the generated distribution contract is deployed through the smart contract execution environment and waits to be triggered for execution. Before the contract is executed, the dynamic check code is compared with the pre-stored contract code in the system to ensure that the contract code has not been tampered with;
[0107] S34, executing the distribution operation.
[0108] S4 includes:
[0109] S41, real-time capture of cross-chain transaction flow data: using a cross-chain transaction parser, transaction information from different blockchain networks is received in real time through API and RPC interface, and transaction flow data is captured in real time;
[0110] S42, extracting transaction feature elements: extracting transaction feature elements from the captured transaction flow data, constructing a feature vector and performing feature value standardization, the specific steps are:
[0111] (1) feature extraction: extracting key feature elements from transaction flow, including transaction amount feature V b , transaction timestamp transaction direction feature D b ∈{income, expenditure}, D b =income (indicating fund inflow), D b =expenditure (indicating fund outflow), transaction account feature A src and A dest , (A src and A dest are the sender and receiver accounts of the transaction) and transaction asset type feature
[0112] (2) Feature vector construction: the extracted transaction key feature elements are constructed into a feature vector, denoted as:
[0113]
[0114] where f b is the feature vector of the bth transaction, including the amount, timestamp, transaction direction, account information and asset type;
[0115] (3) Feature value standardization: the numerical features in the feature vector, such as the amount and timestamp, are standardized, denoted as:
[0116]
[0117] where μ V and σ V are the mean and standard deviation of the transaction amount feature, and μ T and σ T are the mean and standard deviation of the timestamp feature;
[0118] S43, input executable sharing contract through sharing contract verification interface: the extracted transaction feature elements are input into the executable sharing contract through the verification interface, and the specific steps are as follows:
[0119] (1) Verification interface design: the sharing contract verification interface receives the feature vector of the transaction flow, and verifies according to the sharing rules of the contract;
[0120] (2) Check interface checks features: for each transaction, the verification interface checks whether the transaction features meet the sharing rules, and the sharing rules in the sharing contract are:
[0121] Sharing rules = [proportion rule, ladder rule, condition rule];
[0122] Verification result = RuleMatchf b , sharing rules;
[0123] where f b is the feature vector of the transaction, and RuleMatch is a function that determines whether the feature vector meets the sharing rules;
[0124] (3) Input executable sharing contract: if the transaction features meet the sharing rules, the transaction features and the sharing rules are input as input into the smart contract compilation module to generate an executable sharing contract;
[0125] S44, execute contract and generate results: according to the input transaction data, the smart contract will execute according to the set sharing rules and generate results, including:
[0126] If the contract rule is proportional distribution, the fund is divided according to the proportion;
[0127] If the contract rule is step distribution, the distribution is performed according to the preset step threshold;
[0128] If the contract rule is condition triggering, it is determined whether to perform the account distribution according to the triggering condition;
[0129] The generated result set is represented as:
[0130] The account distribution execution result = account distribution amount, collection account, account distribution voucher.
[0131] S5 includes:
[0132] S51, running the executable account distribution contract in the smart contract execution environment;
[0133] S52, generating and outputting the account distribution execution result set.
[0134] S51 deploys the compiled account distribution contract to the smart contract execution environment of the blockchain, triggers the execution function of the contract through the smart contract calling interface, and the actual calculation of the execution result is represented as:
[0135]
[0136] Where, p q is the account distribution proportion of the qth participant.
[0137] S52 generates the execution result set containing the account distribution amount, the collection account and the account distribution voucher after the contract execution is completed, and is represented as:
[0138] The account distribution execution result set = {collection account 1, account distribution amount 1, voucher ID 1), (collection account 2, account distribution amount 2, voucher ID 2) (there are three payees).
[0139] S6 includes:
[0140] S61, writing the account distribution execution result set into the blockchain network through the distributed ledger recording module;
[0141] S62, synchronously triggering the fund transfer operation of each participant's account: realizing the automatic transfer of the account distribution amount by triggering the fund transfer operation of the smart contract, and synchronously updating the fund state of the participant's account;
[0142] S63, blockchain data verification and traceability: through the event mechanism of the smart contract and the non-tamperability of the blockchain network.
[0143] For example Figure 2As shown, an intelligent contract-driven automated financial distribution system for implementing the above-mentioned intelligent contract-driven automated financial distribution method includes the following modules:
[0144] Intelligent contract generation module: create a programmable distribution contract framework, and build a distribution rule template library including proportional distribution template, step distribution template and condition trigger template;
[0145] Multi-party consensus engine module: receive the distribution parameter selection instructions uploaded by each participant terminal, and generate a distribution rule feature vector through a multi-party consensus mechanism;
[0146] Distribution contract compilation module: according to the generated distribution rule feature vector, match the target distribution algorithm in the distribution rule template library, trigger the intelligent contract compilation to generate an executable distribution contract with a dynamic check code;
[0147] Cross-chain transaction parser: real-time capture and parse data streams from different on-chain and off-chain, extract transaction feature elements, and input these elements into the executable distribution contract through the distribution contract verification interface;
[0148] Intelligent contract execution environment: run the executable distribution contract, and according to the contract logic, calculate the generated distribution amount, the payee account and the distribution voucher to form the final distribution execution result set;
[0149] Distributed ledger module: this module writes the distribution execution result set into the blockchain network, and synchronously triggers the fund transfer operation of each participant account.
[0150] Those skilled in the art should understand that the above discussion of any embodiment is only exemplary and is not intended to suggest that the scope of the present application is limited to these examples; under the idea of the present application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes of different aspects of the present application as described above. In order to be brief, they are not provided in details.
Claims
1. A smart contract driven automated financial distribution method, characterized in that, The method comprises the following steps: S1: creating a programmable revenue sharing contract framework including a revenue sharing rule template library through a smart contract generation module, the revenue sharing rule template library including a proportional allocation template, a ladder allocation template and a condition trigger template; S2: receiving a revenue sharing parameter selection instruction uploaded by each participant terminal through a multi-party consensus engine, combining the selected revenue sharing parameters to generate a revenue sharing rule feature vector; S3: matching a target revenue sharing algorithm in the revenue sharing rule template library based on the revenue sharing rule feature vector, triggering a smart contract compilation module to generate an executable revenue sharing contract with a dynamic check code; S4: capturing transaction flow data in real time through a cross-chain transaction parser, extracting transaction feature elements and inputting the executable revenue sharing contract through a revenue sharing contract verification interface; S5: running the executable revenue sharing contract in a smart contract execution environment to generate a revenue sharing execution result set including a revenue sharing amount, a payee account and a revenue sharing voucher; S6: writing the revenue sharing execution result set into a blockchain network through a distributed ledger recording module, and synchronously triggering a fund transfer operation of each participant account.
2. The method of claim 1, wherein, The S1 comprises: S11, designing a revenue sharing rule template library, creating a programmable revenue sharing rule template library, supporting proportional allocation templates, ladder allocation templates and condition trigger templates; S12, creating a revenue sharing contract framework through a smart contract generation module, the revenue sharing contract framework dynamically generating a specific revenue sharing contract by inputting a revenue sharing rule vector; S13, executing the revenue sharing contract; S14, storing different types of revenue sharing rule templates in the designed revenue sharing rule template library; S15, smart contract trigger condition: setting a condition trigger so that the contract automatically performs a revenue sharing operation when the condition is met.
3. The method of claim 2, wherein, The S2 comprises: S21, receiving a revenue sharing parameter selection instruction uploaded by a participant terminal, the revenue sharing parameters including a revenue sharing ratio, a revenue sharing method, a threshold setting and participant account information; S22, verifying and preprocessing the uploaded revenue sharing parameters: performing format and legality checks on the parameters uploaded by each participant; S23, making a consensus decision through a multi-party consensus engine: the multi-party consensus engine collects the revenue sharing parameters uploaded by all participants, uses a PoW algorithm in the blockchain, and performs consistency verification; S24, combining to generate a revenue sharing rule feature vector: converting the consensus revenue sharing parameters into a feature vector, the feature vector including all revenue sharing rule information.
4. The method of claim 3, wherein, The S3 comprises: S31, matching a target algorithm: selecting a corresponding revenue sharing algorithm according to each element in the revenue sharing rule feature vector; S32, triggering a smart contract compilation module: triggering the smart contract compilation module to generate an executable revenue sharing contract according to the matched target revenue sharing algorithm; S33, generating and verifying an executable revenue sharing contract: the generated revenue sharing contract is deployed through a smart contract execution environment, and before contract execution, the dynamic check code is compared with the pre-stored contract code in the system; S34, performing a revenue sharing operation.
5. The method of claim 4, wherein, The S4 comprises: S41, capturing cross-chain transaction flow data in real time: using a cross-chain transaction parser to receive transaction information of different blockchain networks in real time through an API and an RPC interface, and capturing transaction flow data in real time; S42, extracting transaction feature elements: extracting transaction feature elements from captured transaction flow data, constructing feature vectors and performing feature value standardization; S43, inputting executable sharing contract through sharing contract verification interface: inputting extracted transaction feature elements into executable sharing contract through verification interface; S44, executing contract and generating results: according to input transaction data, smart contract will execute according to the set sharing rules and generate results.
6. The method of claim 5, wherein, The S5 includes: S51, running executable sharing contract in smart contract execution environment; S52, generating and outputting sharing execution result set.
7. The method of claim 6, wherein, The S51 deploys the compiled sharing contract to the smart contract execution environment of the blockchain, and triggers the execution function of the contract through the smart contract calling interface.
8. The method of claim 7, wherein, The S52 generates the execution result set containing the sharing amount, the payee account and the sharing voucher after the contract execution is completed. 9.The smart contract-driven automated financial distribution method of claim 8, wherein, The S6 includes: S61, writing sharing execution result set into blockchain network through distributed ledger module; S62, synchronously triggering fund transfer operation of each participant account: realizing automatic transfer of sharing amount by triggering fund transfer operation of smart contract, and synchronously updating fund state of participant account; S63, blockchain data verification and traceability: through event mechanism of smart contract and non-tamperability of blockchain network.
10. A smart contract driven automated financial distribution system for implementing a smart contract driven automated financial distribution method according to any one of claims 1-9, characterized in that, The system includes the following modules: Smart contract generation module: creating programmable sharing contract framework, and building sharing rule template library including proportional allocation template, ladder allocation template and condition trigger template; Multi-party consensus engine module: receiving sharing parameter selection instructions uploaded by each participant terminal, and generating sharing rule feature vector through multi-party consensus mechanism; Sharing contract compiling module: according to the generated sharing rule feature vector, matching target sharing algorithm in sharing rule template library, triggering smart contract compilation to generate executable sharing contract with dynamic check code; Cross-chain transaction parser: capturing and parsing data flow from different chains and off-chain in real time, extracting transaction feature elements, and inputting these elements into executable sharing contract through sharing contract verification interface; Smart contract execution environment: running executable sharing contract, and generating sharing amount, payee account and sharing voucher according to contract logic calculation, forming final sharing execution result set; Distributed ledger module: the module writes the sharing execution result set into the blockchain network, and synchronously triggers the fund transfer operation of each participant account.
Citation Information
Patent Citations
Implementation method and device for blockchain smart contract
CN108694669A
A method and device for trading copyright rights and interests based on a block chain and a distributed account book
CN109446842A