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

A scala-based blockchain contract implementation method and system

A blockchain and contract technology, applied in the blockchain field to reduce difficulty

Active Publication Date: 2020-01-24
北京连琪科技有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, with the widespread use of the blockchain, there are issues that need to be adapted to more application scenarios and allow third parties to write, sign and deploy, sign and call contracts

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
  • A scala-based blockchain contract implementation method and system
  • A scala-based blockchain contract implementation method and system
  • A scala-based blockchain contract implementation method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0052] The embodiment of the present invention provides a Scala-based block chain contract implementation method, such as figure 1 As shown, the method includes:

[0053] S11. Statically compile the contract in the integrated development environment, and realize the contract interface call through interface abstraction and class reflection m...

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 present invention provides a Scala-based blockchain contract implementation method and system. The method includes: statically compiling the contract in an integrated development environment, and implementing the contract interface call through interface abstraction combined with a class reflection mechanism; The class is named; the compiled contract is tested through the ScalaTest toolkit; the contract that passes the test is entered into the block through the signature transaction consensus of the Deploy type, and after the block is generated, the dynamic compilation and loading of the Scala contract class is realized through the class reflection mechanism. Network deployment; call the contract according to the contract identifier returned by the deployment. The present invention can use the Scala language which is Turing-complete and has been tested by engineering practice as the contract development language to expand the application scenarios of the block chain. difficulty.

Description

technical field [0001] The invention relates to the technical field of block chains, in particular to a Scala-based block chain contract implementation method and system. Background technique [0002] Blockchain technology uses block chain data structure to verify and store data, uses distributed node consensus algorithm to generate and update data, uses cryptography to ensure the security of data transmission and access, and utilizes intelligence composed of automated script codes. A new distributed infrastructure and computing method that uses contracts to program and manipulate data. [0003] However, with the widespread use of the blockchain, there are issues that need to be adapted to more application scenarios and allow third parties to write, sign, deploy, and sign calls to contracts. Contents of the invention [0004] The Scala-based block chain contract implementation method and system provided by the present invention can use the Scala language that is Turing-co...

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 Patents(China)
IPC IPC(8): G06F8/20G06F8/41
CPCG06F8/20G06F8/41
Inventor 陈胜蒋步云
Owner 北京连琪科技有限公司
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