VDF construction method, chip, application, product, device and medium

Through the design of nonlinear recursive structure and one-way reversible function, the calculation delay and verification efficiency of VDF are optimized, solving the problem that existing VDF is difficult to achieve industrial universality and anti-parallel acceleration, and achieving efficient hardware implementation and safety redundancy. .

CN117669475BActive Publication Date: 2024-09-24BEIJING RED & BLUE TREE TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311851486.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2024-09-24
Estimated Expiration
2043-12-29

AI Technical Summary

Technical Problem

The existing VDF construction method is difficult to achieve universal, anti-parallel acceleration and efficient hardware implementation in the industry, and the hardware implementation overhead of the AES algorithm is high, making it unfriendly to industrial standards.

Method used

Using the reverse logic calculation of the nonlinear recursive structures F(A,B)=S-1(A⊕B) and F(A,B)=S(A)⊕B, combined with the design of the one-way reversible function S, through Add intermediate states and sparse tap design, optimize the calculation delay of VDF and the efficiency of the verification stage, and propose specific implementations such as VDF32 and VDF8192.

Benefits of technology

It implements a VDF solution that provides minimal delay at the circuit level, improves the anti-parallel acceleration capability and the efficiency of hardware implementation, and meets the safety redundancy and user experience requirements of industrial applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117669475B
    Figure CN117669475B
Patent Text Reader

Abstract

The present application discloses a VDF construction method, chip, application, product, device and medium. The VDF construction method inputs parameters including initial state and time parameter t, outputs VDF (initial state, t), including: directly or indirectly constructing a one-way reversible function S component of VDF, wherein the definition of the S component is a reversible function whose forward logic calculation delay is significantly greater than the reverse logic calculation delay; performing the following operations in the calculation stage: a intermediate state of the VDF calculation process, and / or, F(A0,Ab)=S(A0⊕Ab,△) indirectly constructs VDF, wherein t is divisible by △*b; performing the following operations in the verification stage: receiving the initial state and a+1 states; and using several S in parallel ‑1 Logically implement a+1 VDF ‑1 Verify the task.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of computer science and blockchain, and more specifically to VDF construction methods, chips, applications, products, devices and media. Background Art

[0002] 1. In 2018, the Verifiable Delay Function (VDF) was first proposed by Dan Boneh, a cryptography professor at Stanford University, and others in their paper "Verifiable Delay Function". VDF is a function that is not easily accelerated in parallel but can be verified quickly. VDF is a function that can prove the passage of time. Known famous applications include at least random beacon primitives, replica proof primitives, proof of time primitives, and blockchain POS consensus.

[0003] 2. The modular large integer continuous square algorithm and the zk-snake algorithm have been studied and applied. Both algorithms require three stages, namely the initialization parameter stage (Setup), the calculation stage (Eval), and the verification stage (Verify). The three stages are equivalent to the three roles of the multi-party protocol of computer information security; they also correspond to the three devices of the entity, namely the device for implementing the initialization parameters, the device for implementing the VDF calculation, and the device for implementing the VDF result verification.

[0004] 3. In 2019, Ethereum and Filecoin invested tens of millions of dollars to support VDF algorithm research and ASIC hardware implementation. The purpose of Ethereum research is to realize the beacon chain, and then realize the migration of POW consensus to POS consensus based on the beacon chain. The search websites for guidance are ethresear.ch and www.vdfalliance.org.

[0005] 4. All VDF construction, evaluation and engineering implementation must be supported by ASIC technology and hardware circuit design technology, involving parallel algorithm optimization, hardware wiring technology, circuit process library and other technologies. Reference parallel algorithms include: hardware Euclidean algorithm, carry-lookahead technology of fixed-point addition, and Chapter 1 of fxtbook, "Low level algorithms". Summary of the invention

[0006] As the invention process is complicated and the invention contents are numerous, in order to facilitate understanding, ☆ is marked at the most important points as a guide and reminder.

[0007] The inventors found that the nonlinear recursive structure F(A,B)=S -1The reverse logic calculation delay of (A⊕B) and F(A,B)=S(A)⊕B is significantly less than the forward logic calculation delay, where the reverse logic is implemented by placing several S-box structures in parallel; A in the above recursive equation is the latest symbol and B is the earliest symbol. The recursive equation can be more specifically expressed as the forward logic of VDF is

[0008] VDF({A,…,B',B},1)={S -1 (A⊕B),A,…,B'} and

[0009] VDF({A,…,B',B},1)={S(A)⊕B,A,…,B'}.

[0010] Because Intel has the AES algorithm instruction, the reverse motion logic of A17=S(A16)⊕A0 is A0=A17⊕S(A16), where S is the AES algorithm S box. The number of symbols in this example is obviously 17.

[0011] The recursive equation represents the serial forward logic:

[0012] VDFaes({A16,A15,…,A1,A0},1)={S(A16)⊕A0,A16,…,A1}.

[0013] The recursive equation represents the reverse logic in parallel:

[0014] VDFaes -1 ({A32,A31,…,A17,A16},16)=VDFaes -16 ({A32,A31,…,A17,A16},1)

[0015] ={A16,A32⊕S(A31),…,A18⊕S(A17),A17⊕S(A16)}

[0016] ={A16,A15,…,A1,A0}.

[0017] From the formal analysis of the above two sets of state recursive equations, we know that VDFaes(,16) corresponds to a serial circuit with a depth of 16 and a width of 1, and the actual delay is 16 S(Ai+16)⊕Ai,VDF -1 (,16) corresponds to a parallel circuit with a width of 16 and a depth of 1, and the actual delay is 1 S(Ai+1)⊕Ai. The inventor uses the vaesenclast instruction and vpshufb instruction of the Intel processor to implement the reverse motion 16-beat logic VDF -16(,1) Only 5 instructions are needed, more specifically, the 5 instructions are paired with instructions when they are running. The inventor found that: ☆This formal construction of forward logic corresponding to serial circuit and reverse logic corresponding to parallel circuit meets the basic requirements of VDF primitives. The inventor believes that the above properties are a new technical route for constructing VDF. Now the number of integrated transistors on a single chip has already exceeded 10 billion, so the chip integration can support the parallel requirements of the new technical route.

[0018] In order to continue to study and design a VDF that can be used in the industry, the inventors tried to increase the number of recursive symbols in the above model and evaluate multiple technical parameters at the same time; the evaluated parameters include VDF and VDF -1 The implementation overhead of hardware circuits and Intel processors, the evaluation of the anti-parallel optimization capability of VDF calculation models, the evaluation of the fastest possible industrial implementation of VDF, VDF and VDF -1 The computational time delay ratio at the circuit level. The recursive models evaluated are A32=S(A31)⊕A0, A33=S(A32)⊕A0, A64=S(A63)⊕A0, A65=S(A64)⊕A0, A1024=S(A1023)⊕A0, A1024=S(A1023⊕A0), A8192=S(A8191⊕A0), etc. Through self-evaluation, the inventor found four problems: 1. The pre-table acceleration technology invented by the inventor (details are in the term explanation) can significantly accelerate the above VDF model. The larger the number of levels, the more obvious the acceleration effect. 2. Because the hardware implementation overhead of the S-box of the AES algorithm is large, it is not friendly as an industrial standard. 3. F(A,B)=S -1 (A⊕B), where S is the gain effect of sparse tap design, and the design gain is obtained from two aspects: F(A,B) structure and sparse tap design. 4. For the design with a large number of input and output bytes of A8192=S(A8191⊕A0), a △ beat splitting technique should be added. The main idea is to first construct a beacon type VDF', and then define Ab+1=F(A0,Ab)=VDF'(A0⊕Ab,△) to construct a replica proof type VDF. Using the △ beat splitting technology has at least two benefits: benefit 1. The acceleration capability against pre-made tables is improved. Benefit 2. The hot spots calculated within the △ clock are concentrated in the area corresponding to the beacon type VDF', which is beneficial to VDF and VDF -1 Hardware implementation and VDF -1 The inte processor implementation is more friendly and efficient.

[0019] Aiming at the industrial realization of serial circuits corresponding to forward logic and parallel circuits corresponding to reverse logic, the inventor proposes, based on the above research results and in accordance with circuit evaluation standards and industrial application standards, that the constructed VDF should meet the following three evaluation standards, which are also equivalent to the technical problems to be solved by the present invention. Because the three evaluation standards are very important, they are hereinafter referred to as ☆ parameter guidelines. The standard for circuit evaluation refers to providing the minimum delay implementation plan and evaluation of a given algorithm at the circuit level without considering the area cost; related skills and knowledge include basic hardware wiring programming skills and basic wiring effect evaluation skills, and necessary parallel algorithm optimization and evaluation techniques; at the theoretical level, it is a known fact that most combinatorial optimizations are NP-complete, and for a specific VDF or a specific VDF -1 The difficulty of providing circuit-level parallel optimization implementation and its evaluation results can be imagined, so the circuit-level evaluation results related to the present invention may not be optimal, such as the theoretical indicator 8clk of VDF32. The following are 3 parameter guidelines.

[0020] 1: VDF is not easy to be accelerated in parallel and theoretically needs to be supported by demonstration or self-evaluation.

[0021] 2: VDF / VDF -1 The theoretical gain is at least 3 orders of magnitude;

[0022] That is, the theoretical computational delay of VDF is greater than or equal to VDF -1 The theoretical calculation delay is 1000 times; the inventor sets the reference as a beacon-type VDF that can be used for blockchain consensus, and 1000 times should be the minimum security indicator recognized by the industry; on the one hand, the larger the theoretical gain, the better the user experience in the verification phase, so the theoretical gain cannot be too small; on the other hand, the delay ratio of the theoretically fastest VDF calculation circuit and the actual VDF calculation circuit in the same period must be preliminarily evaluated, that is, the security redundancy index. Obviously, the higher the security redundancy index, the worse the user experience in the verification phase under the same theoretical gain, so the security redundancy index also determines that the theoretical gain should not be less than 1000.

[0023] 3: VDF / VDF -1 The industrial engineering gain index is basically consistent with the above 2nd item;

[0024] The two technical indicators in Article 2 and Article 3 above should be similar, otherwise Article 2 above will be meaningless and the evaluation model of Article 2 must be revised.

[0025] In view of the above results and the three parameter guidelines, the inventors first extracted the first important component of the present invention, the one-way reversible function. The inventors believe that without considering pre-table acceleration and other optimizations, the forward logic delay of the F(A,B) structure is approximately N times the reverse logic delay, where N+1 is the number of symbols. Based on the properties of the F(A,B) structure, the inventors define the function whose forward logic calculation delay is significantly greater than the reverse logic calculation delay as a one-way reversible function. The inventors found that in addition to the F(A,B) structure, the following three structural components also have one-way reversibility: 1) The reverse function is x t Structure, 2) the forward function is discrete logarithm, 3) the reverse function is sparse tap design, based on one of the four methods or any combination of components can directly or indirectly construct VDF, the computational delay of the constructed VDF can be significantly greater than VDF -1 The calculation delay is explained in more detail in the terminology explanation and related embodiments in the detailed description section.

[0026] Based on the above research results, the inventor designed a 32-byte width VDF as a beacon application standard, namely VDF32, and the design gain of VDF32 reached 34.6 (13*8 / 3). ☆Compared with the second parameter guide, the inventor found that the design gain of the beacon-type VDF did not meet the industrial application standard. In order to improve the gain, the inventor created a technology that uses a intermediate state as evidence in the verification stage. The technical feature is to receive the initial state and a+1 states, and decompose the direction from the result to the initial state into a+1 VDF. -1 Verification task. The gain refers to the forward logic calculation delay divided by the reverse logic delay. For the replica proof type VDF, the inventor recommends a construction method of first constructing a beacon type VDF', and then defining Ab+1=F(A0,Ab)=VDF'(A0⊕Ab,△) structure to construct a replica proof type VDF. The recursive equation is described as replica proof VDF({Ab,…,A1,A0}, 1*△)={VDF'(A0⊕Ab,△),Ab…,A1}, and the actual gain is b times the gain corresponding to VDF'(). A beacon type VDF refers to a smaller number of output bytes, typically 32 bytes; a replica proof type VDF refers to a larger number of output bytes, typically 8192, 2M bytes. The total gain of the VDF of the present invention consists of three parts: S delay divided by S -1 The gain contributed by the delay, F(A,B) = (b?b:1) times the gain contributed by S(A0⊕Ab,△), and the intermediate state contributes a+1 times the gain. The main idea of ​​the verification phase is to use several S -1 Logical verification implements a+1 VDF -1 Verification subtask.

[0027] Two additional points are given for the above content. The present invention stipulates that a and b cannot be both 0 at the same time; b being 0 indicates that the S component directly constructs the VDF; a being 0 indicates that there is only one 1 state of the VDF result in the verification phase. △ is a granularity parameter, which can greatly improve the line delay evaluation and line delay evaluation of the actual circuit implementation; imagine that △ degenerates into 1, when the width of the VDF is very large, such as 8192 bytes or 2M bytes, regardless of the circuit implementation or multi-core multi-threaded implementation, the distance between the latest symbol A and the earliest symbol B must be very far, resulting in extremely frequent data communication; therefore, the granularity of △ is set to be relatively large, resulting in the core area of ​​the computing circuit within the △ clock being constrained to a very small area, and no communication overhead is required at this time. The effect of the corresponding multi-core multi-threaded implementation is that there is no inter-process communication. The more specific indicators are VDF' and VDF' constrained to the input and output widths. -1 The computational logic of △ is therefore relatively large, which is beneficial for hardware wiring implementation and for multi-core multi-threaded processors to implement VDF or VDF -1 , which is more conducive to evaluating the second and third items of the parameter guidance. Based on the effects of the above △, when the number of symbols is large, the design with a larger granularity of △ is preferred.

[0028] ☆☆To sum up, the inventive concept of the VDF construction method is that the one-way reversible function S is directly or indirectly used as VDF, and the delay of the forward logic VDF is defined to be greater than that of the reverse logic VDF -1 Delay; a intermediate state improves the design gain of VDF, and / or, F(A0,Ab)=S(A0⊕Ab,△) structure indirectly constructs VDF, where t is divisible by △*b; in the verification phase, receive the initial state and a+1 states, and decompose into a+1 VDF from the result to the initial state -1 Verification task, verify that the core algorithm is optimally parallel (a+1)*(b?b:1) S -1 Logical verification completes the a+1 VDFs -1 Verification task, the verification pass standard is the a+1 VDF -1 All verification tasks passed.

[0029] Use (a+1)*(b?b:1) S in parallel -1 The logical gain of (a+1)*(b?b:1)*S is both the purpose and effect of the invention. This effect also responds to the second parameter guideline.

[0030] ☆☆Another statement of the inventive concept is that VDF(initial state, t) is a VDF constructed directly by S or a VDF constructed indirectly by F(A0,Ab)=S(A0⊕Ab,△), t is divisible by △*b, where S is a one-way reversible function component; the verification phase receives the initial state and a+1 states, and is divided into a+1 VDFs in parallel -1Verification task; therefore, the calculation phase corresponds to a serial circuit device of S logic connected by a cascade structure with a depth of (a+1)*(b?b:1), and the verification phase corresponds to a S logic connected by a parallel structure with a width of (a+1)*(b?b:1). -1 A logical parallel circuit device; generally a serial circuit defined by a state recursive equation and a parallel circuit corresponding to the serial circuit.

[0031] The so-called VDF design gain is the ratio of the critical path delay of the serial circuit to the critical path delay of the parallel circuit. The more specific technical indicator formula is (a+1)*(b?b:1)*S logic delay / S -1 Logical delay; According to the second parameter guide, the technical indicator formula clearly expresses the details of the gains contributed by the three necessary technical features of the present invention. Again, the second parameter guide is also one of the invention purposes of the present invention.

[0032] It is pointed out in advance that VDF and VDF -1 The industrial engineering realization mainly refers to the implementation of the serial circuit corresponding to the calculation stage and the parallel circuit corresponding to the verification stage based on the state automaton technology. The specific implementation method part has a detailed description of the implementation example and the evaluation of the actual FPGA test results. The evaluation results can prove that the implementation example basically meets the third item of the parameter guidelines.

[0033] Here we explain the serial circuit defined by the state recursive equation and its corresponding parallel circuit. According to the second and third items of the parameter guide, although the circuit and VDF recursive relationship are defined by recursive equations, the evaluation does not include the overhead of updating the register state, and even the overhead of line delay is ignored. Similarly, the following salt parameters controlling the VDF movement are generally defined or described in combination with recursive equations, but the evaluation result of salt at the circuit level may be that there is only area consumption but no time delay consumption; because the circuit implementation is almost the most highly parallel engineering implementation, the actual computational overhead related to salt is submerged in VDF and VDF. -1 The cost of the longest computation path.

[0034] The present invention also has the following effects:

[0035] 1. Different from the background technology, the VDF of the present invention does not require the initialization parameter stage (Setup); for example, the continuous square method must generate the secret modulus N in the initialization parameter stage;

[0036] 2. Based on the principle of high-order nonlinear iteration design, different from the public key algorithm principle of the continuous square method and zk-snark method in the background technology, the VDF of the present invention is designed to resist quantum attacks;

[0037] 3. Entropy preservation, or VDF -1Exists. This property inherently leads to a new application of time capsules. The main idea is to use VDF in the commitment phase. -1 Module, automatically opens the VDF module for the commitment phase.

[0038] According to the second guideline for interpreting parameters, when the VDF input-output width is relatively small, a state must be used to obtain a sufficiently high design gain. Another special case is that when the VDF input-output width is particularly large, even if a degenerates to 0, a VDF with a large gain exists (such as the structure F(A0,Ab)=S(A0⊕Ab,△), and b is large). It can be considered that the larger the gain index of the comprehensive contribution of (a+1)*(b?b:1), the larger the amount of data received in the verification phase; the larger the amount of data, the more parallel S is corresponding to in the verification phase. -1 The more logic, the greater the corresponding VDF design gain. Referring to the theoretical design indicators of the most comprehensive implementation examples VDF32, VDF8192, and VDF2M, the design gain indicator of the verification stage is basically equal to the number of bytes of data received in the verification stage, that is, receiving 32 bytes has a gain of about 32 times, and receiving 2 20 Bytes are about 2 20 times the gain.

[0039] Because the larger a and b are, the faster the verification speed in the verification phase; according to the technical indicators of the embodiment, the data volume of the byte width of (a+1)*b*S can provide a total gain of approximately (a+1)*(b?b:1)*S byte width (hereinafter referred to as the total gain). In the industrial parameter evaluation stage, both the total gain parameter and the safety redundancy parameter are very important. The disadvantage of setting the total gain too large is that the verifier must accept a large amount of data, and the disadvantage of setting the total gain too small is that a lot of computing time must be consumed in the verification phase. Generally, the gate delay indicator is used to evaluate the theoretical total gain in the theoretical design phase. The theoretical total gain parameter can cover the possibility that the actual gain of the actual ASIC chip will become smaller. The actual gain in industry is VDF -1 The ratio of the calculation speed of the actual circuit of VDF. The theoretical total gain must also cover the security redundancy. The minimum standard of security redundancy is to define the hardware execution VDF speed of the world's fastest circuit process library, which is generally evaluated by the current fastest transistor process library, combined with the VDF results of circuit-level parallel optimization engineers and wiring engineers. The disadvantage of setting the security redundancy too large is that the verifier must consume a lot of computing time, especially causing the number of delayed blocks for the consensus of the blockchain system based on VDF consensus to increase; setting the security redundancy too small leads to the greatest risk of cheating in beacon-type applications. If the VDF calculation speed of some laboratories or chip manufacturers secretly breaks through the publicly recognized fastest VDF speed, those undisclosed high-speed VDF calculation modules are theoretically likely to be cheated for beacon-type industrial applications.

[0040] ☆2 The one-way reversible function S component is a necessary technical feature of the present invention. Its one-way nature is that the forward calculation is very slow and the reverse calculation is faster. More specifically, the critical path time of the forward logic is significantly greater than the critical path time of the reverse logic. The inventor first designed and evaluated VDF32 based on the F(A,B) structure. The recursive relationship of VDF32 is A16=g(~(~A15&A14)&A13)⊕A0), where g -1 For sparse tap design. In order to guide the design of more unidirectional components, the inventors proposed and summarized four basic methods. The inventors believe that to design a one-way reversible function, one can either find the unidirectional design gain from the structure as a starting point or find the unidirectional design gain from the algorithm as a starting point; sparse tap design and F(A,B) structure belong to structural contributions, discrete logarithm and x t It belongs to the contribution at the algorithm level. The evaluation results of the structural contribution in accordance with Article 1 of the benchmark parameter guideline are given in this specification. Many examples, derivations and conclusions are given, so the inventor believes that in order to benchmark Article 1 of the parameter guideline, the design of structural contribution is recommended first. In addition to the four basic methods and their combinations, other methods are not excluded to construct one-way reversible functions.

[0041] Four basic methods and combinations of one-way reversible function construction belong to the content of this invention, and are described in the specific implementation. 1) The forward feedback function is designed as F(A, B) structure, where A is the earliest symbol and B is the latest symbol; 2) The reverse logic includes sparse tap design; 3) The reverse logic function includes x t Power design, t is the minimum integer to ensure reversibility and nonlinearity; 4) The forward logic function contains the discrete logarithm function. The basic method means that a one-way reversible function S is constructed using one or a combination of four components, where the criterion for judging whether S or VDF is one-way is that the time delay of the critical path of VDF is significantly greater than that of VDF -1 The critical path time delay is Fig.13 Further guidance will be given.

[0042] The inventors found that adding the input parameter salt can significantly improve the cryptographic security of VDF. Because the VDF output is associated with salt information, the VDF output algebraic expression must be more complex. Increasing the salt entropy value significantly improves the ability to resist collision and pre-made table acceleration. The inventors prefer that salti is a linear shift register or additive congruential design. It should be noted that adding salt to increase anti-analysis capabilities is a common technology in the field of computer security, such as adding salt to the Unix password word library to improve the anti-analysis capabilities of the password.

[0043] Referring to the salt design of VDF32, a well-designed salt can consume only circuit area without latency consumption. The design guidelines given by the inventor include making the frequency of salt controlling the corresponding register of VDF smaller than the frequency of VDF symbol update, and making the 1-bit XOR operation of salt connected to VDF -1 Compute logic with shorter delay path time.

[0044] ☆3 VDF with salt parameter is preferred, characterized in that salti changes the output of the i-th VDF in an entropy-preserving manner or the salti entropy value is calculated together with the one-way reversible function S, where salti is the state of salti in the i-th shot. It should be explained that salti changes the output of the i-th VDF only for the convenience of the public to understand the statement, and does not limit salti to strictly correspond to the i-th VDF. The salt of VDF32 actually corresponds to the i*13th shot; another actual explanation is that during the recursive calculation process of VDF, the state is changed by salti in a moisture-preserving manner.

[0045] In summary, there are three things to consider when constructing salt: 1. It must be easy to obtain salti; 2. The forward calculation delay of salti should be less than the calculation delay of VDF; 3. The reverse calculation delay of salti should be less than VDF. -1 If the salt is regarded as the block cipher key and the initial state is regarded as the plaintext, the VDF output is equivalent to the ciphertext output of the block cipher. At this time, VDF (initial state, salt) is a block cipher that encrypts slowly but decrypts quickly. This block cipher just meets the needs of the industrial copy proof primitive.

[0046] The inventors found that when the input-output space of S is very small, the gain contributed by F(A,B) = S(A⊕B) is large but the anti-parallel acceleration capability is very weak, such as the "pre-table acceleration technology" explained in terms of terminology that significantly accelerates; on the contrary, when S directly constructs VDF, where S -1 The VDF can be proven to be unable to be accelerated in parallel if the taps are sparse and S achieves the minimum delay index, but the gain contributed by this design is very small. The sparse taps refer to each output being associated with only 2 to 3 taps, but its inverse function is that each output is associated with all taps or substantially all input taps. The advantages of the sparse tap design are: 1. It has inherent gain, and 2. The hardware implementation is particularly space-saving. The inventor particularly recommends that S achieve the minimum delay index, i.e. The design of gate delay does not include the large table implementation here. At this time, the gate delay of S reaches the optimal value; the optimal implementation VDF32 is a typical F(A,B)=S(A⊕B) structure, and its S reaches the minimum delay index. It is inferred that the gate delay gain of VDF32 reaches 34.6(13*8 / 3).

[0047] ☆4 In order to obtain a better compromise between anti-parallel acceleration and total gain, the inventors prefer to recommend the following construction method: S component is F(A,B)=g(A⊕B) structure, and g is defined as -1 It is designed for sparse taps; the S component directly constructs a VDF for beacon-type applications or F(A0,Ab)=S(A0⊕Ab,△) indirectly constructs a VDF for replica proof applications, where t is divisible by △*b.

[0048] ☆5 Therefore, the construction scheme that takes into account the advantages of salt is: the S component is F(A,B)=g(A⊕B) structure, and g is defined -1 It is designed for sparse taps; an input parameter salt is added, and salti changes the register corresponding to the S component in an entropy-preserving manner; the S component directly constructs a VDF or F(A0,Ab)=S(A0⊕Ab,△) indirectly constructs a VDF, where t is divisible by △*b.

[0049] In order to connect the random beacon application and the replica proof application in the industry, three more specific implementations of VDF32, VDF8192 and VDF2M are designed. Among them, VDF32 is recommended to connect the random beacon application, and VDF8192 and VDF2M are recommended to connect the replica proof application.

[0050] ☆6☆7 Comprehensive optimal implementation VDF32, VDF8192, and VDF2M are all F(A,B)=S(A⊕B) structures; more specifically, VDF8192 and VDF2M are F(A,B)=S(A⊕B,△) structures. It is recommended that VDF32 be connected to the random beacon primitive, and it is recommended that VDF8192 and VDF2M be connected to the replica proof primitive.

[0051] The design index of VDF32 is 8clk per symbol update, and the corresponding VDF32 -1 The circuit implementation is 3clk every time 13 symbols are updated, so the design gain of VDF32 is 34.6 (13*8 / 3). VDF32 is a typical F(A,B)=g(A⊕B) structure, where g -1 It is an optimal sparse tap design; in order to improve the anti-parallel capability of VDF, 3 adjacent A are allowed to participate in the F(A,B) operation at the expense of gain; so the state recursive equation of VDF32 is VDF32({A15,A14,…,A0},1)={g(~(~A15&A14)&A13)⊕A0)⊕cyclic constant table,A14,…,A1}. Other parameters of VDF32 include: group width 32 bytes, the highest bit of A15 is XORed with salt[0] every 13 times of S operation, and the salt is cyclically shifted once every 16*13 beats of operation. The above contents will be described in detail in the specific implementation method with reference to the accompanying drawings.

[0052] Considering VDF32 as a one-way reversible function, VDF8192({A255,…,A0}) is defined, where A256=VDF32(A0⊕A255,△,salt), so 255 times VDF32 gain, group width 8192 bytes; considering VDF8192 as a one-way reversible function, VDF2M({A255,…,A0}) is defined, A256=VDF8192(A0⊕A255,△,salt), so 255 times VDF8192 gain, group width 2 20 Bytes. Detailed parameters of VDF32, VDF8192, and VDF2M are described in the Specific Implementation section.

[0053] The inventors completed VDF32 (,13,) and VDF32 on EP3C25Q240 (an Altera FPGA belonging to the Cyclone III series) based on the state automaton model. -16 (,13,) Hardware module synthesis and result verification,Quartus II Version 9.0 synthesized the fmax index as,VDF32(,13,) corresponding to 15.42MHz,VDF32 -16 (,13,) corresponds to 27.23Mhz, and the actual gain is calculated to be 28.25, which is basically consistent with the theoretical value of 34.6.

[0054] ☆8 A chip, characterized in that the chip includes VDF or VDF -1 The computing module, receiving module and output module, the receiving module initializes the computing module after receiving the input of the computing module, and the computing module is responsible for calculating VDF or VDF -1 , the output module is responsible for outputting the calculation results.

[0055] ☆9 A serial communication chip, more specifically also includes an rx pin and a tx pin that comply with the serial port protocol, characterized in that the control command and calculation module input are through the rx pin, and the calculation result output is realized by the tx pin.

[0056] The advantages of serial communication chips are: 1. There are fewer pins, so it is friendly to chip packaging and circuit manufacturing; 2. Serial port calls are a particularly general and economical bus solution; 3. It conforms to the hierarchical model, and software layer calls and hardware chip development are separated. The economic effect is more obvious, especially when the serial port instruction set is standardized.

[0057] ☆10 The integrated VDF8192 hardware module and VDF8192 are disclosed in detail in the embodiments and related drawings. -1 Hardware module serial communication chip design and test results, which proves VDF and VDF -1It can be realized by FPGA engineering. After refinement, the structural design of the chip of the serial communication is disclosed below.

[0058] The chip includes two computing modules and two components. The two computing modules are: VDF8192 computing module based on state automaton and VDF8192 based on state automaton. -1 Computing module; and two components: serial port decoding and instruction decoding execution component and multi-function automatic encoding and output component;

[0059] According to the signal control flow, the decomposition structure of the serial port decoding and instruction decoding and execution components is as follows: a serial port decoding submodule connected to the rx pin, an instruction decoding and execution submodule, and a 256-bit input register submodule;

[0060] According to the signal control flow direction, the decomposition structure of the multifunctional automatic encoding and output component is in the following order: output buffer register submodule, multi-byte automatic encoder submodule and serial port encoding output submodule connected to the tx pin;

[0061] Furthermore, the mutual control relationship between the computing modules and components is:

[0062] The serial port decoding and instruction decoding execution component receives external instructions from the rx pin, and the serial port decoding and instruction decoding execution component translates the external instructions into: instruction code, data code and address code, wherein each address code is associated with a specified VDF8192 -1 The calculation module or VDF8192 calculation module, the data encoding is buffered to the 256-bit input register submodule;

[0063] According to the address encoding specified, the specified VDF8192 -1 The module or VDF8192 module receives the instruction code and the excitation control signal of the data encoding, and implements VDF8192 according to the excitation control signal. -1 Module or VDF8192 module implements VDF or VDF -1 Functions such as initialization, starting calculation and pausing calculation;

[0064] The instruction code also stimulates and controls the multifunctional automatic encoding and output component, thereby realizing the VDF8192 -1 The status register output of the module or VDF8192 module; the specific output step is to first buffer the status of the calculation module specified by the address code to the output buffer register submodule, and then output the information of the output buffer register submodule to the tx pin according to the level signal of the serial port encoding under timing control.

[0065] The VDF constructed based on the present invention includes the following related industrial applications and industrial products:

[0066] ☆11 A randomness beacon application method, characterized in that, in the VDF function of the present invention, the blockchain entropy value is used as the input of the VDF, and the VDF output is used as the randomness beacon.

[0067] Next, we use bitcoin block hash combined with VDF32 algorithm to construct a practical random beacon, and calculate the threshold t from the fastest transistor operating frequency of the current process. The inventor recommends 254 intermediate states, which is just reused in the verification stage. -1 255 parallel VDF32 modules -1 Calculation logic: a is the total gain of 254 intermediate states, which is exactly equal to the gain of VDF8192, both are 8823.0 (255*34.6).

[0068] Define VDF32 (bitcoin block hashi, salt, t) as a random beacon, where salt is the lower 128 bits or 256 bits of bitcoin block hashi-1. Set the fastest transistor characteristic frequency of the current process to 1 Thz, select 3 times the security redundancy, and the bitcoin block interval is 10 minutes. Set t as the security threshold, list the equation, and solve the equation to get t = 1800 T beats.

[0069]

[0070] This threshold is sufficient to ensure that even the fastest circuit in the current process cannot calculate VDF32(,1800T) within 10 minutes; Effect of the invention: If t is greater than the security threshold, the random beacon output cannot be forged.

[0071] Assume that the operating frequency of the ASIC transistor of a certain circuit process library is 50G; the circuit takes 36,000 seconds to calculate VDF32 (bitcoin block hashi, salt, 1800T), and 36,000 seconds equals 10 hours; it is estimated that the actual beacon generation delay is 10 hours.

[0072] Assuming VDF32 -1 The operating frequency of ASIC transistors is also 50G; if the number of intermediate states is selected as 0, the actual verification time is calculated to be 1040.5 seconds (36000 / 34.6). If the number of intermediate states is selected as 254, the actual verification time is calculated to be 4.08 seconds (1040.5 / 255).

[0073] VDF32 (bitcoin block hashi, salt, 1800T) is announced to the world through a portal website. The effect of this website: The website provides the world with reliable random numbers for lottery, which can be used for lottery of court panel members, lottery of competitions, and lottery of interactive zero-knowledge proof challenge values.

[0074] ☆12 Synthesize and refine the relevant technologies of the portal website, and disclose a portal website, characterized in that the portal website publishes VDF as the output random beacon and data that can verify the random beacon, wherein VDF conforms to the definition of the present invention. The portal website is an Internet address, and the form of the Internet address includes but is not limited to a website, an APP applet, and an applet derived from a well-known APP platform. The data that can verify the random beacon includes a intermediate state, an initial state, and evidence of the source of the initial state entropy.

[0075] ☆13 A method for encoding and decoding a replica proof application, comprising input parameters of a replica number and a coding block, characterized in that it comprises a VDF with a salt constructed by the present invention, and the salt is associated with the replica number;

[0076] The encoding process of the replica proof is VDF (encoding block, replica number);

[0077] The decoding process of the replica proof is VDF -1 (Encoding result, copy number).

[0078] The copy proof is a basic primitive of blockchain and cryptography. The coding block can be a diary or log, or a storage service object similar to filecoin. For example, VDF2M (coding content, salt, t) is defined as the copy proof standard, where salt is the copy number. The coding content block of VDF2M is 2M bytes long, with a theoretical gate delay gain of 2.25M. The theoretical effect is that under the same circuit process, encryption takes 26 days and decryption takes 1 second.

[0079] ☆14 A storage service terminal, characterized in that the storage and download object is a VDF (coding block, copy number) related to the copy certificate;

[0080] s141: Receive download requests from customers.

[0081] s142: Return or guide the download of VDF (coding block, copy number) according to the download request.

[0082] A guided download type storage service terminal is feasible. The storage service terminal is a portal website that responds to user requests by returning a specified VDF code or a URL link pointing to the VDF storage.

[0083] In order to solve the problem of weak computing terminals calculating VDF and VDF-1 The main idea is to use the VDF or VDF of the weak computing terminal -1 The computing task is uploaded to the cloud computing service terminal, which is then used for computing. The cloud computing result is returned to the weak computing terminal through the network. Here, the author strongly recommends two technologies for hiding computing secrets, and uses VDF32 and VDF8192 as examples to illustrate the basic idea.

[0084] 1. Before uploading, the weak computing terminal pre-calculates 2048*13*r beats for each VDF-type small task, where r is a random positive or negative integer with a small absolute value. After downloading the corresponding calculation results, it calculates -r*2048*13 beats to eliminate the influence of r;

[0085] 2. For VDF8129 -1 or VDF2M -1 The author also recommends 255 VDF32 -1 or VDF8129 -1 Input reordering and hidden computing techniques are used to hide the computing content.

[0086] ☆15 discloses a cloud computing terminal, characterized in that it includes VDF or VDF -1 A calculation module, a network receiving module and a network sending module, wherein the VDF conforms to the definition of the present invention;

[0087] S151: The network receiving module receives the client's input through the network;

[0088] S152: The computing module calls VDF or VDF -1 Calculate the input of S151;

[0089] S153: The network sending module returns the calculation result of S152 to the client through the network.

[0090] A typical scenario of cooperation between thin terminals and cloud computing terminals is: VDF standards are VDF32, VDF8192, and VDF2M, mobile phones are weak computing terminals, computing power service providers are the main body of cloud computing terminals, and mobile phones are installed with modules that hide computing secrets. Mobile phones can use cloud computing terminals to implement the verification function of random beacons, the encoding function of copy proofs, and the decoding function of copy proofs. If the mobile phone does not trust the cloud computing terminal, it can start the hidden computing module, which can hide the content of the original computing power request. On the other hand, the hidden elimination module on the mobile phone receives the response result of the cloud computing terminal and then calculates the correct calculation result.

[0091] ☆16 In order to support VDF type POS consensus, Ethereum has invested tens of millions of dollars to support VDF algorithm research. Based on the VDF constructed by the present invention, a blockchain system is disclosed, characterized in that it includes the VDF module of the present invention; the blockchain accounting right is determined by the VDF output, and the VDF input is associated with the entropy value of the previous block. The essence of this invention is that the trusted random beacon determines the accounting right, so the consensus result is credible to the public. The construction of the random beacon, the security redundancy setting, and the verification effect calculation can refer to the previous VDF32 as an example of the random beacon.

[0092] ☆17 A blockchain system that consumes time when casting a new block, characterized in that it includes a time parameter t and a VDF module of the present invention, and the new block hash is associated with VDF (previous block hash, t).

[0093] The new block hash is associated with VDF (previous block hash, t), which means that the previous block hash is used as the initial state of VDF, and after t beats, VDF is used as an element of the new block header or directly as the block header. Effect of the invention: VDF is equivalent to a crystal oscillator or clock in the digital world, which can prove that it takes time t to mint a new block; it will be very difficult to forge a blockchain, especially a consortium chain, because it must consume several VDFs (, t).

[0094] It is possible to use VDF directly as the block header, because VDF with salt is sufficient to construct a cryptographically secure hash value function module. As long as △ is large enough, VDF(,△,salt) is a high-strength cryptographically secure hash value. The information encoding of the block header can be converted into multiple salts, and the new block hash is obtained through continuous VDF(,△,salt). See the specific embodiment for details.

[0095] ☆18 Based on the above blockchain system, a VDF with salt is preferred, where the salt is a credible timing evidence. Examples of credible timing evidence include the latest bitcoin hash, Ethereum block hash, or a credible alliance chain hash.

[0096] Trusted timing evidence is the latest timestamp encoded data that can be proved in digital space. It is recommended to use only one trusted timing evidence in the process of casting a new block, because the more the number of associated trusted evidences, the more storage space is consumed. The inventor especially recommends regularly or irregularly storing the hash of the new block of the present invention in the blockchain of trusted timing, and the evidence information will be retained after storage; the effect of this operation is that the evidence chain of the mutual timing of the two chains can prove that the operation of timing the blockchain of the present invention is trustworthy and cannot be forged.

[0097] Another explanation for the effect of the invention of introducing credible timing evidence is that it is equivalent to defining the timing function of GPS or Beidou in the digital world. The birth time of the hash of the new block header is equal to the timing time plus t, where t is proved by VDF(, t).

[0098] ☆19 In order to make the Token strongly associated with the minting time t, a Token encoding and verification encoding method is invented, which is characterized by including an encoding stage and a verification stage; the encoding stage corresponds to the calculation stage of VDF, and the verification stage corresponds to the verification stage of VDF; wherein VDF is the VDF constructed by the present invention;

[0099] During the encoding phase, do the following:

[0100] Calculate and present VDF(seed, t) and a intermediate states, where seed is associated with the Token ID;

[0101] During the validation phase, the following actions are performed:

[0102] Receive seed and a+1 states; and,

[0103] Using several S in parallel -1 Logical implementation of VDF -1 (seed, t) verification task.

[0104] Effect of the invention: Because VDF is proof of the passage of time, seed and VDF (seed, t) together can prove that minting a token takes t beats of time, that is, the birthday parameter is t. The association method seed = hash (identification feature of the token) also satisfies ID = hash (seed, resource data corresponding to the token).

[0105] The following example of non-fungible tokens (NFT) proves the feasibility of the method.

[0106] Assume that a certain NFT identifier is a picture; seed = sha2 (binary code of the picture); then define ID = sha2 (seed, Token other resource data). Once the picture is born, VDF32 (seed, t) is continuously calculated. Here, the parameter t is equivalent to the birthday of the picture.

[0107] The prover calculates and presents the ID, then calculates and presents VDF32(seed, t), birthday parameter t, and a intermediate states; the verifier uses VDF -1 The module proves that the birthday of the picture corresponding to the ID minted is t. It should be noted that the ID of Token and NFT is a global identifier, which can be explained by referring to REC721 and ERC1155 standards.

[0108] ☆20 In addition to the copy proof applications and random beacon applications related to the background technology. The inventor invented a new application with the nature of a time capsule. A method for automatically opening a commitment and verifying a commitment, characterized in that it includes a commitment phase and a verification phase, wherein the commitment phase corresponds to a VDF -1 (, t) calculation, the verification phase corresponds to the VDF (, t) calculation, the VDF is a VDF constructed by any method in rights 1-7, and t is a time parameter; the steps of the commitment phase and the verification phase are as follows:

[0109] Commitment Phase:

[0110] S201: X = VDF -1 (content of commitment, t);

[0111] S202: Send X and t to the verifier;

[0112] Verification phase:

[0113] S203: Receive the X and t, calculate VDF(X, t) to obtain the commitment content.

[0114] The effect of this new application is a time capsule in the digital world that can open automatically. To open the time capsule, the time parameter t of the digital space must be consumed.

[0115] The invention also includes the following two devices, which can independently complete the computing logic. Third-party support to complete the computing logic is also recommended. The cloud computing terminal and hidden computing technology described above are a third-party support to implement the computing logic; for example, the computing device or verification device calls the aforementioned one including VDF or VDF through a remote serial port. -1 The computing module chip is also a supporting implementation. There are many specific equipment forms, including but not limited to the block writing device of the blockchain system, the block reading device of the blockchain system and including VDF -1 The equipment also includes a mobile phone, a pad, a computer, a cloud computing server, a blockchain system of the present invention, a random beacon distribution website of the present invention, a ukey or an acceleration card including a chip of the present invention, a commitment party device or a verification party device that automatically opens the commitment.

[0116] ☆21 discloses a VDF calculation device, characterized in that the VDF calculation device executes the VDF calculation stage of the present invention, the calculation device inputs an initial state and t, and outputs a VDF result and a intermediate state; when a is 0, the VDF is a F(A0,Ab)=S(A0⊕Ab,△) structure; the VDF calculation module can be completed independently by the device or implemented with the support of a third party.

[0117] ☆22 A VDF verification device is disclosed, characterized in that the VDF calculation device performs the VDF verification phase of the present invention, and the device implements (a+1) VDF -1 Subtask verification task, the verification device inputs the initial state, the result and a intermediate states, and outputs the judgment result; the VDF verification module can be completed independently by the device or implemented with the support of a third party.

[0118] ☆23 In order to realize VDF-related information storage, information exchange, information distribution, on-site protection and other applications, the storage function support of the medium must be obtained. The most typical scenario is that the implementation subject of the calculation phase transmits the initial state, t, VDF result and a intermediate states to the implementation subject of the verification phase. A medium is disclosed on which binary data is stored, characterized in that the encoding content of the binary data is VDF and / or VDF -1 The input, output or intermediate state of the VDF conforms to the definition of the present invention. The evidence storage medium includes but is not limited to computer storage media, cloud storage, paper, etc., and the specific implementation method is described in more detail. Because the content stored by the medium is generally encapsulated by a certain procedure or encoded by a certain computer coding rule, these codes include but are not limited to ASCII coding, BASE64 coding, binary DER coding, certain channel coding, and even certain block ciphers, so the meaning of the encoded content is the substantive content after the above coding is eliminated.

[0119] Based on the detailed description of the specific embodiments of the present application in combination with the accompanying drawings below, those skilled in the art will become more aware of the above and other objects, advantages and features of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0120] Hereinafter, some specific embodiments of the present application will be described in detail in an exemplary and non-limiting manner with reference to the accompanying drawings. The same reference numerals in the accompanying drawings indicate the same or similar components or parts. It should be understood by those skilled in the art that the accompanying drawings of the present invention essentially describe the connection relationship and timing control relationship of the circuit. In the accompanying drawings:

[0121] Figure 1 The essential technical feature of the present invention is a schematic diagram of the calculation stage and verification stage of an intermediate state;

[0122] Figure 2 This is the principle diagram of the structural calculation stage and verification stage of the essential technical feature of the present invention F(A0,Ab)=S(A0⊕Ab,△);

[0123] Figure 3 Schematic diagram and clk analysis of the calculation stage of VDF32 in the embodiment;

[0124] Supplementary explanation, register update expression: {Ai,Ai-1,……,Ai-15}←

[0125] {g((~(~Ai&Ai-1)&Ai-2)⊕Ai-15)⊕Constant table i%13,Ai,...,Ai-14};

[0126] Figure 4 Schematic diagram and clk analysis of the verification phase of embodiment VDF32;

[0127] Supplementary explanation, register update expression: {Ai,Ai-1,……,Ai-15}←

[0128] {Ai-13,Ai-14,Ai-15,Ai-16……,Ai-28};

[0129] Figure 5 is the g of VDF32 -1 and hardware wiring diagram of g;

[0130] Figure 6 For VDF8192 and VDF8192 -1 Circuit schematics and delay analysis;

[0131] Figure 7 This is the hardware construction drawing of VDF8192;

[0132] Figure 8 For VDF8192 -1 Hardware construction drawings;

[0133] Fig. 9 For example VDF8192 and / or VDF8192 -1 The hardware structure diagram of the serial port chip;

[0134] Fig.10 The instruction set of the serial port chip of the embodiment;

[0135] Fig.11 are two derivative structure instances of F(A,B) structures;

[0136] Fig.12 It is a schematic diagram of two-stage pre-made table acceleration of A17=S(A16⊕A0);

[0137] Fig.13 For 2 61 Field discrete logarithm F(A,Ai-3) structure implementation example;

[0138] Fig.14 This is a schematic diagram of the blockchain system structure with VDF clock function for Bitcoin timing implementation;

[0139] Fig.15 This is a schematic diagram of the industrial ecology related to the present invention. DETAILED DESCRIPTION

[0140] In order to enable those skilled in the art to better understand the scheme of the present disclosure, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present disclosure.

[0141] In order to understand the contents of this manual more quickly and better, the following reading instructions are given. Figure 3 , 4 and 6, give priority to reading the circuits, design principles and design gain calculations based on recursive expressions related to embodiments VDF32, VDF8192 and VDF2M. Based on the above reading, an important route for engineering implementation should be referred to the attached Figure 7 , 8 、9、10Read VDF32、VDF32 -1 、VDF8192、VDF8192 -1 Based on the above reading, another important route is to explain how to design VDF with a larger protection range, especially the explanation of F(A,B) structure, which should be referred to in the attached Figure 1 , 2 , 11, 13. Read the explanations of the necessary technical features and the statements and summaries of the various one-way reversible components.

[0142] In order to describe the inventive concept and technical solution, the following terms are defined first:

[0143] 1. One-way reversible function S

[0144] The essential technical feature of the present invention is that the component directly or indirectly constructs a VDF whose unidirectionality is defined as a reversible function with very slow forward calculation and relatively fast reverse calculation. The key point of the construction is that the time delay of the critical path S is significantly greater than S -1 The time delay of the critical path already includes the results of circuit-level parallel optimization and the results of circuit wiring engineers. The gain of S is the calculation time of S divided by S -1 The calculation time of S is divided into theoretical evaluation, especially gate delay evaluation index and actual hardware circuit gain. The meaning of the four basic methods is to construct VDF using one or a combination of the four components. Fig.13 The specific implementation method provides many design references. According to the one-way definition, other one-way function constructions are not excluded. As long as the three parameter guidelines of the invention content are met, the VDF can be constructed.

[0145] 2. a Intermediate state technology

[0146] One of the essential technical features of the present invention is the principle and effect of serial computing and parallel verification. Figure 1 Attached Figure 1 It can be proved that the computation phase corresponds to (a+1) VDF-type serial tasks, and the verification phase corresponds to (a+1) VDF -1 The principle is to increase the data complexity and hardware cost to improve the verification speed. The main feature is that in the process of VDF calculation, a intermediate states are used as evidence according to the principle of even division. In the verification phase, (a+1) VDFs are opened in parallel at the same time. -1 The verification task is used for fast verification. The technical effect is that (a+1) times the hardware cost and (a+1) times the data cost are increased to (a+1) times the verification speed, that is, the gain is increased to (a+1) times. a is 0, which means that the intermediate state technology is not used.

[0147] 3. F(A,B) structure

[0148] The special case of the F(A,B) structure F(A0,Ab)=S(A0⊕Ab,△) is one of the essential technical features of the present invention. The design principle and effect of F(A0,Ab)=S(A0⊕Ab,△) refer to the attached Figure 2 Attached Figure 2 It can be proved that for each calculation of △*b beats, the calculation phase is equivalent to a cascade structure S logic serial circuit with a depth of b and a width of 1, and the verification phase is equivalent to a parallel structure S with a depth of 1 and a width of b. -1 Logic parallel circuit. More specific performance analysis is that VDF means that each time the forward logic updates b symbols, it consumes b S(△) delays. VDF -1 That is, the reverse logic consumes only 1 S for each update of b symbols. -1 (△) delay. More specific embodiments, attached Figure 6 Given the VDF8192 module and VDF8192 -1 The circuit implementation and delay of the module; the VDF8192 circuit is essentially a state automaton based on a VDF32 module. Every time a △ unit operation is completed, a 32-byte length symbol is updated, consuming a VDF32 (,△,) delay; the VDF8192 -1 The circuit is essentially based on 255 VDF32 -1 The module's state machine consumes 1 VDF32 for each 255 △ unit operations that update 255 32-byte length symbols. -1(,△,) delay. The benefit of increasing △ is to increase the granularity of calculation. Increasing △ will make the core hardware code focus on S(△) operation, and theoretically can ignore the linear delay consumption in the range of {A0,…,Ab}; More importantly, if S corresponds to a standard similar to VDF32, then the industrial standard module defined by F(A0,Ab)=S(A0⊕Ab,△) directly supports S(△) and multiple S -1 (△) operation.

[0149] The effect of the F(A,B) structure is that Ai+1=F(Ai,Ai-N-1)=S(Ai)⊕Ai-N-1 design gain N-1 times, Ai+1=S(Ai⊕Ai-N-1) design gain (N-1)*Gain times, where Gain is the calculation delay of S and S -1 Calculate the delay ratio. Therefore, the larger the interval between the latest symbol and the smallest symbol, the better. The concept of F(A,B) includes but is not limited to changing the ⊕ operator to the + operator. In order to improve the resistance to the prediction table acceleration, in addition to Ai, symbols such as Ai-1 and Ai-2 are also included in the calculation.

[0150] The F(A,B) structure can be used to construct a one-way reversible function S independently, and then directly construct a VDF. It can also be used to construct a VDF with larger input and output bytes from a VDF with smaller input and output. The structure should not be limited to a single recursion Ai+1=F(Ai,Ai-N-1)=S(Ai)⊕Ai-N-1 or Ai+1=F(Ai,Ai-N-1)=S(Ai⊕Ai-N-1), where B is the earliest symbol. The specific implementation part will be combined with the attached Fig.11 More design guidelines are given. All these design results and guidelines are equivalent implementation methods based on the F(A,B) structural design concept.

[0151] Finally, two criteria for judging the F(A,B) structure are proposed: 1. The new symbol is equal to the nonlinear function output of the latest symbol combined with the earliest symbol; 2. The time delay of the critical path of the VDF review is significantly greater than that of the VDF. -1 In order to better understand the significance of the two criteria as the final criteria, let’s first take a counterexample that does not meet the second criterion. By defining Ai+1=F(Ai,B)=S(B)⊕Ai, it is easy to verify that the gate delay of the forward logic critical path is greater than the gate delay index of the reverse logic critical path. Therefore, Ai+1=F(Ai,B)=S(B)⊕Ai cannot be used as a VDF design.

[0152] 4. Sparse taps

[0153] A preferred one-way reversible function design. Because the design gain is too small, the inventor does not recommend directly constructing a VDF; instead, it is preferred to combine the F(A0,Ab)=S(A0⊕Ab) structure to construct a VDF with better gain index, where S -1 It is a sparse tap design. The taps that define the output are only associated with 2 to 3 inputs, but the output of the inverse transform is associated with all or substantially all input taps. Sparse taps have two advantages: 1. They have inherent gate delay and line delay gain, where the gate delay is not less than the number of log2 taps; 2. Sparse design is friendly to hardware and software implementation. When the number of taps is small, they can be selected by computer, and the basic criterion for selection is that the inverse function meets the basic definition; the optimization method and results are described in the specific implementation method.

[0154] 5. Gate Delay

[0155] In order to evaluate the gate delay of the critical path theoretically, the gate delay of binary operations such as AND, OR, ANDN (i.e. ~AND), XOR, and XNOR is set to 1clk, and the gate delay of multi-input AND is set to 1clk. -1 The total number of clks can be calculated from the critical path, and then the theoretical gain based on gate delay can be calculated. Actual VDF and VDF -1 The critical path of the hardware circuit includes not only gate delay but also line delay. Of course, the actual gain of the physical ASIC and FPGA requires actual testing or circuit synthesizer evaluation, and its gate delay parameters must be related to the hardware process library. Given the current fastest transistor characteristic frequency, the theoretical safety threshold of 1-beat VDF can be inferred from the total clk number of the VDF critical path. Therefore, the gate delay parameter corresponds to the parameter evaluation of the digital space and also corresponds to the physical hardware parameter evaluation.

[0156] 6. Accelerate the production of prediction tables

[0157] A technical solution for converting area into speed for forward logic of F(A,B) structure, which limits AN+1=S(AN⊕A0). In order to quickly calculate A2N, it is divided into two sections for parallel calculation. The specific principle and effect refer to the attached Fig.12, limit A17=S(A16⊕A0), where the input and output of S are 8 bits, in order to solve the problem of {A16,…,A0} to quickly find the symbol A32. A17 to A23 is the first calculation path, and A23 to A32 is the second calculation path. Because A23 has a total of 256 possibilities, the second path and the first path can simultaneously start 256 calculation paths in parallel to accelerate the pre-table creation; after A23 is calculated, A32 is also calculated, and the correct A32 can be selected according to the calculation result of A23. The more segments, the smaller the symbol space, and the better the effect of pre-table creation acceleration. The inventor also proposed a way to resist this technology is to allow more latest symbols to participate in the calculation. For example, the design concept of VDF32 is to allow the 3 latest symbols to participate in the VDF calculation. Although the theoretical gain is reduced from 15 times to 13 times, the ability to resist pre-table acceleration is increased to the space covered by 3 symbols, that is, 2 48 Space (2 16 *2 16 *2 16 ).

[0158] "Preliminary table acceleration" is a parallel acceleration technology invented by the inventor based on the carry-lookahead working principle of fixed-point addition to target possible defects in the F(A,B) structure. The inventor's view is that, although VDF is formally defined as a function that is not easily accelerated by parallelism, it cannot be asserted that a given VDF cannot be accelerated by parallel technology. Scientists in the field of parallel algorithms and engineers in the field of hardware wiring have a natural scientific research preference for parallel acceleration and parallel optimization, and there are already a large number of scientific research results, so the wisdom of scientists and engineers cannot be underestimated. Therefore, the inventor cannot rule out that there are more and better parallel optimization results for the F(A,B) structure. Finally, the inventor believes that the nominal 8 clk design indicator per symbol of the VDF32 standard still needs time to test.

[0159] Comprehensive optimal implementation: VDF32({A15, A14, ..., A0}, t, salt),

[0160] This embodiment is related to the attached Figure 3 , attached Figure 3 The essence is the VDF32 calculation stage schematic diagram defined according to the VDF32(, 1,) recursive relationship; the recursive equations describing the number of symbols, symbol width, circuit, salt movement and control relationship are described as follows.

[0161] VDF32 is a VDF constructed directly from the S component, and its parameters are defined as follows: salt is 128 bits or 256 bits;

[0162] 1) t is equal to 128*16*13*k, where k is a natural number;

[0163] 2) {A15, A14, ..., A0}, each symbol 16 bits;

[0164] 3) VDF32({A15, A14, ..., A0}, 1) = {g(~(~A15&A14)&A13)⊕A0)⊕cyclic constant table, A15, ..., A1},

[0165] 4) g -1 The verilog code of (i) is {({i[3:0],i[14:4]}&{~i[7:0],~i[14:8]})^i[14:0],i

[15] };

[0166] 5) The salt parameter is: every time 13 symbols are updated, the highest bit of the 256-bit register is XORed with salt[0], and every time 16*13 symbols are updated, the salt is cyclically shifted left once;

[0167] The final output of VDF32 is: {A15+t, A14+t, …, At}.

[0168] The above is a VDF32 serial circuit defined by a recursive relationship. The theoretical gain is that there is no line delay and update register overhead. The above VDF32 related parameters actually describe the VDF serial circuit and VDF -1 The corresponding 13 g logic parallel circuits. Just like the Verilog code describes a physical hardware, the essential content of the defined physical hardware is the control relationship of the module and the update logic of the register driven by the clock. The numbering order of the modules is generally set in a way that is easy to read. In addition, it is possible to directly implement the executable hardware logic based on VDF32 (, 1,) according to the above parameters, but it is not recommended in terms of execution speed; in order to implement VDF32 faster, it is recommended to use state automaton code based on VDF (, 13,). In short, the numbering of the VDF32 parameters is only for the convenience of reading, and there is no execution order restriction. The relationship between the VDF32 parameters and the physical fast hardware code and the physical hardware logic is a guiding relationship and a definition relationship, not a simple corresponding relationship.

[0169] See attached Figure 3 and attached Figure 4 CLK path analysis, VDF and VDF -1 The gate delay ratio is 8 / 3, and the parallel operation provides a 13-fold gain, so the total design gain of VDF32 is 34.67 (13*8 / 3). Figure 5 "g -1 The hardware wiring diagram of g is shown in Figure 2. It is estimated that the g logic implementation using the binary tree architecture consumes 5clk (4+1) and g consumes 2clk. Therefore, VDF32 -1The calculation path is {Ai+1, Ai, Ai-1, Ai-2} to Ai-15, that is, Ai-15 = g -1 (Ai+1)⊕(~(~Ai&Ai-1)&Ai-2);g -1 It consumes 2 gate delays, so VDF32 -1 The closed loop path is 3 gate delays.

[0170] At most, 3 symbols are involved in the operation, so the index of resistance to the acceleration of the foreshadowing table is 2. 48 The 3-symbol design also contributes 2 clks to the VDF calculation stage. -1 The stage is based on 2 clks related to 3 symbols and calculates g -1 Consumes 2 clks, because the circuit-level parallel merging effect is 2 clks. The above conclusions can be referred to in the attached Figure 3 and attached Figure 4 .

[0171] For password security, the attached Figure 3 The 13 cycles shown are cyclically used in the constant table, which is equivalent to the round constant table of the block cipher algorithm and hash algorithm. The design purpose is to make the VDF expression more complex and irregular. The evaluation of the circuit implementation is that the constant table does not increase the hardware overhead and clk consumption.

[0172] State the Salt design concept of VDF32: VDF32 -1 The core circuit is 13 parallel Ai-15 = g(Ai+1)⊕(~(~Ai&Ai-1)&Ai-2) calculation logics, where the subscripts i are adjacent, so whether it is a multi-core processor implementation or a hardware wiring implementation of VDF32 -1 Both are fast and economical. In order to keep the hardware and software from slowing down, it is stipulated that salt[0] modifies the highest bit of the register once in a ⊕ manner every 13 beats of movement, and salt is circularly shifted once every 13*16 beats of movement. The reason why salt uses simple circular shift instead of complex linear recursion with a longer cycle is to connect hidden computing tasks during standard industrialization.

[0173] The inventors prefer to recommend the state automaton technology to realize the serial circuit corresponding to the calculation stage and the parallel circuit corresponding to the verification stage. The state automaton is divided into a register group module, a VDF or a VDF -1 The combinational logic module of the calculation, the counter and control circuit associated with t; the register group is related to the initial state, intermediate state and result. Figure 3 , Attachment Figure 4 It is just a schematic diagram to explain the recursive relationship. The schematic diagram is used to evaluate the number of clks consumed by updating symbols. The schematic diagram cannot reflect the actual line delay consumption and update register consumption. For more specific explanation, see Attachment Figure 3Corresponding to VDF32(,1,) combinational logic, attached Figure 4 Corresponding to VDF32 -1 (, 13,) combinatorial logic. Therefore, the specific implementation of the combinatorial logic module must have a sufficiently large calculation granularity. The inventors coded and tested a VDF32-based -8 (, 13,), VDF32 -16 (, 13,) and the state automaton code of VDF (, 13,), where VDF -8 The module is 8 VDFs -1 Cascade of hardware logic. In EP3C25Q240 hardware, QuartusIIVersion9.0 actually synthesizes the maximum working clock of the automatic state machine as follows;

[0174] VDF32(,13,),15.42MHz;

[0175] VDF32 2 (,13,),7.08MHz;

[0176] VDF32 -1 (,13,),130.65Mhz;

[0177] VDF32 -8 (,13,),45.37Mhz;

[0178] VDF32 -16 (, 13,), 27.23Mhz.

[0179] The above fmax results can prove that increasing the calculation granularity of the combinational logic is more conducive to the hardware synthesizer to generate better quality code. The engineering explanation of the above implementation principle is that pipeline is one of the most commonly used technologies for hardware implementation. Adding pipeline registers to cut the combinational logic has the effect of increasing the main frequency and throughput, but the minimum calculation delay index deteriorates; but the main idea of ​​the implementation method of the present invention is the opposite; more specifically, in order to optimize the calculation delay index, the technical method of reducing pipeline registers to aggregate larger combinational logic is adopted, which has the effect of reducing the main frequency but optimizing the minimum calculation delay index.

[0180] The theoretical design and performance discussion of the serial circuit and parallel circuit corresponding to the present invention is that there is no overhead of line delay and update register, but the actual circuit wiring does exist. The larger the calculation particle of the combinational logic, the smaller the actual integrated line delay and update register delay performance indicators. Of course, when the calculation particle is large to a certain extent, there will be a marginal effect of realization, that is, increasing the calculation particle will contribute little or no contribution to the improvement of calculation speed; for example, the above 15.42Mhz and 7.08Mhz parameters can prove this.

[0181] Although the above synthesis results and analysis of the results are from the fmax index of Altera's synthesizer, they are also basically applicable to other types of FPGA and ASIC circuit synthesizers. Because the basic principle of all synthesizers is to simplify the circuit logic and optimize the wiring according to the device library parameters, the larger the calculation particles of the combinational logic is, the better the clock index and the actual calculation speed. In short, as long as the calculation particles of the combinational logic are large enough, the gain index of the hardware circuit should be basically consistent with the theoretical design gain, that is, the third item of the parameter guide is established.

[0182] The following takes VDF32 (initial state, t, salt) as an example to illustrate the working principle of the closed-loop state automaton;

[0183] Step 1) Register group <- initial state, cnt <- t / 13;

[0184] Step 2) register set <- VDF32 (register set, 13, salt); cnt = cnt-1;

[0185] Step 3) cnt is not 0, continue with step 2)

[0186] Step 4) Shut down and output the register group (ie, VDF (initial state, t)).

[0187] In addition, the inventor wrote VDF32 using Intel's avx2 instructions -1 (, 13, 0) module code, the core code has 30 avx2 instructions. The single-core performance of the i7-4770 with 3.9G turbo frequency is 5.273 seconds to complete 10 9 VDF32 -1 (, 13, 0) calculation; from this, it can be inferred that 30 instructions actually consume 22.56 clks of the CPU under the contribution of instruction pairing, which is 1.90X10 per second. 8 VDF -1 This result shows that multi-core CPUs, especially multimedia instruction multi-core CPUs, can well support multiple VDF32 -1 Operation; it can also be proved that VDF32 -1 The design performs well on multiple platforms. Compared with VDF32 implemented based on state automata -16 (,13,) the index is 27.23Mhz, it can be considered that the low- to medium-speed EP3C25Q240 (FPGA model) performs better than the general high-performance processor.

[0188] The optimal implementation scheme is VDF8192 ({A255, A254, ..., A0}, t, salt), and the parameters are defined as follows:

[0189] 1) t is equal to △*255*k, where k is a smaller natural number;

[0190] 2) Input 8192 bytes, divided into 256 symbols from A255 to A0, each symbol is 32 bytes;

[0191] 3) VDF8192({A255,A254,…,A0},△,salt)={VDF32(A255⊕A0,△,salt),A255,…,A1}.

[0192] Output: {A255*k+255, A255*k+254, …, A255*k}.

[0193] The optimal implementation scheme is VDF2M ({A255, A254, ..., A0}, t, salt), and the parameters are defined as follows:

[0194] 1) t is equal to △*255*255*k; k is a smaller natural number;

[0195] 2) Input 2 21 Bytes are divided into 256 symbols from A255 to A0, each symbol is 8192 bytes;

[0196] 3) VDF2M({A255,…,A0},△*255,salt)={VDF8192(A255⊕A0,△*255,salt),A255,…,A1}.

[0197] Output: {A255+255*k, A254+255*k, …, A255*k}.

[0198] The above are the parameters of the VDF8192 and VDF2M serial circuits defined by the recursive relationship. The theoretical gain is that there is no line delay and update register overhead. The above parameters actually describe the VDF and VDF -1 The corresponding circuits are numbered only for ease of reading and have no execution order restrictions.

[0199] VDF8192(,255*△,) and VDF8192 -1 (, 255*△,) The corresponding circuit should refer to the attached Figure 2 . Among them, VDF8192 (, 255 * △,) corresponds to a serial circuit of a cascade structure with a depth of 255 and a width of 1, in which the serial unit is VDF32 (, △,); among them, VDF8192 -1 (, 255*△,) corresponds to a parallel circuit with a width of 255 and a depth of 1, where the parallel unit is VDF32 -1(,△,). Therefore, the theoretical gain of VDF8192 is 255 times VDF32, that is, 255*34.6. It should be noted that VDF32(,△,) and VDF32 -1 (, △, ) correspond to serial circuits and parallel circuits respectively from the perspective of the inventive concept, and correspond to the computing circuit based on the state automaton model described above in specific industrial implementation.

[0200] VDF8192 and VDF8192 -1 The hardware implementation principle and effect should refer to the attached Figure 6 . First state the forward logic, then Figure 6 The circuit VDF8192 (, △,) in the figure above can achieve the result of VDF8192 (, 255*△,) combination circuit by moving 255 symbols. Figure 6 The overall structure of the circuit VDF8192 (,△,) in the figure above is a 256-symbol automaton, in which the symbol update is nested in a VDF32 timing calculation circuit. More specifically, the attached Figure 2 The S(△) logic unit corresponds to the attached Figure 6 The VDF32 (A255⊕A0, △, salt) in the figure above is attached Figure 6 The hardware implementation of the specific automaton model of VDF32 (A255⊕A0, △, salt) corresponds to the attached Figure 7 VDF32(st

[255] , 13, salt[0]). Figure 7 The actual synthesis result on a certain FPGA is fmax of 15.42MHz. Figure 6 The following circuit diagram of VDF8192 -1 It is actually a parallel circuit with a width of 255, where each parallel unit is VDF32 -1 (, △, salt). More specifically, Figure 2 255 (here b is defined as 255) S -1 (△)Logic unit corresponding to the attachment Figure 6 The 255 VDF32 in the figure below -1 (,△,salt),Attachment Figure 6 255 VDF32 -1 The hardware implementation of the specific automaton model of (, △, salt) corresponds to the attached Figure 8 255 VDF32 -8 (st[i], 13, salt[0]), where i ranges from 1 to 255. Figure 8 VDF32 -8(,13,) The actual integrated effect on a certain FPGA is fmax of 45.37Mhz. It should be noted that because the △ particles are generally set to be relatively large, theoretically, the attached Figure 6 The following circuit diagram of VDF8192 -1 The computational delay overhead of ⊕ can be ignored. In order to reduce the wiring overhead of hardware such as FPGA, it is recommended to implement the computation of ⊕ outside the computing chip. Figure 8 Not including attachment Figure 6 The following figure shows 255 ⊕ operations.

[0201] It should be noted that Figure 2 The b S(△) cascade structure in the figure above is only a principle explanation of the present invention and is used to evaluate the delay of b S(△). From the calculation path analysis from Ab to A2b-1, we know that only one S(△) is active at each moment, and the input and output of the other S(△) do not change. Therefore, industrial implementations are all based on the attached Figure 6 The figure above contains an implementation of S(△) logic. More specifically, the computing core of VDF8192 is a VDF32. Similarly, the computing core of VDF2M is still a VDF32. If the VDF8192 module and VDF2M are implemented in multiple cores and multiple threads, it will be found that they can only work with one physical core and one thread. If VDF8192 is implemented in multiple cores and multiple threads, it will be found that it can only work with one physical core and one thread. -1 (,△*255,) and VDF2M -1 (,△*255*255,) you will find that the calculation delay is basically equal to VDF32 -1 (,△,). VDF8192 -1 (,△*255,) is implemented by first starting 255 physical cores and 255 threads at the same time to implement 255 VDF32 without any communication. -1 (,△,),After fence synchronization, run the attached Figure 2 The following figure ⊕ logic is enough. Because VDF2M -1 255 parallel VDF8192 -1 Therefore, VDF2M -1 (,△*255*255,) is implemented by first starting 255*255 physical cores and 255*255 threads at the same time to implement 255*255 VDF32 without any communication. -1 (,△,), after fence synchronization, refer to the attached Figure 2 Follow the instructions in the figure below to do two layers of ⊕ logic. First do VDF32 -1 Associated ⊕ logical operation, then VDF8192 -1 The associated ⊕ logical operation. The above VDF8192 -1 and VDF2M -1The statement of multi-core multi-threaded implementation can prove that the inventive concept is a VDF serial calculation circuit VDF -1 The inventive essence of parallel computing circuits.

[0202] Through the above analysis and FPGA synthesis of fmax, VDF8192 (255*13*10 9 , ) and VDF8192 -1 (,255*13*10 9 ,) calculation delay, where △ is 13*10 9 .

[0203] VDF8192(,255*13*10 9 ,) Delay: 255*13*10 9 / 13 / 15.42MHz=16536.96 seconds;

[0204] VDF8192 -1 (,255*13*10 9 ,) Delay: 255*13*10 9 / 8 / 255 / 13 / 45.37Mhz=2.76 seconds.

[0205] Therefore, the actual gain is 6002.3 (16536.96 / 2.76), which is basically consistent with the theoretical gain of 8823 (34.6*255).

[0206] Because VDF32 -16 The fmax of (, 13,) is 27.23Mhz, so VDF32 is used -16 Module VDF8192 -1 (,255*13*10 9 ,) Calculation delay: 255*13*10 9 / 16 / 255 / 13 / 27.23Mhz=2.30 seconds; therefore, the actual gain increase is 7204.8 (16536.96 / 2.30), which also meets the third parameter guideline.

[0207] VDF8192 and VDF8192 -1 The hardware implementation principle and effect can be found in the attached Figure 6 In order to solve VDF32 and multiple VDF32 -1 Based on the principle of hardware reuse, the inventors recommend VDF8192 and VDF8192 -1 As an industrial hardware module standard, VDF8192 contains 1 VDF32 computing circuit, VDF8192 -1 Contains 255 VDF32s working in parallel-1 It should be noted that when the a parameter corresponding to VDF32 is not greater than 254, the VDF8192 module directly supports the calculation task of VDF32 (initial state, t) outputting a+1 intermediate states. -1 Directly supports a+1 VDF32 -1 Verify the subtask; if a is greater than 254, just add the pause output step. The specific implementation of multiplexing is attached. Figure 7 “cmd[0]?St[0]:0”, so the reuse design is simple and feasible.

[0208] Attached Figure 7 and attached Figure 8 Yes Figure 6 Corresponding to a specific engineering construction drawing, the basic principle is composed of VDF32 (, 13,) and VDF32 -8 (,13,) A larger state machine constructed by modules. In order to allow the core modules to be overclocked independently, Figure 7 Corresponding to VDF8192 module and attached Figure 8 Corresponding to VDF8192 -1 The modules are all designed with independent clocks, and the intermediate results are implemented by register buffers. The logic of register iteration update is the same as VDF32 or VDF32 -1 One method of implementing an independent clock is to associate a synchronization bit with a cmd backup register for the read and write of cmd, and the read and write control timing refers to the SPI asynchronous bus. Figure 7 Use Verilog language to complete the available VDF8192 module entity implementation according to the attached Figure 8 Guide to use Verilog language to complete the available VDF8192 -1 Module entity implementation. Figure 7 The corresponding VDF8192 module can complete the attached Figure 6 The above figure shows the calculation results of 255 symbols. The actual call and result utilization need to be slightly adjusted. Figure 8 Corresponding VDF8192 -1 Module Substantial Completion Figure 6 The following figure excludes 255 VDF32 (, △,) except ⊕ -1 The operation logic needs to be adjusted when the actual call is made. First, the ModelsimSE simulation test is performed, and the inventor designs and debugs the serial communication and control module. The serial port module uses a custom instruction set (see the attached Fig.10 ) combination can be used for VDF8192 and VDF8192 -1The module realizes functions such as initial state function initialization, control of operation, control of pause, and serial port output of operation results. The inventor integrates the serial communication and control module, VDF8192 module and VDF8192 -1 modules on the FPGA. Connect to this FPGA through the computer serial port. The hardware test results are exactly the same as the simulation results, thus proving that the VDF8192 module and VDF8192 -1 modules can be engineered and standardized.

[0209] VDF2M and VDF2M -1 's hardware circuit and delay index can be fully referenced in the appendix Figure 6 for implementation and evaluation. Only need to replace the VDF32 module and VDF32 -1 module with VDF8192 and VDF8192 -1 即可。VDF2M实质是一个VDF8192和255个8192字节寄存器组成,所属寄存器更新的逻辑是VDF2M({A255,A254,A0},△,salt)={VDF8192(A255⊕A0,△,salt),A255,…,A1}。VDF2M -1 's core logic is 255 parallel VDF8192 -1 hardware logics.

[0210] It should be noted that when k related to VDF8192 and VDF2M is equal to 1, patches need to be made to the unencrypted information, and there is no encoded symbol for 1 / 256; a reference solution is to first perform modulo-two addition of the latest encoding on the unencoded area, and then encrypt it in the EBC mode according to the VDF32(, 128*13*16*2, salt) mode.

[0211] Next, a specific engineering implementation detail is presented. Appendix Figure 7 and Appendix Figure 8 's entity boxes represent the actual register group and actual combinational logic module of the automatic state machine, and its dashed box represents the guidance for controlling the movement of the state machine.

[0212] The basic architecture is: a state machine controlled by {cmd, ping-pong bit, pause bit, k < k_end, t < t_end}, and the closed-loop calculation circuit is the core of the module. Appendix Figure 7 is the hardware construction drawing of VDF8192, and the main structure is a closed-loop calculation circuit composed of st

[255] <- VDF32(st

[255] , 13, salt[0]). Appendix Figure 8 : is the hardware construction drawing of VDF8192 -1 's hardware construction drawing, and the main structure is 255 st[i] <- VDF32 -1A closed-loop computing circuit composed of (st[i], 13 * 8, salt[0]), where i ranges from 1 to 255. VDF8192 is only associated with cmd = 1, VDF8192 -1 is only associated with cmd = 2.

[0213] Inputs: {cmd[2:0], in256[255:0], fast_clk}, where fast_clk is an independent clock, cmd is asynchronous control, and in256 input is connected to salt and st

[255] ;

[0214] Main outputs: {oldest[255:0], newest[255:0], pause bit, t, k};

[0215] Internal registers of the module: pause bit, ping-pong bit, t, k; {St

[255] , …, St[1], St[0]}.

[0216] Basic working principle of the module: 1.灌入输入参数到内部寄存器堆灌 through cmd and in256, 2.启动或暂停闭环计算电路 through cmd, 3.输出最终结果或中间结果到输出端 through cmd. Similar to the background VDF, overclocking the module through fast_clk is encouraged.

[0217] VDF8192 -1 The working steps of the module are basically the same as those of the VDF8192 module; the working steps of the VDF8192 module are as follows.

[0218] 1. First, set in256, cmd = 4, and set {k <- 0, t <- 0, k_end <- 255, t_end <- △ / 13, salt <- the initial state of salt};

[0219] 2. Perform in256, cmd = 6, and cmd = 5 operations continuously 255 times to initialize the 255 blocks of input of VDF8192 to {st

[255] , …… st[1]};

[0220] 3. cmd = 7, start the closed-loop computing circuit;

[0221] 4. Determine whether the computing task is completed: The judgment criterion is the k < k_end flag bit, and the judgment method is interruption or timed query technology;

[0222] 5. Computing end or breakpoint protection: Perform cmd = 6 and cmd = 5 commands continuously 255 times, and output all the results of st from the oldest end;

[0223] The above module standards have functions such as task suspension, breakpoint protection, and breakpoint restart, and can realize the migration of computing tasks between hardware modules.

[0224] It is necessary to add that Figure 8 Corresponding VDF8192 -1 The hardware module is a version that removes 255 ⊕ operations. Figure 8 The computing unit is 255 VDF32 -1 Hardware computing unit, corresponding to the attached Fig.10 cmd[2]. Because there are no 255 ⊕ operations, the register and combinational circuit overhead is saved, and the clock is faster during the evaluation phase. Because executing 255 ⊕ operations is an extremely low-frequency event, the operation of the low-frequency event has little effect on the total delay even if it is executed outside the chip. Therefore, removing the version with 255 ⊕ operations does not affect industrial applications.

[0225] Corresponding attachment Fig.10 cmd[3], complete VDF8192 -1 The hardware module also requires {BakSt

[255] , ..., BakSt[0]} and 255 ⊕ operators, where {BakSt

[255] , ..., BakSt[0]} is 256 32-byte registers;

[0226] According to the attached Figure 2 The instructions add the following control relationship:

[0227] When t == 0: execute {Bakst

[255] ,…,Bakst[0]}<-{St

[255] ,…,St[0]}

[0228] When t>=t_end: execute

[0229] {St

[255] ,…,St[0]}<-{BakSt[0],St

[255] ^BakSt

[254] ,…,St[1]^BakSt[0]}.

[0230] To better understand the attached Figure 7 The corresponding hardware module is called and the calculation process is described as an example of VDF8192 ({256, 255, ..., 2, 1}, 255*13*10 9 , the actual calling process of salt), where △ is 13*10 9 First, the computer sends the initial state and related control commands to the corresponding rx pin of EP3C25Q240 through the serial port. The serial port decoding module inside EP3C25Q240 will extract the data and control commands, which will be connected to the VDF8192 module inside EP3C25Q240, and the VDF8192 module will perform the following 4 steps.

[0231] Step 1: cmd = 4 Related command sequence: Initialization

[0232] {k<-0,t<-0,k_end<-255,t_end<-△ / 13};

[0233] Step 2: cmd=5 related instruction sequence, initialize 255 st sequences through right shift instruction, and the final filling result is as follows;

[0234] {st

[255] , st

[254] ,…,st[0]}<={256,255,…,2,1};

[0235] Step 3: First set cmd=7, then execute cmd=1 to start the VDF operation mode. According to the state changes of t and k, the changes of {t, k, st} are tracked in detail below to describe the detailed working process of the state automaton.

[0236] tk{st

[255] ,st

[254] ,…,st[1],st[0]}:

[0237] 0 0{256⊕1,256,…,3,2}

[0238] 1 to △ / 13 0{VDF32((256⊕1),t),256,…,2}, where A256=

[0239] VDF32((256⊕1),△ / 13)

[0240] 0 1{(A256⊕2),A256,…,3}

[0241] 1 to △ / 13 1 {VDF32((A256⊕2),t),A256,…,3}, where A257=VDF32((A256⊕2),△ / 13)

[0242] …

[0243] 0 254{(A509⊕255),A509,…,A256,256}

[0244] 1 to △ / 13 254 {VDF32((A509⊕255),t),A509,…,A256,256},

[0245] Where A510 = VDF32 ((A509⊕255),△ / 13)

[0246] Therefore, the result of {st

[255] ,…,st[0]} is {A510,A509,…,A256,256}.

[0247] 0 255 At this time, k>=k_end, so stop the calculation and stop updating {t,k,st[*]}.

[0248] Here, the time consumed in step 3 is calculated, and the main frequency of 15.42MHz corresponds to 16536.96 seconds;

[0249] Step 4: Detect k>=k_end, VDF calculation ends, pass cmd=7, and then execute 255 cycles of cmd=5, and pass the attached Figure 7 The Oldest hardware wiring outputs the register group {A510, A509, …, A256, 256}.

[0250] Finally, the serial port receiving end on the computer is connected through the attached Fig. 9 The serial port tx output is received and decoded to {A510, ..., A256, 256}. The above results have been verified by physical hardware, which proves that the attached Figure 7 The VDF8192 hardware logic can be implemented on an FPGA.

[0251] The above 4 steps are Figure 7 The VDF8192 hardware logic call is implemented through the cmd register of the hardware module. A test call platform includes three hardware, a computer with universal serial port debugging software installed, a USB serial port communication line, and an EP3C25Q240 with the program downloaded. The EP3C25Q240 is connected to the computer through the serial port communication line, and the hardware program module of the EP3C25Q240 corresponds to the attached Fig. 9 A complete VDF8192 hardware module is attached Fig. 9 The test calling method of the general serial port debugging software is to send serial port commands to the EP3C25Q240 hardware through the serial port debugging software window. The return of EP3C25Q240 can be directly displayed by the serial port debugging software window. The definition of the serial port command set can be directly referred to in the attached Fig.10 , the serial port instruction set is EP3C25Q240 corresponding to the attached Fig. 9 After the module receives and decodes, some operation codes and address codes control the cmd control register of VDF8192.

[0252] Integrate VDF8192 hardware module and / or VDF8192 -1 Hardware module serial port chip

[0253] Chip pins: {rx, tx, clk_uart, fast_clk_fwd and / or fast_clk_inv}; chip internal structure: serial port decoder, instruction set decoding and execution, 256-bit input register, page address register, several VDF or VDF-1 Module, output register and multi-byte serial port sending component. For more specific reference implementation, see the attached Fig. 9 There are several VDF8192 or VDF8192 in the middle area of ​​the chip. -1 Module, each module is assigned an address recorded as id, VDF8192 module is associated with fast_clk_fwd, VDF8192 -1 Associated with fast_clk_inv. The rx signal is implemented through the serial port decoding and instruction decoding execution module to realize the data input, start or pause logic of the specified ID module, and output {oldest[255:0], newest[255:0], pause bit, t, k, ...} in the pause state; the output function is realized by the multi-byte automatic encoder and the serial port encoding component.

[0254] Attached Fig.10 System instruction set: Instructions are mainly divided into 4 categories, 1. Extract 7-bit data and update it to the input register, 2. Asynchronous write cmd[id] register, 3. Output of ID module is output to tx through serial port encoding, input register updates ID page number bit and other instructions, 4. Other instructions. See the serial port instruction set table for details.

[0255] The technical effects of serial port chips, especially standardized chips:

[0256] 1) Hierarchical structure concept: the software call layer and the hardware implementation layer are independent.

[0257] 2) The chip has very few pins, which is very friendly to chip packaging and electronic device manufacturing.

[0258] 3) Only need to adjust Clk_uart clock, the chip can be called as medium-low speed peripheral, and the chip can also be called as high-speed chip.

[0259] 4) Support multi-chip parallel connection. Parallel connection method: 1. All pins are connected in parallel, 2. The addresses of modules in each chip do not conflict. The effect of parallel connection is conducive to the standardization of chip use and chip yield.

[0260] The inventors have made the following statements based on the above Figure 7 , Attachment Figure 8 The guide uses Verilog to implement the VDF8192 module and VDF8192 -1 The module is first tested by Modelsim SE software simulation, and then verified and evaluated by clk indicators on FPGA. The engineering implementation and verification results are: using FPGA device EP3C25Q240 to synthesize and verify the attached Fig. 9 The corresponding serial port chip contains three logic modules: serial port integrated module, VDF, VDF -1 , 3 independent clocks.

[0261] One VDF8192 (core logic VDF32 (, 13, salt[0]) module) consumes 2525 cells, fmax = 15.42Mhz; the other VDF8192 (core logic VDF32 (, 13*2, salt[0]) module) consumes 4554 cells, fmax = 7.08Mhz; the register groups {St

[254] ,…,St[0]} of the two VDF8192s are automatically synthesized into RAM implementation inside the FPGA.

[0262] In addition, one of them is VDF8192 -1 (Core logic 4 VDF32 -8 (, 13, salt[0]) module), consuming 13735 cells, fmax = 45.37M. Among them, 1 set of serial port decoding, execution, encoder, and serial port decoding modules consume 1464 cells, fmax = 134.0Mhz.

[0263] The following is based on the attached Fig. 9 The above statement summarizes the main structure of the serial port chip, refer to the attached Fig. 9 The chip includes the following two computing modules and two components: the VDF8192 computing module based on state automata and the VDF8192 computing module based on state automata. -1 Calculation module; see attached Fig. 9 , the two components are respectively, a serial port decoding and instruction decoding execution component and a multifunctional automatic encoding and output component; according to the signal control flow direction, the decomposition structure of the serial port decoding and instruction decoding execution component is, in order, a serial port decoding submodule connected to the rx pin, an instruction decoding and execution submodule, and a 256-bit input register submodule; according to the signal control flow direction, the decomposition structure of the multifunctional automatic encoding and output component is, in order, an output buffer register submodule, a multi-byte automatic encoder submodule, and a serial port encoding output submodule connected to the tx pin; the mutual control relationship between modules and components refers to the statement in the content of the invention.

[0264] The above embodiment VDF8192 module standard and VDF8192 -1 The modularity standard can be extended to VDFs in general and VDFs in -1 Module. Embodiments integrate VDF8192 and / or VDF8192 -1 The serial port chip can prove multiple VDFs or VDFs in general sense -1 The module can be integrated into the serial port control chip. In addition, through asynchronous communication techniques, VDF and VDF -1 Cross-clock design is entirely feasible.

[0265] The inventors believe that the standardized VDF8192 and / or VDF8192 -1 In addition to being controlled and called by the serial port logic, the VDF8192 and / or VDF8192 -1 The module can also be called by general processors as a standard coprocessor component; the main idea is VDF8192 and / or VDF8192 -1 The module input, output and cmd register settings are implemented by a general purpose processor, and the addresses of the coprocessor correspond to different VDF8192 and / or VDF8192 -1 entity.

[0266] Example Bitcoin time-synchronization blockchain system with VDF clock function

[0267] See attached Fig.14 , the structure of the blockchain system is defined as follows:

[0268] The 128-byte block header includes: the previous block hash, Merkel tree, consensus evidence, blockchain timestamp, time parameter t, latest timing data, X;

[0269] 2. Block hash = VDF32(VDF32(VDF32(VDF32(X, salt1, △), salt2, △), salt3, △), salt4, △);

[0270] Where {salt1, salt2, salt3, salt4} = block header minus X, △ is 256*13*16;

[0271] 3. X = VDF (previous block, timing data, t), where the timing data is the bitcoin block hash.

[0272] The main structure of this embodiment is that the new block hash is equal to VDF32 (VDF32 (previous block hash, t, bitcoin authorization information), smaller △, new block header information); this structure can prove that two effects are achieved,

[0273] 1. Construct a new block and associate it with VDF32(previous block hash, t);

[0274] 2. Input VDF32(,t,) through salt to associate the timing information of Bitcoin.

[0275] The inventor believes that the VDF (previous block information, t, trusted timing information) of the present invention can enable trusted time measurement for the blockchain system in the digital world. Trusted timing information is equivalent to GPS or Beidou timing in the real world, and VDF (, t,) is equivalent to the clock in the real world.

[0276] Generally, the block hash of a blockchain is defined as hash (block header), but the feature of this embodiment is to directly use VDF32 (, salt, △) to construct the block hash, and it is obviously not necessary to define other cryptographic hashes. In order to obtain the above two effects that are basically the same as this embodiment, the method of defining associations should not be limited to this embodiment. For example, VDF (previous block hash, t, bitcoin timing information) is used as an item of a new block header or an item of a new blockchain record.

[0277] VDF32 g -1 Design process and sparse tap selection criteria

[0278] g -1 (i) is a typical sparse tap component with an input and output width of 16 bits, and its Verilog code is {({i[3:0],i[14:4]}&{~i[7:0],~i[14:8]})^i[14:0],i

[15] }. The following is a detailed description of the computer-based optimization criteria and optimization method, which can be used as the selection criteria and selection guide for the sparse tap component.

[0279] The inventor first defines g -1 There are 3 necessary standards:

[0280] (1) g -1 The inverse transform of exists;

[0281] (2) g -1 Each output bit is only associated with 2 or 3 input bits;

[0282] (3) Each output bit of g is associated with all or substantially all input bits;

[0283] Inventor redefines g -1 2 recommended standards;

[0284] (4) For g, the fastest and most economical circuit implementation should be given; the fastest means that the circuit achieves the minimum delay index, that is, The design of a gate delay is economical in the sense that the circuit implementation does not include the implementation of special consumption circuits such as looking up a large table.

[0285] (5) In order to be compatible with existing industrial practices and computer coding practices, the input and output widths of g should be 8, 16, 32, 64, 128 bits, or 256 bits.

[0286] When -1 When the input and output width is 15 bits, the inventors found a number of designs that meet the above conditions (1) to (4). The specific method is to first construct a function expression that meets condition (2), such as the expression g -1 (x, i, j) = ~(x>>>i) & (x>>>j) ⊕ x, where >>> is the cyclic shift symbol. Exhaust all possible combinations of i and j, 26 of which meet condition (1). First eliminate the g that does not meet (3) -1 (x, i, j), such as g -1 (x, 3, 9) = ~ (x>>>3) & (x>>>9) ⊕ x. Each output bit of g(x) is associated with only 5 input bits. Then remove the g that is suspected of not meeting (4). -1 (x, i, j), such as g -1 The algebraic expression for g(x) corresponding to (x, 4, 8) = ~(x>>>4) & (x>>>8)⊕x is relatively complex. Specifically, the output of g(x) is equal to 15 small terms modulo 2 addition. -1 (x, 8, 4) = ~(x>>>8) & (x>>>4)⊕x meets (1) to (5), so g -1 (x, 8, 4) is a preferred result. The expression of the lowest bit of g({t14, t13, ..., t0}) is t0⊕t4⊕(t4&t8)⊕(t4&t12)⊕(t1&t4&t12)⊕(t4&t5&t12)⊕(t4&t5&t9&t12)⊕(t4&t5&t12&t13)⊕(t2&t4&t5&t12&t13)⊕(t4&t5&t6&t 12&t13)⊕(t4&t5&t6&t10&t12&t13)⊕(t4&t5&t6&t12&t13&t14)⊕(t3&t4&t5&t6&t12&t13&t14)⊕(t4&t5&t6&t7&t12&t13&t14)⊕(t4&t5&t6&t7&t12&t13&t14)⊕(t4&t5&t6&t7&t11&t12&t13&t14). Through the cyclic shift property, the remaining output bits of g can also be deduced from the above formula. The above 15 small terms expression can prove that each input of g is associated with all 15 input bits; the circuit built by the binary tree can prove that only 5 clks (1+4) are needed to complete the calculation of g based on the small term expression, that is, g -1 (x, 8, 4) = ~(x>>>8)&(x>>>4)⊕x complies with item (5).

[0287] When -1 When the input and output width is 16 bits, no g is found after exhausting all combinations of i and j. -1(x, i, j) = ~(x>>>i) & (x>>>j)⊕x satisfies the above condition (1). More specifically, for g -1 (x, i, j) model, when the number of input and output bits is equal to odd lengths such as 15, 17, 31, etc., it is found that many g -1 (x, i, j) meets conditions (1) to (5), but when the number of input and output bits is an even number such as 8, 10, or 16, all g -1 (x, i, j) does not meet condition (1).

[0288] Under the premise that the input and output width is 16 bits and meets condition (2), the inventors try to construct more possible g -1 (x) model, the main idea is to use a limited combination of operations such as shift instructions, circular shift instructions, exhaustive bit inversion instructions, XOR instructions, and AND instructions; then for these g that meet condition (2) -1 (x) Screening of conditions (1) to (5) and comparing g -1 (x[15:0], 8, 4) fully meets the above five criteria, and the computer selection results of 16-bit functions are not ideal. Therefore, based on the compromise idea in industrial design, the inventor uses g -1 (x[15:0], 8, 4) and 1 pass-through bit are spliced ​​into the g component for the sparse tap of VDF32; refer to the clk consumption standard of the term explanation content of "gate delay" in the specific implementation method section, attached Figure 5 Corresponding to 16-bit g -1 and g hardware wiring diagram, attached Figure 5 The computational flow graph of g -1 The circuit delay is equal to 2 clk, while the maximum circuit delay of g can reach 5 clk. Figure 5 It can also be used as a guide for writing hardware code. In addition, salt[0] is combined with the only pass-through bit through the ⊕ operation. Because the 16-bit g consumes 2 clks, salt[0] controls VDF32 or VDF32 -1 The actual overhead is submerged in 2 clks.

[0289] Benchmarking Parameter Guidelines 1, compared to x t Or the S component of discrete logarithm function, the inventors prefer sparse tap design component or S component of F(A,B) structure. -t and discrete logarithms are recognized to be unidirectional, but how to evaluate x -tThe time consumption of operations and discrete logarithm operations is very difficult, and the difficulty lies in proving the fact that it is not easy to be accelerated in parallel. According to the evaluation and analysis results stated in this description, for example, the design indicator of VDF32 is 8 clks per symbol, among which the key component g(x[15:0], 8, 4) of level 15 has reached the theoretical minimum value of 5 clks. The sparse tap design and F(A, B) structure can be evaluated by the evaluation model, so it basically meets the first parameter guideline.

[0290] The basic method means to construct VDF using one of the four components and any combination thereof. The following VDF1, VDF3, VDF1_log and VDF2_log embodiments can prove that only one component is sufficient to construct VDF. The remaining embodiments can also construct VDF using a combination of two component technologies. The final criterion for judging VDF is that the time delay of the critical path is significantly greater than that of VDF. -1 Critical path time delay. VDF1, VDF2 and VDF3 are constructed using the reverse logic function x t VDF implementation of the component. t It refers to the t that can ensure the minimum nonlinearity and reversibility on a finite field or finite ring. It is generally believed that x -t X t One more hardware Euclidean inverse operation. Therefore, it is generally preferred to use a modulus prime number that is very favorable for modular operations; for the construction of finite fields, x is generally selected. 127 The finite field constructed by special three-term irreducible polynomials such as ⊕X⊕1. The following parameters actually describe the circuit, and the numbering related to the parameters has no restriction on the execution order.

[0291] VDF1({A0},salt,t),

[0292] 1. The level is the number of symbols. 1. The symbol unit 255 bits actually represents modulo 2. 255 -19 non-zero elements.

[0293] 2. F(Ai)=Ai+1=(temp-1+salti)mod(2 255 -20)+1, where temp=(Ai -5 Mod(2 255 -19);

[0294] 3. The recursive method of defining salt is additive mixed remainder, that is, salti = (salti + C) mod 2 255;

[0295] 4. Run t beats to output {At}.

[0296] VDF2({A7,…,A0},t),

[0297] 1. Symbol unit 31bit, actually represents 2 31 -1-element field, number of symbols: 8;

[0298] 2. Feedback function Ai+1=F(Ai,Ai-7),

[0299] Where F(A,B)=(S0(A)+B) 5 mod2 31 -1,

[0300] The nonlinear transformation S0(A)=(A>>14)⊕A⊕20051114 is defined;

[0301] 3. Run t beats to output {At+7,…,At}

[0302] VDF3({A0},salt,t),

[0303] 1. Symbol unit 127bit, actual representation 2 127 The non-zero element in the meta-domain has a symbol number of 1;

[0304] 2. Feedback function Ai+1=F(Ai); where F(A)=(A 3 mod(x 127 ⊕X⊕1)>>>7)⊕salt, >>> represents the right circular shift operation;

[0305] 3. Run t beats to output {At}.

[0306] VDF1_log, VDF1_log and VDF1_log are VDF implementations whose functions are discrete logarithms. The main idea is to create a finite field first, define the symbol space as non-zero elements on the finite field, and adjust the domain every time you do discrete logarithms, because the discrete logarithm of 1 is 0, but 0 has no discrete logarithm. It is recommended to select different primitive elements by the latest symbol or salt control.

[0307] VDF1_log({A0},salt,t)

[0308] 1) Specification: Level 1, symbol unit 255bit, actual representation modulo 2 255 -19 non-zero elements;

[0309] 2) F(Ai) = Ai + 1 = 1 + log salti控选一个本原元 Ai;

[0310] 3) The recursive method of defining salt is additive mixed remainder, that is, salti = (salti + C) mod 2 255 ;

[0311] 4) Run t beats to output {At}.

[0312] VDF2_log({A0}, salt, t),

[0313] 1) Salt and initial state are both, 2 127 The domain is not zero;

[0314] 2) Shift register parameter, symbol unit 127bit, actually represents 2 127 The domain is non-zero, and the number of symbols is 1;

[0315] 3) Field construction polynomial x 127 ⊕X⊕1;

[0316] 4) Ai+1<=log salti控选一个本原元 Ai +1 ;

[0317] 5) Salti<=salti+1;

[0318] 6) Follow steps 3 and 4 to calculate t beats and output {At}.

[0319] VDF3_log({A3,A2,A1,A0},t), see Appendix Fig.13

[0320] 1) The symbol unit is 61 bits, which actually represents 2 61 Meta domain, number of symbols 4;

[0321] 2) Field construction polynomial, x61⊕x16⊕x15⊕x⊕1;

[0322] 3) Feedback function Ai+1=F(Ai,Ai-3);

[0323] Where F(A,B)=1+log Ai控选一个本原元 Ai-3;

[0324] 4) Run t beats and output {At+3,At+2,At+1,At}.

[0325] The F(A,B) structure is the structural design method that the inventors recommend as a priority. The F(A,B) structure described in the present invention should not be limited to the recursive monomer F(A,B)=S(A)⊕B or the recursive monomer F(A,B)=S(A⊕B). The main idea of ​​the A'=F(A,B) structure also includes the combination of multiple F(A,B) structures, but it is necessary to ensure that the distance between the latest symbol near A and the earliest symbol near B is as large as possible; the purpose and effect of the main idea design are stated below; because the larger the distance, the reverse logic B=F -1 (A', A) implements VDF -1The greater the parallel capability of the functional modules, the greater the design gain. The structural compounding method can refer to the following about the attached Fig.11 The main technical features of the dual-body compound and its wider promotion are that the latest symbol of the active motion subject combined with the latest symbol of the controlled motion subject exerts an influence on the new symbol of the controlled motion subject, and the compound motion should have entropy preservation, that is, VDF -1 Existence, VDF -1 Corresponding to the reverse logic B = F -1 (A', A) parallel circuit.

[0326] Attached Fig. 9 Corresponding to the embodiment in the above figure, the symbol A20 of the M-level F (A, B) type nonlinear recursive state machine controls the movement of the N-level F (A, B) type nonlinear recursive state machine.

[0327] Attached Fig. 9 The latest symbolic recursive expression of the above graph is:

[0328] {A2 M-1 ,…,A20}←{S2(A2 M-1 )⊕A20,A2 M-1 ,…,A21};

[0329] {A1 N-1 ,…,A10}←{S1(A1 N-1 )⊕A10⊕A20,A1 N-1 ,…,A11};

[0330] Attached Fig. 9 Corresponding to the embodiment in the figure below, the movement of the M-level F (A, B) type linear recursive state machine is controlled by the symbol A10 of the N-level F (A, B) type nonlinear recursive state machine.

[0331] Attached Fig. 9 The latest symbolic recursive expression of the following graph is:

[0332] {A2 M-1 ,…,A20}←{A2 M-1 ⊕A20⊕A10,A2 M-1 ,…,A21};

[0333] {A1 N-1 ,…,A10}←{S1(A1 N-1 ⊕A10),A1 N-1 ,…,A11};

[0334] Attached Fig.11In the corresponding two recursive models, the latest symbol of the F(A, B) recursive state machine of the active motion is combined with the latest symbol of the F(A, B) recursive state machine of the controlled motion, which affects the new symbol of the F(A, B) recursive state machine of the controlled motion. Fig.11 The dual-body composite structure continues to be extended. For example, the motion of two recursive state machines is mutually controlled by two latest symbols. The design idea based on controlled and mutually controlled motion continues to be extended, and the scale of the two recursive state machines is expanded to 3 or even more. Based on the design results of the above main ideas, more complex F(A,B) structures can be designed. For example, a, b, c, and d are the mutual control of four recursive state machines of type F(A,B)=S(A⊕B), where the latest sign of a controls the motion of b, the latest sign of b controls the motion of c, the latest sign of c controls the motion of d, and the latest sign of d controls the motion of a. All of the above control operations are entropy-preserving, that is, VDF -1 exist.

[0335] All of the above controlled motion, mutually controlled motion, multiple structure composite and other designs conform to the broad definition of F(A,B) structure and the main idea described above, and should be considered as equivalent designs to the single F(A,B) structure.

[0336] Attached Figure 3 The VDF32(,1,) recursive relation actually describes the VDF32 circuit. Similarly, Fig.11 The state machine model does not include the line delay consumption and the update register consumption; Fig.11 The derived composite design is essentially to describe the VDF circuit using a recursive state machine model. -1 The (A', A) recurrence relation actually corresponds to VDF -1 Circuits, more specifically parallel structure circuits.

[0337] Finally, the two criteria for judging the terminology of the F(A,B) structure are as follows: Fig.11 The composite type of two F(A,B) structures conforms to the above A'=F(A,B) structure design, and its reverse B=F -1 (A', A) can be accelerated by parallel hardware logic, so it meets the two criteria, namely, the VDF calculation delay is greater than VDF -1 Compute the delayed property.

[0338] VDF and VDF of the present invention -1 The industrial implementation of the module is not limited to the common electromagnetic-based ASIC, FPGA, multi-core CPU, GPU and other implementation methods. Future technological breakthroughs will use VDF or VDF based on photon or quantum principles. -1 Functional computing chips or devices also fall within the scope of protection.

[0339] In order to better understand the industrial ecology based on the VDF of the present invention, the inventor draws the attached Fig.15 As a guide for application.

[0340] Attached Fig.15 The main contents include the blockchain system enabled by the VDF of the present invention, the random beacon portal based on VDF32, the storage service terminal that provides VDF8192 and VDF2M copy proof download services, and the cloud computing terminal that provides computing power services. There are three ways for the VDF of the present invention to enable the blockchain system: 1. The consensus result is determined by the VDF32 result, 2. The blockchain token is associated with VDF32 (, t,), 3. The new block is associated with VDF32 (previous block information, t). A cloud computing terminal is a kind of terminal that can provide VDF or VDF for weak computing terminals such as mobile phones and pads. -1 The computing power server supported by computing power is attached Fig.15 The guidance of the mobile phone content shows that the original request first passes through the hiding module to perform appropriate hiding transformation on the original request calculation task. For the received response, the hidden elimination module on the mobile phone side eliminates the aforementioned hidden transformation through inverse transformation, and obtains the correct response result after elimination. The method and basic idea of ​​hiding and eliminating hiding are stated in the invention content.

[0341] Attached Fig.15 Indicates 3 common ways to achieve computing power, namely, 1. dedicated chips, 2. multi-core processors, especially multi-core processors or GPUs based on Intel's multimedia instruction set, and 3. Computing devices based on cloud computing terminals. These computing power implementation methods support the computing power requirements of a verification device and also support the decoding requirements of VDF copy proof data.

[0342] In order to illustrate the third-party support implementation of the VDF computing device or the VDF verification device, an embodiment of the verification device of VDF8192 is taken as an example.

[0343] The VDF8192 verification device consists of a software processing module and an Intel multi-core processor;

[0344] The software processing module includes a VDF8192 verification device submodule in addition to the business-related input submodule and output submodule, wherein the VDF8192 verification device submodule corresponds to the function of VDF8192 -1 Calculation; To implement VDF8192 -1 There are 4 options for calling the submodule of calculating VDF8192 verification device. Option 1 is to call the standard interface VDF8192 through the USB serial port. -1 Option 2 is to call the remote cloud computing terminal through the network, and option 3 is to call the local graphics card GPU computing resources to implement VDF8192 -1Option 4 is to use the multi-core multi-threading technology to call the Intel multi-core processor to implement VDF8192 -1 calculate;

[0345] The Intel multi-core processor, on the one hand, provides support for the operation of the software processing module, and on the other hand, provides multiple physical core support for calling option 4.

[0346] In summary, any of the calling options 1 to 3 of the embodiment belongs to the third-party support implementation method.

[0347] From the perspective of the encoded content, the medium involved in the present invention includes three situations: input, output or intermediate state; because the VDF of the present invention has entropy preservation, a logical output corresponds exactly to its inverse logical input; in addition to a intermediate state, the field protection and breakpoint protection data also belong to the category of the broad intermediate state. In short, with VDF and VDF -1 The initial state, result, intermediate state, field protection and breakpoint protection data associated with the module are all within the scope of protection. The data should be associated with or support the various industrial applications, computing devices, verification devices, and computing engines of the present invention as the standard. The relevant standards can be found in the attached Fig.15 Industrial ecological diagram. Examples of VDF outputs include VDF32 (blockchain entropy,) for beacon applications, and VDF2M (encoded blocks,) for replica proofs. -1 Output examples include the time capsule application VDF8192 -1 (The promised contents of the time capsule), Fig.15 The cloud terminal responds with the result. Related examples include the data of the time capsule application, which is VDF for the promiser. -1 (commitment, t), for the verifier, this data is exactly the initial state of VDF. Fig.15 The VDF encoding returned by the storage service terminal in response to the request is exactly VDF for the client -1 The initial state.

[0348] This article gives an example to illustrate how the media supports scene protection and breakpoint protection. As we all know, the CPU uses process scene protection and process scene recovery technology to enable one CPU core to serve multiple computing task requests through the CPU time-sharing, and can also achieve the migration of computing tasks of one CPU core to the CPU core of another physical core to continue running. Figure 7 The VDF8192 module and attached Figure 8 VDF8192 -1 The module can also realize similar functions as above. Figure 7Take the principle as an example. First, the calculation of VDF8192 is suspended through the cmd=6 series command, and then the on-site content of register group st and {k, t} is output to the medium as on-site protection and breakpoint protection data through the cmd=5 series command. At the appropriate time, the data stored in the medium is poured into a VDF8192 hardware logic with the same standard through the cmd=5 series command, and then the calculation task is reactivated with the cmd=1 series command. Therefore, the medium stores VDF or VDF -1 Calculation-related on-site protection and breakpoint protection data also fall within the protection scope of the present invention.

[0349] From the perspective of hardware entities, the medium of the present invention includes at least three entities: 1. Computer storage media, 2. Paper media, and 3. Cloud evidence storage services. Computer storage media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The physical entities of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices or any other non-transmission media, which can be used to store information that can be accessed by computing devices. Generally, VDF computing devices, VDF verification devices, and computing engine devices require computer storage media to realize applications such as buffering, exchange, and on-site protection of intermediate states of raw data and results. Typical entities of cloud evidence storage services include network hard disks, web-based network storage or network distribution servers. Finally, the following examples illustrate the industrial forms related to the medium: 1) VDF32-related data or a intermediate state data, printed on a paper carrier; 2) On a cloud storage server of a USB flash drive or a network hard disk, the storage content is the blockchain-related data enabled by the present invention.

[0350] Because the design parameters of VDF32, VDF8192, and VDF2M take into account the compromise and synthesis of the following three design indicators, it is not excessive to name them as the comprehensive construction results that take into account the three parameters; according to the three parameter guidelines mentioned in the content of the invention and the previous derivation process of VDF32 gain 8clk, the comprehensive technical indicators of the VDF series constructed by the present invention are: It can be preliminarily proved that VDF32, VDF8192, and VDF2M have strong anti-parallel capabilities in the calculation stage, and in the verification stage, VDF / VDF -1The design gain and industrial implementation gain are approximately equal to the amount of data bytes received during the verification phase. As we all know, many industrial indicators are mutually antagonistic, and one indicator can only be sacrificed in exchange for the other indicator to be better. The three indicators related to the embodiment of the present invention are no exception. The inventors have announced that the three indicators are:

[0351] 1) The greater the VDF's anti-parallel ability, the better. The best result is that it is proven that it cannot be optimized in parallel.

[0352] 2) The larger the theoretical design gain of VDF, the better, that is, the parameter guides the second quantitative indicator;

[0353] 3) To support hidden calculation salt period should not be too large.

[0354] The following analysis and reasoning by the inventors can prove that the above three indicators have properties that cannot be achieved at the same time, and there is indeed a antagonistic relationship in design.

[0355] 1) The input and output widths of VDF are the same. The above indicators 1 and 2 are mutually exclusive. The following is a comparison of the technical indicators of VDF32_4.5 and VDF32 standards.

[0356] 2) If the salt period is very large, for example, the salt is a recursive m-sequence, the VDF actually becomes a high-strength cryptographic sequence similar to grain. It can be considered that the VDF's theoretical anti-prediction and anti-analysis capabilities are increased, but the period is too large to support the hidden computing function; which is equivalent to the above 1 and 3 indicators being mutually antagonistic;

[0357] 3) If more latest symbols are added like VDF32, the theoretical value of VDF's anti-parallel capability will continue to increase, but the theoretical gain provided by the F(A,B) structure will decrease, which is equivalent to the above indicators 1 and 2 being mutually opposed;

[0358] 4) If VDF8192 or VDF2M uses the attached Fig.11 The two monomer F (A, B) composite structure has a more complex structure and expression. It can be considered that the VDF's anti-parallel ability and anti-cryptanalysis ability are increased, but the design gain is at least reduced to half of the original, which is equivalent to the above 1 and 2 indicators are mutually antagonistic.

[0359] Based on the research and analysis results of the above-mentioned adversarial relationship and the construction method of the parallel circuit corresponding to the serial circuit verification stage in the calculation stage, three new embodiments VDF32_4.5, VDF8192_126, and VDF8192_126_plus are given below. The main feature of these embodiments is that they sacrifice the gain index in exchange for stronger anti-parallel ability and anti-analysis and anti-prediction ability.

[0360] Example VDF32_4.5 is a VDF with the best anti-parallel design based on 255-bit sparse taps. Referring to the g function standard of the preferred VDF32 mentioned above, when the input and output are 255 bits, there is a high probability that g -1 (x, i, j) = ~(x>>>i)&(x>>>j)⊕x, where each output bit of g(x, i, j) is associated with 255 input bits, and the output of g(x) is equal to 255 small terms modulo 2 addition. According to the binary tree calculation structure, the theoretical calculation delay of g is 9 clks. -1 The calculation delay is 2 clks, so the design gain is 4.5 (9 / 2). As with the construction of the g function of the VDF32 standard, the 255-level g (x, i, j) adds a pass-through bit, and the pass-through bit is associated with the salt-related bit, thereby constructing a 32-byte input and output VDF32_4.5 (,, salt), and the gain of this VDF is also 4.5. The comparison result is that the VDF32 standard gain 34.6 index is better than the 4.5 index, but the VDF32_4.5 has the best anti-parallel ability, that is, it cannot be accelerated in parallel.

[0361] The following is the parameter description of VDF32_4.5. Ignoring the parameter encoding order, the parameter definitions are as follows.

[0362] Example: VDF32_4.5 (A0, t, salt)

[0363] The salt is 128 or 256 bits, and the movement method is basically the same as VDF32;

[0364] 1) t is equal to 16*k, where k is a natural number;

[0365] 2) 1 symbol, symbol width 256 bits;

[0366] 3) The recursive relation is VDF32_4.5(A,1)={g(A[254:0],i,j),A

[255] };

[0367] 4) Where g -1 (x,i,j)=(~(x>>>>i)&(x>>>j))⊕x;

[0368] 5) Every time the VDF moves 16 times, the salt is cyclically shifted left once; before the VDF moves, salt[0] is added modulo 2 with the symbol A;

[0369] Output: {At}.

[0370] See attached Fig.11The following figure defines a VDF8192_126 with similar main parameters to VDF8192; the main structure is a composite of two sets of F(A,B) structures, where N selects 127 symbols and M selects 129 symbols, and S2 corresponds to VDF32_4.5. The main parameters of VDF8192 are as follows. VDF8192_126_plus is an upgraded version of VDF8192_126, and its main feature is that the earliest symbols of the two sets of F(A,B) structures are exchanged and controlled with each other.

[0371] Example: VDF8192_126 ({A2 128 ,…,A20},{A1 126 ,…,A10}, t, salt), regardless of the order of parameter encoding, the parameters are defined as follows:

[0372] 1) t is equal to 200*△*k, where k is a smaller natural number;

[0373] 2) 129 symbols in the first group, 127 symbols in the second group, a total of 256 symbols, each symbol is 32 bytes;

[0374] 3) VDF8192_126({A2 128 ,…,A20},{A1 126 ,…,A10},△,salt) is:

[0375] First group: 128 ⊕A20⊕A10,A2 128 ,…,A21},

[0376] The second group: {VDF32_4.5(A1 126 ⊕A10,△,salt),A1 126 ,…,A11};

[0377] Output: 128+t ,…,A2 t}, 126+t ,…,A1 t}.

[0378] Example: VDF8192_126_plus({A2 128 ,…,A20},{A1 126 ,…,A10}, t, salt), regardless of the order of parameter encoding, the parameters are defined as follows:

[0379] 1) t is equal to 200*△*k, where k is a smaller natural number;

[0380] 2) 129 symbols in the first group, 127 symbols in the second group, a total of 256 symbols, each symbol is 32 bytes;

[0381] 3) VDF8192_126_plus({A2 128 ,…,A20},{A1 126 ,…,A10},△,salt) is:

[0382] First group: 128 ⊕A20⊕A10,A2 128 ,…,A21},

[0383] The second group: {VDF32_4.5(A1 126 ⊕A10⊕A21,△,salt),A1 126 ,…,A11};

[0384] Output: 128+t ,…,A2 t}, 126+t ,…,A1 t}.

[0385] To analyze VDF -1 The parallel capability of VDF8192_126 -1 The recursive relationship is summarized as follows:

[0386] The first set of reverse logic: A2 0+j ⊕A1 0+j ←A2 128+j ⊕A2 129+j ;

[0387] The second set of reverse logic: A1 0+i ←VDF32_4.5 -1 (A1 127+i ⊕A1 126+i ,△,salt).

[0388] Because the second group of VDF8192_126 does not control the first group of information, the second group contains the S(,△,) component, and the first group has no large delay calculation, so the calculation delay is contributed by the second group; calculate VDF8192_126 and VDF8192_126 -1 The method is to first calculate the second set of VDF or VDF -1 , then according to the second set of VDF or VDF -1 The result is a quick calculation of the first set of states. So, VDF8192_126 -1 The gain evaluation only needs to discuss the second group. According to the 127 symbols in the second group, the total theoretical gain of VDF8192_126 is calculated to be 567 (126*4.5).

[0389] To analyze VDF-1 The parallel capability of VDF8192_126_plus -1 The recursive relationship is summarized as follows:

[0390] The first set of reverse logic: A2 0+j ⊕A1 0+j ←A2 128+j ⊕A2 129+j ;

[0391] The second set of reverse logic: A1 0+i ⊕A2 1+i ←VDF32_4.5 -1 (A1 127+i ⊕A1 126+i ,△,salt).

[0392] Let i and j equal to t. Note that the corresponding parallel logic can be expanded in the range of t to t-125. It can be deduced that the simultaneous parallel capacity of the two groups is 126; therefore, the design gain of VDF8192_126_plus is also 567 (126*4.5).

[0393] Therefore, compared with VDF8192, the logic control of VDF8192_126 and VDF8192_126_plus is more complex, and ultimately better anti-parallelism, anti-analysis, and anti-prediction capabilities are achieved at the expense of design VDF design gains.

[0394] Based on the above design analysis of the embodiments, more embodiments can be designed under the guidance of the inventive concept, and the three design indicators of these embodiments must also restrict and compromise with each other. Figure 7 , Attachment Figure 8 , Attachment Fig. 9 , Attachment Fig.10 Its related circuit design can also provide guidance for industrial implementation.

[0395] The main purpose of the present invention is to realize a VDF circuit with a serial structure and a VDF circuit with a parallel structure by combining three necessary technical features. -1 Circuits, serial VDF circuits and parallel VDF circuits -1 The circuit indicators meet the second and third items of the parameter guidelines. On this basis, the addition of low-frequency conversion changes or minor changes are made. In form, the state recursion is more complicated, but in essence, the combination of the three necessary technical features does not destroy the technical effects of the second and third items of the parameter guidelines (i.e. VDF / VDF -1 The invention is essentially about the gain being large enough, so adding low-frequency conversion changes or minor changes also fall within the scope of protection of the present invention. Examples of low-frequency conversion include: for the VDF of F(A,B) structure, in order to improve the anti-analysis capability, one (or more) VDF-1 After the (, △ * b) operation, a fast entropy-preserving transformation is performed on the result. When △ is very large, it is obvious that the entropy-preserving transformation is a low-frequency operation. For ease of understanding, refer to the attached Figure 2 The following figure verifies the VDF in the stage -1 The result of ({A2b-1,…,Ab}, △*b) corresponds to {Ab,…,A0}, and a fast entropy-preserving transformation is performed on {Ab,…,A0}. An example of the entropy-preserving transformation is to encrypt once with a block cipher within the range of {Ab,…,A0}. An example of a minor modification is to make VDF32 and VDF32_4.5 input and output 32-byte wide VDFs through the construction of cascade logic in order to improve the anti-analysis and anti-parallel capabilities.

[0396] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the concept of the present application. For example, the above features are replaced with the technical features with similar functions disclosed in the present application (but not limited to) to form a technical solution.

Claims

1. A VDF construction method, the input parameters include an initial state and a time parameter t, and the output is VDF (initial state, t); It is characterized in that include: Directly or indirectly construct a one-way reversible function S component of a VDF, wherein the S component is defined as a reversible function whose forward logic computation delay is significantly greater than the reverse logic computation delay; Define the structure F(A0, Ab)=S(A0⊕Ab, △), the recursive equation of the structure is, VDF({Ab, Ab-1,…,A0}, △*b)= {A2b-1,…,Ab+1,Ab}, where Ab+k +1=S(Ak⊕Ab+k,△), k ranges from 0 to b, △ is the granularity parameter, t is divisible by △*b, b+1 is the number of symbols of the initial state, and the initial state={Ab, Ab-1,…,A0}; The following operations are performed during the calculation phase: a intermediate states of the VDF calculation process, and / or, The structure F(A0, Ab)=S(A0⊕Ab, △) indirectly constructs VDF; During the validation phase, the following actions are performed: Receive the initial state and a+1 states; and, use several S -1 Logically implement a+1 VDF -1 Verification tasks; in, The calculation phase corresponds to a depth of (a+1)*(b b:1) of the serial circuit device of S logic connected in a cascade structure, the verification phase corresponds to a width of (a+1)*(b b:1) S connected by parallel structure -1 A logical parallel circuit arrangement.

2. The VDF construction method according to claim 1, characterized in that: The S component is one or any combination of the following four basic methods; The forward logic function is designed as F(A0, Ab) structure, where the recursive equation corresponding to the F(A0, Ab) structure is Ab+k+1=g(Ak⊕Ab+k) or Ab+k+1=g(Ak)⊕Ab+k, k ranges from 0 to b, where g is a nonlinear transformation, and the structure corresponding to the recursive equation is VDF({Ab, Ab-1,…,A0},b)= {A2b-1,…,Ab+1,Ab}; The reverse logic function includes a sparse tap design, which is defined as an output tap associated with only 2 to 3 inputs and an inverse transformed output associated with all / substantially all inputs; The reverse logistic function contains x j Design, where j is the smallest integer that guarantees reversibility and nonlinearity; The forward logistic function contains the discrete logarithm function.

3. The VDF construction method according to claim 1 or 2, characterized in that: Add VDF input parameter salt, and salti changes the corresponding register of the i-th VDF in an entropy-preserving manner or the salti entropy value to control the operation of the one-way reversible function S, where salti is the i-th state of salt.

4. The VDF construction method according to claim 2, characterized in that: The VDF or S component is designed as the Ab+k+1=g(Ak⊕Ab+k) type F(A0, Ab) structure; Among them, g -1 For the sparse tap design.

5. The VDF construction method according to claim 4, characterized in that: Add input parameters salt, salti changes the register corresponding to the S component in an entropy-preserving manner, where salti is the i-th state of salt.

6. The VDF construction method according to claim 5, characterized in that: The VDF is VDF32({A15, A14, …, A0}, t, salt), where salt is 128 bits or 256 bits; The parameters are defined as follows: t is equal to 128*16*13*k, where k is a natural number; {A15, A14, …, A0} are inputs, each symbol is 16 bits; The state recursion equation is: VDF32({A15, A14, …, A0}, 1)={g((~(~A15&A14)&A13)⊕A0)⊕recycled constant table,A15, …, A1}; stated g -1 (i)'s verilog code is: {({i[3:0], i[14:4]} & {~i[7:0], ~i[14:8]} )^i[14:0], i[15]}; The salt parameter is the highest bit XOR salt[0] of the 256-bit register of VDF32 every 13 symbols updated, and the salt is cyclically shifted left once every 16*13 symbols updated; VDF32 output: {A15+t, A14+t, …, At}.

7. The VDF construction method according to claim 5, characterized in that: The VDF is VDF8192({A255, A254,…, A0}, t, salt), and the S component is VDF32; The parameters are defined as follows: t is equal to △*255*k, where k is a smaller natural number; The input is 8192 bytes, which are divided into 256 symbols from A255 to A0, each symbol is 32 bytes; The state recursion equation is: VDF8192({A255, A254, …, A0}, △, salt)={VDF32(A255⊕A0, △, salt), A255,…, A1}; VDF8192 output result: {A255*k +255, A255*k+254, …, A255*k}.

8. A method comprising a VDF calculation module constructed by any one of claims 1 to 7, a VDF -1 The chip of the module is characterized in that The chip includes the VDF or the VDF -1 Computing module.

9. The chip according to claim 8, comprising an rx pin and a tx pin that comply with the serial port protocol, characterized in that: Control commands and calculation inputs are input through the rx pin, and calculation results are output through the tx pin.

10. The chip according to claim 9, characterized in that: The chip includes two computing modules and two components. The two computing modules are: VDF8192 computing module based on state automaton and VDF8192 based on state automaton. -1 Computing module; and two components: serial port decoding and instruction decoding execution component and multi-function automatic encoding and output component; According to the signal control flow, the decomposition structure of the serial port decoding and instruction decoding and execution components is as follows: a serial port decoding submodule connected to the rx pin, an instruction decoding and execution submodule, and a 256-bit input register submodule; According to the signal control flow direction, the decomposition structure of the multifunctional automatic encoding and output component is in the following order: output buffer register submodule, multi-byte automatic encoder submodule and serial port encoding output submodule connected to the tx pin; Furthermore, the mutual control relationship between the computing modules and components is: The serial port decoding and instruction decoding execution component receives external instructions from the rx pin, and the serial port decoding and instruction decoding execution component translates the external instructions into: instruction code, data code and address code, wherein each address code is associated with a specified VDF8192 -1 The calculation module or VDF8192 calculation module, the data encoding is buffered to the 256-bit input register submodule; According to the address encoding specified, the specified VDF8192 -1 The module or VDF8192 module receives the instruction code and the excitation control signal of the data encoding, and implements VDF8192 according to the excitation control signal. -1 Module or VDF8192 module implements VDF or VDF -1 Functions such as initialization, starting calculation and pausing calculation; The instruction code also stimulates and controls the multifunctional automatic encoding and output component, thereby realizing the VDF8192 -1 The status register output of the module or VDF8192 module; the specific output step is to first buffer the status of the calculation module specified by the address code to the output buffer register submodule, and then output the information of the output buffer register submodule to the tx pin according to the level signal of the serial port encoding under timing control.

11. A random beacon application method, characterized in that: It includes a VDF constructed using the method described in any one of claims 1 to 7, with the blockchain entropy value serving as the initial state input of the VDF and the VDF output serving as a random beacon.

12. A portal website, characterized in that: The portal website publishes a random beacon with VDF as output and data that can verify the random beacon, wherein the VDF is a VDF constructed using the method described in any one of claims 1-7.

13. A method for encoding and decoding a replica proof application, comprising a replica number and a coding block, and also comprising a VDF constructed by any of the methods described in claims 3, 6 or 7, wherein the salt is associated with the replica number; the encoding process of the replica proof is VDF, wherein the input parameters of the VDF are the coding block and the replica number; the decoding process of the replica proof is VDF -1 , where VDF -1 The input parameters are the encoding result and the copy number.

14. A storage service terminal, characterized in that: The storage service terminal stores and downloads the object which is the encoding result of claim 13, i.e., VDF (encoding block, copy number); The steps to execute the download command are as follows: s141: Receive download requests from customers. s142: Return or instruct to download the encoding result according to the download request.

15. A cloud computing terminal, characterized in that: Include VDF or VDF -1 A computing module, a network receiving module and a network sending module, wherein the VDF is a VDF constructed by any method described in claims 1-7; The steps to execute the computing power service command are as follows: S151: The network receiving module receives the client's input through the network; S152: The computing module calls VDF or VDF -1 Calculate the input of S151; S153: The network sending module returns the calculation result of S152 to the client through the network.

16. A blockchain system in which VDF participates in consensus, characterized in that: The blockchain accounting right is determined by the VDF output, and the VDF input is associated with the entropy value of the previous block, wherein the VDF is a VDF constructed using the method described in any one of claims 1-7.

17. A blockchain system that associates time consumption with minting new blocks, characterized in that: The new block hash is associated with VDF (previous block hash, t); where t is a time parameter. The VDF is a VDF constructed using any of the methods described in claims 1-7.

18. The blockchain system according to claim 17, characterized in that: A VDF with salt parameters is selected, wherein the VDF with salt parameters is a VDF constructed using any of the methods described in claims 3, 5 or 6; wherein the salt is associated with credible timing evidence.

19. A token encoding and verification encoding method, characterized in that: The method comprises an encoding phase and a verification phase; the encoding phase corresponds to the calculation phase of the VDF, and the verification phase corresponds to the verification phase of the VDF; wherein the VDF is a VDF constructed by the method described in any one of claims 1 to 7; During the encoding phase, do the following: Calculate and present VDF(seed, t) and a intermediate states, where seed is associated with the Token ID; During the validation phase, the following actions are performed: Receive seed and a+1 states; and, Using several S in parallel -1 Logical implementation of VDF -1 (seed, t) verification task.

20. A method for automatically opening a commitment and verifying a commitment, characterized in that: It includes the commitment phase and the verification phase, where the commitment phase corresponds to VDF -1 (, t) calculation, the verification phase corresponds to VDF (, t) calculation, the VDF is a VDF constructed by any method described in claims 1-7, and t is a time parameter; the steps of the commitment phase and the verification phase are as follows: Commitment Phase: S201: X=VDF -1 (content of commitment, t); S202: Send X and t to the verifier; Verification phase: S203: Receive the X and t, calculate VDF(X, t) to obtain the commitment content.

21. A VDF computing device, characterized in that: A VDF calculation module is included, wherein the VDF calculation module implements the calculation phase function of the VDF constructed by any one of the methods described in claims 1 to 7; The input of the computing device is the initial state and t, and the output is the result and a intermediate states; The VDF calculation module is completed independently by the computing device or implemented with the support of a third party.

22. A VDF verification device, characterized in that: A VDF verification module is included, and the VDF verification module implements the verification phase function of the VDF constructed by any method described in claims 1 to 7; The input of the verification device is the initial state, the result and a intermediate states, and the output is the judgment result; The VDF verification module is completed independently by the verification device or implemented with the support of a third party.

23. A medium storing binary data, characterized in that: The encoded content of the binary data is VDF and / or VDF -1 input, output or intermediate state, wherein the VDF is constructed using the method described in any one of claims 1-7.

Citation Information

Patent Citations

  • Logic chip and board card device with same

    CN104298579A

  • Serial port based management system and management method

    CN105243044A

  • Distributed lottery system and method based on verifiable delay function

    CN112527244A

  • Architecture and implementation method of programmable arithmetic controller for cryptographic applications

    US20100191935A1