An encoding and decoding method and system based on a blockchain smart contract
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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com