CN111563096B - Method, device, node and storage medium for creating entity portraits - Google Patents

Method, device, node and storage medium for creating entity portraits Download PDF

Info

Publication number
CN111563096B
CN111563096B CN202010300847.7A CN202010300847A CN111563096B CN 111563096 B CN111563096 B CN 111563096B CN 202010300847 A CN202010300847 A CN 202010300847A CN 111563096 B CN111563096 B CN 111563096B
Authority
CN
China
Prior art keywords
node
entity
information
entity information
authenticated
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.)
Active
Application number
CN202010300847.7A
Other languages
Chinese (zh)
Other versions
CN111563096A (en
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.)
Shenzhen Valueonline Technology Co ltd
Original Assignee
Shenzhen Valueonline 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 Shenzhen Valueonline Technology Co ltd filed Critical Shenzhen Valueonline Technology Co ltd
Priority to CN202010300847.7A priority Critical patent/CN111563096B/en
Publication of CN111563096A publication Critical patent/CN111563096A/en
Application granted granted Critical
Publication of CN111563096B publication Critical patent/CN111563096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/283Multi-dimensional databases or data warehouses, e.g. MOLAP or ROLAP
    • 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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computational Linguistics (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application is applicable to the technical field of block chains, and provides a method, a device, nodes and a storage medium for creating entity portraits, wherein the method is applied to any node in a preset alliance chain, and the method comprises the following steps: the node broadcasts the acquired first entity information of the target entity to other nodes in the alliance chain, receives at least one second entity information broadcast by the other nodes, and creates a portrait of the target entity according to the first entity information and the at least one second entity information. On the one hand, as the information content represented by the first entity information and the second entity information are different and the information content represented by each second entity information is different, the portrait is created by using the multidimensional entity information, so that the created entity portrait is objective; on the other hand, by utilizing the characteristics of the information of the block chain, such as non-falsification, the created entity portrait is more real; in yet another aspect, the node may directly construct the entity representation such that the entity representation is created more timely.

Description

Method, device, node and storage medium for creating entity portraits
Technical Field
The application belongs to the technical field of blockchains, and particularly relates to a method, a device, a node and a storage medium for creating an entity portrait.
Background
With the development of internet technology, information of entities, that is, objects of entity index items, can be collected and revealed to the public so that the public can know the entities. Where an entity includes a particular person (e.g., a board of directors, a supervisor, or a senior manager) or a particular unit (e.g., a company or school). Taking an entity as a board, a supervisor or a senior manager as an example, a marketer in a domestic capital market needs to disclose company information to the public (e.g., a regulatory agency, investor), wherein the board, supervisor or senior manager of the marketer is concerned, and the board, supervisor or senior manager can directly influence the operation status of the marketer, so that the public regards the related information of the board, supervisor or senior manager as one of important criteria for examining the marketer.
Generally, in the prior art, basic information (such as date of birth, age, academic history, job title, social achievement, stock holding condition, etc.) of an entity (such as a board, a supervision, or a senior manager) provided by one institution (such as a ticket company) is summarized by another institution (such as a marketing company), and then an image of the entity is created based on the summarized basic information, and finally the image is provided to the public so that the public can comprehensively understand the entity through the image of the entity.
However, in the prior art, only the entity basic information provided by the other party mechanism is provided, so that the information source for creating the entity portrait is single, namely, the entity basic information is only single-dimensional, a certain time is consumed in the process of summarizing the entity basic information provided by the other party mechanism by the one party mechanism, and potential safety hazards exist in the information transmission process, so that the entity portrait cannot be objectively, timely and truly created.
Disclosure of Invention
The embodiment of the application provides a method and a device for creating an entity portrait, which can solve the problem that the entity portrait cannot be objectively, timely and truly created in the prior art.
In a first aspect, an embodiment of the present application provides a method for creating an entity representation, including:
the node acquires first entity information of a target entity of a portrait to be created;
the node generates a first block according to the first entity information and broadcasts the first block to other nodes in the alliance chain, wherein the other nodes are nodes except the nodes in the alliance chain;
the node receives a second block broadcast by at least one node in the other nodes, wherein the second block is generated according to second entity information of the target entity;
and the node creates the portrait of the target entity according to the first entity information and at least one piece of second entity information, wherein the information contents represented by the first entity information and the second entity information are different, and the information contents represented by each piece of second entity information are different.
In a possible implementation manner of the first aspect, the federation chain includes a primary node and at least one secondary node:
if the node is the master node, before the node obtains the first entity information of the target entity of the portrait to be created, the method further comprises:
the node acquires a link-in request of a node to be authenticated;
the node responds to the link-in request and carries out link-in authentication on the node to be authenticated;
and if the node confirms that the node to be authenticated passes the link-in authentication, the node to be authenticated is added into the alliance link as a secondary node.
In a possible implementation manner of the first aspect, if the node determines that the node to be authenticated passes in-link authentication, after adding the node to be authenticated as a secondary node to the federation chain, the method further includes:
the node generates member joining notification information corresponding to the node to be authenticated;
the node stores the member joining notification information to a local chain member database and sends the member joining notification information to each secondary node in the coalition chain.
In a possible implementation manner of the first aspect, after the node receives the second block broadcast by at least one of the other nodes, the method further includes:
the node receives a data acquisition request sent by a user terminal;
the node responds to the data acquisition request and sends the first entity information and at least one piece of second entity information to the user terminal so as to instruct the user terminal to create the portrait of the target entity according to the first entity information and the at least one piece of second entity information.
In a possible implementation manner of the first aspect, before the creating the representation of the target entity according to the first entity information and at least one second entity information, the node further includes:
the node counts the data quantity of the first entity information and at least one second entity information;
the node judges whether the data volume is larger than a data volume threshold value;
if yes, the node stores the first entity information and at least one piece of second entity information to a local entity information database.
In a second aspect, an embodiment of the present application provides an apparatus for creating an entity representation, including:
the acquisition module is used for acquiring first entity information of a target entity of the portrait to be created;
the broadcasting module is used for generating a first block according to the first entity information and broadcasting the first block to other nodes in the alliance chain, wherein the other nodes are nodes except the nodes in the alliance chain;
a receiving module, configured to receive a second block broadcasted by at least one of the other nodes, where the second block is generated according to second entity information of the target entity;
the creation module is used for creating the portrait of the target entity according to the first entity information and at least one piece of second entity information, wherein the information contents represented by the first entity information and the second entity information are different, and the information contents represented by each piece of second entity information are different.
In a possible implementation manner of the second aspect, the federation chain includes a primary node and at least one secondary node, and the apparatus further includes:
the link-in request acquisition module is used for acquiring a link-in request of a node to be authenticated;
the response module is used for responding to the link entering request and carrying out link entering authentication on the node to be authenticated;
and the confirmation module is used for adding the node to be authenticated as a secondary node into the alliance chain if the node to be authenticated confirms that the node to be authenticated passes the in-chain authentication.
In a possible implementation manner of the second aspect, the apparatus further includes:
the generation module is used for generating member joining notification information corresponding to the node to be authenticated;
and the first sending module is used for storing the member joining notification information to a local chain member database by the node and sending the member joining notification information to each secondary node in the alliance chain.
In a possible implementation manner of the second aspect, the apparatus further includes:
the receiving module is used for receiving a data acquisition request sent by the user terminal by the node;
and the second sending module is used for responding to the data acquisition request and sending the first entity information and at least one piece of second entity information to the user terminal so as to instruct the user terminal to create the portrait of the target entity according to the first entity information and the at least one piece of second entity information.
In a possible implementation manner of the second aspect, the apparatus further includes:
a statistics module, configured to count data amounts of the first entity information and at least one second entity information;
the judging module is used for judging whether the data quantity is larger than a data quantity threshold value or not;
and the storage module is used for storing the first entity information and at least one second entity information to a local entity information database by the node if the first entity information and the at least one second entity information are stored in the local entity information database.
In a third aspect, an embodiment of the present application provides a node comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method according to the first aspect when executing the computer program.
In a fourth aspect, embodiments of the present application provide a storage medium, which when executed by a processor, implements a method as described in the first aspect.
In a fifth aspect, an embodiment of the application provides a computer program product which, when run on a node, causes the node to perform the method of any of the first aspects above.
Compared with the prior art, the embodiment of the application has the beneficial effects that:
in the embodiment of the application, each node in the preset alliance chain broadcasts the acquired first entity information of the target entity to other nodes in the alliance chain through the alliance chain, receives at least one second entity information broadcast to the alliance chain by other nodes through the alliance chain, and creates the portrait of the target entity according to the first entity information and the at least one second entity information. On the one hand, as the information contents represented by the first entity information and the second entity information are different, the information contents represented by the second entity information are different, and the portrait is created by using the multi-dimensional entity information, so that the created entity portrait is objective; on the other hand, by utilizing the characteristics of the information of the block chain, such as non-falsification, the created entity portrait is more real; in yet another aspect, the node may directly construct the entity representation such that the process of creating the entity representation is more timely.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a diagram of one particular example of a federated chain provided by an embodiment of the present application;
FIG. 2 is a flow chart of a method for creating an entity representation according to an embodiment of the present application;
FIG. 3 is a schematic flow chart before step S201 in FIG. 2 of a method for creating an entity representation according to an embodiment of the present application;
FIG. 4 is a schematic flow chart before step S204 in FIG. 2 of a method for creating an entity representation according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating another flow chart before step S204 in FIG. 2 of a method for creating an entity representation according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an apparatus for creating a physical representation according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a node according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The technical scheme provided by the embodiment of the application is described by a specific embodiment.
Because the method for creating entity portraits in the embodiment of the present application is applied to any node in a preset federation chain, the federation chain in the embodiment of the present application is described first.
The federation chain in the embodiment of the present application includes at least two nodes, where a node may be a server or a terminal device, as shown in fig. 1, which is a specific example diagram of the federation chain, including a node 1, a node 2, a node 3, and a shared pool formed by a plurality of blocks, where information sharing is performed between the node 1, the node 2, and the node 3 through the shared pool, and because the number of nodes is small, the node 1, the node 2, and the node 3 may communicate with each other. Of course, fig. 1 is only a specific exemplary diagram of a federation chain, and is not limited to the number of nodes in the federation chain, and the number of nodes in the federation chain may be adjusted in different situations.
In practical application, a multiparty organization forming the alliance constructs an alliance chain by taking a corresponding server or terminal device as a node, and a basic frame model of the alliance chain and validity specifications of data uploaded to the alliance chain by the node are formulated together. It can be seen that a federated chain is essentially a private blockchain, which can be understood as a database that is commonly created by multiple parties, through which information is shared, i.e., a shared database is co-built.
The basic framework model of the alliance chain comprises a data layer, a network layer, a consensus layer, a contract layer and an application layer.
The data layer encapsulates underlying data blocks, associated data encryption, and time stamps, etc., basic algorithms, such as blocks included in the basic data, digital signatures, hash functions, encryption algorithms, merkel trees, etc.
The network layer includes distributed networking mechanisms such as peer-to-peer (P2P), data propagation mechanisms such as message broadcasting, and data verification mechanisms such as transaction verification.
The consensus layer comprises various types Of consensus algorithms Of the network node, such as POW consensus algorithm (POW).
The contract layer comprises various scripts, algorithms and intelligent contracts, and is the basis of the programmable characteristics of the blockchain.
The application layer encapsulates application scenarios, such as distributed accounts book, data storage, API interface, etc. The alliance chain in the API interface application scene can provide a data access interface for nodes in the alliance chain and user terminals outside the alliance chain.
The application scenario of the method for creating entity portraits in the embodiment of the application can be a coalition chain created by a plurality of nodes together, each node in the plurality of nodes can broadcast the acquired entity information of one dimension of the entity to other nodes in the coalition chain, and also receive the entity information of at least one dimension of the entity broadcast by other at least one node, so that each node can acquire the entity information of a plurality of dimensions of the entity and create the entity portraits directly through the entity information of the plurality of dimensions.
Referring to fig. 2, a flow chart of a method for creating an entity portrait according to an embodiment of the present application is applied to any one node in a preset federation chain, where the federation chain includes at least two nodes, and the method includes:
step S201, the node acquires first entity information of a target entity of a portrait to be created.
Wherein, the node can be a server or a terminal device; the target entity may refer to an object that may be an entity index item, for example, a specific person (board of directors, supervisor or advanced manager) or a specific unit (company, school), and in addition, the target entity has a corresponding digital ID, and the node may confirm the target entity according to the digital ID carried in the first entity information; the first entity information is entity information of one dimension of the target entity.
By way of example and not limitation, taking the example that the target entity is a board of directors, the node may be a node corresponding to a marketing company, a node corresponding to a regulatory agency, or a node corresponding to a media agency, and the first entity information may be one of the following information: basic information (e.g., date of birth, age, academic, job title, social achievement, stock holding, etc.), character behavior information, corporate governance information, or social evaluation information (e.g., network evaluation), etc. It should be noted that the basic information, the character behavior information, the corporate governance information, and the social evaluation information all belong to entity information of one dimension of the board, where the corporate governance information is an influence result of the character behavior information, that is, entity information of multiple dimensions of the target entity has relevance.
In a specific application, if the node is a terminal device, a specific process of the node obtaining the first entity information of the target entity of the portrait to be created may be that the node receives the first entity information of the target entity of the portrait to be created directly input by a user.
If the node is a server, the specific process of the node obtaining the first entity information of the target entity of the portrait to be created may be that the node receives the first entity information of the target entity of the portrait to be created, which is sent by the user terminal.
In one possible implementation, since the federation chain is a private blockchain with a small number of nodes, the nodes can communicate with each other, and thus the consensus decision of a node in the federation chain can be essentially determined by a node trusted by most or all of the nodes, i.e., the federation chain includes a primary node and at least one secondary node. For example, in fig. 1, node 2 is a primary node, node 1 and node 3 are secondary nodes, then node 2 may directly determine that a new node joins the federation chain, and perform validity authentication on the data type, data format, data content, and the like of the new node according to the validity specification of the data of the federation chain.
Referring to fig. 3, a schematic flow chart before step S201 in fig. 2 for creating an entity representation according to an embodiment of the present application is shown, if a node is a master node, before the node obtains first entity information of a target entity for creating the representation, the method further includes:
step S301, the node acquires a link-in request of the node to be authenticated.
The node to be authenticated may be a server or a terminal device. It can be understood that before joining the federation chain, the node to be authenticated sends a chain request to the master node, and the chain entering request carries an identification code, so that the master node authenticates the node to be authenticated according to the chain entering request.
Step S302, the node responds to the link-in request and carries out link-in authentication on the node to be authenticated.
Specifically, after receiving a link-in request of a node to be authenticated, the node analyzes an identification code of the node to be authenticated from the link-in request, and authenticates whether the identity of the authentication node is in a local link-in member table according to the identification code, wherein the link-in member table can be set in advance.
Step S303, if the node confirms that the node to be authenticated passes the link-in authentication, the node to be authenticated is added into the alliance link as the secondary node.
It should be noted that, after the node to be authenticated is added as the secondary node to the federation chain, the master node performs validity authentication on the data type, the data format, the data content and the like of the node to be authenticated according to the validity specification of the data of the federation chain. Wherein the data types comprise business types such as business for creating entity portraits and entity types such as characters, the data formats comprise json formats, and the data contents comprise basic information, behavior information, social evaluation information and the like of the entities.
In one possible implementation manner, if the node confirms that the node to be authenticated passes the in-link authentication, the node to be authenticated is added into the alliance chain as the secondary node, and the method further includes:
the node generates member joining notification information corresponding to the node to be authenticated;
the node stores the member joining notification information to a local chain member database and sends the member joining notification information to each secondary node in the federation chain.
Wherein the member joining notification information includes membership such as a network address, a member joining time, and the like. It can be appreciated that after the node serving as the master node approves the node to be authenticated to join the federation chain, each secondary node in the federation chain is informed that a new member is added, so that each secondary node communicates with the newly added node to be authenticated.
Step S202, the node generates a first block according to the first entity information, and broadcasts the first block to other nodes in the alliance chain, wherein the other nodes are nodes except the node in the alliance chain.
Specifically, the node firstly acquires a chain tail block in the alliance chain, namely a block added into the alliance chain recently, wherein each block comprises a block head and a block main body; then, performing characteristic operation on the block head of the chain tail block to obtain a first characteristic value; then carrying out characteristic operation on the first entity information to obtain second characteristic information; and finally, generating a block head of the first block according to the first characteristic value and the second characteristic value, and generating a block main body of the first block according to the first entity information, thereby obtaining a complete first block.
In step S203, the node receives a second block broadcasted by at least one of the other nodes, and the second block is generated according to the second entity information of the target entity.
Each second entity information is entity information of one dimension of the target entity, in addition, the target entity has a corresponding digital ID, and the node can identify the target entity according to the digital ID carried in the second entity information.
Taking the example that the target entity is a board of directors, the node may be a node corresponding to a marketing company, a node corresponding to a supervision organization, or a node corresponding to a media organization, and the second entity information may be one of the following information: basic information (e.g., date of birth, age, academic, job title, social achievement, stock holding, etc.), character behavior information, corporate governance information, or social evaluation information (e.g., network evaluation), etc. It should be noted that the basic information, the character behavior information, the corporate governance information, and the social evaluation information all belong to entity information of one dimension of the board, where the corporate governance information is an influence result of the character behavior information, that is, entity information of multiple dimensions of the target entity has relevance.
Step S204, the node creates a portrait of the target entity according to the first entity information and the at least one second entity information.
The information content represented by the first entity information and the second entity information is different, and the information content represented by each second entity information is different.
It can be understood that each node can broadcast the acquired entity information of one dimension of the target entity to other nodes in the federation chain, and also receive the entity information of at least one dimension of the target entity broadcast by other at least one node, so that each node can acquire the entity information of multiple dimensions of the target entity, and directly create the portrait of the target entity through the entity information of multiple dimensions.
In a specific application, the process of creating the representation of the target entity may be: the node labels the target entity according to the first entity information and at least one second entity information, namely the entity information of multiple dimensions of the target entity, and forms a portrait of the target entity.
In addition, through the continuous increase of the number of nodes in the alliance chain, the newly added node can broadcast entity information such as personage education information of the other dimension of the target entity to other nodes, and acquire the entity information of the plurality of dimensions of the target entity which are already broadcast by the other nodes from the interface provided by the alliance chain, so that the dimension of the entity information of the target entity acquired by each node can be continuously expanded. Preferably, the images of the target entities created by the nodes in the federation chain can be updated in real time along with the updating of the target entity information in the federation chain.
In some embodiments, as shown in fig. 4, which is a schematic flow chart before step S204 in fig. 2 in the method for creating an portrait of an entity according to an embodiment of the present application, before creating a portrait of a target entity, the node further includes:
step S401, the node receives a data acquisition request sent by the user terminal.
Step S402, the node responds to the data acquisition request and sends the first entity information and at least one second entity information to the user terminal so as to instruct the user terminal to create the portrait of the target entity according to the first entity information and the at least one second entity information.
It may be understood that the user terminal outside the federation chain may access the first entity information and the at least one second entity information, that is, the entity information of the multiple dimensions of the target entity, in the federation chain through the interface provided by the application layer of the federation chain, and may also obtain the first entity information and the at least one second entity information, that is, the entity information of the multiple dimensions of the target entity, in the federation chain from the node in the federation chain by communicating with the node in the federation chain.
In some other embodiments, as shown in fig. 5, another flow chart before step S204 in fig. 2 of the method for creating an entity portrait provided in the embodiment of the present application, before creating a portrait of a target entity, the node further includes:
step S501, the node counts the data amount of the first entity information and at least one second entity information.
Step S502, the node judges whether the data amount is larger than a data amount threshold.
In step S503, if yes, the node stores the first entity information and at least one second entity information into a local entity information database.
It can be understood that, in the embodiment of the present application, before creating the representation of the target entity according to the first entity information and the at least one second entity information, it may be determined whether to store the first entity information and the at least one second entity information in the local entity information database based on the data amounts of the first entity information and the at least one second entity information, so as to achieve the effect of improving the data processing efficiency.
As can be seen from the foregoing, in the embodiment of the present application, each node broadcasts the acquired first entity information of the target entity to other nodes in the federation chain, receives at least one second entity information broadcast by the other nodes to the federation chain, and creates a representation of the target entity according to the first entity information and the at least one second entity information. On the one hand, as the information content represented by the first entity information and the second entity information are different and the information content represented by each second entity information is different, the portrait is created by using the multidimensional entity information, so that the created entity portrait is objective; on the other hand, by utilizing the characteristics of the information of the block chain, such as non-falsification, the created entity portrait is more real; in yet another aspect, the node may directly construct the entity representation such that the entity representation is created more timely.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Corresponding to the method for creating an entity image according to the above embodiment, fig. 7 shows a block diagram of an apparatus for creating an entity image according to an embodiment of the present application, and for convenience of explanation, only a portion related to the embodiment of the present application is shown.
Referring to fig. 6, the apparatus includes:
an acquisition module 61 for acquiring first entity information of a target entity of a portrait to be created;
a broadcasting module 62, configured to generate a first block according to the first entity information, and broadcast the first block to other nodes in the federation chain, where the other nodes are nodes in the federation chain except the nodes;
a receiving module 63, configured to receive a second block broadcasted by at least one of the other nodes, where the second block is generated according to second entity information of the target entity;
a creating module 64, configured to create a portrait of the target entity according to the first entity information and at least one piece of second entity information, where the first entity information and the second entity information are different in information content, and the second entity information is different in information content.
In one possible implementation, the federation chain includes a primary node and at least one secondary node, the apparatus further comprising:
the link-in request acquisition module is used for acquiring a link-in request of a node to be authenticated;
the response module is used for responding to the link entering request and carrying out link entering authentication on the node to be authenticated;
and the confirmation module is used for adding the node to be authenticated as a secondary node into the alliance chain if the node to be authenticated confirms that the node to be authenticated passes the in-chain authentication.
In one possible implementation, the apparatus further includes:
the generation module is used for generating member joining notification information corresponding to the node to be authenticated;
and the first sending module is used for storing the member joining notification information to a local chain member database by the node and sending the member joining notification information to each secondary node in the alliance chain.
In one possible implementation, the apparatus further includes:
the receiving module is used for receiving a data acquisition request sent by the user terminal by the node;
and the second sending module is used for responding to the data acquisition request and sending the first entity information and at least one piece of second entity information to the user terminal so as to instruct the user terminal to create the portrait of the target entity according to the first entity information and the at least one piece of second entity information.
In one possible implementation, the apparatus further includes:
a statistics module, configured to count data amounts of the first entity information and at least one second entity information;
the judging module is used for judging whether the data quantity is larger than a data quantity threshold value or not;
and the storage module is used for storing the first entity information and at least one second entity information to a local entity information database by the node if the first entity information and the at least one second entity information are stored in the local entity information database.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein.
Fig. 7 is a schematic structural diagram of a node according to an embodiment of the present application. As shown in fig. 7, the node 7 of this embodiment includes: at least one processor 70, a memory 71 and a computer program 72 stored in the memory 71 and executable on the at least one processor 70, the processor 70 implementing the steps of any of the method embodiments described above when executing the computer program 72.
The node 7 may be a terminal device or a computing device such as a server. The node may include, but is not limited to, a processor 70, a memory 71. It will be appreciated by those skilled in the art that fig. 7 is merely an example of the node 7 and is not meant to be limiting of the node 7, and may include more or fewer components than shown, or may combine certain components, or different components, such as may also include input-output devices, network access devices, etc.
The processor 70 may be a central processing unit (Central Processing Unit, CPU) and the processor 70 may be other general purpose processors, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 71 may in some embodiments be an internal storage unit of the node 7, such as a hard disk or a memory of the node 7. The memory 71 may in other embodiments also be an external storage device of the node 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the node 7. Further, the memory 71 may also comprise both an internal storage unit and an external storage device of the node 7. The memory 71 is used for storing an operating system, application programs, boot loader (BootLoader), data, other programs, etc., such as program codes of the computer program. The memory 71 may also be used for temporarily storing data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The embodiment of the application also provides a storage medium, which is a computer readable storage medium, and the computer readable storage medium stores a computer program, and the computer program realizes the steps in the embodiments of the method when being executed by a processor.
Embodiments of the present application provide a computer program product which, when run on a node, causes the node to perform steps that enable the implementation of the method embodiments described above.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (8)

1. A method of creating an entity representation, applied to any one node in a preset federation chain, the federation chain including at least two nodes, the method comprising:
the node acquires first entity information of a target entity of a portrait to be created;
the node generates a first block according to the first entity information and broadcasts the first block to other nodes in the alliance chain, wherein the other nodes are nodes except the nodes in the alliance chain;
the node receives a second block broadcast by at least one node in the other nodes, wherein the second block is generated according to second entity information of the target entity;
the node creates a portrait of the target entity according to the first entity information and at least one piece of second entity information, wherein the information contents represented by the first entity information and the second entity information are different, and the information contents represented by each piece of second entity information are different;
the federation chain includes a primary node and at least one secondary node:
if the node is the master node, before the node obtains the first entity information of the target entity of the portrait to be created, the method further comprises:
the node acquires a link-in request of a node to be authenticated;
the node responds to the link-in request and carries out link-in authentication on the node to be authenticated;
if the node confirms that the node to be authenticated passes the link-in authentication, the node to be authenticated is added into the alliance link as a secondary node;
after the node to be authenticated is added into the alliance chain as the secondary node, the main node performs validity authentication on the data type, the data format and the data content of the node to be authenticated.
2. The method for creating an entity representation according to claim 1, wherein the node, after adding the node to be authenticated as a secondary node to the federation chain if the node to be authenticated is determined to pass the in-chain authentication, further comprises:
the node generates member joining notification information corresponding to the node to be authenticated;
the node stores the member joining notification information to a local chain member database and sends the member joining notification information to each secondary node in the coalition chain.
3. The method of creating an entity representation according to any one of claims 1 to 2, wherein after the node receives the second block broadcast by at least one of the other nodes, further comprising:
the node receives a data acquisition request sent by a user terminal;
the node responds to the data acquisition request and sends the first entity information and at least one piece of second entity information to the user terminal so as to instruct the user terminal to create the portrait of the target entity according to the first entity information and the at least one piece of second entity information.
4. The method of creating an entity representation of claim 1, wherein the node, prior to creating the representation of the target entity from the first entity information and at least one of the second entity information, further comprises:
the node counts the data quantity of the first entity information and at least one second entity information;
the node judges whether the data volume is larger than a data volume threshold value;
if yes, the node stores the first entity information and at least one piece of second entity information to a local entity information database.
5. An apparatus for creating an entity representation, applied to any one node in a preset federation chain, the federation chain including at least two nodes, the apparatus comprising:
the acquisition module is used for acquiring first entity information of a target entity of the portrait to be created;
the broadcasting module is used for generating a first block according to the first entity information and broadcasting the first block to other nodes in the alliance chain, wherein the other nodes are nodes except the nodes in the alliance chain;
a receiving module, configured to receive a second block broadcasted by at least one of the other nodes, where the second block is generated according to second entity information of the target entity;
the creation module is used for creating the portrait of the target entity according to the first entity information and at least one piece of second entity information, wherein the information contents represented by the first entity information and the second entity information are different, and the information contents represented by the second entity information are different;
the federation chain includes a primary node and at least one secondary node,
the apparatus further comprises:
the link-in request acquisition module is used for acquiring a link-in request of a node to be authenticated;
the response module is used for responding to the link entering request and carrying out link entering authentication on the node to be authenticated;
the confirmation module is used for adding the node to be authenticated as a secondary node into the alliance chain if the node to be authenticated is confirmed to pass the in-chain authentication;
after the node to be authenticated is added into the alliance chain as the secondary node, the main node performs validity authentication on the data type, the data format and the data content of the node to be authenticated.
6. The apparatus for creating an entity representation of claim 5, said apparatus further comprising:
the generation module is used for generating member joining notification information corresponding to the node to be authenticated;
and the first sending module is used for storing the member joining notification information to a local chain member database by the node and sending the member joining notification information to each secondary node in the alliance chain.
7. A node comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 4 when executing the computer program.
8. A storage medium storing a computer program which, when executed by a processor, implements the method of any one of claims 1 to 4.
CN202010300847.7A 2020-04-16 2020-04-16 Method, device, node and storage medium for creating entity portraits Active CN111563096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010300847.7A CN111563096B (en) 2020-04-16 2020-04-16 Method, device, node and storage medium for creating entity portraits

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010300847.7A CN111563096B (en) 2020-04-16 2020-04-16 Method, device, node and storage medium for creating entity portraits

Publications (2)

Publication Number Publication Date
CN111563096A CN111563096A (en) 2020-08-21
CN111563096B true CN111563096B (en) 2023-08-11

Family

ID=72071600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010300847.7A Active CN111563096B (en) 2020-04-16 2020-04-16 Method, device, node and storage medium for creating entity portraits

Country Status (1)

Country Link
CN (1) CN111563096B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180197129A1 (en) * 2017-01-09 2018-07-12 International Business Machines Corporation Detecting vulnerabilities in a supply chain
CN109360106A (en) * 2018-09-27 2019-02-19 北京京东金融科技控股有限公司 Portrait construction method, system, medium and computer system
CN110138802A (en) * 2019-06-02 2019-08-16 四川虹微技术有限公司 User's characteristic information acquisition methods, device, block chain node and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA3098935A1 (en) * 2019-11-19 2020-02-20 Alipay (Hangzhou) Information Technology Co., Ltd. System and method for consensus management

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180197129A1 (en) * 2017-01-09 2018-07-12 International Business Machines Corporation Detecting vulnerabilities in a supply chain
CN109360106A (en) * 2018-09-27 2019-02-19 北京京东金融科技控股有限公司 Portrait construction method, system, medium and computer system
CN110138802A (en) * 2019-06-02 2019-08-16 四川虹微技术有限公司 User's characteristic information acquisition methods, device, block chain node and storage medium

Also Published As

Publication number Publication date
CN111563096A (en) 2020-08-21

Similar Documents

Publication Publication Date Title
JP7250568B2 (en) Blockchain Nodes, Blockchain Node Methods, and Blockchain Node Computer Programs
CN108805656B (en) Supply and demand matching method, platform, system and computer readable storage medium
JP7029408B2 (en) Methods and systems to control contract execution using distributed hash tables and peer-to-peer distributed ledgers
Yli-Huumo et al. Where is current research on blockchain technology?—a systematic review
US20180096163A1 (en) Immutable cryptographically secured ledger-backed databases
WO2020233373A1 (en) Application configuration file management method and device
CN113924561A (en) Detecting real world entities, imposters of real world entities, or pages of non-real world entities that comply or violate online system policies
JP2022536115A (en) Distributed Consensus Algorithm, Device and Computer Readable Storage Medium for Rapid Generation of Blocks
KR20200083935A (en) Blockchain-based crowdsourcing of map applications
WO2022001526A1 (en) Block chain-based trade data processing method and related device thereof
Han et al. A survey on blockchain-based integrity auditing for cloud data
CN111260488B (en) Data processing method and device and readable storage medium
CN111291394B (en) False information management method, false information management device and storage medium
WO2021208762A1 (en) Data storage and query
CN112053271B (en) Public service platform data evidence management method and system based on block chain
CN115131022B (en) Block chain based digital asset transaction method, device, equipment and medium
CN112612856A (en) Data processing method and device based on block chain
Shen et al. Blockchain: Empowering secure data sharing
Baniata et al. Prifob: a privacy-aware fog-enhanced blockchain-based system for global accreditation and credential verification
US20220343325A1 (en) Assetization of hashtags
Su et al. Research on model design and operation mechanism of enterprise blockchain digital system
CN111563096B (en) Method, device, node and storage medium for creating entity portraits
US20220092104A1 (en) System for automatic management and depositing of documents (images) hash in block-chain technology
Chenli et al. Provnet: Networked blockchain for decentralized secure provenance
WO2020233011A1 (en) Blockchain-based app message sharing method, system, and apparatus, and 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
GR01 Patent grant
GR01 Patent grant