CN110598475A - Block chain-based work attribute information acquisition method and device and computer equipment - Google Patents

Block chain-based work attribute information acquisition method and device and computer equipment Download PDF

Info

Publication number
CN110598475A
CN110598475A CN201910887542.8A CN201910887542A CN110598475A CN 110598475 A CN110598475 A CN 110598475A CN 201910887542 A CN201910887542 A CN 201910887542A CN 110598475 A CN110598475 A CN 110598475A
Authority
CN
China
Prior art keywords
work
attribute information
queried
characteristic value
query
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
CN201910887542.8A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910887542.8A priority Critical patent/CN110598475A/en
Publication of CN110598475A publication Critical patent/CN110598475A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/18Legal services; Handling legal documents
    • G06Q50/184Intellectual property management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Tourism & Hospitality (AREA)
  • Operations Research (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computational Linguistics (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Bioethics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to a method and a device for acquiring product attribute information based on a block chain, a computer readable storage medium and computer equipment, wherein the method comprises the following steps: acquiring a corresponding query characteristic value of a work to be queried; based on the block chain network, performing work verification on the corresponding query characteristic value of the work to be queried to obtain a work verification result; the method comprises the following steps that all nodes in a block chain network carry out consensus processing on query characteristic values of all works on the basis of a consensus mechanism in advance; and when the work verification result is that the verification is passed, acquiring the work attribute information of the work to be inquired from the nodes of the block chain network. The scheme provided by the application can ensure the authenticity of the obtained work attribute information.

Description

Block chain-based work attribute information acquisition method and device and computer equipment
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method and an apparatus for obtaining work attribute information based on a blockchain, a computer-readable storage medium, and a computer device.
Background
On-line judicial becomes a trend, and when a judicial dispute occurs, a party can apply for filing and litigation by submitting digital electronic evidence to an on-line judicial platform. For example, in copyright dispute cases of works such as characters and videos, the work attribute information related to the works involved in the case, such as the work author, the work creation completion time or the work publishing platform information, can be submitted to an online judicial platform as electronic evidence for evidence demonstration to declare the ownership of the works. At present, the work attribute information related to the involved works is provided by parties, so that the tampering is easy to happen, the authenticity of the work attribute information cannot be accurately judged, and the authenticity of the work attribute information cannot be guaranteed.
Disclosure of Invention
Based on this, it is necessary to provide a method, an apparatus, a computer-readable storage medium, and a computer device for acquiring work attribute information based on a blockchain, aiming at the technical problem that the authenticity of the information is affected because the work attribute information is easily tampered.
A method for acquiring the attribute information of a work based on a block chain comprises the following steps:
acquiring a corresponding query characteristic value of a work to be queried;
based on a block chain network, performing work verification on the corresponding query characteristic value of the work to be queried to obtain a work verification result; wherein, each node in the block chain network carries out consensus processing on the query characteristic value of each work based on a consensus mechanism in advance;
and when the work verification result is that the verification is passed, acquiring the work attribute information of the work to be inquired from the node of the block chain network.
A block chain-based work attribute information acquisition apparatus, the apparatus comprising:
the characteristic value acquisition module is used for acquiring a corresponding query characteristic value of the work to be queried;
the certificate storage checking module is used for checking the corresponding query characteristic value of the to-be-queried work based on the block chain network to obtain a work checking result; wherein, each node in the block chain network carries out consensus processing on the query characteristic value of each work based on a consensus mechanism in advance;
and the attribute information acquisition module is used for acquiring the attribute information of the works to be inquired from the nodes of the block chain network when the work verification result is that the verification is passed.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to execute the steps of the block chain-based work attribute information acquisition method as described above.
A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the blockchain-based work attribute information acquisition method as described above.
According to the work attribute information acquisition method and device based on the blockchain, the work verification is carried out on the corresponding query characteristic value of the work to be queried through the blockchain network after the query characteristic value of each work is subjected to consensus processing on each node based on the consensus mechanism in advance, the work attribute information of the work to be queried is acquired from the nodes of the blockchain network after the verification is passed, the characteristic that data in the blockchain network cannot be tampered is fully utilized, and the authenticity of the acquired work attribute information is ensured.
Drawings
FIG. 1 is a diagram of an application environment of a block chain-based method for obtaining attribute information of a work in an embodiment;
FIG. 2 is a flowchart illustrating a method for obtaining attribute information of a work based on a blockchain according to an embodiment;
FIG. 3 is a diagram illustrating a process for structuring the attribute information of a work in one embodiment;
FIG. 4 is a block diagram of a block chain-based product attribute information acquisition device in one embodiment;
FIG. 5 is a block diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 1 is an application environment diagram of a method for acquiring product attribute information based on a blockchain in an embodiment. (example: referring to fig. 1, the method for acquiring the work attribute information based on the blockchain is applied to an electronic evidence acquisition system, the electronic evidence acquisition system comprises a terminal 110 and a server 120, the terminal 110 and the server 120 are connected through a network, the terminal 110 can be specifically a desktop terminal or a mobile terminal, the mobile terminal can be specifically at least one of a mobile phone, a tablet computer, a notebook computer and the like, and the server 120 can be realized by an independent server or a server cluster consisting of a plurality of servers.)
As shown in fig. 2, in one embodiment, a method for acquiring work attribute information based on a blockchain is provided. The embodiment is mainly illustrated by applying the method to the server 120 in fig. 1. Referring to fig. 2, the method for acquiring the attribute information of the work based on the block chain specifically includes the following steps:
s202, obtaining a corresponding query characteristic value of the work to be queried.
The works to be inquired are the works corresponding to the information of the attribute information of the works to be inquired, such as the names, the types and the completion time of the works, and the works to be inquired in different types have different forms, such as the works in the types of characters, dictations, music, drama, music art, graphs, photography, movies and models, and have corresponding forms. The query characteristic value of the work to be queried is data suitable for being processed by the block chain after the information of the work is subjected to mapping processing. In specific implementation, a mapping algorithm, such as a hash algorithm, may be used to perform an operation on information of a work to be queried, such as content of the work to be queried or content of a work registration certificate, so as to obtain a query feature value of the work to be queried. The data obtained through the budget of the hash algorithm is data consisting of 0 and 1, the hash algorithm can map any input information or source file of the file into a unique value with a fixed length for output, and once the source file is modified and changed, the corresponding hash value is changed greatly. And the Hash operation is an irreversible process, namely, the source file cannot be calculated through the Hash value obtained by the Hash operation, so that the safety of the source file can be ensured.
S204, based on the block chain network, performing work verification on the corresponding query characteristic value of the work to be queried to obtain a work verification result; and all nodes in the block chain network carry out consensus processing on the query characteristic values of all works based on a consensus mechanism in advance.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer.
The block chain underlying platform can comprise processing modules such as user management, basic service, intelligent contract and operation monitoring. The user management module is responsible for identity information management of all blockchain participants, and comprises public and private key generation maintenance (account management), key management, user real identity and blockchain address corresponding relation maintenance (authority management) and the like, and under the authorization condition, the user management module supervises and audits the transaction condition of certain real identities and provides rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node equipment and used for verifying the validity of the service request, recording the service request to storage after consensus on the valid request is completed, for a new service request, the basic service firstly performs interface adaptation analysis and authentication processing (interface adaptation), then encrypts service information (consensus management) through a consensus algorithm, transmits the service information to a shared account (network communication) completely and consistently after encryption, and performs recording and storage; the intelligent contract module is responsible for registering and issuing contracts, triggering the contracts and executing the contracts, developers can define contract logics through a certain programming language, issue the contract logics to a block chain (contract registration), call keys or other event triggering and executing according to the logics of contract clauses, complete the contract logics and simultaneously provide the function of upgrading and canceling the contracts; the operation monitoring module is mainly responsible for deployment, configuration modification, contract setting, cloud adaptation in the product release process and visual output of real-time states in product operation, such as: alarm, monitoring network conditions, monitoring node equipment health status, and the like.
The platform product service layer provides basic capability and an implementation framework of typical application, and developers can complete block chain implementation of business logic based on the basic capability and the characteristics of the superposed business. The application service layer provides the application service based on the block chain scheme for the business participants to use.
The block chain network is composed of distributed nodes, each node equally stores all data, namely, the nodes realize consensus, the consensus refers to a process that multiple nodes interact to achieve agreement on certain data, behaviors or processes under a preset rule, and the consensus mechanism refers to an algorithm, a protocol and a rule defining a consensus processing process. And (3) carrying out consensus processing on the certificate-storing characteristic value of each work by each node in the blockchain network in advance based on a consensus mechanism, for example, carrying out certificate storage on each work to store evidence based on the certificate-storing characteristic value of the work obtained by a Hash algorithm, ensuring that data in the blockchain network cannot be falsified, and further effectively verifying the work by using the blockchain network.
Specifically, after the query characteristic value corresponding to the work to be queried is obtained, the work is verified according to the query characteristic value of the work to be queried based on the blockchain network, and if the query characteristic value of the work to be queried can be compared with the certificate-storing characteristic value of the certified work in the blockchain network, whether the work to be queried has the certificate or not is verified, so that a work verification result is obtained. If the information of the work to be queried, such as the content of the work to be queried or the certificate content of the work registration certificate corresponding to the work to be queried, is pre-certified in the block chain, that is, the certified characteristic value of the work to be queried is identified by each node in the block chain network, when the work is verified on the query characteristic value of the work to be queried, the block corresponding to the query characteristic value of the work to be queried can be matched from the block chain network, that is, the certified characteristic value identical to the query characteristic value of the work to be queried, and the obtained work verification result is a verification pass. Otherwise, the verification result of the work is that the verification is not passed, that is, the work to be queried is not certified in the blockchain network, and the content of the work to be queried may be tampered, so that the query characteristic value of the work to be queried is unsuccessfully matched in the blockchain network.
And S206, when the product verification result is verification passing, acquiring the product attribute information of the product to be inquired from the nodes of the block chain network.
After the product verification result of the work to be queried is obtained, if the verification is passed, the verification shows that the work to be queried has been stored in the blockchain network in advance, namely the electronic evidence has been stored in the blockchain network in advance, the product attribute information of the work to be queried can be further obtained from the nodes of the blockchain network. The work attribute information may be information related to the work, such as a work name, a work category, a work completion time, a work uplink time, a work registration time, work author information, a work registration number, or work publishing platform information. The attribute information of the work can be determined according to the type of the query characteristic value, if the query characteristic value comprises the work characteristic value of the work to be queried, the work characteristic value is obtained by mapping the work to be queried by utilizing a Hash algorithm, and the work attribute information is obtained by querying and is information related to the work; and if the query characteristic value comprises the certificate characteristic value of the work registration certificate corresponding to the work to be queried, the certificate characteristic value is obtained after the work registration certificate of the work to be queried is subjected to mapping processing through a Hash algorithm, and the work attribute information is obtained by querying and is information related to the work registration certificate.
The product attribute information may be obtained from a node of the blockchain network after the verification passes. In specific implementation, when the registration certificate of each work or the work corresponding to each work is sent to each node of the blockchain network for consensus processing, the block chain nodes locally store the work attribute information of each work, so that when the work verification result is that verification passes, the terminal can obtain the corresponding work attribute information from the nodes. Further, each node in the blockchain network may store the work attribute information of different works, for example, the node storage may be divided according to the work category to save the storage resource of each node, and each node may check the work attribute information in the local cache periodically to confirm that the work attribute information of each work stored in the local cache is not tampered. Since the works cannot be tampered after the certificates are stored in the blockchain network, the blockchain network is utilized to verify the works of the corresponding query characteristic values of the works to be queried, and after the verification is passed, the corresponding work attribute information is obtained from the nodes of the blockchain network, so that the authenticity of the work attribute information can be obtained.
According to the work attribute information acquisition method based on the block chain, work verification is carried out on the corresponding query characteristic value of the work to be queried through the block chain network after the query characteristic value of each work is subjected to consensus processing on each node based on the consensus mechanism in advance, the work attribute information of the work to be queried is acquired from the nodes of the block chain network after the verification is passed, the characteristic that data in the block chain network cannot be tampered is fully utilized, and the authenticity of the acquired work attribute information is ensured.
In one embodiment, based on a block chain network, performing a work verification on a query feature value corresponding to a work to be queried, and obtaining a work verification result includes: sending the query characteristic value to a node of a block chain network, wherein the query characteristic value is used for indicating the node to query a corresponding certificate-storing characteristic value of the work to be queried; obtaining a query result obtained by query; and obtaining a work checking result according to the query result.
In this embodiment, each node in the blockchain network performs consensus processing on the query characteristic value of each work in advance based on a consensus mechanism, that is, each node in the blockchain network performs evidence storage on information of each work in advance, the evidence storage characteristic value of each work is stored, whether the information of the work to be queried has been pre-verified in the blockchain network can be determined through characteristic value query, thereby verifying the work of the work to be queried and obtaining a work verification result.
Specifically, when the query characteristic value of the work to be queried is subjected to work verification, the query characteristic value of the work to be queried is sent to a node of the blockchain network, and the query characteristic value can be sent to any node in the blockchain network, where the certificate-storing characteristic value of each work is stored, so as to indicate the node to query the certificate-storing characteristic value corresponding to the work to be queried, where the certificate-storing characteristic value is information of the work to be queried, such as a feature value corresponding to the information of the work to be queried when the content of the work to be queried or a work registration certificate waits for the certificate-storing of the information of the work to be queried in the blockchain network. The nodes of the block chain network can store the certificate storage characteristic values of all the commonly recognized works, and whether the information of the works to be inquired is pre-certified or not can be determined according to the existence of the certificate storage characteristic values corresponding to the characteristic values of the works to be inquired. And acquiring a query result obtained by query, if the query determines that the certificate-storing characteristic value corresponding to the characteristic value of the work to be queried exists, namely the certificate-storing characteristic value is successfully queried, otherwise, the query fails. Obtaining a work verification result according to the query result, if the evidence storing characteristic value which is the same as the query characteristic value of the work to be queried is queried, the information of the work to be queried is proved to be stored in the block chain network in advance, the query characteristic value of the work to be queried is the same as the evidence storing characteristic value, the content of the current work to be queried or the work registration book corresponding to the work to be queried is completely the same as the content of the evidence storing, and the work verification result can be passed if the content is not tampered; otherwise, the verification is not passed, that is, the information of the work to be queried is not stored in advance, or the information of the current work to be queried is tampered, so that the query characteristic value of the work to be queried cannot be matched with the certificate storage characteristic value of the work during certificate storage.
In one embodiment, when the query feature value includes a work feature value of the work to be queried, the obtained work attribute information of the work to be queried includes at least one of a work name, a work category, a work completion time, a work uplink time, work author information, and work publishing platform information.
In this embodiment, the query feature value includes a work feature value of the work to be queried, and the work feature value is obtained by mapping the work to be queried through a hash algorithm, so that the corresponding work attribute information may be information related to the work to be queried itself. Specifically, when the query feature value includes a work feature value of the work to be queried, it indicates that information corresponding to the work to be queried itself needs to be queried, and the obtained work attribute information of the work to be queried includes at least one item of a work name, a work category, work completion time, work uplink time, work author information, and work publishing platform information.
The name of the work is the name of the work to be inquired, such as the name of a musical work, the name of the work, the name of a drama and the like; the product category is the classification category of the product to be inquired, such as different form categories of characters, dictations, music, drama or dance and the like; the work completion time is the creation or manufacturing completion time of the work to be inquired, and the work completion time can be determined according to the evidence storage time of the work information during specific implementation; the uplink time of the work can be the time for uploading the information of the work to the block chain for evidence storage; the work author information is related information of an author corresponding to the work to be inquired, such as author name, contact information, identity card number and the like; the information in the work publishing platform may be platform information for publishing the work to be queried for the first time, or may be all platform information for publishing the work to be queried, such as a public number, a blog and the like. In specific application, the work attribute information can be flexibly set according to actual requirements.
In one embodiment, when the query feature value includes a certificate feature value of a work registration certificate corresponding to the work to be queried, the obtained work attribute information of the work to be queried includes at least one of a work name, a work category, work completion time, work uplink time, work registration time, work author information, a work registration number, and work publishing platform information.
In this embodiment, the query feature value includes a certificate feature value of a work registration certificate corresponding to the work to be queried, and the certificate feature value is obtained by mapping the work registration certificate of the work to be queried by using a hash algorithm, so that the corresponding work attribute information may be information related to the work registration certificate corresponding to the work to be queried. Specifically, when the query feature value includes a certificate feature value of a work registration certificate corresponding to the work to be queried, the obtained work attribute information includes at least one of a work name, a work category, work completion time, work uplink time, work registration time, work author information, a work registration number, and work publishing platform information. The work registration time can be the time for registering the work to be inquired; the work registration number may be a number to be managed after registration for the inquiry work, for identifying and managing the registered work. In specific application, the work attribute information can be flexibly set according to actual requirements.
In an embodiment, as shown in fig. 3, after obtaining the work attribute information of the work to be queried, the method further includes a step of performing structured processing on the work attribute information, which specifically includes:
s302, inquiring a preset attribute information template base.
In this embodiment, the obtained work attribute information is subjected to structured processing by using a preset attribute information template to obtain structured work attribute information, so that the work attribute information is efficiently managed, controlled and visually displayed. Specifically, after the product attribute information of the product to be queried is obtained, a preset attribute information template library is queried. The attribute information template library stores various structured attribute information templates, such as various chart templates, in advance. The attribute information template may be preset according to specific service requirements, for example, setting statistical items of the work attribute information, data display order, and the like.
S304, obtaining a structured attribute information template corresponding to the product attribute information of the product to be inquired from the attribute information template library.
The structured attribute information template corresponds to various product attribute information so as to carry out structured processing on the product attribute information. In specific implementation, the corresponding structured attribute information template can be queried from the attribute information template library according to the information type in the product attribute information of the product to be queried. For example, when the information type of the attribute information of the work includes author information of the work, a structured attribute information template of the author information, specifically, a template of an author brief introduction, may be obtained from the attribute information template library.
S306, updating the attribute information template according to the work attribute information of the work to be inquired to obtain the structured work attribute information.
After the structured attribute information template corresponding to the work attribute information of the work to be queried is obtained, the attribute information template is updated based on the work attribute information of the work to be queried, and specifically, the work attribute information can be directly filled in the attribute information template, or the work attribute information is filled in the attribute information template after certain processing is performed, such as word number statistics and chapter statistics of the written works, so that the structured work attribute information is obtained. The structured work attribute information divides and counts the work attribute information, so that the work attribute information can be managed conveniently, and the related information of the work to be inquired can be displayed more visually.
In one embodiment, further comprising: storing the work attribute information into a cache; when the duration of the work attribute information in the cache reaches the survival duration corresponding to the work attribute information, deleting the work attribute information from the cache; wherein the survival time duration is a fixed time duration or a time duration dynamically determined according to the query record of the work attribute information.
In this embodiment, the obtained work attribute information is stored and maintained through a preset cache, so that the corresponding work attribute information can be quickly obtained in the next query. In addition, the attribute information of the works stored in the cache is monitored to judge whether the attribute information of the works is maintained continuously or not, so that cache resources are effectively utilized.
Specifically, after the attribute information of the work is obtained, the attribute information of the work is stored in a cache, for example, a local memory. And monitoring the attribute information of the works stored in the cache to judge whether to maintain the attribute information of the works. If the survival time of each piece of work attribute information in the cache is monitored, and the time length of the piece of work attribute information in the cache reaches the survival time length corresponding to the piece of work attribute information, which indicates that the piece of work attribute information can be maintained, the piece of work attribute information is deleted from the cache, so that the space of the cache is released.
The survival time corresponding to the work attribute information can be a preset fixed time, such as 15 days or 1 month, namely, the work attribute information in the cache is maintained for 15 days or 1 month, and if the work attribute information is stored to 15 days or 1 month after the cache, if the corresponding query characteristic value for the work to be queried is received again, namely the work attribute information of the work to be queried needs to be queried, the query characteristic value can be directly obtained from the cache, thereby avoiding revising the block chain network and effectively improving the query processing efficiency. If the query is not triggered again within 15 days or 1 month, the work attribute information is deleted from the cache, the cache space is released, and the cache resources are saved. The survival time may also be a time dynamically determined for the query record according to the work attribute information, for example, for a work to be queried with a high query frequency, the survival time of the corresponding work attribute information may be longer, such as 1 month or 15 days; for the works to be queried with lower query frequency, the survival time of the corresponding work attribute information may be shorter, such as 10 days or 7 days. At this time, the survival time duration can be dynamically updated according to the query record of the attribute information of the work, that is, the query frequency of the work is determined according to the query record of the attribute information of the work, and then the corresponding survival time duration is updated based on the query frequency, so that the cached storage resource is fully utilized.
In one embodiment, before performing a work verification on a query feature value corresponding to a work to be queried based on a blockchain network to obtain a work verification result, the method further includes: when a work certificate storing request is received, acquiring data to be certified and attribute information corresponding to the data to be certified, which correspond to the work certificate storing request; acquiring a certificate storage mode corresponding to the data type of the data to be stored; determining a characteristic value of data to be stored according to a storage mode; and sending the attribute information and the characteristic value of the data to be stored into the nodes of the block chain network for data storage.
In this embodiment, the feature value of each work and the attribute information of each work, or the feature value of the work registration certificate corresponding to each work and the attribute information of the work registration certificate are stored in the blockchain network in advance, and the attribute information and the feature value of the data to be stored are stored according to the storage mode corresponding to the data type of the data to be stored. And after the verification of the query characteristic value is passed, returning attribute information corresponding to the certified data to be certified, wherein the attribute information is used as the work attribute information of the work to be queried.
Specifically, when a work certificate storing request for requesting certificate storing processing of a work or a work registration certificate is received, data to be certified corresponding to the work certificate storing request and attribute information corresponding to the data to be certified are obtained, and the data to be certified may include the work or the work registration certificate. The attribute information corresponding to the data to be credited can be the work attribute information of the work, such as the work name, the work category, the work completion time, the work chain linking time, the work author information or the work publishing platform information; the attribute information corresponding to the data to be certified may also be certificate attribute information of a work registration certificate, such as a work name, a work category, work completion time, work uplink time, work registration time, work author information, a work registration number, or work publishing platform information. The work evidence storing request may include an obtaining path of the data to be stored, such as a link address, so as to obtain the data to be stored, such as various works, such as characters, dictation, music, drama, music art, figures or models, etc., or work registration certificates, which are required to be stored correspondingly according to the work evidence storing request.
The data type may include works and work registration certificates, which may have different certificate storage modes. The work registration certificate is generally literal data, and works may include various forms of data, such as literal, dictation, music, drama, art, dance, acrobatic, art, architectural, photographic, and like types of works. Further, there may be different ways of crediting different types of works. For example, for works of a text type, evidence can be stored for each part of the work content after the works are split according to the chapter structure relationship of the text, so that only the corresponding modified part of the work content can be replaced when the chapters are modified, and the complete works are prevented from being stored again. For example, for drama, the drama may be divided according to the divided scenes of the drama, and the certificates may be stored for each scene. In specific implementation, the certificate storing mode can be flexibly set according to the characteristics of the data to be stored and the certificate storing requirement.
The characteristic value of the data to be stored may be a characteristic parameter obtained by mapping the data to be stored based on a preset mapping algorithm, such as a hash algorithm. Under a fixed mapping algorithm, the characteristic value of the data to be stored, which is obtained after the data to be stored is mapped, is also fixed, and the characteristic values of different data to be stored are different. And performing structural division on the data to be stored with the certificates according to a certificate storage mode, wherein corresponding characteristic values are required to be determined for the data to be stored with the certificates which are respectively stored if the data to be stored with the certificates are respectively stored according to the structure of the work or the structure division of the registered certificate. And according to the evidence storing mode, the data to be stored is divided, the characteristic values corresponding to the divided data to be stored are determined, and the characteristic values corresponding to the divided data to be stored are combined to obtain the characteristic values of the data to be stored.
And after determining the characteristic value of the data to be stored according to the storage mode, sending the attribute information and the characteristic value of the data to be stored to the nodes in the block chain network for data storage. In specific application, certificate storage triggering conditions can be set, the certificate storage triggering conditions can be set based on the data types of the data to be subjected to certificate storage, for example, for works of character types, different certificate storage triggering conditions can be set for the structural relations of all chapters, so that after the works are split, the certificate storage can be respectively carried out on the contents of all parts of the works; for example, for a work registration certificate, the certificate can be stored when the integrity of certificate storage information is met. On one hand, after receiving the characteristic value of the data to be stored, the node of the block chain network performs local storage on the characteristic value of the data to be stored, and performs consensus processing on the characteristic value of the data to be stored in the block chain network based on a consensus mechanism; on the other hand, after receiving the attribute information, the node stores the attribute information into a local cache, so that the characteristic value of the data to be stored is stored in each node of the blockchain network, the attribute information is stored, the storage of the data to be stored in the blockchain network is realized, and the corresponding work attribute information can be returned after the verification of the query characteristic value is passed.
In one embodiment, sending the attribute information and the characteristic value of the data to be stored to a node of the blockchain network for data storage includes: acquiring a certificate storage triggering condition corresponding to the characteristic value of the data to be stored; and when the evidence storage triggering condition is met, the attribute information and the characteristic value of the data to be stored are sent to the nodes in the block chain network for data storage.
In this embodiment, the sending of the attribute information and the characteristic value of the data to be stored is controlled by the set certificate storage triggering condition, so that the certificate storage control of the data to be stored and the attribute information is realized. Specifically, the certificate storing triggering conditions corresponding to the characteristic values of the data to be stored with certificates are obtained, the certificate storing triggering conditions can be correspondingly set according to the division of the works or the integrity requirement conditions of the registration certificates of the works, and specifically include triggering conditions such as triggering time and triggering actions. And after obtaining the evidence storing triggering condition corresponding to the characteristic value of the data to be stored, monitoring whether the evidence storing triggering condition is met, if so, sending the attribute information and the characteristic value of the data to be stored into the node of the block chain network for storing the evidence, and thus, realizing the uplink processing of the data to be stored. During specific implementation, for the characteristic value of the data to be stored, which is sent to a node in the block chain network, the node performs local storage on the characteristic value of the data to be stored, and performs consensus processing in the belonging block chain based on a consensus mechanism after the local storage; for the attribute information, the node stores the attribute information into a preset cache so as to store the attribute information, and returns corresponding data to be stored as the work attribute information of the work to be inquired after the inquiry characteristic value passes the verification.
Fig. 2 and fig. 3 are schematic flowcharts of a method for acquiring product attribute information based on a block chain in each embodiment. It should be understood that although the steps in the flowcharts of fig. 2 and 3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 and 3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a blockchain-based work attribute information acquisition apparatus 400 including:
a feature value obtaining module 402, configured to obtain a query feature value corresponding to a work to be queried;
a certificate storage checking module 404, configured to perform, based on a block chain network, a work checking on a query feature value corresponding to a work to be queried, so as to obtain a work checking result; the method comprises the following steps that all nodes in a block chain network carry out consensus processing on query characteristic values of all works on the basis of a consensus mechanism in advance;
the attribute information obtaining module 406 is configured to obtain the attribute information of the work to be queried from the node of the blockchain network when the work verification result is that the verification passes.
In one embodiment, the evidence-storing and verifying module 404 includes a feature value sending module, a query result obtaining module and a verification result obtaining module; wherein: the characteristic value sending module is used for sending the query characteristic value to a node of the block chain network, and the query characteristic value is used for indicating the node to query the corresponding evidence storage characteristic value of the work to be queried; the query result acquisition module is used for acquiring a query result obtained by query; and the verification result acquisition module is used for acquiring a work verification result according to the query result.
In one embodiment, when the query feature value includes a work feature value of the work to be queried, the obtained work attribute information of the work to be queried includes at least one of a work name, a work category, work completion time, work uplink time, work author information and work publishing platform information;
when the query characteristic value comprises a certificate characteristic value of a work registration certificate corresponding to the work to be queried, the obtained work attribute information of the work to be queried comprises at least one item of a work name, a work category, work completion time, work chain linking time, work registration time, work author information, a work registration number and work publishing platform information.
In one embodiment, the system further comprises a template library query module, a template acquisition module and a structural processing module; wherein: the template library query module is used for querying a preset attribute information template library; the template acquisition module is used for acquiring a structured attribute information template corresponding to the product attribute information of the product to be inquired from the attribute information template library; and the structured processing module is used for updating the attribute information template according to the work attribute information of the work to be inquired to obtain structured work attribute information.
In one embodiment, the system further comprises a result caching module and a cache maintenance module; wherein: the result cache module is used for storing the work attribute information into a cache; the cache maintenance module is used for deleting the attribute information of the work from the cache when the duration of the attribute information of the work in the cache reaches the survival duration corresponding to the attribute information of the work; wherein the survival time duration is a fixed time duration or a time duration dynamically determined according to the query record of the work attribute information.
In one embodiment, the system further comprises a certificate storage request receiving module, a certificate storage mode obtaining module, a characteristic value determining module and a certificate storage processing module; wherein: the certificate storing request receiving module is used for acquiring the data to be certified and the attribute information corresponding to the data to be certified, which correspond to the certificate storing request when the certificate storing request of the work is received; the certificate storing mode acquiring module is used for acquiring a certificate storing mode corresponding to the data type of the data to be stored; the characteristic value determining module is used for determining the characteristic value of the data to be stored according to the storage mode; and the evidence storage processing module is used for sending the attribute information and the characteristic value of the data to be stored into the nodes of the block chain network for data storage.
In one embodiment, the deposit evidence processing module comprises a trigger condition acquisition module and a deposit evidence trigger module; wherein: the trigger condition acquisition module is used for acquiring the certificate storage trigger condition corresponding to the characteristic value of the data to be stored; and the evidence storing triggering module is used for sending the attribute information and the characteristic value of the data to be stored into the nodes in the block chain network for data storage when the evidence storing triggering condition is met.
FIG. 5 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be the server 120 in fig. 1. As shown in fig. 5, the computer apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may further store a computer program that, when executed by the processor, causes the processor to implement the block chain-based work attribute information acquisition method. The internal memory may also store a computer program, and when the computer program is executed by the processor, the computer program may cause the processor to execute the method for obtaining the product attribute information based on the blockchain. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the block chain-based work attribute information acquisition apparatus provided in the present application may be implemented in the form of a computer program that is executable on a computer device as shown in fig. 5. The memory of the computer device may store therein various program modules constituting the block chain-based work attribute information acquisition apparatus, such as a feature value acquisition module 402, a proof check module 404, and an attribute information acquisition module 406 shown in fig. 4. The computer program constituted by the respective program modules causes the processor to execute the steps in the block chain-based work attribute information acquisition method of the embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 5 may execute, through the feature value obtaining module 402 in the block chain-based work attribute information obtaining apparatus shown in fig. 4, obtaining a corresponding query feature value of the work to be queried. The computer device can execute a block chain network-based check through the certificate storing and checking module 404, and perform work check on the corresponding query characteristic value of the work to be queried to obtain a work check result; and all nodes in the block chain network carry out consensus processing on the query characteristic values of all works based on a consensus mechanism in advance. The computer device may obtain the attribute information of the work to be queried from the node of the blockchain network when the result of the work verification is verified by the attribute information obtaining module 406.
In one embodiment, a computer device is provided, which includes a memory and a processor, the memory storing a computer program, which when executed by the processor, causes the processor to execute the steps of the above-mentioned work attribute information acquisition method based on a blockchain. Here, the steps of the block chain based work attribute information acquisition method may be the steps in the block chain based work attribute information acquisition methods of the above-described respective embodiments.
In one embodiment, a computer-readable storage medium is provided, which stores a computer program that, when executed by a processor, causes the processor to execute the steps of the above-described blockchain-based work attribute information acquisition method. Here, the steps of the block chain based work attribute information acquisition method may be the steps in the block chain based work attribute information acquisition methods of the above-described respective embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (11)

1. A method for acquiring the attribute information of a work based on a block chain comprises the following steps:
acquiring a corresponding query characteristic value of a work to be queried;
based on a block chain network, performing work verification on the corresponding query characteristic value of the work to be queried to obtain a work verification result; wherein, each node in the block chain network carries out consensus processing on the query characteristic value of each work based on a consensus mechanism in advance;
and when the work verification result is that the verification is passed, acquiring the work attribute information of the work to be inquired from the node of the block chain network.
2. The method of claim 1, wherein the checking the query feature value corresponding to the work to be queried based on the blockchain network to obtain a work checking result comprises:
sending the query characteristic value to a node of a block chain network, wherein the query characteristic value is used for indicating the node to query a corresponding evidence storage characteristic value of the work to be queried;
obtaining a query result obtained by the query;
and obtaining a work verification result according to the query result.
3. The method according to claim 1, wherein when the query feature value includes a work feature value of the work to be queried, the obtained work attribute information of the work to be queried includes at least one of a work name, a work category, a work completion time, a work uplink time, work author information, and work publishing platform information;
when the query characteristic value comprises the certificate characteristic value of the work registration certificate corresponding to the work to be queried, the obtained work attribute information of the work to be queried comprises at least one item of work name, work category, work completion time, work chain linking time, work registration time, work author information, work registration number and work publishing platform information.
4. The method according to claim 1, after said obtaining the work attribute information of the work to be queried, further comprising:
inquiring a preset attribute information template base;
acquiring a structured attribute information template corresponding to the work attribute information of the work to be inquired from the attribute information template library;
and updating the attribute information template according to the work attribute information of the work to be inquired to obtain structured work attribute information.
5. The method of claim 1, further comprising:
storing the work attribute information into a cache;
when the duration of the work attribute information in the cache reaches the survival duration corresponding to the work attribute information, deleting the work attribute information from the cache;
wherein the survival time duration is a fixed time duration or a time duration dynamically determined according to the query record of the work attribute information.
6. The method according to any one of claims 1 to 5, wherein before performing a work verification on the query feature value corresponding to the work to be queried based on the blockchain network to obtain a work verification result, the method further comprises:
when a work certificate storing request is received, acquiring data to be certified and corresponding to the work certificate storing request and attribute information corresponding to the data to be certified;
acquiring a certificate storage mode corresponding to the data type of the data to be stored;
determining a characteristic value of the data to be stored according to the certificate storage mode;
and sending the attribute information and the characteristic value of the data to be stored to the nodes of the block chain network for data storage.
7. The method according to claim 6, wherein the sending the attribute information and the feature value of the data to be certified to the node of the blockchain network for data certification comprises:
acquiring a certificate storage triggering condition corresponding to the characteristic value of the data to be stored;
and when the evidence storage triggering condition is met, the attribute information and the characteristic value of the data to be stored are sent to the nodes in the block chain network for data storage.
8. An apparatus for obtaining work attribute information based on a blockchain, the apparatus comprising:
the characteristic value acquisition module is used for acquiring a corresponding query characteristic value of the work to be queried;
the certificate storage checking module is used for checking the corresponding query characteristic value of the to-be-queried work based on the block chain network to obtain a work checking result; wherein, each node in the block chain network carries out consensus processing on the query characteristic value of each work based on a consensus mechanism in advance;
and the attribute information acquisition module is used for acquiring the attribute information of the works to be inquired from the nodes of the block chain network when the work verification result is that the verification is passed.
9. The apparatus of claim 8, further comprising:
the template library query module is used for querying a preset attribute information template library;
the template acquisition module is used for acquiring a structured attribute information template corresponding to the product attribute information of the product to be inquired from the attribute information template library;
and the structured processing module is used for updating the attribute information template according to the work attribute information of the work to be inquired to obtain structured work attribute information.
10. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 7.
11. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 7.
CN201910887542.8A 2019-09-19 2019-09-19 Block chain-based work attribute information acquisition method and device and computer equipment Pending CN110598475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910887542.8A CN110598475A (en) 2019-09-19 2019-09-19 Block chain-based work attribute information acquisition method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910887542.8A CN110598475A (en) 2019-09-19 2019-09-19 Block chain-based work attribute information acquisition method and device and computer equipment

Publications (1)

Publication Number Publication Date
CN110598475A true CN110598475A (en) 2019-12-20

Family

ID=68861240

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910887542.8A Pending CN110598475A (en) 2019-09-19 2019-09-19 Block chain-based work attribute information acquisition method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN110598475A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111177661A (en) * 2019-12-27 2020-05-19 万翼科技有限公司 Copyright authentication method for building information model component and related product
CN112231518A (en) * 2020-12-10 2021-01-15 南京讯思雅信息科技有限公司 Method, system, electronic device and storage medium for discovering network propagation behavior of works
CN114692210A (en) * 2020-12-25 2022-07-01 航天信息股份有限公司 Data storage system, method, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106548091A (en) * 2016-10-14 2017-03-29 北京爱接力科技发展有限公司 A kind of data deposit card, the method and device of checking
CN107659610A (en) * 2017-08-02 2018-02-02 北京瑞卓喜投科技发展有限公司 Copyright protection methods, devices and systems based on block chain technology
CN110188515A (en) * 2019-05-16 2019-08-30 中细软集团有限公司 A kind of block chain network copyright register method and client

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106548091A (en) * 2016-10-14 2017-03-29 北京爱接力科技发展有限公司 A kind of data deposit card, the method and device of checking
CN107659610A (en) * 2017-08-02 2018-02-02 北京瑞卓喜投科技发展有限公司 Copyright protection methods, devices and systems based on block chain technology
CN110188515A (en) * 2019-05-16 2019-08-30 中细软集团有限公司 A kind of block chain network copyright register method and client

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111177661A (en) * 2019-12-27 2020-05-19 万翼科技有限公司 Copyright authentication method for building information model component and related product
CN111177661B (en) * 2019-12-27 2023-04-18 万翼科技有限公司 Copyright authentication method for building information model component and related product
CN112231518A (en) * 2020-12-10 2021-01-15 南京讯思雅信息科技有限公司 Method, system, electronic device and storage medium for discovering network propagation behavior of works
CN114692210A (en) * 2020-12-25 2022-07-01 航天信息股份有限公司 Data storage system, method, equipment and medium

Similar Documents

Publication Publication Date Title
CN109791591B (en) Method and system for identity and credential protection and verification via blockchain
CN110933163B (en) Block chain contract deployment method, device, equipment and storage medium
CN110535971B (en) Interface configuration processing method, device, equipment and storage medium based on block chain
CN110602116B (en) Block chain based data verification method, device and computer readable storage medium
CN110633963B (en) Electronic bill processing method, electronic bill processing device, computer readable storage medium and computer readable storage device
EP3740890A1 (en) Systems and methods of digital content certification and verification using cryptography and blockchain
CN110598478A (en) Block chain based evidence verification method, device, equipment and storage medium
CN112632629B (en) Voting management method, device, medium and electronic equipment based on block chain
WO2020073828A1 (en) Auditing result data storage and query method, and auditing item storage method and apparatus
CN110598475A (en) Block chain-based work attribute information acquisition method and device and computer equipment
CN111488372A (en) Data processing method, device and storage medium
CN113326081A (en) Static resource processing method and device, computer equipment and storage medium
CN110597817B (en) Communication record certification method and device based on blockchain and computer equipment
CN110597541B (en) Interface updating processing method, device, equipment and storage medium based on block chain
CN110866265A (en) Data storage method, device and storage medium based on block chain
US11620445B2 (en) System and method for implementing an automatic data collection and presentation generator module
CN111488626A (en) Data processing method, device, equipment and medium based on block chain
CN110598476A (en) Block chain-based work evidence storing method and device and computer readable storage medium
CN112328486A (en) Interface automation test method and device, computer equipment and storage medium
CN111339141A (en) Data transmission method, block link node equipment and medium
CN111274597A (en) Data processing method and equipment
CN110599384A (en) Organization relation transfer method, device, equipment and storage medium
CN110493008B (en) Block chain authentication method, device, equipment and medium
CN111817859A (en) Data sharing method, device, equipment and storage medium based on zero knowledge proof
CN110598374A (en) Block chain-based work registration method, device and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination