Intelligent contract signing method and device based on edge computing and medium
By using fully homomorphic encryption and broadcast encryption algorithms in an edge computing environment, the problems of easy paralysis and privacy leakage of smart contract signing systems caused by centralized servers are solved, and efficient and secure smart contract signing is achieved.
Patent Information
- Application Number
- CN202510895080.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2026-05-05
AI Technical Summary
Traditional smart contract signing methods rely on centralized servers, which can lead to system crashes, data privacy leaks, and business continuity issues.
The smart contract signing is carried out in an edge computing environment. Fully homomorphic encryption technology and broadcast encryption algorithm are used to process data and control access at the edge node to generate encrypted contract signing results.
Reduce data transmission latency, improve processing efficiency, ensure data privacy, and leverage the decentralized nature of blockchain to guarantee the authenticity and immutability of contract records.
Smart Images

Figure CN121984653A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of privacy computing and blockchain, and in particular to a smart contract signing method, device and medium based on edge computing. Background Technology
[0002] With the rapid development of the digital economy, the scenarios for signing various business contracts are increasing. Traditional offline contract signing methods have many limitations in terms of efficiency, security, and traceability.
[0003] Currently, smart contract signing primarily relies on centralized servers. Signing results are stored and managed centrally by the server, and users must query the contract status through the server. Throughout the entire process, data transmission, computation, and storage depend on the central server.
[0004] Existing technologies that manage signing results through a central server are prone to system failures due to hardware malfunctions, cyberattacks, or human error, which can paralyze the entire signing system and disrupt business continuity. Furthermore, breaches to server security can easily lead to large-scale data breaches. Summary of the Invention
[0005] This invention provides a smart contract signing method, device, and medium based on edge computing, which determines the signing status at edge nodes rather than a central server, reducing data transmission latency and improving data processing efficiency.
[0006] According to one aspect of the present invention, a smart contract signing method based on edge computing is provided, the method comprising:
[0007] Obtain the target user's subscription request, extract the target user's subscription information based on the subscription request, and transmit the subscription information to the edge computing environment;
[0008] In an edge computing environment, the target user agreement data on the blockchain is invoked based on the signing information, and a smart contract is signed according to the target user agreement data to generate a contract signing result;
[0009] Determine the set of authorized users corresponding to the contract signing result, and use a broadcast encryption algorithm to encrypt the contract signing result based on the set of authorized users to generate an encrypted contract signing result.
[0010] Optionally, extracting the target user's contract information based on the contract request includes: extracting the target user's user information based on the contract request, wherein the user information includes user identifier, account, and protocol type; and encrypting the user information using fully homomorphic encryption technology to generate contract information.
[0011] Optionally, the method also includes: in an edge computing environment, using edge nodes to perform integrity and legality verification of the contract information without decryption through fully homomorphic encryption technology, so as to ensure that the contract information conforms to the preset format and rules.
[0012] Optionally, a smart contract signing can be performed based on the target user agreement data, including: determining the target agreement to be checked based on the agreement type; checking whether the user agreement data has signed the target agreement; if not, triggering smart contract signing; if signed, checking whether the target option is selected; if not, triggering smart contract signing; if selected, confirming that the target agreement has been signed and is compliant, and directly feeding back the user agreement data to the user.
[0013] Optionally, triggering smart contract signing includes: determining the target signing action based on the protocol type, wherein the signing action includes signing the target protocol and selecting the target option; and executing the target signing action to sign the smart contract.
[0014] Optionally, the contract signing result is encrypted using a broadcast encryption algorithm based on the set of authorized users to generate an encrypted contract signing result, including: mapping each element in the set of authorized users to a mapping point on a two-dimensional plane; selecting a new point in space other than the mapping points, and generating a reconstruction polynomial based on the mapping points and the new point using the Lagrange interpolation method; and generating the encrypted contract signing result based on the reconstruction polynomial.
[0015] Optionally, the method also includes: updating the target user agreement data stored on the blockchain with the encrypted contract signing result, and returning the encrypted contract signing result to the edge computing environment for feedback to the target user.
[0016] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0017] At least one processor;
[0018] and a memory communicatively connected to the at least one processor;
[0019] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to execute a smart contract signing method based on edge computing as described in any embodiment of the present invention.
[0020] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement a smart contract signing method based on edge computing as described in any embodiment of the present invention.
[0021] According to another aspect of the present invention, a computer program product is provided, the computer program product comprising a computer program that, when executed by a processor, implements a smart contract signing method based on edge computing according to any embodiment of the present invention.
[0022] The technical solution of this invention, through processing in an edge computing environment, can shorten data transmission distance, reduce latency, and improve processing efficiency. It utilizes blockchain-stored protocol data as verification evidence, leveraging the decentralized nature of blockchain to ensure the authenticity and reliability of historical signing records, preventing data tampering or forgery. By using a broadcast encryption algorithm to bind the permissions of the signing result to a user set, only authorized users can decrypt the result, thus guaranteeing user privacy.
[0023] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0024] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0025] Figure 1 This is a flowchart of a smart contract signing method based on edge computing according to Embodiment 1 of the present invention;
[0026] Figure 2 This is a flowchart of another smart contract signing method based on edge computing provided in Embodiment 2 of the present invention;
[0027] Figure 3 This is a schematic diagram of the structure of a smart contract signing device based on edge computing according to Embodiment 3 of the present invention;
[0028] Figure 4 This is a schematic diagram of the structure of an electronic device that implements a smart contract signing method based on edge computing according to an embodiment of the present invention. Detailed Implementation
[0029] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0030] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0031] Example 1
[0032] Figure 1 This is a flowchart illustrating a smart contract signing method based on edge computing, as provided in Embodiment 1 of the present invention. This embodiment is applicable to bank enterprise network customer signing scenarios. The method can be executed by a smart contract signing device based on edge computing, which can be implemented in hardware and / or software and can be configured in a computer controller. Figure 1 As shown, the method includes:
[0033] S110. Obtain the target user's subscription request, extract the target user's subscription information based on the subscription request, and transmit the subscription information to the edge computing environment.
[0034] The target users refer to corporate online banking customers who initiate requests to sign information service agreements. An edge computing environment refers to a distributed computing platform composed of edge nodes, capable of processing data locally, reducing the pressure on central servers and transmission latency.
[0035] Specifically, users can initiate a request through the bank's enterprise network system. The controller uses fully homomorphic encryption technology to encrypt the contract information before transmitting it to the edge computing environment. The encrypted contract information is then sent to the edge computing nodes via the network, shortening data transmission distance and reducing latency and bandwidth consumption.
[0036] Optionally, extracting the target user's contract information based on the contract request includes: extracting the target user's user information based on the contract request, wherein the user information includes user identifier, account, and protocol type; and encrypting the user information using fully homomorphic encryption technology to generate contract information.
[0037] The signing request is submitted by the user to the server via the client. The controller parses the request to extract basic user information, including user identifier, account information, and protocol type. The user identifier is information that uniquely identifies the user and is used to associate the user's account in the blockchain. Account information refers to various account information related to the signing, including the main account, signing account, and payment account. The protocol type refers to the specific type of agreement the user requests to sign.
[0038] Specifically, fully homomorphic encryption technology refers to using an encryption algorithm that supports homomorphic operations to generate a public key, a private key, and an evaluation key. The private key is securely stored by a trusted third party, and the evaluation key is used to authorize edge nodes to perform ciphertext calculations. The controller converts the extracted user information into numerical form and encrypts each information field separately using the public key to generate corresponding ciphertext. The encrypted ciphertexts are combined to form a structured contract information data packet. The encrypted contract information supports direct calculation and verification without decryption, and the calculation result remains ciphertext. Throughout the entire transmission and processing process, the data always exists in ciphertext form, ensuring that sensitive information is not leaked.
[0039] S120. In an edge computing environment, the target user agreement data of the blockchain is called based on the signing information, and a smart contract is signed according to the target user agreement data to generate a contract signing result.
[0040] User agreement data refers to the historical agreement signing records of users stored on the blockchain, such as whether they have signed the Financial Intelligence Account Agreement or the Cash Management Service Agreement and whether they have selected the information service option. This data is characterized by immutability and decentralization. Smart contract signing refers to the automatic triggering of the blockchain smart contract module when an edge node determines that a user has not met the signing conditions, executing an agreement re-signing or option selection operation. It should be noted that edge nodes do not need to decrypt the data; they can directly perform calculations and judgments on the encrypted text, ensuring privacy and security.
[0041] Optionally, the method also includes: in an edge computing environment, using edge nodes to perform integrity and legality verification of the contract information without decryption through fully homomorphic encryption technology, so as to ensure that the contract information conforms to the preset format and rules.
[0042] Specifically, in an edge computing environment, after receiving encrypted contract information, the edge node directly verifies the integrity and legality of the ciphertext using fully homomorphic encryption technology to ensure that the data conforms to the preset format and business rules. The entire process does not require data decryption.
[0043] Specifically, integrity verification includes format compliance verification and data consistency verification. When performing format compliance verification, edge nodes can use homomorphic operations to verify whether the structure of the signed information conforms to a preset format. For example, they can check whether the number of ciphertext data fields is complete and verify whether the types of each field match, such as whether the user identifier is in a valid format. They can also calculate the ciphertext using a predefined polynomial function; if the result meets expectations, the format is valid. When performing data consistency verification, edge nodes can ensure information consistency by comparing related ciphertext data from different sources. For example, they can verify whether the user identifier matches the identity information stored in the blockchain and check whether the account information is consistent with the ciphertext data recorded in the bank's core system. They can also use a homomorphic hash function to calculate the ciphertext and compare the result with a pre-calculated hash value.
[0044] Specifically, legitimacy verification includes permission and qualification verification as well as business rule verification. During permission and qualification verification, edge nodes can verify a user's eligibility to sign agreements based on historical protocol data stored on the blockchain. For example, they can check if the necessary basic agreements have been signed, whether the account status is normal, and can also use homomorphic operations to determine if the encrypted conditional expression is true. During business rule verification, edge nodes can verify whether the signing information conforms to business rules. For example, whether the signing account belongs to the user's authorized account list, and whether the protocol type matches the user's permission level. Homomorphic comparison operations can also be used to determine the size and inclusion relationships of encrypted data.
[0045] Ultimately, once integrity and legality are verified, the edge node generates an encrypted verification pass identifier and triggers the subsequent smart contract execution process. If a formatting error or violation of business rules is detected, the edge node generates encrypted error information, detailing the problem type (e.g., formatting error, insufficient permissions), and terminates the signing process.
[0046] Optionally, a smart contract signing can be performed based on the target user agreement data, including: determining the target agreement to be checked based on the agreement type; checking whether the user agreement data has signed the target agreement; if not, triggering smart contract signing; if signed, checking whether the target option is selected; if not, triggering smart contract signing; if selected, confirming that the target agreement has been signed and is compliant, and directly feeding back the user agreement data to the user.
[0047] Specifically, the controller predefines the prerequisite protocols to be checked based on the type of protocol requested by the user, such as the Financial Intelligence Account Information Service, including protocols like the Cash Management Service Agreement and the Financial Intelligence Account Agreement. That is, if a user requests to sign Protocol A, the controller automatically retrieves the dependency tree to determine the set of prerequisite protocols {B, C} to be checked. The controller queries the user's protocol data through the blockchain interface to check for a valid signing record of the target protocol. If it is not signed, the smart contract is triggered to automatically sign the target protocol, generating a new blockchain transaction. If it has been signed, the next step of the check is performed: checking whether a specific service option, such as the information service, is selected. If not selected, the smart contract is triggered to update the protocol terms and add a selected status. If selected, it is confirmed that the target protocol has been signed and is compliant, and then the user's protocol data is encrypted and sent back to the user.
[0048] Optionally, triggering smart contract signing includes: determining the target signing action based on the protocol type, wherein the signing action includes signing the target protocol and selecting the target option; and executing the target signing action to sign the smart contract.
[0049] Specifically, the system predefines the association rules between protocol types and signing actions, which are stored in the blockchain smart contract. For example, the signing action corresponding to protocol type A is to sign protocol A and check option X; the signing action corresponding to protocol type B is to sign only protocol B. Edge nodes can query the set of signing actions to be executed based on the protocol type requested by the user and the signing status of the previous step.
[0050] The process of signing the target agreement involves extracting necessary parameters such as user identity and agreement template ID from the encrypted signing information, and then signing the agreement content using the user's blockchain identity key. Selecting a target option modifies the option status field in the agreement terms, such as changing it from unselected to selected.
[0051] S130. Determine the set of authorized users corresponding to the contract signing result, and use a broadcast encryption algorithm to encrypt the contract signing result based on the set of authorized users to generate an encrypted contract signing result.
[0052] The authorized user set refers to a specific group of users who can view the contract signing results, such as the customer or bank administrators. Broadcast encryption is an optional encryption technique that maps authorized users to points on a polynomial using Lagrange interpolation. Only authorized users can reconstruct the polynomial and decrypt the result using their private key; unauthorized users cannot view it, thus protecting data privacy.
[0053] Optionally, the method also includes: updating the target user agreement data stored on the blockchain with the encrypted contract signing result, and returning the encrypted contract signing result to the edge computing environment for feedback to the target user.
[0054] Specifically, after the smart contract is executed, the controller can broadcast the encrypted result to the edge computing environment via the blockchain event log. Edge nodes listen for blockchain events, obtain the encrypted result, and cache it in local storage. After receiving the encrypted contract signing result, the edge nodes verify its integrity and legality, then convert the result into a format suitable for display on the user's end. Finally, the target user can request the signing result through the ICBC Enterprise Network system and then decrypt the encrypted result using their private key.
[0055] The technical solution of this invention, through processing in an edge computing environment, can shorten data transmission distance, reduce latency, and improve processing efficiency. It utilizes blockchain-stored protocol data as verification evidence, leveraging the decentralized nature of blockchain to ensure the authenticity and reliability of historical signing records, preventing data tampering or forgery. By using a broadcast encryption algorithm to bind the permissions of the signing result to a user set, only authorized users can decrypt the result, thus guaranteeing user privacy.
[0056] Example 2
[0057] Figure 2 This is a flowchart of a smart contract signing method based on edge computing provided in Embodiment 2 of the present invention. This embodiment adds a specific process to Embodiment 1 above, whereby a broadcast encryption algorithm is used to encrypt the contract signing result based on a set of authorized users to generate an encrypted contract signing result. The specific content of steps S210-S220 is largely the same as steps S110-S120 in Embodiment 1, and therefore will not be repeated in this embodiment. Figure 2 As shown, the method includes:
[0058] S210. Obtain the target user's subscription request, extract the target user's subscription information based on the subscription request, and transmit the subscription information to the edge computing environment.
[0059] Optionally, extracting the target user's contract information based on the contract request includes: extracting the target user's user information based on the contract request, wherein the user information includes user identifier, account, and protocol type; and encrypting the user information using fully homomorphic encryption technology to generate contract information.
[0060] S220. In an edge computing environment, the target user agreement data of the blockchain is called based on the signing information, and a smart contract is signed according to the target user agreement data to generate a contract signing result.
[0061] Optionally, the method also includes: in an edge computing environment, using edge nodes to perform integrity and legality verification of the contract information without decryption through fully homomorphic encryption technology, so as to ensure that the contract information conforms to the preset format and rules.
[0062] Optionally, a smart contract signing can be performed based on the target user agreement data, including: determining the target agreement to be checked based on the agreement type; checking whether the user agreement data has signed the target agreement; if not, triggering smart contract signing; if signed, checking whether the target option is selected; if not, triggering smart contract signing; if selected, confirming that the target agreement has been signed and is compliant, and directly feeding back the user agreement data to the user.
[0063] Optionally, triggering smart contract signing includes: determining the target signing action based on the protocol type, wherein the signing action includes signing the target protocol and selecting the target option; and executing the target signing action to sign the smart contract.
[0064] S230. Determine the set of authorized users corresponding to the contract signing result.
[0065] S240. Map each element in the set of authorized users to a mapping point on a two-dimensional plane.
[0066] Specifically, the authorized user set refers to a specific group of users who are allowed to view the contract signing results. Each user is assigned a unique identifier, and through a specific mapping rule, the user identifier is converted into a coordinate point in a two-dimensional plane. Each coordinate point corresponds to a user, thereby establishing a correspondence between users and plane points.
[0067] S250. Select a new point in the space other than the mapping points, and generate a reconstructed polynomial using the Lagrange interpolation method based on the mapping points and the new point.
[0068] Specifically, the controller can select a new point in two-dimensional space; this new point cannot be any of the previously mapped points. Then, using Lagrange interpolation, a reconstruction polynomial is generated based on all the mapped points and the newly selected point. The principle of Lagrange interpolation is that, for a given set of points, a polynomial can be constructed that passes through these points. By selecting L mapped points and one new point, an L-degree reconstruction polynomial can be uniquely determined, which can be represented as h(z), satisfying the condition that it passes through all points.
[0069] S260. Generate encrypted contract signing results based on the reconstructed polynomial.
[0070] Finally, the controller can select several points on the reconstructed polynomial that differ from the mapping points and the new points, and publish the coordinates of these points as ciphertext. Simultaneously, the contract signing result is bound to each ciphertext point, thus forming an encrypted contract signing result. Users belonging to the authorized user set can use their corresponding mapping points and the published ciphertext points to correctly reconstruct the reconstructed polynomial using Lagrange interpolation, and then decrypt it to obtain the contract signing result. Users not belonging to the authorized user set, lacking the necessary mapping point information, cannot correctly reconstruct the polynomial and therefore cannot decrypt the result, thus achieving encryption and access control of the contract signing result.
[0071] In one specific implementation, the set of authorized users S = {user A, user B} has corresponding mapping points of user A (1,3) and user B (2,5), with the newly selected point (3,7). A quadratic polynomial h(z) = z + 2 is constructed, satisfying h(1) = 3, h(2) = 5, and h(3) = 7. The ciphertext selection points are (4,6) and (5,9), both located on h(z). Authorized user A can reconstruct h(z) using (1,3) and the ciphertext point, and the decryption result is obtained; non-authorized users cannot reconstruct it. It should be noted that when a new authorized user C is added, the mapping point will be added as user C (4,10), and a cubic polynomial h(z) will be constructed. In this case, the ciphertext set needs to be regenerated to ensure that user C can decrypt it, and the original users A and B can still decrypt it normally.
[0072] Optionally, the method also includes: updating the target user agreement data stored on the blockchain with the encrypted contract signing result, and returning the encrypted contract signing result to the edge computing environment for feedback to the target user.
[0073] The technical solution of this invention, through processing in an edge computing environment, can shorten data transmission distance, reduce latency, and improve processing efficiency. It utilizes blockchain-stored protocol data as verification evidence, leveraging the decentralized nature of blockchain to ensure the authenticity and reliability of historical signing records, preventing data tampering or forgery. By using a broadcast encryption algorithm to bind the permissions of the signing result to a user set, only authorized users can decrypt the result, thus guaranteeing user privacy.
[0074] Example 3
[0075] Figure 3 This is a schematic diagram of a smart contract signing device based on edge computing, provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes: a contract information transmission module 310, used to obtain the contract request of the target user, extract the contract information of the target user based on the contract request, and transmit the contract information to the edge computing environment;
[0076] The smart contract signing module 320 is used in an edge computing environment to call the target user protocol data of the blockchain based on the signing information, and to sign the smart contract according to the target user protocol data, generating a contract signing result.
[0077] The signing result encryption module 330 is used to determine the set of authorized users corresponding to the contract signing result, and to encrypt the contract signing result using a broadcast encryption algorithm based on the set of authorized users to generate an encrypted contract signing result.
[0078] Optionally, the contract information transmission module 310 is specifically used for: extracting user information of the target user based on the contract request, wherein the user information includes user identifier, account and protocol type; and encrypting the user information using fully homomorphic encryption technology to generate contract information.
[0079] Optionally, the device also includes: an information verification module, used to: in an edge computing environment, verify the integrity and legality of the contract information through edge nodes using fully homomorphic encryption technology without decryption, so as to ensure that the contract information conforms to the preset format and rules.
[0080] Optionally, the smart contract signing module 320 is specifically used for: determining the target protocol to be checked based on the protocol type; checking whether the user agreement data has signed the target protocol; if not signed, triggering smart contract signing; if signed, checking whether the target option is selected; if not selected, triggering smart contract signing; if selected, confirming that the target protocol has been signed and is compliant, and directly feeding back the user agreement data to the user.
[0081] Optionally, the smart contract signing module 320 specifically includes: a contract signing unit, used to: determine the target signing action according to the protocol type, wherein the signing action includes signing the target protocol and selecting the target option; and execute the target signing action to sign the smart contract.
[0082] Optionally, the signing result encryption module 330 is specifically used to: map each element in the set of authorized users to a mapping point on a two-dimensional plane; select a new point in the space other than the mapping points, and generate a reconstruction polynomial based on the mapping points and the new point using the Lagrange interpolation method; and generate an encrypted contract signing result based on the reconstruction polynomial.
[0083] Optionally, the device also includes a contract signing result feedback module, used to update the target user agreement data stored on the blockchain with the encrypted contract signing result, and return the encrypted contract signing result to the edge computing environment for feedback to the target user.
[0084] The technical solution of this invention, through processing in an edge computing environment, can shorten data transmission distance, reduce latency, and improve processing efficiency. It utilizes blockchain-stored protocol data as verification evidence, leveraging the decentralized nature of blockchain to ensure the authenticity and reliability of historical signing records, preventing data tampering or forgery. By using a broadcast encryption algorithm to bind the permissions of the signing result to a user set, only authorized users can decrypt the result, thus guaranteeing user privacy.
[0085] The edge computing-based smart contract signing device provided in this embodiment of the invention can execute the edge computing-based smart contract signing method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0086] Example 4
[0087] Figure 4 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0088] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0089] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0090] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, central processing unit (CPU), graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as a smart contract signing method based on edge computing.
[0091] In some embodiments, an edge computing-based smart contract signing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the edge computing-based smart contract signing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to execute an edge computing-based smart contract signing method by any other suitable means (e.g., by means of firmware).
[0092] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0093] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0094] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0095] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0096] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0097] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0098] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0099] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A smart contract signing method based on edge computing, characterized in that, include: Obtain the target user's subscription request, extract the target user's subscription information based on the subscription request, and transmit the subscription information to the edge computing environment; In an edge computing environment, the target user protocol data of the blockchain is invoked based on the signing information, and a smart contract is signed according to the target user protocol data to generate a contract signing result; Determine the set of authorized users corresponding to the contract signing result, and encrypt the contract signing result using a broadcast encryption algorithm based on the set of authorized users to generate an encrypted contract signing result.
2. The method according to claim 1, characterized in that, The step of extracting the target user's contract information based on the contract request includes: Based on the signing request, the user information of the target user is extracted, wherein the user information includes user identifier, account and protocol type; The user information is encrypted using fully homomorphic encryption to generate contract information.
3. The method according to claim 1, characterized in that, The method further includes: In an edge computing environment, edge nodes use fully homomorphic encryption to verify the integrity and legality of contracted information without decryption, ensuring that the contracted information conforms to preset formats and rules.
4. The method according to claim 2, characterized in that, The step of signing the smart contract based on the target user agreement data includes: Determine the target protocols that need to be associated with the inspection based on the protocol type; Check whether the user agreement data has been signed with the target agreement. If not, trigger the smart contract signing. If it has been signed, check if the target option is selected. If not, trigger the smart contract signing. If the selection is already checked, and the target agreement is confirmed to be signed and in compliance with regulations, the user agreement data will be directly fed back to the user.
5. The method according to claim 4, characterized in that, The triggering of smart contract signing includes: The target signing action is determined based on the agreement type, which includes signing the target agreement and selecting the target option; Perform the target signing action to sign the smart contract.
6. The method according to claim 1, characterized in that, The step of encrypting the contract signing result using a broadcast encryption algorithm based on the set of authorized users to generate an encrypted contract signing result includes: Map each element in the set of authorized users to a mapping point on a two-dimensional plane; Select a new point in the space other than the mapping points, and use the Lagrange interpolation method to generate a reconstruction polynomial based on the mapping points and the new point. The encrypted contract signing result is generated based on the reconstructed polynomial.
7. The method according to claim 1, characterized in that, The method further includes: The encrypted contract signing result updates the target user's agreement data stored on the blockchain and returns the encrypted contract signing result to the edge computing environment for feedback to the target user.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and a memory communicatively connected to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
9. A computer storage medium, characterized in that, The computer storage medium stores computer instructions that are used to cause a processor to execute the method of any one of claims 1-7.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method according to any one of claims 1-7.