CN114726534A - Method for realizing intelligent contract drawing based on Solana block chain technology - Google Patents

Method for realizing intelligent contract drawing based on Solana block chain technology Download PDF

Info

Publication number
CN114726534A
CN114726534A CN202210314236.7A CN202210314236A CN114726534A CN 114726534 A CN114726534 A CN 114726534A CN 202210314236 A CN202210314236 A CN 202210314236A CN 114726534 A CN114726534 A CN 114726534A
Authority
CN
China
Prior art keywords
intelligent contract
solana
block chain
rule
seed
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.)
Pending
Application number
CN202210314236.7A
Other languages
Chinese (zh)
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.)
Hainan Grid Mountain Network Technology Co ltd
Original Assignee
Hainan Grid Mountain Network Technology 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 Hainan Grid Mountain Network Technology Co ltd filed Critical Hainan Grid Mountain Network Technology Co ltd
Priority to CN202210314236.7A priority Critical patent/CN114726534A/en
Publication of CN114726534A publication Critical patent/CN114726534A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • Technology Law (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to the technical field of Solana application, in particular to a method for realizing intelligent contract drawing based on a Solana block chain technology, which comprises the following steps: firstly, deploying an intelligent contract A on a Solana blockchain; extracting digit numbers which are only numbers to be provided to a drawing system as Seed; secondly, deploying an intelligent contract B on a Solana block chain; the lottery rules are coded and then are deployed on a Solana block chain; thirdly, operating the drawing system; a mid-signing rule is transmitted, and then private key signature is carried out and submitted to a Solana block chain to start a drawing event; when the block height reaches the block number corresponding to the lottery drawing time, the intelligent contract A extracts the Seed corresponding to the digit according to the contract rule and transmits the Seed into the intelligent contract B; and fourthly, the user/event host performs private key signature triggering result publicity. The invention can better draw lots.

Description

Method for realizing intelligent contract drawing based on Solana block chain technology
Technical Field
The invention relates to the technical field of Solana application, in particular to a method for realizing intelligent contract drawing based on a Solana block chain technology.
Background
The blockchain technology is a novel technology for processing data and storing data, and with the utilization of various certification modes (zero knowledge certification, historical certification and the like) and common recognition forms, the novel blockchain can be applied to all aspects of fields. The high-efficiency and safe Solana block chain enables a large number of personnel to participate or the block chain system for starting the lottery at different frequencies to be possible due to the high-efficiency transaction rate and the block-out time of the Solana block chain. Meanwhile, the unique history proves that the safety is higher.
Under the background of continuous progress and improvement of various network intelligent technologies and national self-consciousness, more and more decisions, votes and swabs are applied to various parts of our lives, such as house-buying lottery numbers, license plate lottery numbers, market lottery or various competition lottery numbers and the like. There is therefore a need for a drawing method that is more reliable, transparent and verifiable.
Disclosure of Invention
It is an object of the present invention to provide a method for implementing intelligent contract draw based on the Solana blockchain technique, which overcomes some or some of the disadvantages of the prior art.
The invention discloses a method for realizing intelligent contract drawing based on a Solana block chain technology, which comprises the following steps:
firstly, deploying an intelligent contract A on a Solana blockchain; the intelligent contract A processes and appoints the digital extraction of the Solana block HASH in the future according to a certain rule, and the digit number which is only a number is extracted from the HASH and is used as the Seed to be provided to the drawing system;
secondly, deploying an intelligent contract B on a Solana block chain; on the basis of the intelligent contract A, the user/activity host is coded according to the drawing rule and then deployed on the Solana block chain;
thirdly, operating the drawing system; a signing rule is transmitted to the intelligent contract B, and then a private key signature is carried out and submitted to a Solana block chain to start a drawing event; when the block height reaches the block number corresponding to the lottery drawing time, the intelligent contract A extracts the Seed corresponding to the digit according to the contract rule and transmits the Seed into the intelligent contract B, and the system for carrying out the contract by the Seed provided by the intelligent contract A, the drawing rule provided by the intelligent contract B and the transmitted drawing rule completes a complete drawing event;
and fourthly, the user/event host performs private key signature triggering result publicity.
Preferably, in the first step, the number of digits is set according to the needs of the user/event host.
Preferably, in step three, the signing rule includes: the number of participants, the number of Chinese signs, the time of drawing a prize, and the number of Seed.
Preferably, in step three, when the drawing event is started, the drawing rule and the middle drawing rule are both transparently disclosed to the block chain.
Preferably, in step four, when any person with objection can apply for the third party to perform public verification after the result is disclosed, anyone can independently run the drawing program of the Seed value + the drawing rule in the intelligent contract B + to perform the result of the drawing system for re-verification.
The invention utilizes the Solana block chain technology to carry out on-chain deployment and HASH as Seed to participate in transparent calculation on the traditional lottery system, thereby fully ensuring the full transparentization of the processes of running, setting, lottery drawing and the like of the lottery system and the risk of no black box operation. And the characteristics of non-tampering and permanent retention of the block chain data are fully utilized, and the fact that any drawing event can be verified again and inquired permanently in the future is guaranteed. This drawing system may be used in major events or decisions to increase the confidence level for all participants.
Drawings
Fig. 1 is a flowchart of a method for implementing intelligent contract drawing based on the Solana blockchain technology.
Detailed Description
For a further understanding of the invention, reference should be made to the following detailed description taken in conjunction with the accompanying drawings and examples. It is to be understood that the examples are illustrative of the invention and not limiting.
Example 1
As shown in fig. 1, the present embodiment provides a method for implementing intelligent contract drawing based on the Solana blockchain technology, which includes the following steps:
firstly, deploying an intelligent contract A on a Solana block chain; the intelligent contract A processes and appoints the digital extraction of the Solana block HASH in the future according to a certain rule, and the digit number which is only a number is extracted from the HASH and is used as the Seed to be provided to the drawing system; the digit number of the number is set according to the requirement of the user/event host, for example, [ 79eHuWE2LTK1ngmykr9E1jn5o9GJrqb6qSUQUG2u7Czw ] needs 5 digits, and after the appointed hash is out of blocks, the provided seed value is 79219 (if the digit number is not enough, the contract automatically postpones the selection of the digit of the hash of the next block for digit splicing, because the TPS with high efficiency of Solana does not wait for too long a time millisecond level). And after the intelligent contract A is deployed, providing a corresponding request interface for the system call of the drawing and signing algorithm.
Secondly, deploying an intelligent contract B on the Solana block chain; on the basis of the intelligent contract A, the user/activity host is coded according to the drawing rule and then deployed on the Solana block chain; meanwhile, the Seed value of the lottery rule calculation parameter is obtained through the API interface of the intelligent contract A, because the block HASH in the future is unpredictable, the absolute fairness of the Seed in the lottery system is ensured, and the intelligent contract A needs to be transmitted with the bit number of specific parameters such as the Seed value (the higher the bit number is, the greater the violent enumeration difficulty of the lottery result) and the block or time for drawing the prize.
Thirdly, operating the drawing system; after the intelligent contracts of the A and the B are deployed, the contract system on the chain is in a state to be run, and when the drawing system is started, drawing rules, such as the number of participants, the number of drawing persons, the lottery drawing time and the Seed number, are transmitted to the intelligent contract B. Then, carrying out private key signature and submitting the private key signature to a Solana block chain to start a drawing event, wherein the drawing rule and the middle drawing rule are both transparently disclosed to the block chain; when the block height reaches the block number corresponding to the lottery drawing time, the intelligent contract A extracts the Seed corresponding to the digit according to the contract rule and transmits the Seed into the intelligent contract B, and the system for carrying out the contract by the Seed provided by the intelligent contract A, the drawing rule provided by the intelligent contract B and the transmitted drawing rule completes a complete drawing event;
and fourthly, the user/the event host performs private key signature triggering result publicity.
Because the block chain cannot automatically trigger the operation and the display of the system, when the public result is reached, the private key signature triggering result display needs to be carried out by the lottery event host, and the display mode of the result can be independently determined by a person using the system.
When any objection person can apply for the public verification by a third party after the result is disclosed, the HASH of the drawing is disclosed, namely the Seed value is determined. The drawing algorithm rule and the input drawing rule of the intelligent contract B are also determined, and anyone can independently run the drawing program of the Seed value + the intelligent contract B + the drawing rule to verify the result of the drawing system again.
In the embodiment, a Solana block chain technology is used for carrying out on-chain deployment and HASH on a traditional drawing system as Seed participation transparent calculation, so that the full transparence of the processes of running, setting, drawing prizes and the like of the drawing system and the risk of black-box-free operation are fully ensured. And the characteristics of non-tampering and permanent retention of the block chain data are fully utilized, and the fact that any drawing event can be verified again and inquired permanently in the future is guaranteed. This drawing system may be used in major events or decisions to increase the confidence level for all participants.
The present invention and its embodiments have been described above schematically, without limitation, and what is shown in the drawings is only one of the embodiments of the present invention, and the actual structure is not limited thereto. Therefore, if the person skilled in the art receives the teaching, without departing from the spirit of the invention, the person skilled in the art shall not inventively design the similar structural modes and embodiments to the technical solution, but shall fall within the scope of the invention.

Claims (5)

1. A method for realizing intelligent contract drawing based on a Solana block chain technology is characterized in that: the method comprises the following steps:
firstly, deploying an intelligent contract A on a Solana blockchain; the intelligent contract A processes and appoints the digital extraction of the Solana block HASH in the future according to a certain rule, and the digit number which is only a number is extracted from the HASH and is used as the Seed to be provided to the drawing system;
secondly, deploying an intelligent contract B on a Solana block chain; on the basis of the intelligent contract A, the user/activity host is coded according to the drawing rule and then deployed on the Solana block chain;
thirdly, operating the drawing system; a signing rule is transmitted to the intelligent contract B, and then a private key signature is carried out and submitted to a Solana block chain to start a drawing event; when the block height reaches the block number corresponding to the lottery drawing time, the intelligent contract A extracts the Seed corresponding to the digit according to the contract rule and transmits the Seed into the intelligent contract B, and the system for carrying out the contract by the Seed provided by the intelligent contract A, the drawing rule provided by the intelligent contract B and the transmitted drawing rule completes a complete drawing event;
and fourthly, the user/event host performs private key signature triggering result publicity.
2. The method for realizing intelligent contract drawing based on the Solana block chain technology as claimed in claim 1, wherein: in the first step, the digit number of the number is set according to the requirement of the user/event host.
3. The method for realizing intelligent contract drawing based on the Solana block chain technology as claimed in claim 1, wherein: in the third step, the medium signing rule comprises: the number of participants, the number of Chinese signs, the time of drawing a prize, and the number of Seed.
4. The method for realizing intelligent contract drawing based on the Solana block chain technology as claimed in claim 1, wherein: in the third step, when the drawing event is started, the drawing rule and the middle drawing rule are both transparently disclosed to the block chain.
5. The method for realizing intelligent contract drawing based on the Solana block chain technology as claimed in claim 1, wherein: in the fourth step, after the result is disclosed, any person with objection can apply for a third party to carry out public verification, and any person can independently run the drawing program with the Seed value + intelligent contract B + drawing rule to carry out re-verification on the result of the drawing system.
CN202210314236.7A 2022-03-28 2022-03-28 Method for realizing intelligent contract drawing based on Solana block chain technology Pending CN114726534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210314236.7A CN114726534A (en) 2022-03-28 2022-03-28 Method for realizing intelligent contract drawing based on Solana block chain technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210314236.7A CN114726534A (en) 2022-03-28 2022-03-28 Method for realizing intelligent contract drawing based on Solana block chain technology

Publications (1)

Publication Number Publication Date
CN114726534A true CN114726534A (en) 2022-07-08

Family

ID=82238952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210314236.7A Pending CN114726534A (en) 2022-03-28 2022-03-28 Method for realizing intelligent contract drawing based on Solana block chain technology

Country Status (1)

Country Link
CN (1) CN114726534A (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107742352A (en) * 2017-09-20 2018-02-27 黄玉宇 Decentralization lot/queuing strategy and system based on block chain and intelligent contract
CN107862782A (en) * 2017-10-27 2018-03-30 链家网(北京)科技有限公司 Drawing method and device based on ether mill block chain
CN108447014A (en) * 2018-03-19 2018-08-24 成都零光量子科技有限公司 A kind of block chain lottery industry method and system
CN108831002A (en) * 2018-07-06 2018-11-16 电子科技大学 A kind of welfare lottery ticket justice based on block chain is announced the winners in a lottery method
KR101928087B1 (en) * 2018-01-03 2019-02-26 한국조폐공사 Method for managing on-line lottery based on blockchain and server using the same
CN109886750A (en) * 2019-02-25 2019-06-14 浪潮软件集团有限公司 A kind of transparent random prize drawing implementation method based on block chain
CN110135909A (en) * 2019-05-15 2019-08-16 山东工商学院 Data processing method, system, equipment and storage medium based on zero-knowledge proof
TWM587780U (en) * 2019-05-07 2019-12-11 雷酷資訊科技有限公司 Blockchain electronic ticketing system with random-selected ticket selling and ticket distributing mechanism
CN111008863A (en) * 2019-11-28 2020-04-14 湖南天河国云科技有限公司 Lottery drawing method and system based on block chain
CN111314069A (en) * 2020-02-13 2020-06-19 苏州同济区块链研究院有限公司 Block chain-based shaking system and method, electronic device and storage medium
KR20200112557A (en) * 2019-03-22 2020-10-05 (주)비스퀘어랩 Method and device for a transparent lottery system by using a blockchain network
CN112712632A (en) * 2020-11-17 2021-04-27 中科扶云(杭州)科技有限公司 Random shaking number processing method and device, electronic device and storage medium
CN112765269A (en) * 2020-12-31 2021-05-07 杭州趣链科技有限公司 Data processing method, device, equipment and storage medium
CN113034137A (en) * 2021-03-12 2021-06-25 腾讯科技(深圳)有限公司 Data processing method and device based on block chain and related equipment
CN113157700A (en) * 2021-04-26 2021-07-23 太原理工大学 Block chain technology-based rapid drawing/sorting method
CN113986197A (en) * 2021-10-29 2022-01-28 深圳市小绿人网络信息技术有限公司 Random number generation method based on block chain technology

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107742352A (en) * 2017-09-20 2018-02-27 黄玉宇 Decentralization lot/queuing strategy and system based on block chain and intelligent contract
CN107862782A (en) * 2017-10-27 2018-03-30 链家网(北京)科技有限公司 Drawing method and device based on ether mill block chain
KR101928087B1 (en) * 2018-01-03 2019-02-26 한국조폐공사 Method for managing on-line lottery based on blockchain and server using the same
CN108447014A (en) * 2018-03-19 2018-08-24 成都零光量子科技有限公司 A kind of block chain lottery industry method and system
CN108831002A (en) * 2018-07-06 2018-11-16 电子科技大学 A kind of welfare lottery ticket justice based on block chain is announced the winners in a lottery method
CN109886750A (en) * 2019-02-25 2019-06-14 浪潮软件集团有限公司 A kind of transparent random prize drawing implementation method based on block chain
KR20200112557A (en) * 2019-03-22 2020-10-05 (주)비스퀘어랩 Method and device for a transparent lottery system by using a blockchain network
TWM587780U (en) * 2019-05-07 2019-12-11 雷酷資訊科技有限公司 Blockchain electronic ticketing system with random-selected ticket selling and ticket distributing mechanism
CN110135909A (en) * 2019-05-15 2019-08-16 山东工商学院 Data processing method, system, equipment and storage medium based on zero-knowledge proof
CN111008863A (en) * 2019-11-28 2020-04-14 湖南天河国云科技有限公司 Lottery drawing method and system based on block chain
CN111314069A (en) * 2020-02-13 2020-06-19 苏州同济区块链研究院有限公司 Block chain-based shaking system and method, electronic device and storage medium
CN112712632A (en) * 2020-11-17 2021-04-27 中科扶云(杭州)科技有限公司 Random shaking number processing method and device, electronic device and storage medium
CN112765269A (en) * 2020-12-31 2021-05-07 杭州趣链科技有限公司 Data processing method, device, equipment and storage medium
CN113034137A (en) * 2021-03-12 2021-06-25 腾讯科技(深圳)有限公司 Data processing method and device based on block chain and related equipment
CN113157700A (en) * 2021-04-26 2021-07-23 太原理工大学 Block chain technology-based rapid drawing/sorting method
CN113986197A (en) * 2021-10-29 2022-01-28 深圳市小绿人网络信息技术有限公司 Random number generation method based on block chain technology

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ANRAY: "Solana开发学习笔记(一)——从hello world 出发", pages 1 - 20, Retrieved from the Internet <URL:https://learnblockchain.cn/article/3155> *
MUTOUREND: "Solana中的跨合约调用及Program Derived Addresses", pages 1 - 8, Retrieved from the Internet <URL:https://blog.csdn.net/mutourend/article/details/121788076> *

Similar Documents

Publication Publication Date Title
CN107103097A (en) Drawing method and terminal device based on block chain technology
US11121880B2 (en) Method for reaching consensus on public distributed ledgers and system using the same
CN109493062B (en) Block chain consensus method based on credit equity certification
CN106022046B (en) A kind of accredited operation monitoring and managing method of special equipment
CN105049539A (en) Rebating method, device and system
CN109636998A (en) A kind of method and device drawn a lottery using block chain
CN109753269B (en) Random number generation method, device, equipment and storage medium for block chain
CN109213900A (en) A kind of data modification method, device, equipment and the medium of block chain
CN110164021B (en) A kind of random lottery drawing method and equipment of application block chain
CN114362987B (en) Distributed voting system and method based on block chain and intelligent contract
CN110855432A (en) Asynchronous BFT &amp; DPOS consensus mechanism for assigning verifier rewards based on verifiable random functions
CN111986794A (en) Anti-counterfeiting registration method and device based on face recognition, computer equipment and medium
CN110445795A (en) A kind of block chain certification uniqueness confirmation method
KR102051372B1 (en) Block Chain based Event Drawing Method
CN114726534A (en) Method for realizing intelligent contract drawing based on Solana block chain technology
CN115424335B (en) Living body recognition model training method, living body recognition method and related equipment
CN112907246B (en) BFT protocol and PoW mechanism-based block chain consensus protocol implementation method and system
KR20190119911A (en) Ticket Selling System Based on Blockchain
CN112102079B (en) Service data processing method and device, computer equipment and storage medium
CN108667615A (en) A kind of certificate user method for remote management
CN113935069A (en) Data verification method, device and equipment based on block chain and storage medium
Avinash et al. High Performance Electronic Voting Machine (EVM) Implementation Using ARM Cortex M3
DE102016213104A1 (en) Token-based authentication with signed message
CN113035195B (en) Artificial intelligence voice interaction terminal equipment
CN114666068B (en) Credible random number generation method and device based on alliance chain

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