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

A coding and decoding method and system based on blockchain smart contracts

A technology of smart contracts and encoding methods, applied in the information field, can solve the problem of not supporting BASE64 encoding and decoding operations by default

Active Publication Date: 2020-05-12
ADVANCED NEW TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the problem that the existing Ethereum virtual machine does not support BASE64 encoding and decoding operations by default, the embodiment of this specification provides an encoding method and system based on blockchain smart contracts. The technical solution is as follows:

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 coding and decoding method and system based on blockchain smart contracts
  • A coding and decoding method and system based on blockchain smart contracts
  • A coding and decoding method and system based on blockchain smart contracts

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0116] figure 1 It is a schematic flow chart of a coding method based on a blockchain smart contract provided by the embodiment of this specification, including the following steps:

[0117] S100: A node in the blockchain network obtains a business and initiates a transaction and broadcasts it to other nodes.

[0118] S102: For each node in the blockchain network, when executing the business initiation transaction, the node invokes the business smart contract through the blockchain virtual machine.

[0119] S104: The node uses the blockchain virtual machine to trigger the execution of the BASE64 encoding logic according to the BASE64 encoding instruction in the business smart contract, so as to perform an encoding operation on the data to be encoded.

[0120] In this embodiment, it is necessary to pre-configure the blockchain network so that:

[0121] 1) The instruction set of the blockchain virtual machine includes BASE64 encoded instructions, and the blockchain virtual mac...

Embodiment 2

[0137] figure 2It is a schematic flowchart of another coding method based on blockchain smart contracts provided by the embodiment of this specification, including the following steps:

[0138] S200: A node in the blockchain network obtains a service and initiates a transaction and broadcasts it to other nodes.

[0139] S202: For each node in the blockchain network, when executing the business initiation transaction, the node invokes the business smart contract through a blockchain virtual machine.

[0140] S204: The node invokes the BASE64-encoded smart contract through the blockchain virtual machine according to the contract identifier of the BASE64-encoded smart contract in the business smart contract.

[0141] S206: The node uses the blockchain virtual machine to trigger the execution of the BASE64 encoding logic according to the BASE64 encoding instruction in the BASE64 encoding smart contract, so as to perform an encoding operation on the data to be encoded.

[0142] ...

Embodiment 3

[0150] image 3 It is a schematic flow chart of a coding method based on a blockchain smart contract provided by the embodiment of this specification, including the following steps:

[0151] S300: A node in the blockchain network obtains a service and initiates a transaction and broadcasts it to other nodes.

[0152] S302: For each node in the blockchain network, when executing the business initiation transaction, the node invokes the business smart contract through a blockchain virtual machine.

[0153] S304: The node uses the blockchain virtual machine to trigger the execution of the BASE64 decoding logic according to the BASE64 decoding instruction in the business smart contract, so as to decode the data to be decoded.

[0154] In this embodiment, it is necessary to pre-configure the blockchain network so that:

[0155] 1) The instruction set of the blockchain virtual machine includes BASE64 decoding instructions, and the blockchain virtual machine is deployed with BASE64...

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

A BASE64 encoding and decoding method and system based on blockchain smart contracts are disclosed. In the embodiment of this specification, on the one hand, BASE64 encoding instructions and BASE64 decoding instructions are defined and added to the instruction set of the blockchain virtual machine, and at the same time, the BASE64 encoding corresponding to the BASE64 encoding instruction is deployed in the blockchain virtual machine The logical sum corresponds to the BASE64 decode logic of the BASE64 decode instruction. On the other hand, it is also necessary to add the defined BASE64 encoding instructions and BASE64 decoding instructions to the instruction set of the smart contract compiler, so that the business smart contracts compiled by the smart contract compiler include BASE64 encoding instructions and / or BASE64 decoding instructions. In this way, if the business smart contract is deployed in the blockchain network, when the user constructs a business initiation transaction, he can specify to call the business smart contract to execute the business initiation transaction at the same time.

Description

technical field [0001] The embodiments of this specification relate to the field of information technology, and in particular to a coding and decoding method and system based on blockchain smart contracts. Background technique [0002] At present, by deploying smart contracts in the blockchain network based on the Ethereum protocol, various online business needs can be met. [0003] In practice, for some business needs, each node in the blockchain network needs to perform encoding and decoding based on 64 printable characters (BASE64) when calling the smart contract corresponding to the business demand through the Ethereum virtual machine to execute the business. operate. [0004] However, the existing Ethereum virtual machine does not support BASE64 encoding and decoding operations by default. Contents of the invention [0005] In order to solve the problem that the existing Ethereum virtual machine does not support BASE64 encoding and decoding operations by default, th...

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): G06F9/455
CPCH04L9/3249H04L9/3239G06F9/45504G06F8/41H04L9/50G06F16/2379G06F9/45558
Inventor 谢桂鲁
Owner ADVANCED NEW TECH 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