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

Log query method and device, node equipment and storage medium

A query method and log technology, applied in the blockchain field, can solve problems such as cumbersome process and insufficient convenience, and achieve the effect of improving convenience

Active Publication Date: 2020-04-24
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method of querying logs is cumbersome and not convenient enough

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
  • Log query method and device, node equipment and storage medium
  • Log query method and device, node equipment and storage medium
  • Log query method and device, node equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention.

[0032] Blockchain is a new application model of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism and encryption algorithm. It is essentially a decentralized database. The main concepts involved in the blockchain include smart contracts, virtual machines, accounts, transactions, events, and logs, as follows:

[0033] Smart contract: The smart contract is the core of the blockchain, which is equivalent to an automatic agent in the blockchain, and each smart contract corresponds to a contract address. When a transaction including a contract address is received, the smart contract corresponding to the contract address is activated, and the blockchain runs the code corresponding to the smart contract.

[0034] Virtual Machine (...

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 embodiment of the invention discloses a log query method and device, node equipment and a storage medium, and the method comprises the following steps: receiving a log query request which comprises a first address of a log management contract in a blockchain and the identification of target log data requested to be called; obtaining a log management contract according to the first address, thelog management contract comprising a second address of a pre-compiled contract, the pre-compiled contract being used for transmitting log data generated by a business transaction in a blockchain fromthe log management contract to a preset storage location for storage; and calling the pre-compiled contract according to the second address by running the log management contract to obtain target logdata corresponding to the identifier of the target log data from a preset storage position. By adopting the embodiment of the invention, the log can be inquired more conveniently.

Description

technical field [0001] The present invention relates to the technical field of block chains, in particular to a log query method, device, node device and storage medium. Background technique [0002] With the development of blockchain technology, blockchain is used by more and more enterprises and users. In the blockchain, users or enterprises publish transactions to the blockchain, and the node devices in the blockchain execute the business indicated by the transaction, and store the log data generated by executing the indicated business process, so that subsequent users can The execution of the business is analyzed through the log data. [0003] At present, most of the log data in the blockchain are encrypted by the MPT tree (an encrypted data authentication structure encryption algorithm) and stored in the database in the form of key-value pairs. If the user wants to query the log data, he needs to query the encrypted non-plaintext log data from the database according t...

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
IPC IPC(8): G06F16/14G06F16/18G06F16/182G06Q20/38G06Q40/02G06Q40/04
CPCG06F16/14G06F16/1815G06F16/182G06Q20/389G06Q40/02G06Q40/04
Inventor 李茂材刘区城王宗友孔利周开班刘攀张劲松蓝虎时一防朱耿良杨常青黄焕坤崔嘉辉
Owner TENCENT TECH (SHENZHEN) 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