CN110990456A - Block chain-based information reading and converting method, device and medium - Google Patents

Block chain-based information reading and converting method, device and medium Download PDF

Info

Publication number
CN110990456A
CN110990456A CN201911203563.XA CN201911203563A CN110990456A CN 110990456 A CN110990456 A CN 110990456A CN 201911203563 A CN201911203563 A CN 201911203563A CN 110990456 A CN110990456 A CN 110990456A
Authority
CN
China
Prior art keywords
information
block chain
trusted node
block
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911203563.XA
Other languages
Chinese (zh)
Inventor
马振
庞松涛
商广勇
王伟兵
马岩堂
李佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Inspur Quality Chain Technology Co Ltd
Original Assignee
Shandong ICity Information Technology Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong ICity Information Technology Co., Ltd. filed Critical Shandong ICity Information Technology Co., Ltd.
Priority to CN201911203563.XA priority Critical patent/CN110990456A/en
Publication of CN110990456A publication Critical patent/CN110990456A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses an information reading and converting method, equipment and a medium based on a block chain, wherein the method comprises the following steps: determining one or more credible nodes by each node on the block chain according to a preset rule; the trusted node receives block chain query information from a user, wherein the block chain query information comprises: querying the target identification and the query condition data; the trusted node acquires first information from a corresponding block on the block chain according to the block chain query information; the trusted node converts the first information into second information according to a preset information conversion template; and the trusted node returns the second information to the corresponding user. The method and the device can ensure the reliability of the information conversion process, and finally help people understand the information in the block chain so as to improve the user experience.

Description

Block chain-based information reading and converting method, device and medium
Technical Field
The present application relates to the field of block chain information transformation technologies, and in particular, to a block chain-based information reading transformation method, device, and medium.
Background
The current block chain technology is gradually popularized, and is slowly integrated into the clothes and eating houses of people, and more scenes show the figure of the block chain.
However, the blockchain is still a certain threshold as a technology, and people who only know the characteristics of the blockchain but do not know how to view the blockchain cannot visually distinguish the blockchain. Therefore, a method is needed to help people understand the information in the blockchain to improve the user experience.
Disclosure of Invention
In order to solve the above problems, the present application provides an information reading and converting method, device, and medium based on a block chain, which can help people understand information in the block chain to improve user experience.
In a first aspect, an embodiment of the present application provides an information reading and translating method based on a block chain, including:
determining one or more credible nodes by each node on the block chain according to a preset rule;
the trusted node receives block chain query information from a user, wherein the block chain query information comprises: querying the target identification and the query condition data;
the trusted node acquires first information from a corresponding block on the block chain according to the block chain query information;
the trusted node converts the first information into second information according to a preset information conversion template;
and the trusted node returns the second information to the corresponding user.
In one example, the trusted node writes the second information to a block and sends an identification of the block to a user.
In one example, the user sends authentication information to nodes of the blockchain other than the trusted node, the authentication information including: the identity of the block and the second information;
and the node of the block chain verifies whether the second information exists or not by using the information in the corresponding block according to the identification of the block, and returns a verification result to the user.
In one example, the trusted node determines the information transformation template according to a product type;
the trusted node converts the first information into the second information according to the determined information conversion template;
wherein the query condition data comprises: and the product type and the credible node are prestored with a plurality of information conversion templates.
In one example, the trusted node determines whether the first information carries a secret-related data identifier;
and the trusted node returns corresponding prompt information to the user terminal when determining that the first information carries the secret-related data identifier.
In one example, intelligent contracts are deployed on individual nodes of the blockchain;
setting in the intelligent contract, wherein the triggering condition is that trusted node application messages with the number larger than a threshold value are received, and the trusted node application messages comprise: applying for credible qualification of the nodes; when the contract is set to be executed, the application nodes with new qualification meeting the preset value are determined, and voting is initiated aiming at the determined application nodes.
In one example, the trusted node presents the second information in one or more of text, voice, image.
In one example, at least one presentation template is received from a user, wherein each presentation template corresponds to the same second information;
initiating a vote for each of the presentation templates;
and sending the display template with the most votes to the trusted node.
In a second aspect, an embodiment of the present application provides an information reading and converting apparatus based on a block chain, including: a receiver, a processor, and an input device;
the processor is used for determining one or more credible nodes according to a preset rule;
the receiver is configured to receive a block chain query message from a user, where the block chain query message includes: inquiring target identification and inquiring condition data;
the processor is further configured to obtain first information from a corresponding block in the block chain according to the block chain query information; converting the first information into second information according to a preset information conversion template;
the transmitter is used for returning the second information to the corresponding user.
In a third aspect, an embodiment of the present application provides a storage medium, where the storage medium includes instructions for implementing the method in any one of the first aspect.
The embodiment of the application provides an information reading and converting method based on a block chain. And then, the trusted node receives the block chain query information from the user, and acquires first information, namely original information in the block chain, from a corresponding block on the block chain. And the trusted node converts the first information into second information according to a preset information conversion template, namely, the original information in the block chain is converted into information readable by a user. And finally, the trusted node returns the converted information to the corresponding user. Therefore, the embodiment of the application determines the trusted node by using the consensus mechanism of the block chain, and then the trusted node converts the original information in the block chain into the information readable by the user. Because the credible nodes are selected based on the block chain, the selection process is fair and fair, so that the credibility of the credible nodes is ensured, the credibility of the information conversion process is further ensured, and finally people are helped to understand the information in the block chain, so that the user experience is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart of an information reading and converting method based on a block chain according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an information reading and converting apparatus based on a block chain according to an embodiment of the present application.
Detailed Description
In order to more clearly explain the overall concept of the present application, the following detailed description is given by way of example in conjunction with the accompanying drawings.
The embodiment of the application discloses an information reading and converting method based on a block chain, as shown in fig. 1, comprising the following steps:
step 101, according to a preset rule, determining one or more trusted nodes from each node on the block chain.
In the embodiment of the application, the block chain has the characteristic of distributed accounting, data generated by each node can be synchronized to other nodes, data tampering of a single node cannot actually take effect, and the credible nodes are determined by all nodes on the block chain, so that the credibility of the credible node in the selection process and the credibility of the credible nodes can be ensured. The trusted node is typically a government department with legal authority and the jurisdiction of the government department matches the corresponding business scope of the product. In addition, the trusted node may or may not be a node on the blockchain.
In order to ensure the credibility of the credible nodes, in the embodiment of the present application, intelligent contracts are deployed on each node of the blockchain. The method is set in an intelligent contract, and the triggering condition is that trusted node application messages with the number larger than a threshold value are received, and the trusted node application messages comprise: and applying for credible qualification of the nodes. And when the contract is set to be executed, determining the application nodes with the credible qualifications meeting the preset value, and initiating voting aiming at the determined application nodes. The new qualification may be used to indicate the trustworthiness or legal authority of the trusted node.
Step 102, the trusted node receives the block chain query information from the user.
In the embodiment of the present application, the block chain query information includes: and inquiring target identification and inquiring condition data. The query target identifier may be product name, trademark, product image, manufacturer name, production place information, and other information related to the product. The query condition data may be a keyword, a sentence or a template, for example, whether the information of the a device is really on the chain, wherein "the information of the a device" is the query target identifier, and "x has green environment qualification" is the query condition.
Step 103, the trusted node queries the information according to the block chain, and acquires first information from a corresponding block on the block chain.
In order to prevent the business secret of an enterprise from being leaked, in the embodiment of the application, secret-related identification is added into data of a chain by each enterprise node on a zone-crossing chain, so that whether first information carries the secret-related data identification or not is determined by a trusted node, and then corresponding prompt information is returned to a user terminal by the trusted node when the first information carries the secret-related data identification, and the user is informed that the information cannot be inquired about when secret-related data identification is carried by the trusted node.
And step 104, the trusted node converts the first information into second information according to a preset information conversion template.
In addition to general questions such as whether the information is on a chain or qualified, the user may also query specific product attribute questions such as product composition, texture, etc. Therefore, the product attribute problem needs to be converted for different products, for example, the structural data of the product needs to be converted for the appliance class, and the classification data needs to be converted for the daily chemical class. In order to improve the conversion accuracy, in the embodiment of the application, a plurality of information conversion templates are arranged in a node in advance, each conversion template corresponds to a product type, the trusted node determines the information conversion template according to the product type in the query condition data, and then converts the first information into the second information according to the determined information conversion template.
In the embodiment of the present application, the information conversion template may be pre-stored or may be user-defined, so that the second information is easier to be understood by the user. Specifically, at least one presentation template from a user is received, and each presentation template corresponds to the same second information. The block link points are then voted for each presentation template. And finally, sending the display template with the most votes to the trusted node.
And step 105, the trusted node returns the second information to the corresponding user.
In the embodiment of the application, the trusted node displays the second information in one or more of characters, voice and images at the display terminal.
In the embodiment of the application, in order to confirm and check the information sent by the trusted node, the trusted node writes the second information into the block, so that the whole chain node agrees with the second information. And the identification of the block is sent to the user, so that the user can find the second information on the corresponding block, thereby proving the authenticity of the second information. In fact, some users may not know enough about the blockchain to quickly find the second information by using the identification of the block, and in order to solve the above problem, in this embodiment of the present application, the user may send verification information to a node of the blockchain other than the trusted node, where the verification information includes: identification of the block and second information. And the node of the block chain verifies whether the second information exists or not by using the information in the corresponding block according to the identification of the block, and returns a verification result to the user.
As shown in fig. 2, an embodiment of the present application provides an information reading and converting apparatus based on a blockchain, including: a receiver 201, a processor 202 and a transmitter 203;
processor 202 is configured to determine one or more trusted nodes according to a preset rule.
The receiver 201 is configured to receive a block chain query message from a user, where the block chain query message includes: and inquiring target identification and inquiring condition data.
The processor 202 is further configured to obtain first information from a corresponding block in the block chain according to the block chain query information; and converting the first information into second information according to a preset information conversion template.
The transmitter 203 is configured to return the second information to the corresponding user.
The embodiment of the application provides a storage medium, and the storage medium comprises instructions for implementing the method in any one of the embodiments of the application. The device and the medium provided by the embodiment of the application correspond to the method one by one, so the device and the medium also have the beneficial technical effects corresponding to the method.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. An information reading and converting method based on a block chain is characterized by comprising the following steps:
determining one or more credible nodes by each node on the block chain according to a preset rule;
the trusted node receives block chain query information from a user, wherein the block chain query information comprises: querying the target identification and the query condition data;
the trusted node acquires first information from a corresponding block on the block chain according to the block chain query information;
the trusted node converts the first information into second information according to a preset information conversion template;
and the trusted node returns the second information to the corresponding user.
2. The method of claim 1, wherein after the trusted node converts the first information into the second information according to a preset information conversion template, the method further comprises:
and the trusted node writes the second information into a block and sends the identification of the block to a user.
3. The method of claim 2, wherein after the trusted node sends the identity of the block to a user, the method further comprises:
the user sends verification information to nodes of the blockchain except the trusted node, wherein the verification information comprises: the identity of the block and the second information;
and the node of the block chain verifies whether the second information exists or not by using the information in the corresponding block according to the identification of the block, and returns a verification result to the user.
4. The method of claim 1, wherein the trusted node converts the first information into the second information according to a preset information conversion template, and comprises:
the trusted node determines the information conversion template according to the product type;
the trusted node converts the first information into the second information according to the determined information conversion template;
wherein the query condition data comprises: and the product type and the credible node are prestored with a plurality of information conversion templates.
5. The method of claim 1,
after the trusted node queries information according to the block chain and acquires first information in a corresponding block on the block chain, before the trusted node converts the first information into second information according to a preset information conversion template, the method further includes:
the trusted node determines whether the first information carries a secret-related data identifier;
and the trusted node returns corresponding prompt information to the user terminal when determining that the first information carries the secret-related data identifier.
6. The method of claim 1, wherein determining one or more trusted nodes from each node in the blockchain according to a predetermined rule comprises:
deploying intelligent contracts on each node of the block chain;
setting in the intelligent contract, wherein the triggering condition is that trusted node application messages with the number larger than a threshold value are received, and the trusted node application messages comprise: applying for credible qualification of the nodes; when the contract is set to be executed, the application nodes with new qualification meeting the preset value are determined, and voting is initiated aiming at the determined application nodes.
7. The method of claim 1, further comprising:
and the trusted node displays the second information in one or more modes of characters, voice and images.
8. The method of claim 1, further comprising:
receiving at least one display template from a user, wherein each display template corresponds to the same second information;
initiating a vote for each of the presentation templates;
and sending the display template with the most votes to the trusted node.
9. An information reading and converting device based on a block chain is characterized by comprising: a processor, a receiver, and a transmitter;
the processor is used for determining one or more credible nodes according to a preset rule;
the receiver is configured to receive a block chain query message from a user, where the block chain query message includes: inquiring target identification and inquiring condition data;
the processor is further configured to obtain first information from a corresponding block in the block chain according to the block chain query information; converting the first information into second information according to a preset information conversion template;
the transmitter is used for returning the second information to the corresponding user.
10. A storage medium, characterized in that the storage medium comprises instructions for implementing the method according to any one of claims 1-8.
CN201911203563.XA 2019-11-29 2019-11-29 Block chain-based information reading and converting method, device and medium Pending CN110990456A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911203563.XA CN110990456A (en) 2019-11-29 2019-11-29 Block chain-based information reading and converting method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911203563.XA CN110990456A (en) 2019-11-29 2019-11-29 Block chain-based information reading and converting method, device and medium

Publications (1)

Publication Number Publication Date
CN110990456A true CN110990456A (en) 2020-04-10

Family

ID=70088748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911203563.XA Pending CN110990456A (en) 2019-11-29 2019-11-29 Block chain-based information reading and converting method, device and medium

Country Status (1)

Country Link
CN (1) CN110990456A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113761246A (en) * 2021-09-06 2021-12-07 北京金山云网络技术有限公司 Data acquisition method and device, electronic equipment and storage medium
CN113973119A (en) * 2021-08-30 2022-01-25 深圳时空云科技有限公司 Distributed management method and device
CN114625767A (en) * 2020-11-10 2022-06-14 支付宝(杭州)信息技术有限公司 Data query method, device, equipment and readable medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114625767A (en) * 2020-11-10 2022-06-14 支付宝(杭州)信息技术有限公司 Data query method, device, equipment and readable medium
CN113973119A (en) * 2021-08-30 2022-01-25 深圳时空云科技有限公司 Distributed management method and device
CN113973119B (en) * 2021-08-30 2024-03-08 深圳时空云科技有限公司 Distributed management method and device
CN113761246A (en) * 2021-09-06 2021-12-07 北京金山云网络技术有限公司 Data acquisition method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111741035B (en) Electronic contract signing method, device and equipment
CN108182581B (en) Accounting method and device for block chain
CN110851879B (en) Method, device and equipment for infringement and evidence preservation based on evidence preservation block chain
CN110990456A (en) Block chain-based information reading and converting method, device and medium
CN112380294B (en) Block chain cross-chain access method and device
CN110046523B (en) Intelligent contract checking method and device and electronic equipment
CN105337925A (en) User account management method and apparatus
CN104346365A (en) Device and method for determining specific service associated logs
CN109067732A (en) Internet of things equipment and data insertion system, method and computer readable storage medium
CN112967119A (en) Bidding method, device and medium based on block chain
CN110347678B (en) Financial data storage method, system, device and equipment
CN110309669B (en) Data labeling method, device and equipment
CN112070342B (en) Microservice evaluation method and device, electronic equipment and computer readable storage medium
CN106990974B (en) APP updating method and device and electronic equipment
CN114697063A (en) Security authentication method and device, electronic equipment and storage medium
CN112906064B (en) Method and device for generating description information
CN111737304B (en) Processing method, device and equipment of block chain data
CN112291321A (en) Service processing method, device and system
CN112434347B (en) Rental business processing method, device, equipment and system
CN112036904A (en) Regional brand authentication method, device and medium based on block chain
CN114331442B (en) Calling method and device of intelligent contracts in block chain
CN111062676A (en) Method and device for realizing government affair approval process
CN113836521B (en) Decentralized identity-based multiple identity management method and device
CN116862679B (en) Block chain-based data processing method, device, equipment and readable storage medium
CN111953773B (en) De-centralized address mapping method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
TA01 Transfer of patent application right

Effective date of registration: 20200820

Address after: Room 1-2301, Building 7, North District, Shandong Design and Creative Industry Park, No. 868 Tangye West Road, Licheng District, Jinan City, Shandong Province, 250102

Applicant after: SHANDONG INSPUR QUALINK TECHNOLOGY Co.,Ltd.

Address before: Room 3110, S01 building, Langchao building, No. 1036, Langchao Road, high tech Zone, Jinan City, Shandong Province 250101

Applicant before: Shandong Aicheng Network Information Technology Co.,Ltd.

TA01 Transfer of patent application right
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination