CN111538479A - Random parameter generation method and device in label opening process - Google Patents

Random parameter generation method and device in label opening process Download PDF

Info

Publication number
CN111538479A
CN111538479A CN202010343057.7A CN202010343057A CN111538479A CN 111538479 A CN111538479 A CN 111538479A CN 202010343057 A CN202010343057 A CN 202010343057A CN 111538479 A CN111538479 A CN 111538479A
Authority
CN
China
Prior art keywords
random
factor
hash value
random factor
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010343057.7A
Other languages
Chinese (zh)
Other versions
CN111538479B (en
Inventor
陈洲
李强
沈云
张志恒
莫钧涛
刘宁
朱斌
何永龙
陈立
陆建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guotai Epoint Software Co Ltd
Original Assignee
Guotai Epoint Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guotai Epoint Software Co Ltd filed Critical Guotai Epoint Software Co Ltd
Priority to CN202010343057.7A priority Critical patent/CN111538479B/en
Publication of CN111538479A publication Critical patent/CN111538479A/en
Application granted granted Critical
Publication of CN111538479B publication Critical patent/CN111538479B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/58Random or pseudo-random number generators
    • G06F7/588Random number generators, i.e. based on natural stochastic processes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/08Auctions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Databases & Information Systems (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Computational Mathematics (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Pure & Applied Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a random parameter generation method and a device in the bid opening process, belonging to the technical field of computers, and the method comprises the following steps: acquiring a plurality of random factors stored on a block chain, wherein the random factors are uploaded by each bidder in the bidding process; generating a random number seed based on a plurality of random factors; inputting the random number seeds into a random number generator to obtain random parameters for opening the standard; the problem that the existing random parameter generation method is poor in fairness can be solved; the block chain has the characteristics of openness and transparency and multi-party consensus, so that the block chain needs to obtain random parameters based on random factors of each bidder instead of generating the random parameters in a single party, and fairness in a random parameter generation process can be guaranteed.

Description

Random parameter generation method and device in label opening process
Technical Field
The application relates to a random parameter generation method and device in a bid opening process, and belongs to the technical field of computers.
Background
In order to prevent malicious low price bid-winning, a part of regions determine enclosing bidders in a random drawing mode. In addition, in order to prevent part of bidders from getting through and control the bid-winning price, the random extraction of bid evaluation parameters is carried out in the bid evaluation process.
In the above scenario, in order to ensure randomness of entry of bidders and extraction of bid evaluation parameters, the method for generating random parameters includes: extracting random parameters by a line number shaking machine, drawing lots manually and the like; or by generating random parameters by program code on a line.
However, in both the offline mode and the online mode, since the extraction device, the extraction process, and the extraction code are controlled by a single body, there is a possibility that the extraction result of the random parameter is subjected to a dark box operation, and the extraction data is falsified, and there is a lack of fairness in the extraction.
Disclosure of Invention
The application provides a random parameter generation method and device in the bid opening process, which can solve the problem of poor fairness of the conventional random parameter generation method. The application provides the following technical scheme:
in a first aspect, a method for generating random parameters in an opening process is provided, where the method is used in a node on a block chain, and the method includes:
acquiring a plurality of random factors stored on the block chain, wherein the random factors are uploaded by each bidder in the bidding process;
generating a random number seed based on the plurality of random factors;
and inputting the random number seeds into a random number generator to obtain random parameters for opening the standard.
Optionally, a first hash value corresponding to each random factor and an encrypted random factor are further stored in the block chain; before the obtaining of the plurality of random factors stored on the block chain, the method further includes:
sending the encrypted random factor to a bidding server for the bidding server to decrypt the encrypted random factor to obtain a decrypted random factor;
acquiring the decrypted random factor, and calculating a second hash value of the decrypted random factor;
comparing the first hash value to the second hash value;
storing the decrypted random factor on the blockchain when the first hash value is the same as the second hash value.
Optionally, the generating a random number seed based on the plurality of random factors includes:
splicing the plurality of random factors to obtain a random factor sequence;
and carrying out Hash calculation on the random factor sequence to obtain the random number seed.
Optionally, the splicing the multiple random factors to obtain a random factor sequence includes:
sequencing the plurality of random factors according to a preset dictionary sequence;
and splicing the sequenced random factors to obtain the random factor sequence.
Optionally, after the random number seed is input into a random number generator to obtain a random parameter for bid opening, the method further includes:
performing parameter extraction based on the random parameters for bid opening to obtain an extraction result;
and storing the extraction result into the block chain.
In a second aspect, a random parameter generation method in a bid opening process is provided, and is used in a bidding client, the method includes:
generating a random factor, wherein the random factor is used for triggering an intelligent contract running on a block chain accessed by a bidding server to generate a random number seed; inputting the random number seed into a random number generator to obtain a random parameter for opening the standard;
encrypting the random factor to obtain an encrypted random factor;
calculating a first hash value of the random factor;
and sending the encrypted random factor and the first hash value to the bidding server so that the bidding server uploads the encrypted random factor and the first hash value to the block chain.
In a third aspect, a random parameter generation method in an opening process is provided, and is used in a bidding server, where the bidding server accesses a block chain, and the method includes:
receiving a first hash value and an encrypted random factor sent by a bidding client, wherein the first hash value is obtained by calculating the random factor, and the encrypted random factor is obtained by encrypting the random factor;
uploading the first hash value and the encrypted random factor to the blockchain, so that the blockchain can calculate a second hash value of the decrypted random factor; comparing the first hash value to the second hash value; storing the random factor when the first hash value is the same as the second hash value; generating a random number seed based on a plurality of random factors; and inputting the random number seeds into a random number generator to obtain random parameters for opening the standard.
In a fourth aspect, an apparatus for generating random parameters in an opening process is provided, where the apparatus is used in a node on a block chain, and the apparatus includes:
the factor acquisition module is used for acquiring a plurality of random factors stored on the block chain, and the random factors are uploaded by each bidder in the bidding process;
a seed generation module to generate a random number seed based on the plurality of random factors;
and the parameter generation module is used for inputting the random number seeds into a random number generator to obtain the random parameters for opening the standard.
In a fifth aspect, a random parameter generating device in a bid opening process is provided, and is used in a bidding client, the device includes:
the factor generation module is used for generating a random factor, and the random factor is used for triggering an intelligent contract running on a block chain accessed by the bidding server to generate a random number seed; inputting the random number seed into a random number generator to obtain a random parameter for opening the standard;
the factor encryption module is used for encrypting the random factor to obtain an encrypted random factor;
the hash value calculation module is used for calculating a first hash value of the random factor;
and the data sending module is used for sending the encrypted random factor and the first hash value to the bidding server so that the bidding server uploads the encrypted random factor and the first hash value to the block chain.
In a sixth aspect, a random parameter generating apparatus in a bid opening process is provided, where the apparatus is used in a bid server, and the bid server accesses a block chain, and the apparatus includes:
the data receiving module is used for receiving a first hash value and an encrypted random factor sent by the bidding client, wherein the first hash value is obtained by calculating the random factor, and the encrypted random factor is obtained by encrypting the random factor;
the data uploading module is used for uploading the first hash value and the encrypted random factor to the block chain so that the block chain can decrypt the encrypted random factor to obtain a decrypted random factor; calculating a second hash value of the decrypted random factor; comparing the first hash value to the second hash value; storing the random factor when the first hash value is the same as the second hash value; generating a random number seed based on a plurality of random factors; and inputting the random number seeds into a random number generator to obtain random parameters for opening the standard.
In a seventh aspect, an apparatus for generating random parameters in an opening process is provided, where the apparatus includes a processor and a memory; the memory stores a program, and the program is loaded and executed by the processor to realize the random parameter generation method in the bid opening process of the first aspect; or, implementing the random parameter generation method in the bid opening process according to the second aspect; or, implementing the random parameter generation method in the bid opening process described in the third aspect.
In an eighth aspect, a computer-readable storage medium is provided, where the storage medium stores a program, and the program is loaded and executed by the processor to implement the method for generating random parameters in the bid opening process according to the first aspect; or, implementing the random parameter generation method in the bid opening process according to the second aspect; or, implementing the random parameter generation method in the bid opening process described in the third aspect.
The beneficial effect of this application lies in: acquiring a plurality of random factors stored on a block chain, wherein the random factors are uploaded by each bidder in the bidding process; generating a random number seed based on a plurality of random factors; inputting the random number seeds into a random number generator to obtain random parameters for opening the standard; the problem that the existing random parameter generation method is poor in fairness can be solved; the block chain has the characteristics of openness and transparency and multi-party consensus, so that the block chain needs to obtain random parameters based on random factors of each bidder instead of generating the random parameters in a single party, and fairness in a random parameter generation process can be guaranteed.
In addition, the random factor is encrypted through the digital certificate of the bidder, so that the extraction result is not leaked before bid opening.
In addition, the extraction scheme is disclosed to all users through intelligent contracts, and fairness in the extraction process can be guaranteed.
In addition, the extraction process is based on a block chain intelligent contract consensus mechanism to ensure that the extraction code cannot be modified unilaterally to achieve the purpose of dark box operation, and the safety of the extraction process can be ensured.
In addition, anyone can verify the authenticity of the extraction result through the random factor uploaded by the bidder before bid opening and the public extraction scheme.
The foregoing description is only an overview of the technical solutions of the present application, and in order to make the technical solutions of the present application more clear and clear, and to implement the technical solutions according to the content of the description, the following detailed description is made with reference to the preferred embodiments of the present application and the accompanying drawings.
Drawings
Fig. 1 is a schematic structural diagram of a random parameter generation system in an opening process according to an embodiment of the present application;
fig. 2 is a flowchart of a random parameter generation method in the bid opening process according to an embodiment of the present application;
fig. 3 is a block diagram of a random parameter generation apparatus in the bid opening process according to an embodiment of the present application;
fig. 4 is a block diagram of a random parameter generation apparatus in the bid opening process according to an embodiment of the present application;
fig. 5 is a block diagram of a random parameter generation apparatus in the bid opening process according to an embodiment of the present application;
fig. 6 is a block diagram of a random parameter generation apparatus in the bid opening process according to an embodiment of the present application.
Detailed Description
The following detailed description of embodiments of the present application will be described in conjunction with the accompanying drawings and examples. The following examples are intended to illustrate the present application but are not intended to limit the scope of the present application.
First, several terms referred to in the present application will be described.
Block chain (Block chain): the technical scheme is that a reliable database is maintained collectively in a decentralized and distrust mode. The block chain is a chain data structure formed by sequentially connecting and combining data blocks according to a time sequence. The block chain cryptographically secures the data block to be tamper-proof and forgery-proof. A block chain includes one or more blocks. Each chunk in the chain of chunks is linked to the previous chunk by including a cryptographic hash of the immediately preceding chunk in the chain of chunks. Each chunk also includes a timestamp, a cryptographic hash of the chunk, and one or more transactions (transactions).
Intelligent contract: the contract is also called an intelligent contract, which can be automatically executed on a computer system under the condition that certain conditions are met. If the blockchain is a database, the intelligent contract is an application layer that enables the blockchain technology to be applied in reality. An intelligent contract is a computer program running on a blockchain database that can execute itself when the conditions written in its source code are met. Intelligent contracts, once written, can be trusted by users, and the contract terms cannot be changed, so the contracts are unalterable.
Fig. 1 is a schematic structural diagram of a random parameter generation system in an opening process according to an embodiment of the present application, and as shown in fig. 1, the system at least includes: a bidding client 110 and a bidding server 120.
The bidding client 110 is a client for use by bidders. The bidding client 110 provides a bidding service for bidders. The bidding client 110 has a function of generating a bid document and transmitting the bid document to the bidding server 120.
The bidding server 120 accesses the blockchain, i.e., is communicatively coupled to the nodes on the blockchain, can write data on the blockchain, and can read data from the blockchain.
Optionally, in the present application, the bidding client 110 is further configured to: generating a random factor; encrypting the random factor to obtain an encrypted random factor; calculating a first hash value of the random factor; the encrypted random factor and the first hash value are transmitted to the bid server 120.
When each bidder makes a bid document locally, the bidding client 110 generates a random factor (e.g., a Universal Unique Identifier (UUID)), and calculates a first hash value of the random factor after generating the random factor.
The first hash value is calculated by using a hash algorithm to obtain a random factor. Optionally, the hash algorithm includes, but is not limited to: MD5, SHA-1, SM3, etc.
Optionally, the bidding client 110 encrypts the random factor using the public key in the digital certificate based on an asymmetric encryption algorithm when encrypting the random factor using the digital certificate. Of course, in other embodiments, the bidding client 110 may also encrypt the random factor using a symmetric encryption algorithm, and the encryption manner of the random factor is not limited in this embodiment.
The bidding document refers to a response document which is required to be compiled by a bidder and generally comprises a business document, a technical document, a quotation document and other parts.
Illustratively, the data structure sent by the bidding client 110 to the bidding server 120 is:
{ encrypted random factor, first hash value of random factor, information of digital certificate, electronic signature of bidder }.
Optionally, the encrypted random factor and the first hash value are transmitted when the bidding client 110 transmits the bid file to the bidding server 120. Wherein the bid document is pre-encrypted prior to transmission. The encryption scheme may be the same or different from the random factor.
The bidding server 120 is configured to: receiving the encrypted random factor and the first hash value sent by the bidding client 110; and uploading the encrypted random factor and the first hash value to a block chain.
Optionally, the bidding server 120 is further configured to store the bid document (or the encrypted bid document) transmitted along with the encrypted random factor to the local.
Then, the bidding server 120 acquires the encrypted random factor from the block chain during bid opening, and decrypts the random factor through the digital certificate of the bidder to obtain the decrypted random factor; acquiring the decrypted random factor, and calculating a second hash value of the decrypted random factor; comparing the first hash value with the second hash value; and storing the decrypted random factor on the block chain when the first hash value is the same as the second hash value.
An intelligent contract is operated on the block chain, and the intelligent contract is used for acquiring a plurality of random factors stored on the block chain after all encrypted random factors are decrypted; generating a random number seed based on a plurality of random factors; and inputting the random number seeds into a random number generator to obtain random parameters for opening the standard.
In the application, as the blockchain is a distributed account book technology, the characteristic of transparent multi-party consensus makes it impossible to generate random numbers directly through blockchain intelligent contracts, and the randomness of the random numbers must depend on random factors input outside the blockchain. The scheme combines the bidding document making and opening processes of the bidding business process, fully utilizes the existing digital certificate encryption and decryption logic to design the random factor generation logic specific to bidding, ensures that the random factors are not leaked before opening the bid, and combines the characteristic of Hash operation that even if a plurality of people are communicated, the random seeds cannot be controlled. And the characteristics that the block chain is not falsifiable and the data is traceable are combined to ensure that the random factors are not falsified in the whole process, the extraction method is executed strictly according to the established logic, and the extraction result can be verified after the extraction.
The following describes the random parameter generation method in the bid opening process in detail.
Fig. 2 is a flowchart of a method for generating random parameters in the bid opening process according to an embodiment of the present application, and this embodiment takes the application of the method to the system for generating random parameters in the bid opening process shown in fig. 1 as an example for description. The method at least comprises the following steps:
in step 201, the bidding client generates a random factor.
The random factor is used for triggering an intelligent contract on a block chain accessed by the bidding server to generate a random number seed; and inputting the random number seeds into a random number generator to obtain random parameters for opening the standard.
In one example, the random factor is a UUID generated by the bidding client when making the bid file.
Step 202, the bidding client encrypts the random factor to obtain the encrypted random factor.
Optionally, the bidding client encrypts the random factor using a digital certificate, such as: the random factor is encrypted using an asymmetric encryption algorithm or a symmetric encryption algorithm.
In step 203, the bidding client calculates a first hash value of the random factor.
The first hash value is calculated by using a hash algorithm to obtain a random factor. Optionally, the hash algorithm includes, but is not limited to: MD5, SHA-1, SM3, etc.
And step 204, the bidding client sends the encrypted random factor and the first hash value to the bidding server.
Illustratively, the data structure sent by the bidding client to the bidding server is:
{ encrypted random factor, first hash value of random factor, information of digital certificate, electronic signature of bidder }.
Optionally, the encrypted random factor and the first hash value are sent when the bidding client sends the bidding document to the bidding server. Wherein the bid document is pre-encrypted prior to transmission. The encryption scheme may be the same or different from the random factor.
Step 205, the bidding server receives the first hash value and the encrypted random factor sent by the bidding client; and uploading the encrypted random factor and the first hash value to a block chain.
Step 206, the bidding server reads the encrypted random factors stored in the block chain for each random factor, wherein the encrypted random factors are sent by the bidding client used by the bidder; accordingly, the node on the blockchain sends the encrypted random factor to the bidding server.
Step 207, the bidding server decrypts the encrypted random factor to obtain a decrypted random factor; and uploading the decrypted random factor to a block chain.
And when the bidding is started, the bidding server acquires the encrypted random factor from the block chain, and decrypts the encrypted random factor through the digital certificate of the bidder.
In step 208, the node on the blockchain obtains the decrypted random factor and calculates a second hash value of the decrypted random factor.
Optionally, the bidding server decrypts the encrypted random factor in the bid opening stage. Illustratively, the bidding server decrypts the encrypted random factor using a private key corresponding to the digital certificate.
The second hash value is calculated in the same manner as the first hash value.
Step 209, the node on the blockchain compares the first hash value with the second hash value; and storing the decrypted random factor on the block chain when the first hash value is the same as the second hash value.
When the first hash value and the second hash value are the same, it indicates that the random factor has not been tampered, and at this time, the decrypted random factor is secure, and the random factor may be stored in the block chain. When the first hash value is different from the second hash value, the random factor is tampered, and at the moment, the random factor is no longer safe and is not stored in the block chain.
Step 210, a node on a block chain acquires a plurality of stored random factors; generating a random number seed based on a plurality of random factors; and inputting the random number seeds into a random number generator to obtain random parameters for opening the standard.
The random factors are uploaded by each bidder in the bidding process.
The intelligent contract is operated on the block chain, and when the random factors uploaded by each bidder are decrypted and stored on the block chain, the intelligent contract is triggered to execute and acquire a plurality of random factors stored on the block chain; generating a random number seed based on a plurality of random factors; and inputting the random number seeds into a random number generator to obtain random parameters for opening the mark.
Optionally, generating the random number seed based on a plurality of random factors comprises: splicing the plurality of random factors to obtain a random factor sequence; and carrying out Hash calculation on the random factor sequence to obtain a random number seed.
In one example, splicing the plurality of random factors to obtain a random factor sequence includes: sequencing the plurality of random factors according to a preset dictionary sequence; and splicing the sequenced random factors to obtain a random factor sequence.
Of course, the splicing mode of the random factors can also be other modes, such as: the embodiment does not limit the splicing manner of the random factors according to the manner of writing the sequence on the block chain.
Random number generators are used to generate pseudo-random numbers or sequence values which are calculated by complex methods. In operation, the random number generator requires a seed value. The seed values are different, and the obtained sequence values are also different. Optionally, the random number generator is a linear congruential generator.
Step 211, the nodes on the block chain execute the intelligent contract on the basis of the random parameter for opening the mark on the block chain to extract the parameter, and an extraction result is obtained; and storing the extraction result in the block chain.
The intelligent contract is provided with specific parameter extraction logic, and extraction results can be obtained based on the intelligent contract.
Alternatively, the extraction result may indicate a unit of enclosure; or extracting the result as the evaluation parameter.
In summary, in the method for generating random parameters in the bid opening process provided by this embodiment, a plurality of random factors stored on a block chain are obtained, and the random factors are uploaded by each bidder in the bid opening process; generating a random number seed based on a plurality of random factors; inputting the random number seeds into a random number generator to obtain random parameters for opening the standard; the problem that the existing random parameter generation method is poor in fairness can be solved; the block chain has the characteristics of openness and transparency and multi-party consensus, so that the block chain needs to obtain random parameters based on random factors of each bidder instead of generating the random parameters in a single party, and fairness in a random parameter generation process can be guaranteed.
In addition, the random factor is encrypted through the digital certificate of the bidder, so that the extraction result is not leaked before bid opening.
In addition, the extraction scheme is disclosed to all users through intelligent contracts, and fairness in the extraction process can be guaranteed.
In addition, the extraction process is based on a block chain intelligent contract consensus mechanism to ensure that the extraction code cannot be modified unilaterally to achieve the purpose of dark box operation, and the safety of the extraction process can be ensured.
In addition, anyone can verify the authenticity of the extraction result through the random factor uploaded by the bidder before bid opening and the public extraction scheme.
Fig. 3 is a block diagram of a random parameter generation apparatus in the bid opening process according to an embodiment of the present application, and this embodiment takes the application of the apparatus to a node on a block chain in the bid opening process shown in fig. 1 as an example for explanation. The device at least comprises the following modules: a factor obtaining module 310, a seed generating module 320, and a parameter generating module 330.
A factor obtaining module 310, configured to obtain a plurality of random factors stored in the block chain, where the random factors are uploaded by each bidder in a bidding process;
a seed generation module 320 for generating a random number seed based on the plurality of random factors;
and the parameter generating module 330 is configured to input the random number seed into a random number generator to obtain a random parameter for bid opening.
For relevant details reference is made to the above-described method embodiments.
Fig. 4 is a block diagram of a random parameter generation device in the bid opening process according to an embodiment of the present invention, and this embodiment takes, as an example, a bidding client 110 in the random parameter generation system in the bid opening process shown in fig. 1. The device at least comprises the following modules: a factor generation module 410, a factor encryption module 420, a hash value calculation module 430, and a data transmission module 440.
A factor generating module 410, configured to generate a random factor, where the random factor is used to trigger an intelligent contract running on a block chain accessed by the bid server to generate a random number seed; inputting the random number seed into a random number generator to obtain a random parameter for opening the standard;
a factor encryption module 420, configured to encrypt the random factor to obtain an encrypted random factor;
a hash value calculation module 430, configured to calculate a first hash value of the random factor;
a data sending module 440, configured to send the encrypted random factor and the first hash value to the bid server, so that the bid server uploads the encrypted random factor and the first hash value to the block chain.
For relevant details reference is made to the above-described method embodiments.
Fig. 5 is a block diagram of a random parameter generation device in the bid opening process according to an embodiment of the present invention, and the embodiment will be described by taking, as an example, the bidding server 120 in the random parameter generation system in the bid opening process shown in fig. 1. The device at least comprises the following modules: a data receiving module 510 and a data uploading module 520.
A data receiving module 510, configured to receive a first hash value and an encrypted random factor, where the first hash value is obtained by calculating the random factor, and the encrypted random factor is obtained by encrypting the random factor;
a data uploading module 520, configured to upload the first hash value and the encrypted random factor to the block chain, so that the block chain decrypts the encrypted random factor to obtain a decrypted random factor; calculating a second hash value of the decrypted random factor; comparing the first hash value to the second hash value; storing the random factor when the first hash value is the same as the second hash value; generating a random number seed based on a plurality of random factors; and inputting the random number seeds into a random number generator to obtain random parameters for opening the standard.
For relevant details reference is made to the above-described method embodiments.
It should be noted that: in the above embodiment, when the random parameter generating device in the bid opening process generates the random parameter in the bid opening process, only the division of the functional modules is used for illustration, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the random parameter generating device in the bid opening process is divided into different functional modules to complete all or part of the functions described above. In addition, the random parameter generation device in the bid opening process and the random parameter generation method in the bid opening process provided in the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 6 is a block diagram of a random parameter generating device in the bid opening process according to an embodiment of the present application, which may be the bidding client 110 or the bidding server 120 in the random parameter generating system in the bid opening process shown in fig. 1. The apparatus comprises at least a processor 601 and a memory 602.
Processor 601 may include one or more processing cores such as: 4 core processors, 8 core processors, etc. The processor 601 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 601 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 601 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, processor 601 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 602 is used to store at least one instruction for execution by processor 601 to implement the random parameter generation method in the bidding process provided by the method embodiments herein.
In some embodiments, the random parameter generating device in the bid opening process may further include: a peripheral interface and at least one peripheral. The processor 601, memory 602 and peripheral interface may be connected by a bus or signal lines. Each peripheral may be connected to the peripheral interface via a bus, signal line, or circuit board. Illustratively, peripheral devices include, but are not limited to: radio frequency circuit, touch display screen, audio circuit, power supply, etc.
Of course, the random parameter generating device in the bidding process may further include fewer or more components, which is not limited in this embodiment.
Optionally, the present application further provides a computer-readable storage medium, where a program is stored in the computer-readable storage medium, and the program is loaded and executed by a processor to implement the random parameter generation method in the bid opening process of the foregoing method embodiment.
Optionally, the present application further provides a computer product, which includes a computer-readable storage medium, where a program is stored in the computer-readable storage medium, and the program is loaded and executed by a processor to implement the method for generating random parameters in the bid opening process according to the above method embodiment.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A random parameter generation method in an opening process is used in a node on a block chain, and the method comprises the following steps:
acquiring a plurality of random factors stored on the block chain, wherein the random factors are uploaded by each bidder in the bidding process;
generating a random number seed based on the plurality of random factors;
and inputting the random number seeds into a random number generator to obtain random parameters for opening the standard.
2. The method according to claim 1, wherein the blockchain further stores a first hash value and an encrypted random factor corresponding to each random factor; before the obtaining of the plurality of random factors stored on the block chain, the method further includes:
sending the encrypted random factor to a bidding server for the bidding server to decrypt the encrypted random factor to obtain a decrypted random factor;
acquiring the decrypted random factor, and calculating a second hash value of the decrypted random factor;
comparing the first hash value to the second hash value;
storing the decrypted random factor on the blockchain when the first hash value is the same as the second hash value.
3. The method of claim 1, wherein generating a random number seed based on the plurality of random factors comprises:
splicing the plurality of random factors to obtain a random factor sequence;
and carrying out Hash calculation on the random factor sequence to obtain the random number seed.
4. The method of claim 3, wherein the concatenating the plurality of random factors to obtain a sequence of random factors comprises:
sequencing the plurality of random factors according to a preset dictionary sequence;
and splicing the sequenced random factors to obtain the random factor sequence.
5. The method according to any one of claims 1 to 4, wherein after inputting the random number seed into a random number generator to obtain the random parameter for open mark, the method further comprises:
performing parameter extraction based on the random parameters for bid opening to obtain an extraction result;
and storing the extraction result to the block chain.
6. A random parameter generation method in a bid opening process is used in a bidding client, and comprises the following steps:
generating a random factor, wherein the random factor is used for triggering an intelligent contract running on a block chain accessed by a bidding server to generate a random number seed; inputting the random number seed into a random number generator to obtain a random parameter for opening the standard;
encrypting the random factor to obtain an encrypted random factor;
calculating a first hash value of the random factor;
and sending the encrypted random factor and the first hash value to the bidding server so that the bidding server uploads the encrypted random factor and the first hash value to the block chain.
7. A random parameter generation method in an opening bid process is used in a bidding server, and the bidding server accesses a block chain, and the method comprises the following steps:
receiving a first hash value and an encrypted random factor sent by a bidding client, wherein the first hash value is obtained by calculating the random factor, and the encrypted random factor is obtained by encrypting the random factor;
uploading the first hash value and the encrypted random factor to the blockchain, so that the blockchain can calculate a second hash value of the decrypted random factor; comparing the first hash value to the second hash value; storing the random factor when the first hash value is the same as the second hash value; generating a random number seed based on a plurality of random factors; and inputting the random number seeds into a random number generator to obtain random parameters for opening the standard.
8. A random parameter generation apparatus in an opening process, for use in a node on a block chain, the apparatus comprising:
the factor acquisition module is used for acquiring a plurality of random factors stored on the block chain, and the random factors are uploaded by each bidder in the bidding process;
a seed generation module to generate a random number seed based on the plurality of random factors;
and the parameter generation module is used for inputting the random number seeds into a random number generator to obtain the random parameters for opening the standard.
9. A random parameter generation device in a bid opening process, which is used in a bidding client, the device comprising:
the factor generation module is used for generating a random factor, and the random factor is used for triggering an intelligent contract running on a block chain accessed by the bidding server to generate a random number seed; inputting the random number seed into a random number generator to obtain a random parameter for opening the standard;
the factor encryption module is used for encrypting the random factor to obtain an encrypted random factor;
the hash value calculation module is used for calculating a first hash value of the random factor;
and the data sending module is used for sending the encrypted random factor and the first hash value to the bidding server so that the bidding server uploads the encrypted random factor and the first hash value to the block chain.
10. A random parameter generation device in a bid opening process, which is used in a bid server, the bid server accessing a block chain, the device comprising:
the data receiving module is used for receiving a first hash value and an encrypted random factor sent by the bidding client, wherein the first hash value is obtained by calculating the random factor, and the encrypted random factor is obtained by encrypting the random factor;
the data uploading module is used for uploading the first hash value and the encrypted random factor to the block chain so that the block chain can decrypt the encrypted random factor to obtain a decrypted random factor; calculating a second hash value of the decrypted random factor; comparing the first hash value to the second hash value; storing the random factor when the first hash value is the same as the second hash value; generating a random number seed based on a plurality of random factors; and inputting the random number seeds into a random number generator to obtain random parameters for opening the standard.
CN202010343057.7A 2020-04-27 2020-04-27 Random parameter generation method and device in bidding process Active CN111538479B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010343057.7A CN111538479B (en) 2020-04-27 2020-04-27 Random parameter generation method and device in bidding process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010343057.7A CN111538479B (en) 2020-04-27 2020-04-27 Random parameter generation method and device in bidding process

Publications (2)

Publication Number Publication Date
CN111538479A true CN111538479A (en) 2020-08-14
CN111538479B CN111538479B (en) 2023-11-21

Family

ID=71977306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010343057.7A Active CN111538479B (en) 2020-04-27 2020-04-27 Random parameter generation method and device in bidding process

Country Status (1)

Country Link
CN (1) CN111538479B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112348596A (en) * 2020-11-26 2021-02-09 中国联合网络通信集团有限公司 Bidding and quotation method, system, equipment and storage medium based on block chain
CN113191862A (en) * 2021-05-21 2021-07-30 中国联合网络通信集团有限公司 Electronic bidding method, third party device, sponsor device and bidder device
CN113191863A (en) * 2021-05-21 2021-07-30 中国联合网络通信集团有限公司 Bidding method, third party device, sponsor device and bidder device
CN115376239A (en) * 2022-08-23 2022-11-22 北京女娲补天科技信息技术有限公司 Method, device and system for registering and shaking number, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259162A (en) * 2016-12-28 2018-07-06 航天信息股份有限公司 A kind of method for storing cipher key
CN110780847A (en) * 2019-10-15 2020-02-11 腾讯科技(深圳)有限公司 Random number generation method, random number generation device and electronic equipment
CN110941418A (en) * 2019-11-26 2020-03-31 杭州浮云网络科技有限公司 Random number generation method, device, equipment and readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259162A (en) * 2016-12-28 2018-07-06 航天信息股份有限公司 A kind of method for storing cipher key
CN110780847A (en) * 2019-10-15 2020-02-11 腾讯科技(深圳)有限公司 Random number generation method, random number generation device and electronic equipment
CN110941418A (en) * 2019-11-26 2020-03-31 杭州浮云网络科技有限公司 Random number generation method, device, equipment and readable storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112348596A (en) * 2020-11-26 2021-02-09 中国联合网络通信集团有限公司 Bidding and quotation method, system, equipment and storage medium based on block chain
CN112348596B (en) * 2020-11-26 2023-08-11 中国联合网络通信集团有限公司 Bid quotation method, system, equipment and storage medium based on blockchain
CN113191862A (en) * 2021-05-21 2021-07-30 中国联合网络通信集团有限公司 Electronic bidding method, third party device, sponsor device and bidder device
CN113191863A (en) * 2021-05-21 2021-07-30 中国联合网络通信集团有限公司 Bidding method, third party device, sponsor device and bidder device
CN113191862B (en) * 2021-05-21 2023-06-13 中国联合网络通信集团有限公司 Electronic bidding method, third party device, bidding party device and bidding party device
CN113191863B (en) * 2021-05-21 2023-06-23 中国联合网络通信集团有限公司 Bid method, third party device, bid issuing party device and bid issuing party device
CN115376239A (en) * 2022-08-23 2022-11-22 北京女娲补天科技信息技术有限公司 Method, device and system for registering and shaking number, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111538479B (en) 2023-11-21

Similar Documents

Publication Publication Date Title
CN112751852B (en) Data transmission method and related equipment
CN111538479A (en) Random parameter generation method and device in label opening process
CN111080295B (en) Electronic contract processing method and device based on blockchain
KR101712784B1 (en) System and method for key management for issuer security domain using global platform specifications
CN111008863B (en) Lottery drawing method and system based on block chain
CN111066019B (en) Processing data elements stored in a blockchain network
CN112953930A (en) Cloud storage data processing method and device and computer system
CN105468940B (en) Method for protecting software and device
CN105162760A (en) Random draw-off method, apparatus and system
US11416821B1 (en) Apparatuses and methods for determining and processing dormant user data in a job resume immutable sequential listing
CN105721156A (en) General Encoding Functions For Modular Exponentiation Encryption Schemes
CN111611621A (en) Block chain based distributed data encryption storage method and electronic equipment
CN107277028A (en) The method and device, equipment, storage medium of chatting facial expression are transmitted between application
CN117240625B (en) Tamper-resistant data processing method and device and electronic equipment
CN112286872A (en) Medical image data sharing method and system based on block chain technology and interplanetary file system and readable storage medium
CN110210591A (en) A kind of wiring method, computer installation and the computer readable storage medium of intellective IC card personal data
CN110912892B (en) Certificate management method and device, electronic equipment and storage medium
CN116232639A (en) Data transmission method, device, computer equipment and storage medium
CN112907375A (en) Data processing method, data processing device, computer equipment and storage medium
CN111614658A (en) Calculation force contract generation method based on block chain network, electronic device and medium
CN112100696A (en) Memory device and safe reading method thereof
Wang et al. A parallel encryption algorithm based on piecewise linear chaotic map
CN117201120A (en) Information encryption method, device, computer equipment and storage medium
CN117097526A (en) Block chain-based data security sharing method and device
CN112989370B (en) Key filling method, system, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant