CN111538479B - Random parameter generation method and device in bidding process - Google Patents

Random parameter generation method and device in bidding process Download PDF

Info

Publication number
CN111538479B
CN111538479B CN202010343057.7A CN202010343057A CN111538479B CN 111538479 B CN111538479 B CN 111538479B CN 202010343057 A CN202010343057 A CN 202010343057A CN 111538479 B CN111538479 B CN 111538479B
Authority
CN
China
Prior art keywords
random
factor
hash value
blockchain
bidding
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.)
Active
Application number
CN202010343057.7A
Other languages
Chinese (zh)
Other versions
CN111538479A (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

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 a label opening process, which belong to the technical field of computers, and the method comprises the following steps: acquiring a plurality of random factors stored on a blockchain, 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 marks; the problem of poor fairness of the conventional random parameter generation method can be solved; because the blockchain has the characteristics of disclosure, transparency and multiparty consensus, at this time, the blockchain needs to obtain random parameters based on random factors of all bidders, rather than generating random parameters in a single party, so that fairness of a random parameter generation process can be ensured.

Description

Random parameter generation method and device in bidding process
Technical Field
The application relates to a random parameter generation method and device in a label opening process, and belongs to the technical field of computers.
Background
In order to prevent malicious low-price bidding, a part of areas adopt a random drawing mode to determine the bidding-in bidders. In addition, in order to prevent the cross-over of partial bidders and control the bid price, random extraction of bid evaluation parameters is performed in the bid evaluation process.
In the above scenario, in order to ensure randomness of bidder's entry and bid evaluation parameter extraction, the method for generating random parameters includes: extracting random parameters by means of an off-line number shaking machine, a manual drawing path and the like; or by the program code on the line.
However, in either the offline or 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 operated by the camera bellows and the extraction data is tampered, and there is no fairness in extraction.
Disclosure of Invention
The application provides a random parameter generation method and device in a bid opening process, which can solve the problem of poor fairness of the existing random parameter generation method. The application provides the following technical scheme:
in a first aspect, a method for generating random parameters in a bidding process is provided, where the method is used in a node on a blockchain, and the method includes:
acquiring a plurality of random factors stored on the blockchain, wherein the random factors are uploaded by all bidders 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 marks.
Optionally, the blockchain is also stored with a first hash value corresponding to each random factor and the encrypted random factors; before the obtaining the plurality of random factors stored on the blockchain, the method further includes:
transmitting the encrypted random factor to a bidding server so that the bidding server can 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 with the second hash value;
and 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 plurality of random factors to obtain a random factor sequence includes:
sorting the plurality of random factors according to a preset dictionary sequence;
and splicing the plurality of ordered random factors to obtain the random factor sequence.
Optionally, after the random number seed is input into the random number generator to obtain the random parameter for opening label, the method further includes:
parameter extraction is carried out based on the random parameters for opening marks, and an extraction result is obtained;
and storing the extraction result into the blockchain.
In a second aspect, a method for generating random parameters in a bid opening process is provided, and the method is used in a bid client, and includes:
generating a random factor, wherein the random factor is used for triggering intelligent contracts running on a blockchain accessed by a bidding server to generate a random number seed; inputting the random number seeds into a random number generator to obtain random parameters for opening marks;
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 blockchain.
In a third aspect, a method for generating random parameters in a bid opening process is provided, where the bid opening server accesses a blockchain, 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 for the blockchain to calculate a second hash value of the decrypted random factor; comparing the first hash value with 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 marks.
In a fourth aspect, a random parameter generating device in a label opening process is provided, where the random parameter generating device is used in a node on a blockchain, and the device includes:
the factor acquisition module is used for acquiring a plurality of random factors stored on the blockchain, wherein the random factors are uploaded by each bidder in the bidding process;
a seed generation module for generating 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 random parameters for opening marks.
In a fifth aspect, a random parameter generating device in a bidding process is provided, which is used in a bidding client, and the device includes:
the factor generation module is used for generating a random factor, and the random factor is used for triggering intelligent contracts running on a blockchain accessed by the bidding server to generate a random number seed; inputting the random number seeds into a random number generator to obtain random parameters for opening marks;
the factor encryption module is used for encrypting the random factors to obtain encrypted random factors;
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 can upload the encrypted random factor and the first hash value to the blockchain.
In a sixth aspect, a random parameter generating apparatus in a bid opening process is provided for use in a bid server, the bid server accessing a blockchain, the apparatus comprising:
the data receiving module is used for receiving a first hash value and an encrypted random factor, 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 blockchain so that the blockchain can decrypt the encrypted random factor to obtain the decrypted random factor; calculating a second hash value of the decrypted random factor; comparing the first hash value with 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 marks.
In a seventh aspect, a random parameter generating device in a label opening process is provided, where the device 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 marking process of the first aspect; or, implementing the random parameter generation method in the bidding process of the second aspect; or, implementing the random parameter generation method in the bidding process of the third aspect.
An eighth aspect provides a computer-readable storage medium having a program stored therein, the program being loaded and executed by the processor to implement the method for generating random parameters in the bidding process of the first aspect; or, implementing the random parameter generation method in the bidding process of the second aspect; or, implementing the random parameter generation method in the bidding process of the third aspect.
The application has the beneficial effects that: the method comprises the steps that a plurality of random factors stored on a blockchain are obtained, and the random factors are uploaded by all bidders 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 marks; the problem of poor fairness of the conventional random parameter generation method can be solved; because the blockchain has the characteristics of disclosure, transparency and multiparty consensus, at this time, the blockchain needs to obtain random parameters based on random factors of all bidders, rather than generating random parameters in a single party, so that fairness of a random parameter generation process can be ensured.
In addition, the digital certificate of the bidder is used for encrypting the random factor, so that the extraction result is prevented from being revealed before bidding.
In addition, the extraction scheme is disclosed to all users through intelligent contracts, so that fairness of the extraction process can be guaranteed.
In addition, the extraction process is based on a block chain intelligent contract consensus mechanism, so that the extraction code cannot be unilaterally modified to achieve the purpose of camera bellows operation, and the safety of the extraction process can be ensured.
In addition, any person can verify the authenticity of the extraction result by the random factor uploaded by the bidder before the bid is opened and the disclosed extraction scheme.
The foregoing description is only an overview of the present application, and is intended to provide a better understanding of the present application, as it is embodied in the following description, with reference to the preferred embodiments of the present application and the accompanying drawings.
Drawings
FIG. 1 is a schematic diagram of a random parameter generating system in a bidding process according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for generating random parameters in a bidding process according to an embodiment of the present application;
FIG. 3 is a block diagram of a random parameter generating apparatus in the bidding process provided by one embodiment of the present application;
FIG. 4 is a block diagram of a random parameter generating device in the bidding process according to an embodiment of the present application;
FIG. 5 is a block diagram of a random parameter generating apparatus in the bidding process provided by one embodiment of the present application;
fig. 6 is a block diagram of a random parameter generating apparatus in a logo opening process according to an embodiment of the present application.
Detailed Description
The following describes in further detail the embodiments of the present application with reference to the drawings and examples. The following examples are illustrative of the application and are not intended to limit the scope of the application.
First, several terms related to the present application will be described.
Blockchain (Block chain): the technical scheme is that a reliable database is maintained in a collective way through decentralization and de-trust. A blockchain is a chain data structure that is formed by sequentially concatenating data blocks in a temporal order. The blockchain cryptographically ensures that the data block is not tamperable and counterfeitable. A blockchain includes one or more blocks. Each block in the blockchain is linked to a previous block by a cryptographic hash that includes the immediately preceding block in the blockchain. Each chunk also includes a timestamp, a cryptographic hash of the chunk, and one or more transactions (transactions).
Intelligent contract: also known as a smart contract, is a contract that can be automatically executed on a computer system when certain conditions are met. If the blockchain is a database, the intelligent contract is an application layer that enables blockchain technology to be applied to reality. A smart contract is a computer program running on a blockchain database that can execute itself when the conditions written in its source code are met. The smart contracts, once compiled, can be trusted by the user and the contract terms cannot be changed, so the contract is unalterable.
Fig. 1 is a schematic structural diagram of a random parameter generating system in a bidding process according to an embodiment of the present application, where, as shown in fig. 1, the system at least includes: a bid client 110 and a bid server 120.
Bidding clients 110 are clients for use by bidders. Bidding clients 110 provide bidding services for bidders. The bid client 110 has a function of generating a bid file and transmitting the bid file to the bid server 120.
Bid server 120 accesses the blockchain, i.e., is communicatively coupled to 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 bidding server 120.
When each bidder creates a bid document locally, the bid client 110 generates a random factor (e.g., universal unique identifier (Universally Unique Identifier, UUID)) and calculates a first hash value of the random factor after generating the random factor.
The first hash value is calculated using a hash algorithm on the random factor. Alternatively, 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 the 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 embodiment does not limit the encryption manner of the random factor.
The bidding document refers to a response document compiled by bidders according to bidding document requirements, and generally consists of 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 bid client 110 transmits the bid file to the bidding server 120. Wherein the bid file is pre-encrypted prior to transmission. The encryption mode is the same as or different from the encryption mode of the random factor.
Bidding server 120 is configured to: receiving the encrypted random factor and the first hash value transmitted by the bidding client 110; uploading the encrypted random factor and the first hash value to the blockchain.
Optionally, bidding server 120 is also configured to store the bidding document (or encrypted bidding document) sent with the encrypted randomization factor locally.
Then, the bidding server 120 obtains the encrypted random factor from the blockchain during bidding, and decrypts the encrypted 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 blockchain when the first hash value is the same as the second hash value.
The intelligent contract is used for acquiring a plurality of random factors stored in 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 marks.
In the application, the blockchain is a distributed account book technology, and the characteristic of transparent multiparty consensus is disclosed, so that the generation of random numbers directly through a blockchain intelligent contract becomes impossible, and the randomness of the random numbers is required to depend on random factors input outside the blockchain. The scheme combines the bidding document production and the bidding process of the bidding business process, fully utilizes the existing digital certificate encryption and decryption logic to design the unique random factor generation logic of bidding, ensures that the random factor is not revealed before bidding, and combines the hash operation characteristics to control random seeds even if a plurality of people are in series. And combining the characteristics of non-tamperability of the blockchain and traceability of the data to ensure that the random factor is non-tamperable in the whole process, the extraction method is strictly executed according to established logic, and the extraction result can be verified afterwards.
The method for generating random parameters in the bidding process is described in detail below.
Fig. 2 is a flowchart of a method for generating random parameters in the bidding process according to an embodiment of the present application, and this embodiment is described by taking the application of the method to the random parameter generating system in the bidding process shown in fig. 1 as an example. 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 intelligent contracts on the blockchain accessed by the bidding server to generate random number seeds; and inputting the random number seeds into a random number generator to obtain random parameters for opening marks.
In one example, the random factor is a UUID generated by the bidding client at the time of making the bidding document.
And 202, encrypting the random factor by the bidding client 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 using a hash algorithm on the random factor. Alternatively, the hash algorithm includes, but is not limited to: MD5, SHA-1, SM3, etc.
In step 204, the bidding client transmits 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 transmitted when the bidding client transmits the bid file to the bidding server. Wherein the bid file is pre-encrypted prior to transmission. The encryption mode is the same as or different from the encryption mode of the random factor.
Step 205, the bidding server receives the first hash value and the encrypted random factor sent by the bidding client; uploading the encrypted random factor and the first hash value to the blockchain.
Step 206, the bidding server reads the encrypted random factors stored on the blockchain for each random factor, wherein the encrypted random factors are sent by the bidding clients used by the bidders; accordingly, the nodes on the blockchain send the encrypted random factors to the bidding server.
Step 207, decrypting the encrypted random factor by the bidding server to obtain a decrypted random factor; uploading the decrypted random factor to the blockchain.
The bidding server obtains the encrypted random factor from the blockchain during bidding, 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 during the bidding phase. 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 way 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 blockchain when the first hash value is the same as the second hash value.
When the first hash value is identical to the second hash value, the random factor is not tampered, and the decrypted random factor is safe and can be stored in the blockchain. 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 not safe any more and is not stored in the blockchain.
Step 210, a node on a blockchain obtains 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 marks.
The random factor is uploaded by each bidder in the bidding process.
The intelligent contract is operated on the blockchain, and when random factors uploaded by all bidders are decrypted and stored on the blockchain, the intelligent contract is triggered to execute and acquire a plurality of random factors stored on the blockchain; 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 marks.
Optionally, generating the 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 a random number seed.
In one example, stitching the plurality of random factors to obtain the random factor sequence includes: ordering the plurality of random factors according to a preset dictionary sequence; and splicing the plurality of ordered random factors to obtain a random factor sequence.
Of course, the splicing manner of the random factors can be other manners, for example: the present embodiment does not limit the way in which the random factors are concatenated in the manner in which the order is written on the blockchain.
The random number generator is used for generating pseudo random numbers or for generating a sequence value calculated by a complex method. In operation, the random number generator requires a seed value. The seed values are different and the sequence values obtained are also different. Optionally, the random number generator is a linear congruence generator.
Step 211, performing intelligent contract on the blockchain by the nodes on the blockchain based on the open label random parameters to perform parameter extraction, so as to obtain an extraction result; and storing the extraction result in the blockchain.
Specific parameter extraction logic is agreed in the intelligent contract, and extraction results can be obtained based on the intelligent contract.
Alternatively, the extraction result may indicate an in-range unit; or, the extraction result is the evaluation parameter.
In summary, according to the random parameter generation method in the bidding process provided by the embodiment, the plurality of random factors stored in the blockchain are obtained, and 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 marks; the problem of poor fairness of the conventional random parameter generation method can be solved; because the blockchain has the characteristics of disclosure, transparency and multiparty consensus, at this time, the blockchain needs to obtain random parameters based on random factors of all bidders, rather than generating random parameters in a single party, so that fairness of a random parameter generation process can be ensured.
In addition, the digital certificate of the bidder is used for encrypting the random factor, so that the extraction result is prevented from being revealed before bidding.
In addition, the extraction scheme is disclosed to all users through intelligent contracts, so that fairness of the extraction process can be guaranteed.
In addition, the extraction process is based on a block chain intelligent contract consensus mechanism, so that the extraction code cannot be unilaterally modified to achieve the purpose of camera bellows operation, and the safety of the extraction process can be ensured.
In addition, any person can verify the authenticity of the extraction result by the random factor uploaded by the bidder before the bid is opened and the disclosed extraction scheme.
Fig. 3 is a block diagram of a random parameter generating device in the bidding process according to an embodiment of the present application, and this embodiment is described by taking the application of the device to a node on a blockchain in the bidding process shown in fig. 1 as an example. The device at least comprises the following modules: factor acquisition module 310, seed generation module 320, parameter generation module 330.
A factor obtaining module 310, configured to obtain a plurality of random factors stored on the blockchain, where the random factors are uploaded by each bidder in the bidding process;
a seed generation module 320 for generating a random number seed based on the plurality of random factors;
the parameter generation module 330 is configured to input the random number seed into a random number generator, and obtain a random parameter for opening a label.
For relevant details reference is made to the method embodiments described above.
Fig. 4 is a block diagram of a random parameter generating apparatus in an opening process according to an embodiment of the present application, and this embodiment is described by taking a bidding client 110 in a random parameter generating system in the opening process shown in fig. 1 as an example. The device at least comprises the following modules: factor generation module 410, factor encryption module 420, hash value calculation module 430, and data transmission module 440.
A factor generation module 410 for generating a random factor for triggering a smart contract running on a blockchain accessed by a bidding server to generate a random number seed; inputting the random number seeds into a random number generator to obtain random parameters for opening marks;
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;
and a data sending module 440, configured to send 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 blockchain.
For relevant details reference is made to the method embodiments described above.
Fig. 5 is a block diagram of a random parameter generating apparatus in the bidding process according to an embodiment of the present application, and this embodiment is described by taking a bidding server 120 in the random parameter generating system in the bidding process shown in fig. 1 as an example. The device at least comprises the following modules: a data receiving module 510 and a data uploading module 520.
The data receiving module 510 is 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 blockchain, so that the blockchain 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 with 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 marks.
For relevant details reference is made to the method embodiments described above.
It should be noted that: when the random parameter generating device in the bidding process provided in the above embodiment performs random parameter generation in the bidding process, only the division of the functional modules is used for illustration, in practical application, the function allocation may be completed by different functional modules according to needs, that is, the internal structure of the random parameter generating device in the bidding process is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the device for generating the random parameter in the bidding process and the method embodiment for generating the random parameter in the bidding process provided in the foregoing embodiments belong to the same concept, and the detailed implementation process of the device is referred to the method embodiment and will not be described herein.
Fig. 6 is a block diagram of a random parameter generating apparatus in an opening process, which may be the bidding client 110 or bidding server 120 in the random parameter generating system in the opening process shown in fig. 1, according to an embodiment of the present application. 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 DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 601 may also include a main processor, which is a processor for processing data in an awake state, also called a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 601 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 601 may also include an AI (Artificial Intelligence ) processor for processing computing 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 indexing process provided by the method embodiments of the present application.
In some embodiments, the random parameter generating device in the bidding process may further include: a peripheral interface and at least one peripheral. The processor 601, memory 602, and peripheral interfaces may be connected by buses or signal lines. The individual peripheral devices may be connected to the peripheral device interface via buses, signal lines or circuit boards. Illustratively, peripheral devices include, but are not limited to: radio frequency circuitry, touch display screens, audio circuitry, and power supplies, among others.
Of course, the random parameter generating device in the bidding process may also 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, where the program is loaded and executed by a processor to implement a method for generating random parameters in the process of opening a label according to the above method embodiment.
Optionally, the present application further provides a computer product, where the computer product includes a computer readable storage medium, where a program is stored, where the program is loaded and executed by a processor to implement a method for generating random parameters in the labeling process of the above method embodiment.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (9)

1. A method of generating random parameters in a bid-opening process for use in nodes on a blockchain, the method comprising:
acquiring a plurality of random factors stored on the blockchain, wherein the random factors are uploaded by all bidders in the bidding process; the block chain is also stored with a first hash value corresponding to each random factor and encrypted random factors; before the obtaining the plurality of random factors stored on the blockchain, the method further includes: transmitting the encrypted random factor to a bidding server so that the bidding server can 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 with 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;
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 marks.
2. The method of claim 1, wherein the 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.
3. The method of claim 2, wherein the concatenating the plurality of random factors results in a random factor sequence, comprising:
sorting the plurality of random factors according to a preset dictionary sequence;
and splicing the plurality of ordered random factors to obtain the random factor sequence.
4. A method according to any one of claims 1 to 3, wherein said inputting said random number seed into a random number generator, after obtaining a random parameter for signature, further comprises:
parameter extraction is carried out based on the random parameters for opening marks, and an extraction result is obtained;
and storing the extraction result to the blockchain.
5. A method for generating random parameters in a bid opening process, the method being used in a bid client, the method comprising:
generating a random factor, wherein the random factor is used for triggering intelligent contracts running on a blockchain accessed by a bidding server to generate a random number seed; inputting the random number seeds into a random number generator to obtain random parameters for opening marks;
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 blockchain.
6. A method for generating random parameters in a bid opening process, for use in a bid server, the bid server accessing a blockchain, the method comprising:
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 for the blockchain to calculate a second hash value of the decrypted random factor; comparing the first hash value with 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 marks.
7. A random parameter generation apparatus for use in a node on a blockchain in an opening process, the apparatus comprising:
the factor acquisition module is used for acquiring a plurality of random factors stored on the blockchain, wherein the random factors are uploaded by each bidder in the bidding process;
a seed generation module for generating 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 random parameters for opening marks.
8. A random parameter generating device in a bidding process, for use 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 intelligent contracts running on a blockchain accessed by the bidding server to generate a random number seed; inputting the random number seeds into a random number generator to obtain random parameters for opening marks;
the factor encryption module is used for encrypting the random factors to obtain encrypted random factors;
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 can upload the encrypted random factor and the first hash value to the blockchain.
9. A random parameter generating apparatus for use in a bidding process, the bidding server accessing a blockchain, the apparatus comprising:
the data receiving module is used for receiving a first hash value and an encrypted random factor, 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 blockchain so that the blockchain can decrypt the encrypted random factor to obtain the decrypted random factor; calculating a second hash value of the decrypted random factor; comparing the first hash value with 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 marks.
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 CN111538479A (en) 2020-08-14
CN111538479B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112348596B (en) * 2020-11-26 2023-08-11 中国联合网络通信集团有限公司 Bid quotation method, system, equipment and storage medium based on blockchain
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
CN115376239B (en) * 2022-08-23 2023-04-21 北京女娲补天科技信息技术有限公司 Method, device, system, computer equipment and storage medium for registering and shaking numbers

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

Also Published As

Publication number Publication date
CN111538479A (en) 2020-08-14

Similar Documents

Publication Publication Date Title
CN111538479B (en) Random parameter generation method and device in bidding process
JP6692234B2 (en) System and method for issuing security domain key management using global platform specifications
CN112751852A (en) Data transmission method and related equipment
CN107294709A (en) A kind of block chain data processing method, apparatus and system
EP3673640B1 (en) Processing data elements stored in blockchain networks
CN110061840A (en) Data ciphering method, device, computer equipment and storage medium
CN109214201B (en) Data sharing method, terminal equipment and computer readable storage medium
WO2016053729A1 (en) Method and system for secure management of computer applications
US10146701B2 (en) Address-dependent key generation with a substitution-permutation network
CN105468940B (en) Method for protecting software and device
WO2020199028A1 (en) Security chip, security processing method and related device
CN112019561B (en) Digital encryption method and system based on block chain technology
CN107277028A (en) The method and device, equipment, storage medium of chatting facial expression are transmitted between application
CN109815747A (en) Offline auditing method, electronic device and readable storage medium storing program for executing based on block chain
CN110210591A (en) A kind of wiring method, computer installation and the computer readable storage medium of intellective IC card personal data
CN109547208A (en) Electronic Finance equipment master key online distribution method and system
US20230237437A1 (en) Apparatuses and methods for determining and processing dormant user data in a job resume immutable sequential listing
WO2021057124A1 (en) Fpga-based privacy block chain implementing method and device
CN110912892B (en) Certificate management method and device, electronic equipment and storage medium
CN109408486A (en) File distribution method and system, distribution server and file generation device
CN114780923A (en) Electronic seal management and control method and system
CN112636916A (en) Data processing method, data processing device, storage medium and electronic equipment
CN111147248A (en) Encrypted transmission method, device and system of face feature library and storage medium
CN117201120A (en) Information encryption method, device, computer equipment and storage medium
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