High-efficiency time-limited encryption and decryption method based on smart contract

By using smart contracts and one-party polynomial encryption and decryption algorithms on the blockchain, the time limit for time-limited encryption and decryption is realized, solving the problem of low security of existing limited-time encryption and decryption algorithms, improving security and efficiency, and adapting to high business volume need.

CN114826571BActive Publication Date: 2024-12-06ZHEJIANG DIGITAL QIN TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210333322.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-31
Publication Date
2024-12-06
Estimated Expiration
2042-03-31

AI Technical Summary

Technical Problem

The existing limited-time encryption and decryption algorithms are relatively low in security, and are easy to bypass time-limited verification through time-limited verification through time-limited verification, and cannot effectively implement the time limit for information decryption.

Method used

Using a high-efficiency limited-time encryption and decryption method based on smart contracts, the smart contract is published on the blockchain, and the clock and encryption functions in the encryption and decryption column are used to achieve time limits. Combined with the one-party polynomial encryption and decryption algorithm, the private key of the smart contract is used and Public key signature ensures time-limiting of data.

Benefits of technology

It improves the security of the limited-time encryption and decryption algorithm, avoids time stamp spoofing, improves the encryption and decryption efficiency, and can effectively handle high traffic volume.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114826571B_ABST
    Figure CN114826571B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of information technology, and in particular to a high-efficiency time-limited encryption and decryption method based on smart contracts, comprising: publishing a smart contract on a blockchain; the encryption party writes the data to be encrypted, the time limit duration and the receiving public key into the encryption receiving column; the smart contract detects that data is written into the encryption receiving column; inputs the corresponding encryption and decryption column to obtain ciphertext; generates a ciphertext signature; the encryption party uses a private key to decrypt and obtain the ciphertext and the ciphertext signature; the decryption party obtains the ciphertext and the ciphertext signature, obtains the column identifier, the time limit duration and the timestamp; determines whether the current moment exceeds the time limit duration, and if not, writes the ciphertext, the ciphertext signature and the receiving public key into the decryption receiving column; the smart contract detects that data is written into the decryption receiving column; inputs the ciphertext into the corresponding encryption and decryption column to obtain plaintext data; uses the receiving public key to encrypt and write into the output column; uses the private key to decrypt and obtain the plaintext data. The substantial effect of the present invention is: improving the security of the time-limited encryption and decryption algorithm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology, and in particular to a high-efficiency time-limited encryption and decryption method based on smart contracts. Background Art

[0002] Time-limited encryption and decryption technology is often used to control access rights to software authorization information. The prior art discloses an attribute-based encryption algorithm, that is, encrypting messages according to attributes (attribute-based ecryption, ABE). This encryption algorithm does not need to pay attention to the identity of the recipient. Only users who meet the attribute requirements can decrypt the ciphertext, ensuring the confidentiality of the data. In addition, the user key in ABE is related to a random polynomial or a random number, and the keys of different users cannot be combined to prevent user collusion attacks. It provides a certain degree of control over the scope of decryption. However, attribute-based encryption technology cannot control the time span of decryption in time. Information access rights control with time limits cannot be completed. The encryption algorithms with time limits disclosed in the art have low security and are easy to bypass time-limited verification through timestamp deception. Therefore, it is necessary to study new encryption and decryption algorithms with time limits. Summary of the invention

[0003] The technical problem to be solved by the present invention is that the security of the current time-limited encryption and decryption algorithm is not high. A high-efficiency time-limited encryption and decryption method based on smart contracts is proposed, which can effectively implement the time limit for information decryption and improve the security of time-limited encryption and decryption.

[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is: a high-efficiency time-limited encryption and decryption method based on smart contracts, comprising: publishing a smart contract on a blockchain, the smart contract comprising an encryption receiving column, a decryption receiving column, an output column and a plurality of encryption and decryption columns, the encryption and decryption column comprising a column identifier, an encryption function and a clock, the clock recording the remaining update time of the encryption function, when the remaining update time is 0, the encryption and decryption column updates the encryption function and resets the clock; the encrypting party writes the data to be encrypted, the time limit and the receiving public key into the encryption receiving column according to a preset encryption format; the smart contract detects that data is written into the encryption receiving column, checks whether the data conforms to the encryption format, and clears the encryption receiving column if it does not conform; the smart contract checks the clocks of all encryption and decryption columns, if there is a clock that matches the time limit, the data to be encrypted is associated with the encryption identifier, input into the corresponding encryption and decryption column, and obtains the ciphertext; the smart contract uses the contract private key signature column identifier, the time limit and the timestamp as the ciphertext signature, and associates the ciphertext with the ciphertext signature After that, the receiving public key is used to encrypt and write into the output column; the encrypting party reads the data in the output column, decrypts with the private key to obtain the ciphertext and the ciphertext signature, and completes the encryption process; after the decrypting party obtains the ciphertext and the ciphertext signature, the public key of the smart contract is used to verify the ciphertext signature, and obtain the column identifier, the time limit and the timestamp; it is determined whether the current moment exceeds the time limit, if not, the ciphertext, the ciphertext signature and the receiving public key are written into the decryption receiving column according to the preset decryption format; the smart contract detects that data is written into the decryption receiving column, checks whether the data conforms to the decryption format, and clears the decryption receiving column if it does not conform; the smart contract uses the public key to verify the ciphertext signature, checks whether the current moment is within the time limit, if it exceeds the time limit, clears the decryption receiving column, and outputs the column time limit timeout identifier, if it is within the time limit, associates the ciphertext with the decryption identifier, enters the corresponding encryption and decryption column, and obtains the plaintext data; the plaintext data is encrypted with the receiving public key and written into the output column; the decrypting party reads the output column, decrypts with the private key to obtain the plaintext data, and completes the decryption process.

[0005] Preferably, the smart contract publishes the length limit of the data to be encrypted, and the encrypting party determines the length of the data to be encrypted. If it exceeds the length limit, the data to be encrypted is encrypted using a symmetric encryption algorithm and recorded as primary ciphertext. The secret key used by the symmetric encryption algorithm is recorded as Key, and the Key is submitted to the smart contract for encryption as the data to be encrypted to obtain the Key ciphertext. The primary ciphertext, Key ciphertext and ciphertext signature are packaged as a time-limited encryption result. The decrypting party obtains the Key through decryption through the smart contract within the time limit, and uses the Key to decrypt the primary ciphertext to obtain the plaintext data.

[0006] Preferably, when data is written into the encrypted receiving field, the decrypted receiving field or the output field of the smart contract, the smart contract locks the encrypted receiving field, the decrypted receiving field and the output field, and within a preset period of time, the encrypted receiving field, the decrypted receiving field and the output field do not accept the writing of new data.

[0007] Preferably, the encryption function of the encryption / decryption column is a univariate polynomial f(x), and the method for encrypting data using the univariate polynomial f(x) in the encryption / decryption column is: converting the data to be encrypted into a binary stream, padding according to a preset rule, truncating it into a number of binary segments of preset length, and converting the binary segments into an integer D; generating a data combination (b1, x1, b2, x2, …, bN, xN, △), bi∈{0,1}, so that D=∑(-1)^bi*f(xi)+△, where i∈[1,N], △ is a correction value; combining the data combinations in sequence as ciphertext; the method for decrypting data in the encryption / decryption column is: reading the data combinations in sequence, substituting bi and xi in each data combination into the univariate polynomial f(x), and summing them with the correction value △ to obtain the integer D; converting all the integers D into binary streams and splicing them in sequence, removing the padding, and obtaining the decrypted data.

[0008] Preferably, the time-limited encryption smart contract generates a set of values ​​of several independent variables x, the set of values ​​includes several integers, and the set of values ​​has a set identifier; an equivalent univariate polynomial f'(x) is generated for each value set of each univariate function f(x), and the equivalent univariate polynomial f'(x) is equal to the function value of the univariate polynomial f(x) in the value set; when the encryption and decryption column encrypts data, a value set is selected to generate a proper subset of the value set, and the value of the independent variable x is selected in the proper subset to generate a data combination; the smart contract uses a private key to sign the column identifier, the set identifier, the time-limited duration and the timestamp as a ciphertext signature; when the time-limited encryption smart contract receives more than a preset number of decryption requests within a preset period, the time-limited encryption smart contract no longer enters and exits the ciphertext into and out of the encryption and decryption column, but executes the following steps: read the set identifier in the signature, obtain the equivalent univariate polynomial f'(x) of the univariate function f(x) under the value set corresponding to the set identifier, and convert the equivalent univariate polynomial f'(x) After encryption using the receiving public key, the data is written into the output column. The decryption party reads the output column to obtain an equivalent univariate polynomial f'(x). The decryption party substitutes bi and xi in each data combination into the equivalent univariate polynomial f'(x), and sums them with the correction value △ to obtain an integer D. All integers D are converted into binary streams and concatenated in sequence, and after removing the padding, the decrypted data is obtained.

[0009] The substantial effects of the present invention are: by means of smart contracts on the blockchain, timestamp fraud is avoided and the security of the time-limited encryption and decryption algorithm is improved; the efficiency of encryption and decryption is improved through the improved encryption algorithm; and by means of equivalent univariate polynomials, smart contracts can effectively handle high business volumes. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 Schematic diagram of a high-efficiency time-limited encryption and decryption method according to Embodiment 1.

[0011] Figure 2 This is a schematic diagram of a method for encrypting data to be encrypted according to Embodiment 1.

[0012] Figure 3 This is a schematic diagram of the encryption method of the encryption and decryption column in Example 1.

[0013] Figure 4 This is a schematic diagram of the encryption method of the encryption and decryption column in Example 2. DETAILED DESCRIPTION

[0014] The specific implementation of the present invention will be further described below through specific examples in conjunction with the accompanying drawings.

[0015] Embodiment 1:

[0016] For a high-efficiency time-limited encryption and decryption method based on smart contracts, please refer to the attached Figure 1, including: step A01) publishing a smart contract on the blockchain, the smart contract includes an encryption receiving column, a decryption receiving column, an output column and several encryption and decryption columns, the encryption and decryption column includes a column identifier, an encryption function and a clock, the clock records the remaining update time of the encryption function, when the remaining update time is 0, the encryption and decryption column updates the encryption function and resets the clock; step A02) the encryption party writes the encrypted data, the time limit and the receiving public key into the encryption receiving column according to the preset encryption format; step A03) the smart contract detects that the encrypted receiving column is written with data, checks whether the data conforms to the encryption format, and clears the encrypted receiving column if it does not conform; step A04) the smart contract checks the clocks of all encryption and decryption columns, if there is a clock that matches the time limit, the encrypted data is associated with the encryption identifier, input into the corresponding encryption and decryption column, and obtains the ciphertext; step A05) the smart contract uses the contract private key to sign the column identifier, the time limit and the timestamp as the ciphertext signature, associates the ciphertext with the ciphertext signature, encrypts it with the receiving public key, and writes it into the output column; step A06) the encryption party reads the output column Data is decrypted using the private key to obtain the ciphertext and ciphertext signature, completing the encryption process; Step A07) After the decryption party obtains the ciphertext and ciphertext signature, it uses the public key of the smart contract to verify the ciphertext signature and obtain the column identifier, time limit and timestamp; Step A08) Determine whether the current time exceeds the time limit. If not, write the ciphertext, ciphertext signature and receiving public key into the decryption receiving column according to the preset decryption format; Step A09) The smart contract detects that data is written into the decryption receiving column and checks whether the data conforms to the decryption format. If not, Then clear the decryption receiving column; step A10) the smart contract uses the public key to verify the ciphertext signature and checks whether the current moment is within the time limit. If it exceeds the time limit, clear the decryption receiving column and output the time limit timeout identifier. If it is within the time limit, associate the ciphertext with the decryption identifier and enter the corresponding encryption and decryption column to obtain the plaintext data; step A11) encrypt the plaintext data using the receiving public key and write it into the output column; step A12) the decryption party reads the output column and uses the private key to decrypt to obtain the plaintext data, completing the decryption process.

[0017] Table 1 Smart contract content table

[0018] Encryption and Decryption Column 1 {bar ID 1, encryption function 1, clock 1} Encryption and Decryption Column 2 {bar ID 2, encryption function 2, clock 2} Encryption and Decryption Column 3 {bar ID 3, encryption function 3, clock 3} … … Encryption and Decryption Bar 60 {bar identifier 60, encryption function 60, clock 60} Encrypted receiving column ('EuWk',30d,Pub_Key1) Decryption Receiver NULL Output column NULL

[0019] As shown in Table 1, the smart contract records 60 encryption and decryption columns, each of which has a clock. The remaining time for the update of clock 1 is 1d, that is, 1 day. The encryption function of encryption and decryption column 1 will be updated on the second day. At the same time, clock 1 will be reset to 60d, that is, 60 days. The encryption function is a symmetric encryption function, and the encrypted secret key is stored in the smart contract and is not open to the public. The data ('EuWk', 30d, Pub_Key1) is written into the encrypted receiving column, where 'EuWk' is the data to be encrypted, 30d is the time limit, and Pub_Key1 is the receiving public key.

[0020] When the amount of data encrypted and decrypted within a limited time is large, it will make it difficult for the smart contract to be executed in time. To this end, this embodiment provides a solution. Please refer to the attached Figure 2 , including: step B01) the smart contract announces the length limit of the data to be encrypted; step B02) the encrypting party determines the length of the data to be encrypted. If it exceeds the length limit, it enters step B03), otherwise it enters step B06); step B03) encrypts the data to be encrypted using a symmetric encryption algorithm and records it as primary ciphertext; step B04) the secret key used by the symmetric encryption algorithm is recorded as Key, and Key is submitted to the smart contract for encryption as the data to be encrypted; step B05) obtains the Key ciphertext, and packages the primary ciphertext, Key ciphertext and ciphertext signature as the time-limited encryption result; step B06) submits the data to be encrypted to the smart contract for encryption. Within the time limit, the decrypting party obtains the Key through the smart contract decryption, and uses the Key to decrypt the primary ciphertext to obtain the plaintext data. After the data is encrypted using the symmetric encryption key Key, the Key is encrypted through the smart contract, which reduces the length of data that needs to be encrypted by the smart contract and improves the execution efficiency of the smart contract.

[0021] When data is written into the encrypted receiving column, decrypted receiving column or output column of the smart contract, the smart contract locks the encrypted receiving column, decrypted receiving column and output column. Within the preset time, the encrypted receiving column, decrypted receiving column and output column do not accept the writing of new data.

[0022] The encryption function of the encryption and decryption column is a univariate polynomial f(x), please refer to the attached Figure 3, the method for encrypting data using a univariate polynomial f(x) in the encryption and decryption column is as follows: step C01) converting the data to be encrypted into a binary stream, padding according to a preset rule, truncating it into a number of binary segments of preset length, and converting the binary segment into an integer D; step C02) generating a data combination (b1, x1, b2, x2, …, bN, xN, △), bi∈{0,1}, so that D=∑(-1)^bi*f(xi)+△, where i∈[1,N], △ is a correction value; step C03) combining the data combinations in sequence as ciphertext; the method for decrypting data in the encryption and decryption column is as follows: step C04) reading the data combinations in sequence, substituting bi and xi in each data combination into the univariate polynomial f(x), and summing them with the correction value △ to obtain the integer D; step C05) converting all the integers D into binary streams and splicing them in sequence, removing the padding, and obtaining the decrypted data. For example, if the key is "EuWk", in ASCII encoding, the string EuWk is converted to binary as follows: 01000101 011101010101010111 01101011, which is truncated to two integers according to the length of 2 bytes, namely D1=17781 and D2=22379. The univariate polynomial f(x) is: f(x)=15*x^2-32*x+64. Then D1 can be expressed as D1=f(17)+ f(31)+439, and the corresponding data combination is (0,17,0,31,439). The data combination of integer D2 can be obtained in the same way. The data combination of each integer is not unique.

[0023] The substantial effects of this embodiment are: with the help of smart contracts on the blockchain, timestamp fraud is avoided and the security of the time-limited encryption and decryption algorithm is improved; the efficiency of encryption and decryption is improved through the improved encryption algorithm; with the help of equivalent univariate polynomials, smart contracts can effectively handle high business volumes.

[0024] Embodiment 2:

[0025] High-efficiency time-limited encryption and decryption method based on smart contracts. The first embodiment records the technical solution. When the time-limited encryption and decryption business volume is large, it will add greater execution pressure to the blockchain network. For this reason, this embodiment proposes a specific solution based on the first embodiment. Please refer to the attached Figure 4, including: step D01) the time-limited encryption smart contract generates a number of value sets of independent variables x, the value sets include a number of integers, and the value sets have a set identifier; step D02) for each value set of each univariate function f(x), an equivalent univariate polynomial f'(x) is generated, and the function value of the equivalent univariate polynomial f'(x) is equal to that of the univariate polynomial f(x) in the value set; step D03) when encrypting and decrypting encrypted data, a value set is selected, a proper subset of the value set is generated, and an independent variable is selected in the proper subset. The value of quantity x generates a data combination; step D04) the smart contract uses the private key to sign the column identifier, set identifier, time limit duration and timestamp as the ciphertext signature; when the time-limited encryption smart contract receives more than the preset number of decryption requests within the preset period, the time-limited encryption smart contract no longer enters and exits the ciphertext into the encryption and decryption column, but executes the following steps: step D05) reads the set identifier in the signature, obtains the equivalent univariate polynomial f'(x) of the univariate function f(x) under the set of values ​​corresponding to the set identifier, encrypts the equivalent univariate polynomial f'(x) using the receiving public key, and writes it into the output column; step D06) the decryption party reads the output column to obtain the equivalent univariate polynomial f'(x); step D07) the decryption party substitutes bi and xi in each data combination into the equivalent univariate polynomial f'(x), and sums it with the correction value △ to obtain the integer D, converts all the integers D into binary streams and splices them in sequence, removes the padding, and obtains the decrypted data. This embodiment can be implemented simultaneously with embodiment 1.

[0026] In this embodiment, the value set of the independent variable x set for the encryption and decryption column 2 is {2,4,7,9,10}, and the univariate polynomial f(x) is: f(x)=7*x^2+12*x-4. Generate two proper subsets, {2,4,7} and {2,7,10}, and the corresponding group numbers are Z1 and Z2 respectively. Calculate the corresponding function values, and then generate the equivalent univariate polynomial f'(x) of the corresponding proper subsets. For example, the corresponding function value of the proper subset {2,4,7} is {48,156,423}, and the corresponding equivalent univariate polynomial f'(x) is: f'(x)=-8.75*x^3+120.75*x^2-425.5*x+486. The value of the equivalent univariate polynomial f'(x) on the proper subset {2,4,7} is the same as that of the univariate polynomial f(x). At the same time, an equivalent univariate polynomial of the proper subset {2,7,10} with group number Z2 is generated, denoted as f''(x)= -1.25*x^3+30.75*x^2-118*x+171, and the equivalent univariate polynomial f''(x) has the same value as the univariate polynomial f(x) on the proper subset {2,7,10}. The equivalent univariate polynomial f'(x) and the equivalent univariate polynomial f''(x) can respectively decrypt the encrypted ciphertext corresponding to the corresponding proper subset. But other ciphertexts cannot be decrypted. Compared with the first embodiment, the embodiment provides the equivalent univariate polynomial to the decryption party through the equivalent univariate polynomial, and the decryption party decrypts it by itself, which can reduce the computing pressure of the blockchain network.

[0027] The above-described embodiment is only a preferred solution of the present invention and does not limit the present invention in any form. There are other variations and modifications without exceeding the technical solution described in the claims.

Claims

1. Highly efficient time-limited encryption and decryption method based on smart contracts, It is characterized in that include: Publishing a smart contract on the blockchain, wherein the smart contract includes an encryption receiving column, a decryption receiving column, an output column, and a plurality of encryption and decryption columns, wherein the encryption and decryption column includes a column identifier, an encryption function, and a clock, wherein the clock records the remaining update time of the encryption function, and when the remaining update time is 0, the encryption and decryption column updates the encryption function and resets the clock; The encrypting party writes the data to be encrypted, the time limit and the receiving public key into the encryption receiving column according to the preset encryption format; The smart contract detects that data is written into the encrypted receiving column, checks whether the data conforms to the encryption format, and clears the encrypted receiving column if it does not conform; The smart contract checks the clocks of all encryption and decryption columns. If there is a clock that matches the time limit, the encrypted data is associated with the encryption identifier and entered into the corresponding encryption and decryption column to obtain the ciphertext. The smart contract uses the contract private key signature column identification, time limit duration and timestamp as the ciphertext signature. After associating the ciphertext with the ciphertext signature, it is encrypted using the receiving public key and written into the output column; The encrypting party reads the data in the output column, decrypts it using the private key to obtain the ciphertext and ciphertext signature, and completes the encryption process; After the decryption party obtains the ciphertext and ciphertext signature, it uses the public key of the smart contract to verify the ciphertext signature and obtain the column identifier, time limit and timestamp; Determine whether the current time exceeds the time limit. If not, write the ciphertext, ciphertext signature and receiving public key into the decryption receiving column according to the preset decryption format; The smart contract detects that data is written into the decryption receiving column, checks whether the data conforms to the decryption format, and clears the decryption receiving column if it does not conform; The smart contract uses the public key to verify the ciphertext signature and checks whether the current moment is within the time limit. If the time limit is exceeded, the decryption receiving column is cleared and the time limit timeout identifier is output. If the time limit is within the time limit, the ciphertext is associated with the decryption identifier and input into the corresponding encryption and decryption column to obtain the plaintext data. Encrypt the plaintext data using the receiving public key and write it into the output column; The decryption party reads the output column and uses the private key to decrypt the plaintext data, completing the decryption process; The encryption function of the encryption / decryption column is a univariate polynomial f(x). The method of encrypting data using the univariate polynomial f(x) in the encryption / decryption column is: The data to be encrypted is converted into a binary stream, and after padding according to a preset rule, it is truncated into a number of binary segments of preset lengths, and the binary segments are converted into integers D; Generate data combinations (b1,x1,b2,x2,…,bN,xN,△), bi∈{0,1}, so that D=∑(-1)^bi*f(xi)+△, where i∈[1,N], △ is the correction value; Combine the data in order as ciphertext; The method for decrypting data in the encryption and decryption column is: Read the data combinations in sequence, substitute bi and xi in each data combination into the univariate polynomial f(x), and sum them with the correction value △ to obtain the integer D; Convert all integers D into binary streams and concatenate them in order, remove the padding, and obtain the decrypted data; The time-limited encrypted smart contract generates a value set of a number of independent variables x, the value set includes a number of integers, and the value set has a set identifier; Generate an equivalent univariate polynomial f'(x) for each value set of each univariate function f(x), and the function value of the equivalent univariate polynomial f'(x) is equal to that of the univariate polynomial f(x) in the value set; When the encryption / decryption column encrypts data, a value set is selected, a proper subset of the value set is generated, and a value of the independent variable x is selected in the proper subset to generate a data combination; The smart contract uses the private key to sign the column identifier, set identifier, time limit duration and timestamp as a ciphertext signature; When the time-limited encryption smart contract receives more than a preset number of decryption requests within a preset period, the time-limited encryption smart contract no longer enters and exits the ciphertext into the encryption and decryption column, but executes the following steps: Read the set identifier in the signature, obtain the equivalent univariate polynomial f'(x) of the univariate function f(x) under the value set corresponding to the set identifier, encrypt the equivalent univariate polynomial f'(x) using the receiving public key, and write it into the output column; The decryption party reads the output column and obtains the equivalent univariate polynomial f'(x); The decryption party substitutes bi and xi in each data combination into the equivalent univariate polynomial f'(x), and sums them with the correction value △ to obtain the integer D. All integers D are converted into binary streams and concatenated in sequence, and after removing the padding, the decrypted data is obtained.

2. According to claim 1, the high-efficiency time-limited encryption and decryption method based on smart contracts, It is characterized in that The smart contract publishes the length limit of the data to be encrypted. The encrypting party determines the length of the data to be encrypted. If it exceeds the length limit, the data to be encrypted is encrypted using a symmetric encryption algorithm and recorded as primary ciphertext. The secret key used by the symmetric encryption algorithm is recorded as Key. The Key is submitted to the smart contract for encryption as the data to be encrypted, and the Key ciphertext is obtained. The primary ciphertext, Key ciphertext and ciphertext signature are packaged as a time-limited encryption result. The decrypting party obtains the Key through decryption through the smart contract within the time limit, and uses the Key to decrypt the primary ciphertext to obtain the plaintext data.

3. According to the high-efficiency time-limited encryption and decryption method based on smart contracts according to claim 1 or 2, It is characterized in that When data is written into the encrypted receiving field, the decrypted receiving field or the output field of the smart contract, the smart contract locks the encrypted receiving field, the decrypted receiving field and the output field, and within a preset period of time, the encrypted receiving field, the decrypted receiving field and the output field do not accept the writing of new data.

Citation Information

Patent Citations

  • Random encryption method needing to adopt exhaustion method for deciphering

    CN103095452A

  • Timestamp correction method based on system time as cryptographic algorithm initialization vector

    CN113242128A

  • Method and apparatus for processing data from a technical system

    DE102018216310A1