Unlock instant, AI-driven research and patent intelligence for your innovation.

Log query method, device, node device 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: 2022-07-22
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 0 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, device, node device and storage medium
  • Log query method, device, node device and storage medium
  • Log query method, device, node device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0032] Blockchain is a new application mode 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. The following are the details:

[0033] Smart contracts: Smart contracts are the core of the blockchain and are equivalent to automatic agents in the blockchain. Each smart contract corresponds to a contract address. When a transaction including the 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.

[003...

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

Embodiments of the present invention disclose a log query method, device, node device, and storage medium, wherein the method includes: receiving a log query request, where the log query request includes a first address of a log management contract in a blockchain and a requested fetched address The identifier of the target log data; the log management contract is obtained according to the first address, the log management contract includes the second address of the precompiled contract, and the precompiled contract is used to transmit the log data generated by business transactions in the blockchain from the log management contract. to the preset storage location for storage; the target log data corresponding to the identifier of the target log data is obtained from the preset storage location by running the log management contract to call the precompiled contract according to the second address. By adopting the embodiment of the present invention, the log can be queried more conveniently.

Description

technical field [0001] The present invention relates to the technical field of blockchain, and 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 the execution of the indicated business process, so that subsequent users can The execution of the business is analyzed through log data. [0003] At present, most of the log data in the blockchain is encrypted by 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 ...

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