CN110213294A - By means of the community data cochain method and its equipment of block chain - Google Patents

By means of the community data cochain method and its equipment of block chain Download PDF

Info

Publication number
CN110213294A
CN110213294A CN201910546965.3A CN201910546965A CN110213294A CN 110213294 A CN110213294 A CN 110213294A CN 201910546965 A CN201910546965 A CN 201910546965A CN 110213294 A CN110213294 A CN 110213294A
Authority
CN
China
Prior art keywords
client
community data
community
public key
data
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
CN201910546965.3A
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.)
Beijing Ai Morui Strategic Technology Co Ltd
Original Assignee
Beijing Ai Morui Strategic 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 Beijing Ai Morui Strategic Technology Co Ltd filed Critical Beijing Ai Morui Strategic Technology Co Ltd
Priority to CN201910546965.3A priority Critical patent/CN110213294A/en
Publication of CN110213294A publication Critical patent/CN110213294A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

This application discloses the community data cochain method and its equipment by means of block chain, block chain node receives the community data cochain request that the first client is sent;Triggering verifies intelligent contract, the intelligent contract of the verification verifies the identity of first client, after verification passes through, the community data is encrypted with first client public key, and executes the cochain process of the community data of the first client public key encryption;The block chain node receives the inquiry request of the community data of the second client, and the inquiry request of the community data includes the second client public key;Triggering verifies intelligent contract, the intelligent contract of the verification verifies the identity of second client, after verification passes through, the community data is encrypted with second client public key, and executes the cochain process of the community data of the second client public key encryption.The application can disclose community data cochain credible.

Description

Community data uplink method by block chain and apparatus thereof
Technical Field
The present application relates to the field of blockchain technology, and more particularly, to a method and apparatus for community data uplink by using blockchain.
Background
At present, a block chain technology is based on a decentralized peer-to-peer network, and open source software is used for combining a cryptography principle, time sequence data and a consensus mechanism to ensure the consistency and the persistence of each node in a distributed database, so that information can be immediately verified and traceable, but is difficult to tamper and cannot be shielded, and a set of private, efficient and safe shared value system is created.
The existing community platform (such as a dog searching bar) adopts a centralized database, and stores community posts of commodities, community time, mobile phones used by the community of users and the like; however, in the database of the community platform, data is tampered, authenticity of the data is not guaranteed, and an operation platform of the community modifies community post content of a certain commodity. Especially for some small-scale community platforms, the data security and authenticity of the post are not guaranteed: the unreal community content of the goods or services can mislead the user and influence the user experience.
Therefore, how to store the data of the community platform on the blockchain in a non-tamper-able and trusted manner based on the blockchain becomes a problem to be solved urgently.
The above is only for the purpose of assisting understanding of the technical solutions of the present application, and does not represent an admission that the above is prior art.
Disclosure of Invention
In order to solve the above problems, the present application provides a community data uplink method and an apparatus thereof by means of a block chain, which enable data uplink of a community, so that community data on the chain is trusted and public and transparent.
A first aspect of the present application provides a method for community data uplink by means of a block chain, the method comprising:
the method comprises the steps that a block chain node receives a community data uplink request sent by a first client, wherein the community data uplink request comprises a public key of the first client;
triggering a verification intelligent contract, verifying the identity of the first client by the verification intelligent contract, encrypting the community data by using the first client public key after the verification is passed, and executing the uplink process of the community data encrypted by the first client public key;
the block chain node receives a query request of the community data of a second client, wherein the query request of the community data comprises a public key of the second client;
triggering a verification intelligent contract, verifying the identity of the second client by the verification intelligent contract, encrypting the community data by using the public key of the second client after the verification is passed, and executing the uplink process of the community data encrypted by the public key of the second client.
In one possible embodiment, the method further comprises: the block chain node receives a community data query request sent by the second client;
and the block chain node sends a community data query response to the second client, wherein the community data query response comprises community data encrypted by the public key of the second client, so that the second client can decrypt the community data encrypted by the public key of the second client by using a private key of the second client.
In a possible implementation manner, the community data is operation data of a user corresponding to the first client on a community platform, and includes a community type, a community posting time, and a community posting content.
In a possible implementation manner, the first client encrypts the community data with its own public key, specifically: and the first client encrypts the community data in a preset proportion by using a self public key.
In one possible embodiment, the community data includes associated attributes and non-associated attributes; and automatically superposing the attribute values of the community data associated attributes.
A second aspect of the present application provides a community data uplink apparatus by means of a blockchain, the apparatus being a blockchain node, the apparatus comprising a receiving unit and a processing unit; wherein,
the receiving unit receives a community data uplink request sent by a first client, wherein the community data uplink request comprises a public key of the first client;
the processing unit triggers a check intelligent contract, the check intelligent contract checks the identity of the first client, after the check is passed, the first client public key is used for encrypting the community data, and a chain process of the community data encrypted by the first client public key is executed;
the receiving unit is used for receiving a query request of the community data of a second client, wherein the query request of the community data comprises a public key of the second client;
and the processing unit triggers a verification intelligent contract, the verification intelligent contract verifies the identity of the second client, after the verification is passed, the community data is encrypted by using the public key of the second client, and the uplink process of the community data encrypted by using the public key of the second client is executed.
In one possible embodiment, the apparatus comprises a transmitting unit; the receiving unit is used for receiving a community data query request sent by the second client;
the sending unit sends a community data query response to the second client, wherein the community data query response comprises community data encrypted by the public key of the second client, so that the second client can decrypt the community data encrypted by the public key of the second client by using a private key of the second client.
In a possible implementation manner, the community data is operation data of a user corresponding to the first client on a community platform, and includes a community type, a community posting time, and a community posting content.
In a possible implementation manner, the first client encrypts the community data with its own public key, specifically: and the first client encrypts the community data in a preset proportion by using a self public key.
In one possible embodiment, the community data includes associated attributes and non-associated attributes; and automatically superposing the attribute values of the community data associated attributes.
According to the community data chaining method and device, the community data on the chain can be credible and are transparent.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application.
Fig. 1 is a flowchart illustrating a method for uplink of community data by block chains according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for uplink of community data by block chains according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a community data uplink apparatus with block chains according to an embodiment of the present application.
Detailed Description
In order to more clearly explain the overall concept of the present application, the following detailed description is given by way of example in conjunction with the accompanying drawings.
The terms "first," "second," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the order of such use may be interchanged under appropriate circumstances such that embodiments of the invention described herein may be practiced in other orders than those illustrated or described herein.
Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The block link point and the client referred to in the embodiment of the application may be understood as an abstract machine that responds to an external specific trigger condition and performs state conversion according to a certain rule, and may be a device that can be networked according to application software, such as a mobile phone, a tablet computer, a palm computer, a personal PC, and the like.
As shown in FIG. 1, a method for community data uplink by block chain includes steps S101-S104.
S101, a block link point receives a community data uplink request sent by a first client, wherein the community data uplink request comprises a public key of the first client.
And S102, triggering a verification intelligent contract, verifying the identity of the first client by the verification intelligent contract, encrypting the community data by using the first client public key after the verification is passed, and executing the chain process of the community data encrypted by the first client public key.
S103, the block chain node receives a query request of the community data of a second client, and the query request of the community data comprises a public key of the second client.
And S104, triggering a verification intelligent contract, verifying the identity of the second client by the verification intelligent contract, encrypting the community data by using the public key of the second client after the verification is passed, and executing the chain process of the community data encrypted by the public key of the second client.
In one example, the method further comprises: the block chain node receives a community data query request sent by the second client;
and the block chain node sends a community data query response to the second client, wherein the community data query response comprises community data encrypted by the public key of the second client, so that the second client can decrypt the community data encrypted by the public key of the second client by using a private key of the second client.
In one example, the community data is operation data of a user corresponding to the first client on a community platform, and includes a community type, a community posting time, and a community posting content.
In one example, the first client encrypts the community data with its own public key, specifically: and the first client encrypts the community data in a preset proportion by using a self public key.
In one example, the community data includes associated attributes and non-associated attributes; and automatically superposing the attribute values of the community data associated attributes.
In the above example, the first client is used as an operator of the community data, and the second client is used as an inquirer of the community data; for a specific community platform, each user may be an operator of the community data or an inquirer of the community data.
The following describes, by taking fig. 2 as an example, a process of the uplink method applied to the community data on the blockchain, which includes S201-S209.
S201, a first client sends a community uplink data request to a blockchain node, where the community uplink data request includes a public key of the first client.
S202, triggering a check intelligent contract on the block chain, checking the identity of the first client by the check intelligent contract, encrypting the community data by using the first client public key, and executing the uplink process on the community data encrypted by the first client public key.
The blockchain node encrypts the community data by using the first client public key, wherein the encryption can be performed on all fields of the community data or partial fields of the community data, such as: only privacy-related content is encrypted; or the community data may not be encrypted.
In addition, the community data includes two types of attributes, an associated attribute and a non-associated attribute. For example: the community posting time of each user can be stored in the block chain; for example: the certain topic discussion quantity of the community is the associated attribute, the data format of the community comprises the topic discussion quantity in the community, and the attribute value of the topic discussion quantity of the community can be automatically superposed as long as a user participates in the topic discussion of the community and posts the topic discussion.
The checking means that whether the first client is a user of the community platform is judged, and only the user of the community platform can have the authority to uplink the community data.
It should be noted that the uplink process is a conventional process in the art and will not be described in detail. For example: and under the workload certification PoW common mode, packaging and verifying the data, wherein the block link point of the account right can place the packaged block in the next block of the current block as a new block uplink.
The community types comprise movie communities, television drama communities, research communities, mother-infant communities and the like, and data such as posts for help in the communities or small knurls expressing personal life can be stored in a chain and cannot be tampered, so that the authenticity of the data is guaranteed. So as to avoid the situation that the platform increases or deletes the number of posts at will.
S203, the block node sends a community uplink data response to the first ue.
And S204, the second client sends the community data query request to the block chain node, wherein the community data query request comprises the public key of the second client.
At this time, the user corresponding to the second client may query the community data after seeing the community data. In the application, the first client and the second client are both terminal devices provided with decentralized application software, and can directly perform information interaction with the blockchain nodes on the blockchain.
And S205, triggering a check intelligent contract on the block chain, checking the identity of the second client by the check intelligent contract, encrypting the community data by using the public key of the second client after the check is passed, and executing the uplink process on the community data encrypted by using the public key of the second client.
After the verification is passed, executing the next flow; the check fails and the process terminates.
And S206, the block chain node sends a community data query response to the second client.
And S207, the second client sends a community data query request to the blockchain node.
And S208, the block nodes send community data query responses to the second client, wherein the community data query responses comprise community data encrypted by the public key of the second client.
S209, the second client decrypts the community data encrypted by the public key of the second client by using the private key of the second client, so as to obtain the community data.
According to the method and the device, the data of the community can be linked, the link process is public and transparent, and any user of the same community platform can check the community data; the authenticity of community data is guaranteed.
It should be noted that, in the application, a client directly performs information interaction with a node of a block chain, and the block chain node directly stores information on the block chain without a centralized server, so that community data is more open and credible; rather than the existing client interacting with a centralized server.
As shown in fig. 3, the apparatus for community uplink data by block chain is a block chain node and includes a receiving unit and a processing unit.
The receiving unit receives a community data uplink request sent by a first client, wherein the community data uplink request comprises a public key of the first client;
the processing unit triggers a check intelligent contract, the check intelligent contract checks the identity of the first client, after the check is passed, the first client public key is used for encrypting the community data, and a chain process of the community data encrypted by the first client public key is executed;
the receiving unit is used for receiving a query request of the community data of a second client, wherein the query request of the community data comprises a public key of the second client;
and the processing unit triggers a verification intelligent contract, the verification intelligent contract verifies the identity of the second client, after the verification is passed, the community data is encrypted by using the public key of the second client, and the uplink process of the community data encrypted by using the public key of the second client is executed.
In one example, the apparatus includes a transmitting unit; the receiving unit is used for receiving a community data query request sent by the second client;
the sending unit sends a community data query response to the second client, wherein the community data query response comprises community data encrypted by the public key of the second client, so that the second client can decrypt the community data encrypted by the public key of the second client by using a private key of the second client.
In one example, the community data is operation data of a user corresponding to the first client on a community platform, and includes a community type, a community posting time, and a community posting content.
In one example, the first client encrypts the community data with its own public key, specifically: and the first client encrypts the community data in a preset proportion by using a self public key.
In one example, the community data includes associated attributes and non-associated attributes; and automatically superposing the attribute values of the community data associated attributes.
According to the method and the device, the data of the community can be linked, the link process is public and transparent, and any user of the same community platform can check the community data; the authenticity of community data is guaranteed.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. 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 description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for community data uplink by block chaining, the method comprising:
the method comprises the steps that a block chain node receives a community data uplink request sent by a first client, wherein the community data uplink request comprises a public key of the first client;
triggering a verification intelligent contract, verifying the identity of the first client by the verification intelligent contract, encrypting the community data by using the first client public key after the verification is passed, and executing the uplink process of the community data encrypted by the first client public key;
the block chain node receives a query request of the community data of a second client, wherein the query request of the community data comprises a public key of the second client;
triggering a verification intelligent contract, verifying the identity of the second client by the verification intelligent contract, encrypting the community data by using the public key of the second client after the verification is passed, and executing the uplink process of the community data encrypted by the public key of the second client.
2. The method of claim 1, further comprising:
the block chain node receives a community data query request sent by the second client;
and the block chain node sends a community data query response to the second client, wherein the community data query response comprises community data encrypted by the public key of the second client, so that the second client can decrypt the community data encrypted by the public key of the second client by using a private key of the second client.
3. The method according to claim 1, wherein the community data is operation data of a user corresponding to the first client on a community platform, and includes a community type, a community posting time, and a community posting content.
4. The method according to claim 1, wherein the first client encrypts the community data with its own public key, specifically:
and the first client encrypts the community data in a preset proportion by using a self public key.
5. The method of claim 1, wherein the community data comprises associated attributes and non-associated attributes; wherein,
and automatically superposing the attribute values of the community data associated attributes.
6. Community data uplink equipment by means of a blockchain, characterized in that the equipment is a blockchain node, the equipment comprising a receiving unit and a processing unit; wherein,
the receiving unit receives a community data uplink request sent by a first client, wherein the community data uplink request comprises a public key of the first client;
the processing unit triggers a check intelligent contract, the check intelligent contract checks the identity of the first client, after the check is passed, the first client public key is used for encrypting the community data, and a chain process of the community data encrypted by the first client public key is executed;
the receiving unit is used for receiving a query request of the community data of a second client, wherein the query request of the community data comprises a public key of the second client;
and the processing unit triggers a verification intelligent contract, the verification intelligent contract verifies the identity of the second client, after the verification is passed, the community data is encrypted by using the public key of the second client, and the uplink process of the community data encrypted by using the public key of the second client is executed.
7. The apparatus of claim 6, wherein the apparatus comprises a transmitting unit;
the receiving unit is used for receiving a community data query request sent by the second client;
the sending unit sends a community data query response to the second client, wherein the community data query response comprises community data encrypted by the public key of the second client, so that the second client can decrypt the community data encrypted by the public key of the second client by using a private key of the second client.
8. The device according to claim 6, wherein the community data is operation data of a user corresponding to the first client on a community platform, and includes a community type, a community posting time, and a community posting content.
9. The device according to claim 6, wherein the first client encrypts the community data with its own public key, specifically:
and the first client encrypts the community data in a preset proportion by using a self public key.
10. The apparatus of claim 6, wherein the community data comprises associated attributes and non-associated attributes; wherein,
and automatically superposing the attribute values of the community data associated attributes.
CN201910546965.3A 2019-06-24 2019-06-24 By means of the community data cochain method and its equipment of block chain Pending CN110213294A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910546965.3A CN110213294A (en) 2019-06-24 2019-06-24 By means of the community data cochain method and its equipment of block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910546965.3A CN110213294A (en) 2019-06-24 2019-06-24 By means of the community data cochain method and its equipment of block chain

Publications (1)

Publication Number Publication Date
CN110213294A true CN110213294A (en) 2019-09-06

Family

ID=67794145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910546965.3A Pending CN110213294A (en) 2019-06-24 2019-06-24 By means of the community data cochain method and its equipment of block chain

Country Status (1)

Country Link
CN (1) CN110213294A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795755A (en) * 2019-12-26 2020-02-14 深圳市建筑科学研究院股份有限公司 Building project scene type evidence storing and non-tampering method and system based on block chain

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795755A (en) * 2019-12-26 2020-02-14 深圳市建筑科学研究院股份有限公司 Building project scene type evidence storing and non-tampering method and system based on block chain
CN110795755B (en) * 2019-12-26 2020-09-25 深圳市建筑科学研究院股份有限公司 Building project scene type evidence storing and non-tampering method and system based on block chain

Similar Documents

Publication Publication Date Title
Pal et al. IoT technical challenges and solutions
CN110061887B (en) Block chain-based traffic statistical method, device and equipment
CN112804354B (en) Method and device for data transmission across chains, computer equipment and storage medium
CN110232286B (en) E-commerce data chaining method and equipment applying intelligent contracts
CN110278270A (en) A kind of polled data cochain method and its equipment based on block chain
CN110247918A (en) Number cochain method and its equipment are shaken applied to block chain
CN110247923A (en) Number cochain method and its equipment are shaken based on block chain
CN103095663B (en) Information interacting method between a kind of A non logged-on user and device
CN110263563A (en) By means of the ad click data cochain method and its equipment of block chain
CN110266696A (en) A kind of evaluation data cochain method and its equipment applied to block chain
CN110264206A (en) A kind of electric quotient data cochain method and its equipment based on block chain
CN110266698A (en) Pass through the Knowledge Sharing data cochain method and its equipment of block chain
CN110266699A (en) Prize drawing data cochain method and its equipment applied to block chain
CN110247921A (en) A kind of polled data cochain method and its equipment for applying intelligent contract
CN110232287A (en) Pass through the shared economic data cochain method and its equipment of block chain
CN110263100A (en) Using the shared economic data cochain method and its equipment of intelligent contract
CN110263529A (en) Number cochain method and its equipment are shaken using intelligent contract
CN110213294A (en) By means of the community data cochain method and its equipment of block chain
CN110245512A (en) Lottery data cochain method and its equipment applied to block chain
CN110233853A (en) It is a kind of to thumb up data cochain method and its equipment applied to block chain
CN110266691A (en) Credit data cochain method and its equipment based on block chain
CN110263562A (en) A kind of evaluation data cochain method and its equipment based on block chain
CN110213296A (en) It is a kind of that data cochain method and its equipment are thumbed up based on block chain
CN110233852A (en) Prize drawing data cochain method and its equipment based on block chain
CN110225056A (en) A kind of evaluation data cochain method and its equipment for applying intelligent contract

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication