Supply chain financial data sharing method based on Ethereum and homomorphic encryption

By combining homomorphic encryption and smart contract technology on the Ethereum blockchain platform, the problems of data silos, information asymmetry and insufficient security in the traditional supply chain financial data sharing model are solved, and efficient and transparent data sharing are achieved. Risk management is suitable for large-scale and high-frequency transactions in the steel supply chain financial ecosystem.

CN119011286AInactive Publication Date: 2024-11-22FUJIAN MINGUANG CLOUD BUSINESS CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411430082.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2024-11-22
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The traditional supply chain financial data sharing model faces problems such as data islands, information asymmetry, low operational efficiency, and insufficient data security. It is difficult to ensure real-time data sharing, privacy protection and transaction transparency in high-frequency trading scenarios.

Method used

Using blockchain technology based on Ethereum and homomorphic encryption, data is processed and stored on the blockchain through fully homomorphic encryption, smart contracts are used to automatically perform contract management, credit evaluation and payment processing, and combined with Fourier Transformation algorithm and Chebyshev polynomial approximation method optimize encryption operations, using MythX and Slither for code auditing and compliance checks.

Benefits of technology

It realizes the real-time sharing and efficient processing of data on the basis of ensuring data security and privacy, enhances the transaction transparency and risk management capabilities of supply chain finance, improves the degree of operation automation and accuracy, and provides a safe, efficient, A data sharing platform that meets regulatory requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011286A_ABST
    Figure CN119011286A_ABST
Patent Text Reader

Abstract

The invention aims to provide a supply chain financial data sharing method based on Ethereum and homomorphic encryption. The method comprises the following steps: acquiring data of each node of a supply chain; encrypting the data by adopting a fully homomorphic encryption technology; storing the encrypted data in a block chain; and automatically executing contract management, credit evaluation and payment processing according to the intelligent contract. According to the method, the block chain technology and the homomorphic encryption algorithm are integrated, a large-scale and high-frequency steel supply chain financial ecosystem with obvious transaction characteristics is specifically served, and the defects of a traditional data sharing mode in the aspects of guaranteeing data security, maintaining privacy and ensuring information timeliness are overcome.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a supply chain financial data sharing method based on Ethereum and homomorphic encryption. Background Art

[0002] With the acceleration of globalization and the rapid development of information technology, supply chain finance, as an important mechanism to support the operation of the industry, has an extremely urgent need for data sharing and processing. However, traditional supply chain management methods face multiple challenges: first, the problem of data silos, that is, data is scattered among different participants, lacking effective integration and real-time update mechanisms. For example, a typical steel production and supply chain may involve hundreds of independently operated small enterprises, each of which may use different data systems, making it difficult to share data in real time and manage them uniformly. Secondly, we need to face the problem of information asymmetry and low operational efficiency. In financial transaction scenarios involving multiple parties, the asymmetric nature of information often triggers the dual problems of credit risk and operational process efficiency. A report pointed out that under the traditional supply chain finance model framework, the time required to complete a single transaction may extend to several weeks, and about 30%-40% of the time in this process is consumed in data verification and credit assessment. In addition, the centralized data processing architecture not only magnifies the system's vulnerability to attacks, but is also accompanied by high maintenance costs. Generally speaking, the annual maintenance costs of such systems account for between 15% and 25% of the overall information technology budget, which poses a considerable economic pressure on small and medium-sized enterprises with tight capital liquidity.

[0003] Data security is another key point that needs urgent attention. In a system that relies on centralized management, the risk of data tampering and leakage increases significantly, especially when dealing with sensitive information such as financial data and transaction history. Therefore, developing and adopting an innovative technical solution to effectively address the above challenges and enhance data transparency and transaction efficiency has become an urgent need in the industry. The ideal solution must ensure that while protecting data security, it promotes instant sharing and efficient processing of data, helping steel supply chain finance achieve rapid decision-making and risk control. Summary of the invention

[0004] The purpose of the present invention is to provide a supply chain financial data sharing method based on Ethereum and homomorphic encryption. The method integrates blockchain technology and homomorphic encryption algorithm, and specifically serves the steel supply chain financial ecosystem with obvious large-scale and high-frequency transaction characteristics, aiming to overcome the shortcomings of traditional data sharing models in ensuring data security, maintaining privacy and ensuring information timeliness.

[0005] A supply chain finance data sharing method based on Ethereum and homomorphic encryption, including: Obtain data from each node of the supply chain; Perform fully homomorphic encryption on the acquired data; Store the encrypted data on the blockchain; Leverage smart contracts to automate contract management, credit assessment, and payment processing operations.

[0006] Preferably, before acquiring the data of each node of the supply chain, the method further includes: Deploy Ethereum private chain; Set up smart contract template; Configure the fully homomorphic encryption module.

[0007] Preferably, after storing the encrypted data in the blockchain, the method further comprises: The Fourier transform algorithm is used to enhance the efficiency of polynomial multiplication in the field of homomorphic encryption.

[0008] Preferably, the configuration of the fully homomorphic encryption module includes: Fully homomorphic encryption technology includes encryption algorithms based on the Ring-LWE assumption; The Chebyshev polynomial approximation method is used to optimize the calculation of encrypted data and activate the Sigmoid function.

[0009] Preferably, the setting of the smart contract template includes: Create and execute smart contracts to automatically manage the execution of contract terms and status updates; Based on the historical transaction data and financial information stored on the blockchain, a support vector machine model is used to perform real-time credit scoring; Payment and settlement operations are automatically processed according to the conditions stipulated in the smart contract.

[0010] Preferably, after storing the encrypted data in the blockchain, the stored data is further subjected to security audit and compliance check, specifically: Use MythX and Slither to audit smart contract codes, detect and fix security vulnerabilities; Use third-party security service providers to conduct compliance checks.

[0011] Preferably, the use of MythX and Slither to conduct code audits of smart contracts and detect and fix potential security vulnerabilities includes: Configure security auditing tools; Set audit rules and policies; Code auditing using MythX and Slither code; Automatically remediate security vulnerabilities when they are detected.

[0012] Preferably, the use of a third-party security service provider to perform compliance checking includes: Third-party security service providers conduct compliance checks; Record compliance inspection results in real time; Configure disaster recovery mechanisms; Restore test data regularly.

[0013] A supply chain finance data sharing system, comprising: Data collection module, used to obtain data from each node of the supply chain; A fully homomorphic encryption module, used to encrypt the data using a fully homomorphic encryption technology; The blockchain storage module stores the encrypted data in the blockchain; Smart contract execution module, used to automate contract management, credit assessment and payment processing based on smart contracts.

[0014] An electronic device comprises: a processor and a memory, wherein the memory is used to store computer program code, and the computer program code comprises computer instructions. When the processor executes the computer instructions, the electronic device executes a supply chain financial data sharing method based on Ethereum and homomorphic encryption.

[0015] The beneficial effect of the present invention is that the present invention integrates blockchain technology and homomorphic encryption algorithm, and specifically serves the steel supply chain financial ecosystem with obvious large-scale and high-frequency transaction characteristics, aiming to overcome the shortcomings of traditional data sharing models in ensuring data security, maintaining privacy and ensuring information timeliness. On this basis, the present invention constructs a customized private chain network based on the Ethereum blockchain platform, which is specially adapted to the characteristics and needs of the steel industry. This private chain not only strengthens the processing capability of high-frequency transactions, but also ensures the unchangeable attributes and full traceability of transaction history, thereby enhancing the transparency and credibility of the system. In addition, through the smart contract mechanism, the system can automatically execute key business operations such as contract agreements, credit assessments and fund settlements, greatly improving the degree of automation and accuracy of supply chain financial services. In addition, the present invention integrates fully homomorphic encryption technology and uses the Microsoft SEAL library for implementation, so that sensitive data such as prices, inventory and financial information can be securely encrypted and stored on the chain. The use of homomorphic encryption enables complex analysis and processing of encrypted data without decrypting the data, thereby supporting more in-depth data-driven decision-making and ensuring the privacy and security of data throughout the entire processing process. The technical solution of the present invention is based on the characteristics of supply chain management in the steel industry. By designing blockchain and homomorphic encryption technology, it provides a safe, efficient, and regulatory-compliant data sharing platform for all participants in the industry, thereby enhancing the business collaboration and risk management capabilities of supply chain finance. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0018] Figure 1 This is a flow chart of a supply chain finance data sharing method based on Ethereum and homomorphic encryption of the present invention; Figure 2 This is a schematic diagram of the code audit process of smart contracts using MythX and Slither in the present invention; Figure 3 A schematic diagram of the compliance check process using a third-party security service provider in the present invention; Figure 4 The figure is a schematic diagram of the hardware structure of an electronic device of the present invention. DETAILED DESCRIPTION

[0019] 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.

[0020] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0021] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0022] Data security is another key point that needs urgent attention. In a system that relies on centralized management, the risk of data tampering and leakage increases significantly, especially when dealing with sensitive information such as financial data and transaction history. Therefore, developing and adopting an innovative technical solution to effectively address the above challenges and enhance data transparency and transaction efficiency has become an urgent need in the industry. The ideal solution must ensure that while protecting data security, it promotes instant sharing and efficient processing of data, helping steel supply chain finance achieve rapid decision-making and risk control.

[0023] The present invention integrates blockchain technology and homomorphic encryption algorithms to specifically serve the steel supply chain financial ecosystem with large-scale and high-frequency transaction characteristics, aiming to overcome the shortcomings of traditional data sharing models in ensuring data security, maintaining privacy and ensuring information timeliness. On this basis, the present invention constructs a customized private chain network based on the Ethereum blockchain platform, which is specifically adapted to the characteristics and needs of the steel industry. This private chain not only strengthens the processing capability of high-frequency transactions, but also ensures the unchangeable attributes and full traceability of transaction history, thereby enhancing the transparency and credibility of the system. In addition, through the smart contract mechanism, the system can automatically execute key business operations such as contract agreements, credit assessments and fund settlements, greatly improving the operational automation and accuracy of supply chain financial services. In addition, the present invention integrates fully homomorphic encryption technology and uses the Microsoft SEAL library for implementation, so that sensitive data such as prices, inventory and financial information can be securely encrypted and stored on the chain. The use of homomorphic encryption enables complex analysis and processing of encrypted data without decrypting the data, thereby supporting more in-depth data-driven decision-making and ensuring the privacy and security of data throughout the entire processing process. The technical solution of the present invention is based on the characteristics of supply chain management in the steel industry. By designing blockchain and homomorphic encryption technology, it provides a safe, efficient, and regulatory-compliant data sharing platform for all participants in the industry, thereby enhancing the business collaboration and risk management capabilities of supply chain finance.

[0024] Example 1

[0025] A supply chain finance data sharing method based on Ethereum and homomorphic encryption, reference Figure 1 ,include: S100, obtain data from each node of the supply chain; S200, uses fully homomorphic encryption technology to encrypt data; In the data analysis and processing work of the present invention, the advanced technology of homomorphic encryption is adopted to realize the execution of complex data operations and in-depth analysis under the state of data encryption, effectively strengthening the protection barrier of data privacy. By analyzing these encrypted data, it is possible to provide decision-making auxiliary information to all participants in the field of supply chain finance in real time, thereby promoting the refinement and efficiency of supply chain management.

[0026] S300, stores the encrypted data in the blockchain; Data encryption and storage: The data encryption and storage stage covers the process of real-time data collection from various supply chain nodes (such as production facilities, warehouses, and logistics centers). Next, the collected data is fully homomorphically encrypted to ensure the security of the data during transmission and storage. Finally, the encrypted data is uploaded and stored on the blockchain, using the blockchain's immutability to ensure data integrity.

[0027] S400 automates contract management, credit assessment and payment processing based on smart contracts.

[0028] The execution process of smart contracts covers the entire process from creation to execution. It automatically controls the implementation of contract terms and the update of their status. The process uses historical transaction records and financial details stored in the blockchain to achieve instant credit assessment. According to the terms preset in the smart contract, the system automatically executes payment and clearing operations to ensure the smooth completion of the transaction.

[0029] This invention proposes a supply chain financial data sharing method based on Ethereum and homomorphic encryption, focusing on meeting the unique needs of the steel industry. The platform successfully addresses the privacy and security challenges involved in supply chain data sharing by integrating cutting-edge encryption methods and decentralized data management models. Specifically, the platform relies on the Ethereum blockchain architecture to build an exclusive private chain ecosystem. This private chain leverages Ethereum's mature smart contract system to develop a series of customized smart contract solutions covering multiple dimensions such as contract management, credit assessment and payment processes. It has built-in sophisticated business logic to ensure the automated execution of contracts and enhance the transparency and processing speed of transactions. In terms of protecting data privacy, this technology adopts a fully homomorphic encryption method based on the Ring-LWE assumption. The feature of this technology is that it can perform complex mathematical operations, including addition and multiplication, while maintaining the encrypted form of data. It is designed for processing sensitive information such as financial records and inventory details, and supports the execution of advanced data analysis operations in an encrypted state, such as credit assessment and financial auditing. In addition, the fully homomorphic encryption module has been optimized through pre-computation technology and multi-threaded execution strategy, which significantly enhances the performance of data processing. Overall, the close combination of fully homomorphic encryption mechanism and smart contract system has built a resource sharing environment for supply chain finance that is both highly secure and efficient. It meets the steel industry's strict standards for real-time data processing and high-intensity privacy protection.

[0030] Preferably, before S100, obtaining data of each node in the supply chain, the process further includes: S010, deploy Ethereum private chain; S020, set smart contract template; S030, configure the fully homomorphic encryption module.

[0031] System initialization: The system initialization phase includes deploying the Ethereum private chain and establishing a dedicated Ethereum private chain network to provide infrastructure for the supply chain finance platform. This phase also includes setting up smart contract templates, developing and deploying smart contract templates suitable for the steel industry, including functional modules such as contract management, credit assessment and payment processing. At the same time, the fully homomorphic encryption module is configured and the fully homomorphic encryption technology is introduced to ensure that all sensitive data is encrypted, stored and processed on the chain to protect data privacy.

[0032] Preferably, S300, after storing the encrypted data in the blockchain, further includes: The Fourier transform algorithm is used to enhance the efficiency of polynomial multiplication in the field of homomorphic encryption.

[0033] In order to further improve computing performance, the present invention adopts the fast Fourier transform (FFT) algorithm to enhance the efficiency of polynomial multiplication in the field of homomorphic encryption. This strategy can significantly reduce the operation time and resource consumption when facing complex mathematical operations on encrypted data. In practical operation, the FFT algorithm is used to implement a high-speed convolution process on polynomial encrypted data, thereby facilitating the implementation of efficient polynomial multiplication.

[0034]

[0035] Where C ( x ) and D ( x ) represent two encryption polynomials, and IFFT represents inverse fast Fourier transform.

[0036] Preferably, S030, configuring the fully homomorphic encryption module includes: S031, fully homomorphic encryption technology includes encryption algorithms based on the Ring-LWE assumption; S032, using Chebyshev polynomial approximation method to optimize the calculation of encrypted data, activating function Sigmoid.

[0037] The Chebyshev polynomial approximation technique involves selecting the appropriate polynomial order n and the corresponding coefficients , which aims to reduce the maximum deviation between the function and its corresponding polynomial approximation. For the activation function Sigmoid, its approximate polynomial form can be expressed as:

[0038] Involved Represents the i-th level Chebyshev polynomial. With this strategy, nonlinear transformation operations can be performed while the data remains encrypted without the need for a decryption step, thus ensuring that data security and privacy protection are maintained.

[0039] Preferably, in S020, the smart contract template includes: S021, create and execute smart contracts, and automatically manage the execution and status updates of contract terms; S022, based on the historical transaction data and financial information stored on the blockchain, uses a support vector machine model to perform real-time credit scoring; The present invention also designs a ciphertext indexing and search mechanism that allows users to perform query operations on fully encrypted data sets without exposing any sensitive information. The mechanism uses a precoding strategy to convert query conditions into polynomial form, which is then compared with the stored ciphertext data to find matching items. This function greatly expands the practicality of fully homomorphic encryption technology in supply chain financial data security applications.

[0040] The smart contract system of this invention is built on the Ethereum blockchain architecture. It is specially designed to meet the unique needs of supply chain financing in the steel manufacturing industry. A set of personalized contract modules is carefully designed. This set of modules covers the three core contract functions of contract governance, credit evaluation and payment settlement. Through the inherent immutability of blockchain technology, these contracts can automatically fulfill the contract details and update the dynamics and archival records of supply chain finance in real time, effectively enhancing the transparency and operational efficiency of the system. In terms of contract management, an event-based programming strategy is adopted to implement monitoring and automatic response mechanisms for activities in all links of the supply chain. Once a new order is confirmed, the contract terms for related payments and shipments will be automatically activated and executed by the contract management module without intervention, significantly reducing human operation errors and shortening the processing cycle. As for the credit assessment module, it makes full use of the past transaction information recorded in the blockchain to automatically judge the credit level of each participant in the supply chain. This module is embedded with advanced machine learning algorithms, including support vector machines (SVM) and neural network models, which are trained to predict the credit risk of trading partners. The algorithm parameters and logic rules are codified into the smart contract, ensuring that the model can be flexibly adjusted and adapted in real time according to market fluctuations.

[0041]

[0042] in Represents the encrypted form of transaction history and financial data, and Credit Score represents the credit score of the trading partner.

[0043] S023, automatically process payment and settlement operations according to the conditions specified in the smart contract.

[0044] The payment processing contract automatically processes payment instructions based on the credit assessment results and contract terms. The contract ensures that all financial transactions are carried out in accordance with the conditions specified in the contract, automatically executes the transfer of funds, reduces the risk of transaction fraud and optimizes the management of fund flows. In order to ensure the correctness and security of smart contract execution, the present invention also includes a contract security audit mechanism. Formal verification and static analysis tools Mythril and Slither are used to predict and detect security vulnerabilities of smart contracts to ensure the correctness of contract logic and defend against external attacks.

[0045] In order to ensure that the supply chain financial data sharing platform can adapt to the market, the present invention has carefully constructed a framework system that comprehensively covers data security and compliance. By implementing dynamic data masking and access control list (ACL) technology, the system strictly limits information access rights, and only authorized users can view specified data. Dynamic data masking technology can take effect at the moment the data is accessed, and dynamically encrypts and displays the data based on the user role and permission level, greatly enhancing the security protection of sensitive information and preventing unauthorized leakage. Especially for highly sensitive information such as price and inventory, the system will automatically encrypt its displayed content to further strengthen the information security line of defense: Encrypted Data = Data · Mask The Mask changes dynamically according to the user's role to ensure the security of data display.

[0046] Preferably, after the encrypted data is stored in the blockchain, a security audit and compliance check of the stored data is also performed, specifically: Use MythX and Slither to audit smart contract codes, detect and fix security vulnerabilities; Use third-party security service providers to conduct compliance checks.

[0047] Preferably, MythX and Slither are used to audit the smart contract code to detect and fix potential security vulnerabilities including: Configure security auditing tools; Set audit rules and policies; Code auditing using MythX and Slither code; Automatically remediate security vulnerabilities when they are detected.

[0048] In the security audit and compliance practice, the present invention implements regular smart contract security reviews, using MythX and Slither tools to discover and correct possible weaknesses and security threats. In addition, an independent third-party security service agency is specially hired to perform compliance assessments.

[0049] Preferably, using a third-party security service provider to perform compliance checks includes: Third-party security service providers conduct compliance checks; The compliance monitoring system is another core component of the present invention. It uses smart contract technology to automatically record all data processing activities to ensure the transparency and traceability of the data processing process. The system is equipped with a logging function, and all data access and processing behaviors will be recorded on the blockchain, which not only helps audits and compliance checks, but also enhances the security of data processing. To further strengthen data protection, the present invention also includes regular security audits and compliance assessments. By hiring a third-party security service provider to conduct regular security audits, including penetration testing and vulnerability scanning, the security of the system and its ability to resist external threats are ensured. All audit results will be archived and analyzed for future security policy adjustments and optimizations.

[0050] Record compliance inspection results in real time; Configure disaster recovery mechanisms; Restore test data regularly.

[0051] The last important link of the present invention is system integration and testing to ensure the practical feasibility and efficiency of the technical solution. In order to achieve seamless integration of the supply chain financial data sharing platform with existing enterprise systems, a set of RESTful API interfaces was first developed to allow existing enterprise resource planning (ERP) systems, customer relationship management (CRM) systems and other supply chain management tools to easily access the blockchain platform. These API interfaces follow open standards and support a variety of data formats and communication protocols, thereby achieving two-way synchronization and real-time updates of data. Through the API interface, order information and logistics data in the supply chain can be directly pushed to the blockchain network, and real-time feedback on transaction status and inventory changes can be provided. The system testing link is an indispensable part of verifying the stability and performance of the platform. The present invention adopts a comprehensive testing solution covering multiple dimensions such as unit testing, integration testing and performance evaluation. Unit testing focuses on the functional verification of individual modules to ensure that each functional point can operate accurately as designed. Integration testing is responsible for checking the smoothness of the interface connection between modules and the accuracy of data circulation, so as to ensure that the system can maintain high stability after integration. As for performance evaluation, it focuses on evaluating the response speed and processing efficiency of the system under high pressure, so as to confirm that it can effectively cope with the challenges of large data input and complex data processing in actual combat scenarios. In addition, in order to prevent accidents and strengthen the continuous operation capability of the system, the present invention also plans and implements disaster recovery plans and data backup strategies, covering periodic data backup operations, deployment of fault switching mechanisms, and data recovery drills, aiming to ensure the integrity of data and the ability of the system to quickly restore normal services in any emergency.

[0052] During the system integration and testing phase, the present invention focuses on developing an API interface that complies with the RESTful architecture, aiming to achieve smooth docking between the existing enterprise resource planning system (ERP) and various supply chain management tools. This process covers unit testing of each module to confirm the accuracy of its functions; implementation of integration testing to ensure smooth and error-free data exchange between modules; and performance testing to evaluate the response speed and stability of the system under high load.

[0053] Example 2

[0054] A supply chain finance data sharing system, comprising: Data collection module, used to obtain data from each node of the supply chain; Fully homomorphic encryption module, used to encrypt data using fully homomorphic encryption technology; The blockchain storage module stores the encrypted data in the blockchain; Smart contract execution module, used to automate contract management, credit assessment and payment processing based on smart contracts.

[0055] With the help of comprehensive system integration and testing strategies, the present invention ensures that the supply chain finance data sharing platform can not only achieve seamless integration with the current enterprise system, but also demonstrate excellent performance and high stability in a variety of operating environments.

[0056] Example 3

[0057] An electronic device includes: a processor and a memory, the memory is used to store computer program code, the computer program code includes computer instructions, when the processor executes the computer instructions, the electronic device executes a supply chain financial data sharing method based on Ethereum and homomorphic encryption.

[0058] refer to Figure 4 , the electronic device 2 includes a processor 21, a memory 22, an input device 23, and an output device 24. The processor 21, the memory 22, the input device 23, and the output device 24 are coupled via a connector, and the connector includes various interfaces, transmission lines, or buses, etc., which are not limited in the embodiments of the present invention. It should be understood that in various embodiments of the present invention, coupling refers to mutual connection in a specific manner, including direct connection or indirect connection through other devices, for example, through various interfaces, transmission lines, buses, etc.

[0059] The processor 21 may be one or more graphics processing units (GPUs). When the processor 21 is a GPU, the GPU may be a single-core GPU or a multi-core GPU. Optionally, the processor 21 may be a processor group consisting of multiple GPUs, and the multiple processors are coupled to each other via one or more buses. Optionally, the processor may also be other types of processors, etc., which are not limited in the embodiments of the present invention.

[0060] The memory 22 can be used to store computer program instructions and various computer program codes including program codes for executing the scheme of the present invention. Optionally, the memory includes but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM), or portable read only memory (CD-ROM), which is used for related instructions and data.

[0061] The input device 23 is used to input data and / or signals, and the output device 24 is used to output data and / or signals. The output device 24 and the input device 23 may be independent devices or an integrated device.

[0062] Application of Ring-Learning with Errors (RLWE) in Supply Chain Finance: In this embodiment, a data encryption module based on the improved Gentry-Sahai-Waters (GSW) homomorphic encryption scheme is developed. The scheme is built on the basis of an ideal lattice on a ring, which can improve the efficiency of data processing without sacrificing encryption strength. Through this module, the supply chain finance platform of the steel industry can realize the secure encryption processing of sensitive information such as price, inventory and financial data, while supporting complex data operations in the ciphertext state, such as addition and multiplication.

[0063] In order to achieve this, we first selected a suitable ring , where n is a large prime number, ensuring that the complexity of the ring is sufficient to resist modern cryptanalysis techniques. Next, an efficient encryption scheme is constructed, which optimizes the traditional GSW scheme by introducing new linear transformations and reducing the degree of polynomials. By maintaining the coefficients of the polynomials at a low level, the noise growth when performing arithmetic operations on the ciphertext is reduced, thereby extending the number of operations that the encrypted data can be used for without key refresh. In order to further optimize the data processing speed, an optimization strategy based on pre-computation technology is implemented. In this strategy, for some commonly used operations such as common calculation formulas in financial analysis, the encrypted results of these operations are calculated and stored in advance. When actual calculation needs occur, the system can directly call these pre-calculated results without starting from scratch, which greatly reduces the processing time and computing resource consumption, not only ensuring the security and privacy of data in an encrypted state, but also significantly improving the efficiency of data processing, enabling the supply chain financial platform to support real-time data updates and decision-making while ensuring data security.

[0064] To fully realize the potential of Ring-Learning with Errors (RLWE), the present invention deeply integrates this technology with the automated execution and data processing mechanisms of smart contracts. With this integration, smart contracts can autonomously carry out complex financial activities, including credit assessment, payment settlement, and contract performance, while maintaining data encryption. Smart contracts are built to accept and operate encrypted information. When performing credit assessments, smart contracts receive encrypted data from transaction history and financial records. Utilizing the unique properties of homomorphic encryption technology, the computational model within the smart contract can implement the credit scoring algorithm directly on the encrypted data without going through the data decryption step. This process adopts a specially designed homomorphic encryption algorithm to implement linear regression analysis, which is performed through the following homomorphic operations:

[0065] where w 1 ,w 2 , ... , w n is the model weight, b is the bias term, x 1 , x 2 , ... , x n are input features, all in encrypted form. Encrypted Credit Score represents the credit score of the trading partner after homomorphic encryption. Enc() represents the encryption processing of an item, that is, the encryption function.

[0066] In addition, the smart contract system also covers the functions of automatic transfer and contract implementation. Once the pre-set conditions of the contract are met, the smart contract will automatically start the corresponding fund transfer process. In this process, homomorphic encryption is used to process payment commands, aiming to enhance the security and confidentiality of the transaction process, reduce processing time, and reduce manual intervention. In order to ensure the robustness and security of the system operation, the present invention implements a complete set of system testing solutions, covering encryption algorithm performance detection, smart contract function verification and overall system security assessment. The test results show that this innovative solution not only greatly improves the security level of data processing, but also fully meets the dual requirements of supply chain finance for transaction immediacy and accuracy.

[0067] Supply Chain Finance Management Based on Advanced Monitoring and Adaptive Compliance Framework: In this embodiment, the present invention proposes a supply chain finance solution that integrates data monitoring and dynamic compliance management system. The goal of this solution is to achieve comprehensive monitoring of supply chain activities and automated compliance checks to adapt to the ever-changing regulations and standards of the market.

[0068] The first step in this implementation case is to build an advanced data monitoring system to achieve real-time tracking and recording of all supply chain transaction details. With the application of Internet of Things (IoT) technology, the system is strategically deployed at the core nodes of the supply chain, including production sites, warehouses and logistics hubs. Through the information collected by IoT devices, the system can instantly monitor and analyze the flow of goods, inventory changes and transaction dynamics to ensure the timeliness and accuracy of data. To achieve the goal of continuous data monitoring, this case adopts complex event processing (CEP) engine technology, which is good at processing high-throughput real-time data streams. By presetting specific event models and criteria, the CEP engine can instantly identify key events in the supply chain, such as goods arriving at a preset location or inventory falling to a preset minimum limit. Once these events are triggered, the system automatically initiates corresponding measures, such as issuing alarms, updating inventory records or revising logistics plans. In addition, this case also incorporates an adaptive compliance framework to strengthen data security and compliance management. The framework automatically adjusts data management and storage strategies according to laws and regulations in different regions to ensure that all practices are in compliance with local laws and regulations. With the help of machine learning mechanisms, the framework continuously learns and adapts to emerging compliance requirements and standards, and autonomously updates the system's compliance policy configuration.

[0069] This implementation case adopts distributed computing technology in the data processing module to ensure the effective processing capability of large-scale data input from multiple source nodes. By integrating advanced big data processing platforms such as Apache Spark, the system can efficiently complete data purification, conversion and in-depth analysis. Especially for the processing of financial sensitive information, the system implements encryption to ensure the security of data during transmission and processing. In addition, the introduction of distributed computing greatly enhances the speed of data processing, providing strong support for complex digital research tasks such as predictive analysis and behavior pattern construction, which in turn has a positive impact on the field of supply chain strategy optimization and risk management.

[0070] The intelligent compliance update mechanism is another core feature of this embodiment. With the continuous changes in trade regulations, compliance management has become a challenge in supply chain management. This system monitors the updates of relevant regulations in real time by integrating automated compliance monitoring tools such as CLEAR from Thomson Reuters or Risk Solutions from LexisNexis. The machine learning model is trained to identify changes in compliance requirements related to supply chain activities and automatically adjust the compliance policies in the system. When new data protection laws come into effect, the system automatically adjusts the methods of data storage and processing to ensure that all operations comply with the new regulatory requirements. In order to verify the actual application effect of the system, a series of simulation tests were carried out. These tests include not only standard performance and stability tests, but also specially designed scenario tests to simulate the entire process from regulatory changes to system responses. The test results show that this system can respond to regulatory changes within minutes, quickly adjust relevant data processing and storage strategies, and effectively reduce non-compliance risks.

[0071] Blockchain-driven automated contract execution and payment processing systems; In this embodiment, the present invention proposes a smart contract platform integrating blockchain technology for automating the execution of contracts and payment processing in supply chain finance. By leveraging the immutability and transparency of blockchain, the system can automatically and securely process contract execution and related financial transactions, thereby reducing manual intervention, reducing fraud risks, and improving operational efficiency.

[0072] The first step taken by the system is to use blockchain technology to record the contract details in the form of a digital contract that details the transaction terms, payment arrangements and liability for breach of contract, all of which are encoded into the program logic of the smart contract. Once the triggering conditions of the contract, such as verification of the delivery of goods or confirmation of the completion of services, are met, the smart contract will automatically activate and distribute the funds to the relevant beneficiaries according to the established agreement. In addition, the system adopts encryption technology to maintain the security of transaction information, and uses the characteristics of blockchain to faithfully record the full picture of each transaction, including time stamps and the identities of both parties to the transaction, so as to enhance the transparency and traceability of the transaction process and ensure that all participants can monitor the transaction dynamics and past history in real time. On the other hand, a dynamic credit assessment module continuously updates the credit rating based on historical transaction activities and market feedback. This rating directly affects the financial terms in the smart contract. For example, companies with high credit scores may obtain more favorable payment arrangements. This dynamic adjustment strategy not only improves the system's adaptability to market fluctuations, but also promotes the enthusiasm of all links in the supply chain to maintain their business reputation.

[0073] The present invention also constructs an automated dispute mediation system, which relies on smart contract technology and preset rules to autonomously manage disputes and abnormal conditions caused by contracts. Once there is a disagreement or conflict in the transaction on the supply chain, the system immediately activates the dispute resolution procedure to ensure that all conflicts are resolved quickly and fairly. Using the transparency and immutable properties of smart contracts, the system can automatically implement preset dispute response rules. For example, if one party indicates that the goods have not been received on time, the system will autonomously check the digital records related to the delivery of the goods, including time stamps, geographic location information, and delivery confirmation. This information is uploaded to the blockchain environment in real time via the Internet of Things device, ensuring their credibility and non-repudiation. Based on the automatically collected information and contract details, the smart contract will decide whether to activate the breach of contract clause or compensation mechanism. In addition, the system enhances the protection of the financial security level through integration with external credit assessment service agencies. These services update credit scores in real time, assisting smart contracts to judge the credit risks of both parties to the transaction before executing the contract terms. For transactions that are assessed to be high risk, the system may activate additional security plans to reduce possible economic losses.

[0074] Dynamic price adjustment and risk management system based on blockchain: In this embodiment, the present invention proposes a supply chain finance solution that integrates dynamic price adjustment and risk management, which is designed specifically for the steel industry. This system uses Ethereum blockchain and fully homomorphic encryption technology to not only ensure data security and privacy, but also achieve real-time response to market dynamics and risk control.

[0075] The first step is to build an Ethereum private chain platform with a smart contract mechanism to automate the price adjustment process. This price adjustment smart contract relies on real-time captured market information and internal supply and demand conditions of the enterprise to autonomously adjust the price of steel products. By integrating with external market data sources and internal sales records, the contract can instantly analyze global steel price trends and corporate inventory conditions, and flexibly adjust the product price system accordingly to ensure that the company maintains a competitive advantage in market fluctuations. In addition, the system embeds a risk management component that uses fully homomorphic encryption to provide a secure coat for financial information and transaction history. The risk management smart contract predicts potential credit risks and market trends based on past transaction patterns and the latest market trends. It is worth mentioning that the project also adopts encrypted data analysis technology, making complex analysis and processing possible in the encrypted form of data. This measure ensures that even analysis operations involving sensitive information such as prices and inventories do not need to be decrypted, which fundamentally strengthens the security barriers and privacy protection of data.

[0076] This embodiment not only enhances the adaptability and efficiency of the supply chain finance system by integrating dynamic price adjustment and risk management functions, but also protects the security and privacy of all sensitive data through advanced encryption technology, providing an innovative supply chain finance solution for the steel industry.

[0077] The present invention integrates blockchain technology and homomorphic encryption algorithms to specifically serve the steel supply chain financial ecosystem with large-scale and high-frequency transaction characteristics, aiming to overcome the shortcomings of traditional data sharing models in ensuring data security, maintaining privacy and ensuring information timeliness. On this basis, the present invention constructs a customized private chain network based on the Ethereum blockchain platform, which is specifically adapted to the characteristics and needs of the steel industry. This private chain not only strengthens the processing capability of high-frequency transactions, but also ensures the unchangeable attributes and full traceability of transaction history, thereby enhancing the transparency and credibility of the system. In addition, through the smart contract mechanism, the system can automatically execute key business operations such as contract agreements, credit assessments and fund settlements, greatly improving the operational automation and accuracy of supply chain financial services. In addition, the present invention integrates fully homomorphic encryption technology and uses the Microsoft SEAL library for implementation, so that sensitive data such as prices, inventory and financial information can be securely encrypted and stored on the chain. The use of homomorphic encryption enables complex analysis and processing of encrypted data without decrypting the data, thereby supporting more in-depth data-driven decision-making and ensuring the privacy and security of data throughout the entire processing process. The technical solution of the present invention is based on the characteristics of supply chain management in the steel industry. By designing blockchain and homomorphic encryption technology, it provides a safe, efficient, and regulatory-compliant data sharing platform for all participants in the industry, thereby enhancing the business collaboration and risk management capabilities of supply chain finance.

[0078] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A supply chain finance data sharing method based on Ethereum and homomorphic encryption, characterized in that: include: Deploy Ethereum private chain; Set up smart contract template; Configure the fully homomorphic encryption module, including: Fully homomorphic encryption technology includes encryption algorithms based on the Ring-LWE assumption; The Chebyshev polynomial approximation method is used to optimize the calculation of encrypted data, and the activation function is Sigmoid; Obtain data from each node of the supply chain; Encrypting the data using the fully homomorphic encryption technology; Store the encrypted data in the blockchain; Automate contract management, credit assessment, and payment processing based on smart contracts.

2. According to a supply chain financial data sharing method based on Ethereum and homomorphic encryption according to claim 1, it is characterized in that: After storing the encrypted data in the blockchain, the method further includes: The Fourier transform algorithm is used to enhance the efficiency of polynomial multiplication in the field of homomorphic encryption.

3. According to a supply chain financial data sharing method based on Ethereum and homomorphic encryption according to claim 1, it is characterized in that: The setting of the smart contract template includes: Create and execute smart contracts to automatically manage the execution of contract terms and status updates; Based on the historical transaction data and financial information stored on the blockchain, a support vector machine model is used to perform real-time credit scoring; Payment and settlement operations are automatically processed according to the conditions stipulated in the smart contract.

4. According to a supply chain financial data sharing method based on Ethereum and homomorphic encryption according to claim 1, it is characterized in that: After the encrypted data is stored in the blockchain, it also includes security auditing and compliance checking of the stored data, specifically: Use MythX and Slither to audit smart contract codes, detect and fix security vulnerabilities; Use third-party security service providers to conduct compliance checks.

5. A supply chain financial data sharing method based on Ethereum and homomorphic encryption according to claim 4, characterized in that: The use of MythX and Slither to conduct code audits of smart contracts to detect and fix potential security vulnerabilities includes: Configure security auditing tools; Set audit rules and policies; Code auditing using MythX and Slither; Automatically remediate security vulnerabilities when they are detected.

6. A supply chain financial data sharing method based on Ethereum and homomorphic encryption according to claim 4, characterized in that: The compliance checks conducted by third-party security service providers include: Third-party security service providers conduct compliance checks; Record compliance inspection results in real time; Configure disaster recovery mechanisms; Restore test data regularly.

7. An electronic device, characterized in that: include: A processor and a memory, wherein the memory is used to store computer program code, wherein the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes a supply chain financial data sharing method based on Ethereum and homomorphic encryption as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Supply chain financial platform based on block chain and data processing method

    CN115392914A

  • Computing accelerators, data processors, and related methods

    CN117200962A

  • Method for auditing smart contract with multi layer and apparatus thereof

    KR102247233B1