CN-121981726-A - Intelligent contract-based automatic settlement method and system for technological achievement transaction funds
Abstract
The invention relates to the technical field of payment settlement and discloses a scientific and technological achievement transaction fund automatic settlement method and system based on intelligent contracts. The buyer locks the transaction funds to the contract account while the result delivery file uploaded by the seller is encrypted in segments to generate derived data segments. And distributing the derived data segments to distributed storage nodes, and combining the storage addresses returned by the nodes and the hash values of the content into a component index list according to a defined format. And extracting digital voucher information of the delivery file from the list, and performing byte verification on the digital voucher information and the seller digital voucher sample in the transaction parameters to obtain a content acceptance result. Finally, according to the settlement identification in the acceptance result, the transfer direction of funds of both parties of the transaction is automatically determined, and the invention can improve the automatic settlement efficiency of the funds of the scientific and technological achievement transaction based on intelligent contracts.
Inventors
- Chi Chengjun
- LIU YOUWU
- Lai Rongshu
- JIA HEMING
- Zhang Linchangshui
- Liu Jingteng
- LIN YANPING
- LUO QING
Assignees
- 福建省君诺科技成果转化服务有限公司
- 福建省君诺知识产权运营有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260403
Claims (10)
- 1. An automatic settlement method for technological achievement transaction funds based on intelligent contracts is characterized in that the method comprises the following steps: Compiling transaction parameters of a target process based on transaction intent of the target process to obtain contract byte codes of the target process; deploying the contract byte code to a blockchain network of the target process to obtain a contract address of the target process; Locking transaction funds paid by a buyer in the target process into a contract account corresponding to the contract address, and encrypting and fragmenting a result delivery file uploaded by a seller in the target process to obtain a derivative data segment of the target process; distributing the derived data segments to distributed storage nodes of the target process, and combining storage addresses and content hash values returned by the distributed storage nodes into a fragment index list of the target process according to a stipulated format in the transaction parameters; Performing byte verification on the digital voucher information of the delivery file in the fragment index list and the digital voucher sample of the seller in the transaction parameter to obtain a content acceptance result of the target process; And determining the transfer direction of funds of both parties of the transaction in the target process according to the settlement identification of the content acceptance result.
- 2. The smart contract-based scientific and technological achievement transaction fund automatic settlement method of claim 1, wherein the compiling of the transaction parameters of the target process based on the transaction intent of the target process to obtain the contract byte code of the target process comprises: obtaining transaction parameters of both transaction sides in the target process, wherein the transaction parameters comprise hash values of transaction targets, transaction amount values, delivery deadline time, acceptance deadline time and identity marks of both side blockchain; converting the transaction parameters into initial parameter number throttling of the target process according to the calibrated byte code format of the target process; And packaging the initial parameter digital throttle to obtain the contract byte code of the target process.
- 3. The smart contract-based scientific and technological transaction fund automatic settlement method of claim 1, wherein said deploying said contract bytecode to a blockchain network of said target process to obtain a contract address of said target process comprises: Determining a deployment transaction format of the blockchain network, wherein the deployment transaction format comprises a transaction initiator identifier, a transaction receiver identifier and a transaction data field; setting the transaction initiator identifier as a contract deployment identifier, setting the transaction receiver identifier as a contract creation identifier, and filling the contract byte code into the transaction data field to obtain a transaction load main body of the blockchain network; Digitally signing the hash value of the transaction load body based on a private key corresponding to the contract deployment identifier to obtain signature data of the blockchain network; assembling the transaction load main body with the signature data to obtain the transaction load of the blockchain network; and generating a contract instance corresponding to the target process in an account book of the blockchain network based on the effective byte code of the transaction load, and taking the storage position of the contract instance as the contract address of the target process.
- 4. The automatic settlement method of technological achievement transaction funds based on intelligent contracts according to claim 1, wherein the locking of the transaction funds paid by the buyer in the target process to the contract account corresponding to the contract address and the encryption and fragmentation of the achievement delivery file uploaded by the seller in the target process to obtain the derivative data segment of the target process comprises the following steps: comparing the transfer amount of the funds transfer transaction initiated by the buyer to the contract address in the target process with the transaction amount value in the transaction parameter; if the transfer amount is consistent with the transaction amount value, triggering the fund locking operation of the contract account, and marking the fund corresponding to the transfer amount as a locking state; If the transfer amount is inconsistent with the transaction amount value, triggering fund rejection operation of the contract account, returning funds corresponding to the transfer amount to an account corresponding to the blockchain identity of the buyer in the target process, and generating an abnormal record of inconsistent amount; Writing a locking time stamp, a locking amount value and a two-party blockchain identity generated based on the locking state into an account book of the blockchain network; And carrying out segmentation encryption on the achievement delivery file based on the time factor and the identity factor of the target process to obtain a derivative data segment of the target process.
- 5. The smart contract-based automatic settlement method for technological achievement transaction funds of claim 4, wherein the dividing encryption of the achievement delivery file based on the time factor and the identity factor of the target process to obtain the derived data segment of the target process comprises: Dividing the achievement delivery file according to the data block boundary of the transaction parameter to obtain the original data fragment of the target process; Splicing the current time stamp of the target process, the blockchain identity of the seller in the target process and the slicing sequence number of the original data slicing to obtain a key seed corresponding to the original data slicing; performing hash operation on the key seeds to obtain encryption keys of the original data fragments; Performing bitwise exclusive OR operation on the original data fragments and the encryption key to obtain the encrypted data fragments of the original data fragments; and carrying out association storage on the fragment sequence number, the encrypted data fragment and the encryption key to obtain a derivative data segment of the target process.
- 6. The smart contract-based scientific and technological achievement transaction fund automatic settlement method as set forth in claim 1, wherein the distributing the derived data segments to the distributed storage nodes of the target process and combining the storage addresses and the content hash values returned by the distributed storage nodes into a fragment index list of the target process according to a contract format in the transaction parameters comprises: Calculating node adaptation degree of the derived data segment according to the current load value and the historical response time length of the distributed storage node; selecting an optimal storage node for the derived data segment according to the node adaptation degree to obtain a target storage node of the derived data segment; the derivative data segment is sent to the corresponding target storage node, and a storage position identifier and a data content hash value returned by the target storage node are received, so that an index entry of the derivative data segment is obtained; and arranging the index entries according to the sequence of the fragment sequence numbers of the derivative data segments to obtain a fragment index list of the target process.
- 7. The smart contract-based scientific and technological achievement transaction fund automatic settlement method of claim 6, wherein the node fitness calculation formula comprises: Wherein, the Is the first Derived data segment(s) The degree of adaptation of the individual storage nodes, In order to derive an index for the data segment, In order to store the index of the node, Is the first The network bandwidth values of the individual storage nodes, For storing the maximum network bandwidth value in a node, To express the first The historical availability of the individual storage nodes, For maximum historical availability in the storage node, Is the first The current load value of the individual storage nodes, Is a very small constant value, and is a very small constant, As a load weight index (loadl) is used, Is the first The historical response time period of the individual storage nodes, In order to respond to the duration weight index, Is a natural constant which is used for the production of the high-temperature-resistant ceramic material, Is the first The storage cost coefficients of the individual storage nodes, Is the cost attenuation coefficient.
- 8. The automatic settlement method of technological achievement transaction funds based on intelligent contracts according to claim 1, wherein the byte checking of the digital certificate information of the delivery file in the fragmented index list and the digital certificate sample of the seller in the transaction parameters to obtain the content acceptance result of the target process comprises the following steps: According to the byte position and byte length marked in the transaction parameters, intercepting a byte sequence at a corresponding position from a delivery file of the fragment index list as digital credential information of the target process; byte-by-byte comparison is carried out on the digital credential information and the digital credential sample of the seller, so that a byte record sequence of the target process is obtained; if the byte values in the byte record sequence are the same, generating a forward acceptance result of the target process; and if the byte record sequence has a difference byte, generating a reverse acceptance result of the target process.
- 9. The smart contract-based scientific and technological achievement transaction fund automatic settlement method as set forth in claim 1, wherein the determining the transfer direction of funds between the two parties in the target process according to the settlement identification of the content acceptance result comprises: If the value of the settlement identification field in the content acceptance result is a forward transfer code, executing a fund transfer instruction by a contract account in the target process, adding transaction funds deducted from the balance of the contract account to the account balance corresponding to the blockchain identity of the seller in the target process, and simultaneously generating a forward transfer record comprising a transaction hash value, a transfer address, a receiver address, a transfer amount and a transfer timestamp; If the value of the settlement identification field is the reverse return code, the contract account executes a fund return instruction, the transaction fund of the transaction fund deducted from the balance of the contract account is added to the account balance corresponding to the blockchain identity of the buyer in the target process, and a reverse return record comprising the transaction hash value, the address of the transfer-out party, the address of the receiving party, the return amount and the return time stamp is generated.
- 10. An automatic settlement system for technological achievement trade funds based on intelligent contracts for realizing an automatic settlement method for technological achievement trade funds based on intelligent contracts according to any one of claims 1 to 9, characterized in that the system comprises: The contract byte code module is used for compiling transaction parameters of the target process based on the transaction intention of the target process to obtain contract byte codes of the target process; The contract address module is used for deploying the contract byte codes to a blockchain network of the target process to obtain the contract address of the target process; the derived data segment module locks transaction funds paid by a buyer in the target process into a contract account corresponding to the contract address, and encrypts and segments a result delivery file uploaded by a seller in the target process to obtain a derived data segment of the target process; the fragment index list module distributes the derived data segments to distributed storage nodes of the target process, combines storage addresses and content hash values returned by the distributed storage nodes into a fragment index list of the target process according to a stipulated format in the transaction parameters; the content acceptance module performs byte verification on the digital voucher information of the delivery file in the fragment index list and the digital voucher sample of the seller in the transaction parameter to obtain a content acceptance result of the target process; And the transfer direction module is used for determining the transfer direction of funds of both parties of the transaction in the target process according to the settlement identification of the content acceptance result.
Description
Intelligent contract-based automatic settlement method and system for technological achievement transaction funds Technical Field The invention relates to the technical field of payment and settlement, in particular to an intelligent contract-based automatic settlement method and system for technological achievement transaction funds. Background In the current technological and technological achievement trade field, the commonly adopted fund settlement mode mainly depends on traditional third party escrow or offline agreement payment. After the transaction parties reach the purpose, the buyer pays funds to a escrow account provided by a bank or a third party payment platform, and after the result delivery is completed, the seller needs to wait for the buyer to manually confirm the receipt or pass an off-line acceptance process, and the escrow party transacts funds transfer according to the buyer instruction or off-line credentials. This mode relies heavily on manual intervention and the credit endorsement of the centralised institution, the settlement process is lengthy and inefficient, funds tend to remain in the escrow account for days or even weeks, increasing the time cost of the transaction. Meanwhile, the centralized hosting mode has the risk of fund stealing and single-point fault hidden danger, and once the hosting party system fails or a credit crisis appears, the fund security of both transaction parties is directly threatened. Furthermore, prior art approaches lack transparent and automated verification mechanisms in the effort delivery and acceptance links. The delivery file uploaded by the seller is usually stored in a centralized server in a plaintext form, and is manually checked after being downloaded by the buyer, so that the authenticity and the integrity of the file cannot be ensured in the process, and the situation that the file is tampered or maliciously delayed and accepted by the buyer easily occurs. Due to the lack of cryptographic evidence and automatic comparison mechanisms for delivering content, when acceptance disputes occur, both parties often need to expend a great deal of effort to evidence and coordinate, even resort to legal approaches. The fuzzy acceptance mode based on the manual work cannot guarantee the timely collection rights and interests of the seller, and the buyer is difficult to objectively and reliably verify the delivery result before paying, so that the conversion efficiency of technological results and the healthy development of the trading market are severely restricted. Disclosure of Invention The invention provides an intelligent contract-based automatic settlement method and system for technological achievement transaction funds, and mainly aims to solve the problem that the intelligent contract-based automatic settlement of technological achievement transaction funds is low in efficiency. In order to achieve the above purpose, the present invention provides an automatic settlement method for technological achievement transaction funds based on intelligent contracts, comprising: Compiling transaction parameters of a target process based on transaction intent of the target process to obtain contract byte codes of the target process; deploying the contract byte code to a blockchain network of the target process to obtain a contract address of the target process; Locking transaction funds paid by a buyer in the target process into a contract account corresponding to the contract address, and encrypting and fragmenting a result delivery file uploaded by a seller in the target process to obtain a derivative data segment of the target process; distributing the derived data segments to distributed storage nodes of the target process, and combining storage addresses and content hash values returned by the distributed storage nodes into a fragment index list of the target process according to a stipulated format in the transaction parameters; Performing byte verification on the digital voucher information of the delivery file in the fragment index list and the digital voucher sample of the seller in the transaction parameter to obtain a content acceptance result of the target process; And determining the transfer direction of funds of both parties of the transaction in the target process according to the settlement identification of the content acceptance result. In a preferred embodiment, the compiling the transaction parameters of the target process based on the transaction intent of the target process to obtain the contract bytecode of the target process includes: obtaining transaction parameters of both transaction sides in the target process, wherein the transaction parameters comprise hash values of transaction targets, transaction amount values, delivery deadline time, acceptance deadline time and identity marks of both side blockchain; converting the transaction parameters into initial parameter number throttling of the target process according to the cal