Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Implementation method of blockchains

A blockchain and block technology, applied in the field of Python, can solve problems such as non-unique blocks

Inactive Publication Date: 2020-03-17
ZHUHAI HENGQIN SHENGDA ZHAOYE TECH INVESTMENT CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical problem solved by the present invention is to provide a method for block chain implementation; the present invention solves the problem that block chains generate new blocks that are not unique

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Implementation method of blockchains

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] Such as figure 1 Shown, the present invention adopts following steps:

[0015] Step 1. Create a block chain class, and the specific content is realized: 1. Initialize the block chain; 2. Initialize the chain stem; 3. Collect the chain stem results; 4. Generate gene block results; such as:

[0016] class qukuai:

[0017] def __init__(ziji, qukuai):

[0018] self.zhainy = [] / / initialize blockchain

[0019] self.workfarm = [] / / initialize chain trunk

[0020] for i in range(3):

[0021] self.workman.append(workman)

[0022] self.resul = [] / / collection chain result

[0023] self.oldschool (unfish) / / generate genetic results

[0024] Step 2. Create a return function receiver to receive the last blockchain object returned by Rastak, and compare the last block of the current blockchain to see if they are the same; for example:

[0025] def get_trans(self):

[0026] return json.unysl({ / / return object

[0027] 'sendto': ''.join(entin.sample(string.ascii_letters +stri...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the technical field of Python, in particular to a implementation method of blockchains. The method comprises the following steps: 1, creating a class of a blockchains; 2, returning to a last block object of the current block chains; 3, randomly generating a piece of transaction information; 4, generating a block result. According to the invention, the problem that new blocks generated by the blockchains are not unique is solved.

Description

technical field [0001] The present invention relates to the technical field of Python, in particular to a method for realizing blockchain. Background technique [0002] When developing the blockchain, it is impossible to determine the legal validity and uniqueness of the code of the block. When the codes at both ends execute the same block at the same time, it will be summarized into conflicts and hidden dangers in the mechanism. In addition, if the block increases infinitely and rapidly, It will cause the loss and conflict of some blocks. [0003] Aiming at this problem, the present invention creates a return function receiver to receive the last block chain object returned by Rastak, and compares whether the last block of the current block chain is the same, and successfully solves the above problem. Contents of the invention [0004] The technical problem solved by the present invention is to provide a method for realizing the block chain; the present invention solves ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/30G06Q40/04
CPCG06F8/30G06Q40/04
Inventor 任永强张来卿庞严冬
Owner ZHUHAI HENGQIN SHENGDA ZHAOYE TECH INVESTMENT CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products