CN110839211A - Information sharing method and device and storage medium - Google Patents

Information sharing method and device and storage medium Download PDF

Info

Publication number
CN110839211A
CN110839211A CN201911138146.1A CN201911138146A CN110839211A CN 110839211 A CN110839211 A CN 110839211A CN 201911138146 A CN201911138146 A CN 201911138146A CN 110839211 A CN110839211 A CN 110839211A
Authority
CN
China
Prior art keywords
address
user
sharing
shared
information
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.)
Granted
Application number
CN201911138146.1A
Other languages
Chinese (zh)
Other versions
CN110839211B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911138146.1A priority Critical patent/CN110839211B/en
Publication of CN110839211A publication Critical patent/CN110839211A/en
Application granted granted Critical
Publication of CN110839211B publication Critical patent/CN110839211B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • H04W4/027Services making use of location information using location based information parameters using movement velocity, acceleration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/80Wireless
    • 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 Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses an information sharing method, an information sharing device and a storage medium, wherein the information sharing method comprises the steps of receiving a sharing instruction aiming at information to be shared, wherein the sharing instruction is used for indicating that the information to be analyzed is sent to each contact person in a contact person set, and the information to be shared comprises shared content and a shared address; acquiring a target historical address of a first user from a block chain network, wherein the target historical address of the first user is uploaded by a terminal of the first user and is stored in the block chain network; and generating a sharing request according to the sharing instruction and the target historical address, and sending the sharing request to a server, so that the server sends the information to be shared to each contact in the contact set when identifying that the sharing address is credible according to the sharing address and the target historical address. By the information sharing method, authenticity of the address shared by the user can be checked, and dependence on third-party service platform data can be reduced.

Description

Information sharing method and device and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for information sharing, and a storage medium.
Background
The positioning technology based on the mobile phone or other terminals is to acquire the actual geographic position information of a user through the terminal and mark the position of a positioned object on an electronic map. Currently, when a user uses a mobile phone or other terminals to perform positioning, the current geographic location information of the terminal is obtained through a positioning module of the terminal, including GPS positioning, WIFI positioning, and the like, to realize positioning. However, the existing positioning technology is easily modified by other plug-in positioning software in a manner of acquiring the geographic position in a single direction, so that the actual geographic position of the positioned object is falsified, and therefore, the potential risks of privacy, property and the like are easily caused. Therefore, a method for limiting the user to select the positioning is lacked at present so as to ensure the authenticity of the positioning information shared by the user.
Disclosure of Invention
The embodiment of the invention provides an information sharing method, an information sharing device and a storage medium, and can provide a verification mode for judging whether a shared address is credible or not so as to verify the authenticity of a current geographical position acquired by a user and reduce the possibility of potential cheating.
In a first aspect, an embodiment of the present invention provides an information sharing method, where the information sharing method is applied to a terminal of a first user, and the information sharing method includes:
receiving a sharing instruction aiming at information to be shared, wherein the sharing instruction is used for indicating that the information to be analyzed is sent to each contact in a contact set, and the information to be shared comprises shared content and a shared address;
acquiring a target historical address of the first user from a block chain network, wherein the target historical address of the first user is uploaded by a terminal of the first user and is stored in the block chain network;
and generating a sharing request according to the sharing instruction and the target historical address, and sending the sharing request to a server, so that the server sends the information to be shared to each contact in the contact set when identifying that the sharing address is credible according to the sharing address and the target historical address.
As a possible implementation manner, before receiving the sharing instruction for the information to be shared, the method further includes:
and regularly signing the current address of the first user by using the private key of the first user to generate first data, and uploading the first data to the block chain network so as to enable the block chain network to store the current address of the first user.
As a possible implementation manner, the acquiring the target historical address of the first user from the blockchain network specifically includes:
acquiring a historical address of the first user from the block chain network according to the public key of the first user;
and determining the target historical address as the historical address closest to the current time in the historical addresses of the first user, wherein each historical address in the historical addresses of the first user corresponds to a time.
In a second aspect, an embodiment of the present invention provides an information sharing method, where the information sharing method is applied to a server, and the information sharing method includes:
receiving a sharing request sent by a terminal of a first user, wherein the sharing request is used for requesting the server to send information to be shared to each contact in a contact set, the sharing request comprises the information to be shared, and the information to be shared comprises shared content and a shared address;
acquiring a target historical address of the first user, wherein the target historical address of the first user is uploaded by a terminal of the first user and is stored in the block chain network;
and when the sharing address is identified to be credible according to the sharing address and the target historical address, sending the information to be shared to each contact in the contact set.
As a possible implementation manner, the sharing request further includes a target history address of the first user, and the obtaining the target history address of the first user includes:
and analyzing the target historical address from the sharing request.
As a possible implementation, the acquiring the target historical address of the first user includes:
and acquiring the target historical address of the first user from the block chain network.
As a possible implementation manner, the acquiring the target historical address of the first user from the blockchain network includes:
determining the public key of the first user according to the corresponding relation between the users and the public key;
acquiring a historical address of the first user from the block chain network according to the public key of the first user;
and determining the target historical address of the first user as the historical address closest to the current time in the historical addresses of the first user, wherein each historical address in the historical addresses of the first user corresponds to a time.
As a possible implementation manner, before sending the information to be shared to each contact in the contact set, the method further includes:
determining the speed of reaching the shared address from the target historical address according to the target historical address, the shared address, the timestamp of the target historical address and the current time;
and when the speed of the target historical address reaching the shared address is not greater than a speed threshold value, determining that the shared address is credible.
As a possible implementation manner, before determining that the shared address is trusted when the speed of the target historical address reaching the shared address is not greater than a speed threshold, the method includes:
and determining a speed threshold corresponding to the address type of the target historical address according to the corresponding relation between the address type and the speed threshold.
In a third aspect, an embodiment of the present invention provides an information sharing apparatus, where the information sharing apparatus is applied to a terminal of a first user, and the information sharing apparatus includes:
the device comprises a first receiving unit, a second receiving unit and a third receiving unit, wherein the first receiving unit is used for receiving a sharing instruction aiming at information to be shared, the sharing instruction is used for indicating that the information to be analyzed is sent to each contact in a contact set, and the information to be shared comprises shared content and a shared address;
a first obtaining unit, configured to obtain a target historical address of the first user from a blockchain network, where the target historical address of the first user is uploaded by a terminal of the first user and is stored in the blockchain network;
the generating unit is used for generating a sharing request according to the sharing instruction and the target historical address and sending the sharing request to a server, so that the server sends the information to be shared to each contact in the contact set when the sharing address is identified to be credible according to the sharing address and the target historical address.
As a possible implementation manner, before the receiving the sharing instruction for the information to be shared, the information sharing apparatus further includes:
and the uploading unit is used for signing the current address of the first user by using the private key of the first user at regular time to generate first data, and uploading the first data to the block chain network so as to enable the block chain network to store the current address of the first user.
As a possible implementation, the first obtaining unit is configured to:
acquiring a historical address of the first user from the block chain network according to the public key of the first user;
and determining the target historical address as the historical address closest to the current time in the historical addresses of the first user, wherein each historical address in the historical addresses of the first user corresponds to a time.
In a fourth aspect, an embodiment of the present invention provides an information sharing apparatus, where the information sharing apparatus is applied to a server, and the information sharing apparatus includes:
the second receiving unit is used for receiving a sharing request sent by a terminal of a first user, the sharing request is used for requesting the server to send information to be shared to each contact in a contact set, the sharing request comprises the information to be shared, and the information to be shared comprises shared content and a shared address;
a second obtaining unit, configured to obtain a target historical address of the first user, where the target historical address of the first user is uploaded by a terminal of the first user and is stored in the blockchain network;
and the sending unit is used for sending the information to be shared to each contact in the contact set when the sharing address is identified to be credible according to the sharing address and the target historical address.
As a possible implementation manner, the sharing request further includes a target history address of the first user, and the second obtaining unit includes:
and the analysis unit is used for analyzing the target historical address from the sharing request.
As a possible implementation, the second obtaining unit is configured to:
and acquiring the target historical address of the first user from the block chain network.
As a possible implementation manner, the second obtaining unit is specifically configured to:
determining the public key of the first user according to the corresponding relation between the users and the public key;
acquiring a historical address of the first user from the block chain network according to the public key of the first user;
and determining the target historical address of the first user as the historical address closest to the current time in the historical addresses of the first user, wherein each historical address in the historical addresses of the first user corresponds to a time.
As a possible implementation manner, before sending the information to be shared to each contact in the contact set, the information sharing apparatus further includes:
the first determining unit is used for determining the speed of reaching the shared address from the target historical address according to the target historical address, the shared address, the timestamp of the target historical address and the current time;
and the second determination unit is used for determining that the shared address is credible when the speed of the target historical address reaching the shared address is not greater than a speed threshold value.
As a possible implementation manner, before determining that the shared address is trusted when the speed of the target historical address reaching the shared address is not greater than a speed threshold, the information sharing apparatus further includes:
and the third determining unit is used for determining the speed threshold corresponding to the address type of the target historical address according to the corresponding relation between the address type and the speed threshold.
In a fifth aspect, an embodiment of the present application provides an information sharing apparatus, where the information sharing apparatus includes a processor and a memory, where the processor is coupled to the memory, where the memory is configured to store computer instructions, and the processor is configured to execute the computer instructions and call the program code to implement the information sharing method disclosed in any one of the embodiments of the first aspect or the second aspect.
In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a computer device, the information sharing method disclosed in any one of the embodiments of the first aspect or the second aspect is implemented.
In the embodiment of the invention, a terminal of a first user receives a sharing instruction aiming at information to be shared, wherein the sharing instruction is used for indicating that the information to be analyzed is sent to each contact in a contact set, and the sharing information comprises sharing content and a sharing address; a terminal of a first user acquires a target historical address of the first user from a block chain network, wherein the target historical address of the first user is uploaded by the terminal of the first user and is stored in the block chain network; the terminal of the first user generates a sharing request according to the sharing instruction and the target historical address, and sends the sharing request to the server, so that the server sends the information to be shared to each contact in the contact set when recognizing that the sharing address is credible according to the sharing address and the target historical address. The server needs to judge whether the shared address of the first user is credible according to the target history of the first user before the terminal of the first user shares the shared address of the first user, and compared with the traditional shared address, firstly, the authenticity of the shared address of the user can be checked, and the generation of potential cheating behaviors is reduced; and secondly, the target historical address is acquired from the block chain network, and the data security and reliability are guaranteed without depending on a third-party service platform.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without any creative effort.
Fig. 1 is an architecture diagram of an information sharing system according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for storing an address of a user through a blockchain network according to an embodiment of the present invention;
fig. 3 is a flowchart of information sharing according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a user interface for sharing information according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a user interface for displaying shared information according to an embodiment of the present invention;
fig. 6 is a flow chart of another information sharing method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an information sharing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another information sharing apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another information sharing apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of another information sharing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention.
People usually share information through social software, such as WeChat, QQ, Facebook, microblog and the like, and can share the current address (address is also called geographical position and position) while sharing the information. Taking the example of publishing the dynamics of the friend circle by 'WeChat', the terminal of the user can receive 'shared content' input by the user, select a visible friend circle and select the 'location', and when the terminal receives an input request for acquiring the 'location', the terminal of the user can acquire the current location of the user by a positioning module, including GPS positioning, WIFI positioning and the like. After the user clicks the 'release', a sharing request is generated according to 'sharing content' input by the user and the selected 'location', the sharing request is further sent to the server, and the server sends the sharing content and the sharing address to each friend in the visible circle of friends after receiving the sharing request.
However, the above-mentioned method for determining the current geographic location has the following problems that ① is easy to directly tamper with the actual location of the user through software (e.g., modified location software simulate 4.0.2, XCode development tool) or a program, for example, the user can change the currently acquired geographic location by modifying longitude and latitude and address name, so as to acquire false location information, so that a minder can take advantage of the machine to perform cheating action by using a false address, ② a third party service platform manages the acquired address data, belongs to a centralized architecture, has absolute processing rights to the data, and the trust of the third party service platform cannot be guaranteed, which may result in the damage to the benefits of the user, for example, the historical address of the user is tampered, or the historical address of the user information is lost.
In order to solve the above problem, an embodiment of the present invention provides an information sharing scheme based on a block chain. The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like, and is essentially a decentralized database. In the scheme, the terminal uploads the current address of the terminal to the block chain network at regular time, and then the block chain network stores the uploaded address. When a user uses a location-dependent sharing function, such as sharing a current location during chatting, sharing a current location during publication dynamically, and so on. The terminal acquires the historical uploading position of the user from the blockchain network, namely the historical position, and judges whether the current position of the user is credible according to the acquired historical position of the user. Based on the above scheme, an embodiment of the present invention provides an information sharing system, such as the information sharing system shown in fig. 1, where the information sharing system may include a terminal 101, a block chain network 102, and a server 103. Wherein:
the terminal 101 can perform information interaction with the server 103 based on the client. For example, the terminal 101 interacts with the server 101 (in this case, a server for wechat) based on the application program "wechat" to realize various functions in "wechat", such as chatting, sending a circle of friends, and the like. For another example, the terminal 101 interacts with the server 101 (the server of the new wave microblog in this case) based on the application program "new wave microblog" to realize various functions in "new wave microblog", such as dynamic release, news browsing, and the like. When the user shares information through the terminal 101, for example, a friend group is released or a dynamic state is released, the current address can be acquired, and then the current address is shared, so that friends, netizens or other people can know the address of the friend, and the user experience is improved. The terminal 101 may be a plurality of types of devices, such as a mobile phone, a computer, a smart watch, an unmanned aerial vehicle, and the like.
To improve the reliability of the current address issued by the terminal 101, the terminal 101 may join the blockchain network 102 to become a node in the blockchain network 102. The terminal 101 may obtain the current location at regular time and upload the current location to the blockchain network 102, and all nodes in the blockchain network 102 store the current location through consensus computation.
Each node in the blockchain network 102 may receive the current address uploaded by each terminal 101 at regular time, and store the address uploaded by each terminal 101 through a consensus mechanism, P2P transmission, and the like. In the embodiment of the present application, the address stored by the blockchain network 102 is also referred to as a history address.
When the terminal 101 shares information, an address uploaded by the terminal 101, such as an address (i.e., a target history address) uploaded by the terminal 101 last time, may be acquired from the block chain network 102, and then a sharing request carrying the last uploaded address, the shared content, and the current address is sent to the server 103, and after receiving the sharing request, the server 103 may verify whether the current address is trusted based on the last uploaded address and the current address, for example, when the last uploaded address is "shengxian" uploaded when the last uploaded address is 10 month 1 day 8, the current address at current time 10 month 1 day 9 is "beijing train station", and since the current transportation cannot reach the beijing train station from the shengxian building of shengxian in one hour, the current address "beijing train station" is considered to be untrusted. At this time, the server 103 may not respond to the sharing request, or may send information for prompting that the current address is wrong to the terminal 101; otherwise, when the current address is trusted, the server 103 may send the shared content and the current address to the circle of friends of the user corresponding to the sharing request.
In one implementation, the server 103 may also be a node in the blockchain network 102. At this time, the sharing request sent by the user's terminal 101 may not carry the last address uploaded by the terminal 101 from the blockchain network 102, but the server 103 obtains the last address uploaded by the terminal 101 from the blockchain network 102, so as to verify the credibility of the current address.
Therefore, the information sharing scheme provided by the embodiment of the invention has the advantages that ① is added with a verification link for a traditional acquisition positioning mode to check the authenticity of positioning acquired by a user and reduce the possibility of potential deceptive action, ② utilizes the decentralized characteristic and the open transparency of a block chain to ensure that uploaded data is independent of a third-party management platform, so that the safety and reliability of the data are guaranteed, the data are not easy to lose, the manipulation right of the third-party management platform on the data is limited, and the data cannot be modified randomly.
Based on the above description, an embodiment of the present invention provides an information sharing method, which can be executed by the above-mentioned information sharing system. Wherein the terminal of the first user may be terminal 101, the blockchain network may be blockchain network 102, and the server may be server 103. The information sharing method can comprise the following partial or all steps: referring to fig. 2, fig. 2 is a flowchart illustrating a method for storing an address of a user through a blockchain network according to an embodiment of the present disclosure.
S202, the terminal of the first user joins the block chain network.
First, a terminal of a first user creates a first key pair using an asymmetric encryption algorithm. Wherein the first key pair comprises a first public key and a first private key. In the embodiment of the application, a first private key is used for signing a current address when a terminal of a first user uploads the current address to a block chain network at regular time so as to indicate that the current address belongs to the first user; the first public key is used to verify addresses signed by the first private key and uploaded into the blockchain network. After the first secret key pair is created, the terminal of the first user can upload the first public key in the first secret key pair to the block chain network, so that other nodes in the block chain network can receive the public key of the first user, and an address uploaded by the terminal of the first user can be screened out from historical addresses stored in the block chain network according to the public key of the first user; the terminal of the first user also sends the first public key to the server to cause the server to establish an association of the first public key with the account of the first user. And the first private key is kept by the terminal of the first user.
After the terminal of the first user creates the first secret key pair and uploads the first public key to the blockchain network, it indicates that the terminal of the first user has joined the blockchain network and has completed identity registration in the blockchain network, and becomes a node in the blockchain network.
And S204, the terminal of the first user acquires the current address of the first user at regular time.
The terminal of the first user signs an intelligent contract using the position information, and the intelligent contract comprises that the terminal of the first user uploads the current address of the first user to the block chain network at regular time so that the block chain network stores the current address. When the first user completes the signing of the intelligent contract, the terminal of the first user is qualified to upload the address and view the historical address in the blockchain network.
First, the terminal of the first user may periodically obtain the current address of the first user through a positioning module, such as a GPS module, a WiFi positioning module, and the like. The timing may be a frequency preset in the smart contract, and for example, the address of the user may be acquired every 30 minutes, or the address of the user may be acquired at the same time every day. The current address can be in the form of latitude and longitude coordinates, can also be in the form of a specific location name, and can also be in other forms capable of representing the location. For example, the terminal of the first user acquires the current address of the first user through the GPS positioning module at frequency a.
S206, the terminal of the first user uploads the current address acquired at fixed time to the block chain network.
The terminal of the first user regularly uses the private key of the first user to sign the current address of the first user to generate first data, and the first data is uploaded to the block chain network, so that the current address of the first user is stored in the block chain network.
After the terminal of the first user acquires the current address, the terminal of the first user signs the current address by using the first private key to generate first data. The terminal of the first user then broadcasts the first data to other nodes in the blockchain network so that the blockchain network stores the first data via P2P communication, consensus algorithm. In one implementation, other nodes in the blockchain network receive the first data, wherein the node with the highest computation speed preferentially packs the first data into the latest block, and then broadcasts the latest block, so that other nodes in the blockchain network synchronize the block into the blockchain stored by the node after receiving the latest block.
When the user uses the function related to the position sharing in the information sharing process, the terminal of the user can acquire the historical uploading position of the user from the blockchain network, and therefore whether the sharing position of the user is credible or not is verified according to the historical uploading position of the user.
Referring to fig. 3, fig. 3 is a flowchart illustrating information sharing according to an embodiment of the present disclosure. At this time, the terminal of the first user is a node in the blockchain network, and the server may be a node in the blockchain network, and the method may include the following steps:
s302, a terminal of a first user receives a sharing instruction for information to be shared, wherein the sharing instruction is used for indicating that the information to be analyzed is sent to each contact in a contact set, and the information to be shared comprises shared content and a shared address.
Referring to fig. 4, fig. 4 is a schematic view of a user interface for sharing information according to an embodiment of the present disclosure. The information sharing user interface includes: publishing control 401, content input control 402, address selection control 403, prompt contact selection control 404, and sharing scope selection control 405. After detecting the shared content input for the content input control 402, the terminal displays the shared content, where the shared content may include characters, pictures, short videos, and the like; after detecting user operation for the address selection control 403, the terminal acquires a current address through the positioning module, recommends a plurality of candidate addresses under the current address to a user based on the current address, and after receiving selection operation for one address in the candidate addresses, takes the selected address as a sharing address and displays the sharing address; after detecting user operation input by the prompt contact selection control 404, the terminal selects a contact needing to be reminded from a contact set (such as a contact list) of the user; after detecting the user operation input by the sharing range selection control 405, the terminal may select a contact, which may view information to be shared, from the contact set of the user. Wherein the contact set or list is a contact of the first user, such as a friend in the "WeChat" of the first user. The terminal triggers the terminal to execute S304 and S306 when detecting the user operation input for the publication control 401.
S304, the terminal of the first user obtains the target historical address of the first user from the block chain network. And the target historical address of the first user is uploaded by the terminal of the first user and is stored in the block chain network.
In a first implementation of S304, the target historical address may be the last address uploaded by the terminal of the first user. At this time, the acquiring, by the terminal of the first user, the target history address may include steps S3041 to S3042:
s3041, the terminal of the first user obtains the historical address of the first user from the blockchain network according to the public key of the first user.
Because the historical address in the block chain network is uploaded by the terminal of the user through the private key signature, the public key corresponds to the private key one by one, and only the public key corresponding to the private key can be verified through the address uploaded through the private key signature. Therefore, the historical address uploaded by the private key signature of the first user can be acquired in the blockchain network through the public key of the first user.
S3042, the terminal of the first user determines that the target historical address is a historical address closest to the current time in the historical addresses of the first user, where each historical address in the historical addresses of the first user corresponds to a time.
The blockchain network may record the time of receiving the address, also referred to as a timestamp, while storing the address of each first user. At this time, the terminal of the first user may acquire the last recorded history address from the blockchain network and use it as the target history address.
In a second implementation of S304, the target historical address may include a plurality of addresses from the historical addresses of the first user. At this time, the acquiring of the target history address by the terminal of the first user may include the steps of:
s3043, the terminal of the first user obtains the historical address of the first user from the blockchain network.
For specific implementation of step S3043, reference may be made to the related description in step S3041, which is not described herein again.
S3044 the terminal of the first user determines a history address with a frequency greater than a first threshold in the history addresses of the first user as a target history address.
And the terminal of the first user counts the occurrence frequency of each historical address in all the historical addresses of the first user, and takes the historical address with the occurrence frequency greater than a first threshold value as a target historical address. Generally, addresses that are frequently present by the first user may be considered authentic addresses, e.g., the first user's home address, corporate address, school address, etc., may be addresses that are frequently present by the first user, and therefore appear more frequently in the blockchain network than other addresses. At this time, the target history address may include a plurality of addresses. The first threshold value may be set differently according to different requirements in practical applications. For example, the first threshold value is set to 1 time. The terminal of the first user counts the frequency of each historical address in all the historical addresses of the first user: the address a is 3 times; address b: 1 time; address c: 6 times. At this time, the target history address may include address a, address b, and address c. It should be understood that when the server determines whether the shared address is trusted, when the shared address of the first user is the address c, the address c may be considered trusted; when the sharing address of the first user is the address b, the address b can be considered as credible; when the shared address of the first user is the address d, the address d does not appear in the historical address, and the address d can be considered to be not trusted.
In the third implementation of S304, the target historical address may include a plurality of addresses corresponding to respective times, where each address corresponding to a time may be an address with the highest frequency in the historical addresses uploaded by the terminal of the first user at the time. Therefore, the method counts the life rules of the user and can know the places where the user is most likely to be at the time.
It should be noted that, the implementation is not limited to the two implementations, and step S304 may also include other implementations, which are not described herein again.
S306, the terminal of the first user generates a sharing request according to the sharing instruction and the target historical address, and sends the sharing request to the server.
The sharing request carries a target historical address, sharing content, a sharing address and a contact set, and is used for requesting the server to send the sharing content and the sharing address to each contact in the contact set.
S308, the server receives the sharing request.
Specifically, the server may parse the target history address, the shared content, the shared address, and the like from the sharing request.
S310, the server identifies whether the sharing address is credible according to the sharing address and the target historical address.
Before responding to the sharing request, the server first determines whether the sharing address is trusted. Since the sharing request carries the target history address carried by the tag from the blockchain network, the server can identify whether the sharing address is trusted based on the relationship between the target history address and the sharing address.
For example, for the first implementation of S302, the target historical address is an address uploaded last time from among historical addresses uploaded by a terminal of a first user in the blockchain network. At this time, the server may identify a distance between the target history address and the shared address, a time difference between times corresponding to the target history address and the shared address, and the like, and when the time difference is smaller than a time threshold, for example, 5min, 10min, 30min, or other time lengths, if the distance is greater than a distance threshold, for example, 10km, 20km, 50km, and the like, the shared address is considered to be not trusted, and otherwise, the shared address is considered to be within a reasonable range and is considered to be trusted. In another implementation, if the frequency of uploading the current address to the block chain network by the terminal of the user may be once every 10 or 20 minutes, the server may also determine whether the shared address is trusted only by the distance, and if the distance is greater than a distance threshold, such as 10km, 20km, 50km, and the like, the shared address is considered to be not trusted, otherwise, the shared address is considered to be within a reasonable range and is considered to be trusted.
In another implementation, the server identifies whether the shared address is trusted based on the distance and the time difference, and the specific implementation may include the following steps:
s3101, the server may determine the speed of reaching the shared address from the target historical address according to the target historical address, the shared address, the timestamp of the target historical address, and the current time.
Firstly, the server calculates the distance between a target address and a shared address according to the target historical address and the geographic position of the shared address; further, calculating the time difference between the time stamp of the target historical address and the current time according to the time stamp of the target historical address and the current time; then, an average speed between the arrival at the shared address from the target history address is calculated based on the distance and the time difference.
S3102, when the speed of the target historical address reaching the sharing address is not greater than the speed threshold value, the server determines that the sharing address is credible. If the shared address is trusted, S312 is executed, otherwise S314 is executed.
In one embodiment, the speed threshold used to identify whether the shared address is authentic may be a fixed value.
In one embodiment, the speed threshold for identifying whether the shared address is trusted may be a variable value, the server may store a correspondence between the speed threshold and the address type, the server may determine the address type of the target historical address before performing S3102, determine the speed threshold corresponding to the address type of the target historical address according to the correspondence between the address type and the speed threshold, and further determine that the shared address is trusted when the speed at which the target historical address reaches the shared address is not greater than the speed threshold corresponding to the address type of the target historical address. The address types may include, among others, airports, train stations, subway stations, bus stations, and the like. The speed threshold corresponding to an address type represents the maximum speed that can be achieved by a vehicle moving at that address type. For example, the speed threshold value for an airport may be determined based on the maximum speed at which the aircraft is flying, and 1000km/h may be taken as the maximum speed at which the aircraft is flying, and then the corresponding speed threshold value for the airport is 1000 km/h. And finally, comparing the average speed between the target historical address and the current address with the speed threshold corresponding to the target historical address, if the average speed is not greater than the speed threshold, the shared address is credible, and if the average speed is greater than the speed threshold, the shared address is not credible. For example, the target history address is "Shenzhen Jeans airport", the sharing address is "Chongqing", the time difference is "30 minutes", the average speed can be calculated to be greater than the speed threshold value 1000km/h, and the sharing address "Chongqing" can be judged to be untrustworthy.
For another example, for the second implementation of S302, the target historical address may include a plurality of addresses. At this time, the server may determine whether the shared address is an address among the plurality of addresses included in the target historical address, and if so, the shared address is considered to be trusted, otherwise, the shared address is considered to be untrusted. In another implementation, each of the target historical addresses may include one or more times, respectively, to indicate that each address is often uploaded to the blockchain network at those times.
For another example, for the third implementation of S302, the target historical address may include a plurality of addresses corresponding to respective times, where the address corresponding to each time may be the next highest address in the historical addresses uploaded by the terminal of the first user at the time. The server can determine an address corresponding to the current time from the target historical address, and further determine whether the shared address is the address corresponding to the current time, or determine whether the shared address is in an address range determined by the address corresponding to the current time, if so, the shared address is considered to be trusted, otherwise, the shared address is considered to be not trusted.
S312, the server sends the sharing information to each contact in the contact set.
And when the server judges that the sharing address of the first user is credible, the sharing information is sent to each contact in the contact set. Referring to fig. 5, fig. 5 is a schematic view of a user interface for displaying sharing information according to an embodiment of the present disclosure. After a first contact in the contact set receives the sharing information of the first user, the sharing information of the first user can be displayed at a terminal of the first contact. As shown in fig. 5, the user interface diagram may show: the username and avatar of the first contact, at least one dynamic display area 501. The dynamic display area 501 may display: the system comprises a head portrait of a first user, a user name of the first user, shared content shared by the first user, a shared address of the first user, a block chain verification mark and the like. The block chain verification mark is used for identifying that the address shared by the first user is verified according to the historical address of the first user in the block chain, and the shared address is indicated to be credible; when the block chain verification is not passed, the block chain verification flag will not be displayed here, or an identifier that the block chain authentication is not passed will be displayed.
It should be noted that, the user interface diagrams shown in fig. 4 and fig. 5 are not limited, and other user interfaces may be designed according to the functional requirements, the user experience, and the like.
And S314, the server sends prompt information for indicating the current address error to the terminal.
And when the server judges that the sharing address is not credible, generating prompt information, wherein the prompt information is used for prompting that the sharing address of the first user is wrong or not credible, and sending the prompt information to the terminal of the first user.
When the server determines that the sharing address of the first user is not trusted, the server may also perform other operations, for example, the server may also perform S602, and send the to-be-analyzed information to the terminal of each contact in the contact set, and at the same time, send the indication information indicating that the sharing address is not trusted, so that the terminal of each contact in the contact set may display that the sharing address is not trusted after receiving the indication information. As shown in fig. 5, in the user interface, which is a display interface that a terminal of a contact in a contact set outputs after receiving shared information and indication information, the display interface may display the received shared information of the contact (including a first user), at this time, the display area 5015 displays the received shared information from the first user, and it is untrusted that a shared address of the first user does not pass authentication of a blockchain network by an identifier.
In another embodiment of the present application, the server may join the blockchain network, and the step S304 described above, that is, the target history address of the first user is obtained from the blockchain network, may also be executed by the server, where the analysis request may not carry the target history address, and the server obtains the target history address from the blockchain network. For a specific implementation that the server can join the blockchain network, reference may be made to the specific implementation that the terminal of the first user joins the blockchain network, which is not described herein again. As shown in fig. 6, which is a flowchart of information sharing provided in the embodiment of the present application, the method may include the following steps:
s602, a terminal of a first user receives a sharing instruction for information to be shared, wherein the sharing instruction is used for indicating that the information to be analyzed is sent to each contact in a contact set, and the information to be shared comprises shared content and a shared address.
Step S602 and step S302 are synchronized, and specific implementation may refer to relevant description in step S302, which is not described herein again.
And S604, the terminal of the first user generates a sharing request according to the sharing instruction, and sends the sharing request to the server.
Unlike in FIG. 3 described above, the share request does not carry the destination history address. At this time, the sharing request carries the sharing content, the sharing address, the contact set and the like.
S608, the server receives the sharing request.
And the server analyzes the shared content, the shared address, the contact set and the like from the sharing request.
S610, the server acquires the target historical address of the first user from the block chain network.
In this embodiment, the server is a node in the blockchain network, and the server may obtain the historical address of the first user from the blockchain network, where the specific implementation of the server may include steps S6101 and S6102.
S6101, the server determines the public key of the first user according to the corresponding relationship between the user and the public key.
The server may obtain the first public key according to the correspondence between the account of the first user and the first public key.
S6102, the server obtains the history address of the first user from the block chain network according to the public key of the first user.
The target historical address of the first user may be one or more addresses, and specific implementation may refer to relevant descriptions in the three implementation manners of step S304, which are not described herein again.
And S612, the server identifies whether the sharing address is credible according to the sharing address and the target historical address.
The detailed implementation of the step of executing step S310 is not described herein again. And executing S614 when the sharing address is judged to be credible, otherwise, executing S616.
And S614, the server sends the sharing information to each contact in the contact set.
And S616, the server sends prompt information for indicating the current address error to the terminal.
The specific implementation of step S614 and step S312, and step S616 and step S314 may refer to the related description in step S312 and step S314, respectively, which is not described herein again.
In the embodiment of the invention, a first user receives a sharing instruction aiming at information to be shared, wherein the sharing instruction is used for sharing the information to be shared of the first user to each contact in a contact set; the terminal of the first user can acquire the target historical address of the first user from the blockchain network, or the server acquires the target historical address of the first user from the blockchain network; the server judges whether the sharing address of the first user is credible or not according to the target historical address of the first user, and if the sharing address is credible, the server sends the sharing address to each contact in the contact set. Therefore, before the shared address of the first user is sent to each user in the contact set, whether the shared address is credible or not needs to be verified according to the target historical address, and therefore the credibility of the shared address is improved; and the historical address of the user is stored in the blockchain network, the target historical address is acquired from the blockchain network, and the target historical address does not depend on a third-party service platform, so that the safety and reliability of the data can be improved.
Based on the description of the above method embodiment, an embodiment of the present invention further provides an information sharing apparatus 700, where the information sharing apparatus 700 is operable in the terminal 101 of the first user, and the information sharing apparatus 700 may be a computer program (including a program code) that is operable in the terminal 101 of the first user. Referring to fig. 7, the information sharing apparatus may operate as follows:
the first receiving unit 701 is configured to receive a sharing instruction for information to be shared, where the sharing instruction is used to instruct to send the information to be analyzed to each contact in a contact set, and the information to be shared includes shared content and a shared address;
a first obtaining unit 702, configured to obtain a target historical address of the first user from a blockchain network, where the target historical address of the first user is uploaded by a terminal of the first user and is stored in the blockchain network;
the generating unit 703 is configured to generate a sharing request according to the sharing instruction and the target historical address, and send the sharing request to a server, so that the server sends the information to be shared to each contact in the contact set when the server identifies that the sharing address is trusted according to the sharing address and the target historical address.
In one embodiment, the information sharing apparatus 700 further includes:
an uploading unit 704, configured to regularly use the private key of the first user to sign the current address of the first user, generate first data, and upload the first data to the blockchain network, so that the blockchain network stores the current address of the first user.
In an embodiment, the first obtaining unit 702 is specifically configured to:
acquiring a historical address of the first user from the block chain network according to the public key of the first user;
and determining the target historical address as the historical address closest to the current time in the historical addresses of the first user, wherein each historical address in the historical addresses of the first user corresponds to a time.
According to an embodiment of the present invention, some steps involved in the information sharing method shown in fig. 3 or fig. 6 may be performed by each unit in the information sharing apparatus shown in fig. 7. For example, step S301 shown in fig. 3 or fig. 6 may be performed by the first receiving unit 701; as another example, step S602 may be performed by the generation unit 703. According to another embodiment of the present invention, the units in the information sharing apparatus shown in fig. 7 may be respectively or entirely combined into one or several other units to form the same operation, which does not affect the achievement of the technical effect of the embodiment of the present invention. The units are divided based on logic functions, and in practical application, the functions of one unit can be realized by a plurality of units, or the functions of a plurality of units can be realized by one unit. In other embodiments of the present invention, the device based on information sharing may also include other units, and in practical applications, these functions may also be implemented by being assisted by other units, and may be implemented by cooperation of multiple units.
According to another embodiment of the present invention, the information sharing apparatus device shown in fig. 7 may be constructed by running a computer program (including program codes) capable of executing the steps involved in the corresponding method shown in fig. 3 or fig. 6 on a general-purpose computing device such as a computer including a processing element and a storage element such as a Central Processing Unit (CPU), a random access storage medium (RAM), a read only storage medium (ROM), and the like, and the information sharing method of the embodiment of the present invention may be implemented. The computer program may be recorded on, for example, a computer-readable recording medium, and loaded and executed in the above-described computing apparatus via the computer recording medium.
In the embodiment of the invention, a terminal of a first user receives a sharing instruction for information to be shared, the sharing instruction is used for indicating that the information to be analyzed is sent to each contact in a contact set, and the information to be shared comprises shared content and a shared address. The terminal of the first user acquires a target historical address of the first user from the block chain network, and the target historical address of the first user is uploaded by the terminal of the first user and stored in the block chain network. The terminal of the first user generates a sharing request according to the sharing instruction and the target historical address, and sends the sharing request to the server, so that the server sends sharing information to each contact in the contact set when recognizing that the sharing address is credible according to the sharing address and the target historical address. Therefore, judgment conditions are added when the address is shared, whether the shared address is credible or not needs to be judged, and the shared address can be shared only under the condition that the shared address is credible; otherwise, the shared address cannot be shared by the first user, and potential fraud can be caused. Moreover, as the historical address of the first user is uploaded to the blockchain network and stored in the shared address book, any node in the blockchain network can look up the historical address in the shared address book, so that transparent disclosure of data is ensured, and the third-party server platform is not relied on, thereby reducing the data control right of the third-party platform.
Based on the description of the above method embodiment, an embodiment of the present invention further provides an information sharing apparatus 800, where the information sharing apparatus may be run in a server, and the information sharing apparatus may be a computer program (including a program code) running in the server; referring to fig. 8, the information sharing method may operate as follows:
a second receiving unit 801, configured to receive a sharing request sent by a terminal of a first user, where the sharing request is used to request the server to send sharing information to each contact in a contact set, the sharing request includes the information to be shared, and the information to be shared includes shared content and a shared address;
a second obtaining unit 802, configured to obtain a target historical address of the first user, where the target historical address of the first user is uploaded by a terminal of the first user and is stored in the blockchain network;
a sending unit 803, configured to send the sharing information to each contact in the contact set when the sharing address is identified to be trusted according to the sharing address and the target historical address.
In an implementation manner, the sharing request further includes a target history address of the first user, and the second obtaining unit 802 further includes:
the parsing unit 804 is configured to parse the target history address from the sharing request.
In one implementation manner, the second obtaining unit 802 is configured to:
and acquiring the target historical address of the first user from the block chain network.
In an implementation manner, the second obtaining unit 802 is specifically configured to:
determining the public key of the first user according to the corresponding relation between the users and the public key;
acquiring a historical address of the first user from the block chain network according to the public key of the first user;
and determining the target historical address of the first user as the historical address closest to the current time in the historical addresses of the first user, wherein each historical address in the historical addresses of the first user corresponds to a time.
In one implementation manner, the information sharing apparatus 800 further includes:
a first determining unit 805, configured to determine, according to the target historical address, the shared address, a timestamp of the target historical address, and a current time, a speed of reaching the shared address from the target historical address;
a second determining unit 806, configured to determine that the shared address is trusted when a speed at which the target historical address reaches the shared address is not greater than a speed threshold.
In one implementation manner, the information sharing apparatus 800 further includes:
a third determining unit 807, configured to determine a target speed threshold corresponding to the address type of the target history address according to the correspondence between the address type and the speed threshold.
According to an embodiment of the present invention, some steps involved in the information sharing method shown in fig. 3 or fig. 6 may be performed by each unit in the information sharing apparatus shown in fig. 7. For example, step S306 shown in fig. 3 or fig. 6 may be performed by the second receiving unit 801; as another example, step S608 may be performed by the second obtaining unit 802. According to another embodiment of the present invention, the units in the information sharing apparatus shown in fig. 8 may be combined into one or several other units respectively or all together, which may achieve the same operation without affecting the achievement of the technical effect of the embodiment of the present invention. The units are divided based on logic functions, and in practical application, the functions of one unit can be realized by a plurality of units, or the functions of a plurality of units can be realized by one unit. In other embodiments of the present invention, the device based on information sharing may also include other units, and in practical applications, these functions may also be implemented by being assisted by other units, and may be implemented by cooperation of multiple units.
Fig. 9 is a schematic structural diagram of another information sharing apparatus 900 according to an embodiment of the present invention. The information sharing apparatus 900 may specifically be the terminal 101 of the first user in fig. 1, and may include: a processor 901, a bus 902, a user interface 903, a network interface 904, and memory 905. Wherein a communication bus 902 is used to enable connective communication between these components. The user interface 903 may optionally include a display screen, a keypad. The network interface 904 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). As shown in fig. 9, the memory 905, which is a computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application, which may be operated when the apparatus 900 is operated.
In the information sharing apparatus 900 shown in fig. 9, the network interface 904 may provide a network communication function; and the processor 901 may be configured to invoke a device control application stored in the memory 905 to implement:
receiving a sharing instruction aiming at information to be shared through a network interface 904, wherein the sharing instruction is used for instructing to send the information to be analyzed to each contact in a contact set, and the information to be shared comprises shared content and a shared address;
acquiring a target historical address of the first user from a block chain network, wherein the target historical address of the first user is uploaded by a terminal of the first user and is stored in the block chain network;
a sharing request is generated by the processing unit 901 according to the sharing instruction and the target historical address, and the sharing request is sent to a server through the network interface 904, so that the server sends the information to be shared to each contact in the contact set when the sharing address is identified to be credible according to the sharing address and the target historical address.
In one implementation of an embodiment of the present application, through the network interface 904:
and regularly signing the current address of the first user by using the private key of the first user to generate first data, and uploading the first data to the block chain network so as to enable the block chain network to store the current address of the first user.
In one implementation of an embodiment of the present application, the processor 901:
acquiring a historical address of the first user from the block chain network according to the public key of the first user;
and determining the target historical address as the historical address closest to the current time in the historical addresses of the first user, wherein each historical address in the historical addresses of the first user corresponds to a time.
It should be noted that the first receiving unit 701, the first obtaining unit 702, and the uploading unit 704 in fig. 7 may be implemented by a network interface 904 in fig. 9, and the generating unit 703 in fig. 7 may be implemented by a processor in fig. 9.
It should be understood that the information sharing apparatus 900 described in the embodiment of the present invention may perform the description of the information sharing method in the embodiment corresponding to fig. 3 or fig. 8, and the description thereof is not repeated herein. In addition, the beneficial effects of the same method are not described in detail.
Fig. 10 is a schematic structural diagram of another information sharing apparatus 1000 according to an embodiment of the present invention. The information sharing apparatus 1000 may specifically be the server 103 in fig. 1, and may include: a processor 1001, a bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may optionally include a display screen, a keypad. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). As shown in fig. 10, the memory 1005, which is a computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application, which may be executed when the apparatus 1000 is operated.
In the information sharing apparatus 1000 shown in fig. 10, the network interface 1004 may provide a network communication function; and the processor 1001 may be used to invoke a device control application stored in the memory 1005 to implement:
receiving a sharing request sent by a terminal of a first user through a network interface 1004, wherein the sharing request is used for requesting the server to send information to be shared to each contact in a contact set, the sharing request comprises the information to be shared, and the information to be shared comprises shared content and a shared address;
acquiring a target historical address of the first user, wherein the target historical address of the first user is uploaded by a terminal of the first user and is stored in the block chain network;
and when the sharing address is identified to be credible according to the sharing address and the target historical address, sending the information to be shared to each contact in the contact set.
In one implementation of an embodiment of the application, the processor 1001:
and analyzing the target historical address from the sharing request.
In one implementation of an embodiment of the present application, the communication protocol is executed by the network interface 1004:
and acquiring the target historical address of the first user from the block chain network.
In one implementation of an embodiment of the application, the processor 1001:
determining the public key of the first user according to the corresponding relation between the users and the public key;
acquiring a historical address of the first user from the block chain network according to the public key of the first user;
and determining the target historical address of the first user as the historical address closest to the current time in the historical addresses of the first user, wherein each historical address in the historical addresses of the first user corresponds to a time.
In one implementation of an embodiment of the application, the processor 1001:
determining the speed of reaching the shared address from the target historical address according to the target historical address, the shared address, the timestamp of the target historical address and the current time;
and when the speed of the target historical address reaching the shared address is not greater than a speed threshold value, determining that the shared address is credible.
In one implementation of an embodiment of the application, the processor 1001:
and determining a speed threshold corresponding to the address type of the target historical address according to the corresponding relation between the address type and the speed threshold.
It should be noted that the second receiving unit 801, the second obtaining unit 802, and the sending unit 803 in fig. 8 may be implemented by the network interface 1004 in fig. 10, and the parsing unit 804, the first determining unit 805, the second determining unit 806, and the third determining unit 807 in fig. 8 may be implemented by the processor 1001 in fig. 10.
Further, here, it is to be noted that: an embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores the aforementioned computer programs executed by the information sharing apparatus 700 and the information sharing apparatus 900, and the computer programs include program instructions, and when the processor executes the program instructions, the method executed by the terminal of the first user in the embodiment corresponding to fig. 3 or fig. 6 can be executed, which will not be described herein again.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores the aforementioned computer programs executed by the information sharing apparatus 800 and the information sharing apparatus 1000, and the computer programs include program instructions, and when the processor executes the program instructions, the method executed by the server in the embodiment corresponding to fig. 3 or fig. 6 can be executed, which will not be described herein again.
In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in the embodiments of the computer storage medium to which the present invention relates, reference is made to the description of the method embodiments of the present invention.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (15)

1. A method for sharing information is applied to a terminal of a first user, and the method comprises the following steps:
receiving a sharing instruction aiming at information to be shared, wherein the sharing instruction is used for indicating that the information to be analyzed is sent to each contact in a contact set, and the information to be shared comprises shared content and a shared address;
acquiring a target historical address of the first user from a block chain network, wherein the target historical address of the first user is uploaded by a terminal of the first user and is stored in the block chain network;
and generating a sharing request according to the sharing instruction and the target historical address, and sending the sharing request to a server, so that the server sends the information to be shared to each contact in the contact set when identifying that the sharing address is credible according to the sharing address and the target historical address.
2. The method according to claim 1, wherein before receiving the sharing instruction for the information to be shared, the method further comprises:
and regularly signing the current address of the first user by using the private key of the first user to generate first data, and uploading the first data to the block chain network so as to enable the block chain network to store the current address of the first user.
3. The method according to claims 1-2, wherein the obtaining the target historical address of the first user from the blockchain network specifically comprises:
acquiring a historical address of the first user from the block chain network according to the public key of the first user;
and determining the target historical address as the historical address closest to the current time in the historical addresses of the first user, wherein each historical address in the historical addresses of the first user corresponds to a time.
4. A method for information sharing is applied to a server, and the method comprises the following steps:
receiving a sharing request sent by a terminal of a first user, wherein the sharing request is used for requesting the server to send information to be shared to each contact in a contact set, the sharing request comprises the information to be shared, and the information to be shared comprises shared content and a shared address;
acquiring a target historical address of the first user, wherein the target historical address of the first user is uploaded by a terminal of the first user and is stored in the block chain network;
and when the sharing address is identified to be credible according to the sharing address and the target historical address, sending the information to be shared to each contact in the contact set.
5. The method of claim 4, wherein the sharing request further includes a target history address of the first user, and wherein the obtaining the target history address of the first user comprises:
and analyzing the target historical address from the sharing request.
6. The method of claim 4, wherein obtaining the target historical address of the first user comprises:
and acquiring the target historical address of the first user from the block chain network.
7. The method of claim 6, wherein the obtaining the target historical address of the first user from the blockchain network comprises:
determining the public key of the first user according to the corresponding relation between the users and the public key;
acquiring a historical address of the first user from the block chain network according to the public key of the first user;
and determining the target historical address of the first user as the historical address closest to the current time in the historical addresses of the first user, wherein each historical address in the historical addresses of the first user corresponds to a time.
8. The method of any of claims 4-7, wherein before sending the information to be shared to each contact in the set of contacts, the method further comprises:
determining the speed of reaching the shared address from the target historical address according to the target historical address, the shared address, the timestamp of the target historical address and the current time;
and when the speed of the target historical address reaching the shared address is not greater than a speed threshold value, determining that the shared address is credible.
9. The method of claim 7, before determining that the shared address is trustworthy when the speed of the target historical address reaching the shared address is not greater than a speed threshold, the method comprising:
and determining a speed threshold corresponding to the address type of the target historical address according to the corresponding relation between the address type and the speed threshold.
10. An information sharing apparatus, comprising:
the device comprises a first receiving unit, a second receiving unit and a third receiving unit, wherein the first receiving unit is used for receiving a sharing instruction aiming at information to be shared, the sharing instruction is used for indicating that the information to be analyzed is sent to each contact in a contact set, and the information to be shared comprises shared content and a shared address;
a first obtaining unit, configured to obtain a target historical address of the first user from a blockchain network, where the target historical address of the first user is uploaded by a terminal of the first user and is stored in the blockchain network;
the generating unit is used for generating a sharing request according to the sharing instruction and the target historical address and sending the sharing request to a server, so that the server sends the information to be shared to each contact in the contact set when the sharing address is identified to be credible according to the sharing address and the target historical address.
11. An information sharing apparatus, comprising:
the second receiving unit is used for receiving a sharing request sent by a terminal of a first user, the sharing request is used for requesting the server to send information to be shared to each contact in a contact set, the sharing request comprises the information to be shared, and the information to be shared comprises shared content and a shared address;
a second obtaining unit, configured to obtain a target historical address of the first user, where the target historical address of the first user is uploaded by a terminal of the first user and is stored in the blockchain network;
and the sending unit is used for sending the information to be shared to each contact in the contact set when the sharing address is identified to be credible according to the sharing address and the target historical address.
12. An information sharing device comprising a processor and a memory, the processor and the memory coupled, wherein the memory is configured to store computer instructions, and the processor is configured to execute the computer instructions to cause the information sharing device to implement the method of any one of claims 1-3.
13. An information sharing device comprising a processor and a memory, the processor and the memory coupled, wherein the memory is configured to store computer instructions, and the processor is configured to execute the computer instructions to cause the information sharing device to implement the method according to any one of claims 4-9.
14. A computer-readable storage medium, in which a computer program is stored which, when executed by a computer device, causes the computer device to carry out the method according to any one of claims 1 to 3.
15. A computer-readable storage medium, in which a computer program is stored which, when executed by a computer device, causes the computer device to carry out the method according to any one of claims 4 to 9.
CN201911138146.1A 2019-11-19 2019-11-19 Information sharing method and device and storage medium Active CN110839211B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911138146.1A CN110839211B (en) 2019-11-19 2019-11-19 Information sharing method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911138146.1A CN110839211B (en) 2019-11-19 2019-11-19 Information sharing method and device and storage medium

Publications (2)

Publication Number Publication Date
CN110839211A true CN110839211A (en) 2020-02-25
CN110839211B CN110839211B (en) 2022-05-31

Family

ID=69576880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911138146.1A Active CN110839211B (en) 2019-11-19 2019-11-19 Information sharing method and device and storage medium

Country Status (1)

Country Link
CN (1) CN110839211B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107146448A (en) * 2017-05-08 2017-09-08 武汉依迅北斗空间技术有限公司 A kind of vehicle location information modification method and system
CN107360156A (en) * 2017-07-10 2017-11-17 广东工业大学 P2P network method for cloud storage based on block chain under a kind of big data environment
US20180025534A1 (en) * 2016-07-20 2018-01-25 Google Inc. Displaying and interacting with scanned environment geometry in virtual reality
CN108235228A (en) * 2016-12-13 2018-06-29 阿里巴巴集团控股有限公司 A kind of safe checking method and device
CN108668216A (en) * 2017-03-27 2018-10-16 中国移动通信有限公司研究院 A kind of method for anti-counterfeit, anti-pseudo-terminal and the system of terminal location positioning
CN108985704A (en) * 2018-05-31 2018-12-11 北京五八信息技术有限公司 Information truth degree identifies processing method, device and electronic equipment
CN109600303A (en) * 2018-12-04 2019-04-09 北京小米移动软件有限公司 Content share method, device and storage medium
CN109905464A (en) * 2019-01-29 2019-06-18 华东师范大学 A kind of distributed Sharing of remote sensing data system based on block chain
CN109978075A (en) * 2019-04-04 2019-07-05 江苏满运软件科技有限公司 Vehicle dummy location information identifying method, device, electronic equipment, storage medium
CN110166943A (en) * 2018-02-02 2019-08-23 腾讯科技(深圳)有限公司 The processing method of terminal positional information
USRE47674E1 (en) * 2012-06-29 2019-10-29 Symbol Technologies, Llc Methods and apparatus for adjusting heading direction in a navigation system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
USRE47674E1 (en) * 2012-06-29 2019-10-29 Symbol Technologies, Llc Methods and apparatus for adjusting heading direction in a navigation system
US20180025534A1 (en) * 2016-07-20 2018-01-25 Google Inc. Displaying and interacting with scanned environment geometry in virtual reality
CN108235228A (en) * 2016-12-13 2018-06-29 阿里巴巴集团控股有限公司 A kind of safe checking method and device
CN108668216A (en) * 2017-03-27 2018-10-16 中国移动通信有限公司研究院 A kind of method for anti-counterfeit, anti-pseudo-terminal and the system of terminal location positioning
CN107146448A (en) * 2017-05-08 2017-09-08 武汉依迅北斗空间技术有限公司 A kind of vehicle location information modification method and system
CN107360156A (en) * 2017-07-10 2017-11-17 广东工业大学 P2P network method for cloud storage based on block chain under a kind of big data environment
CN110166943A (en) * 2018-02-02 2019-08-23 腾讯科技(深圳)有限公司 The processing method of terminal positional information
CN108985704A (en) * 2018-05-31 2018-12-11 北京五八信息技术有限公司 Information truth degree identifies processing method, device and electronic equipment
CN109600303A (en) * 2018-12-04 2019-04-09 北京小米移动软件有限公司 Content share method, device and storage medium
CN109905464A (en) * 2019-01-29 2019-06-18 华东师范大学 A kind of distributed Sharing of remote sensing data system based on block chain
CN109978075A (en) * 2019-04-04 2019-07-05 江苏满运软件科技有限公司 Vehicle dummy location information identifying method, device, electronic equipment, storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
曹洋等: "基于区块链的建筑供应链信息共享管理系统架构研究", 《建筑经济》 *
李大伟等: "基于区块链的密钥更新和可信定位系统", 《密码学报》 *

Also Published As

Publication number Publication date
CN110839211B (en) 2022-05-31

Similar Documents

Publication Publication Date Title
CN110300175B (en) Message pushing method and device, storage medium and server
CN110597943B (en) Interest point processing method and device based on artificial intelligence and electronic equipment
US10326725B2 (en) Systems and methods for mobile communication integration
CN108197891A (en) A kind of electronic signature device and method based on block chain
CN111368221A (en) Information providing method, information acquiring method, device, server and storage medium
CN108933656A (en) Online works voting method and device, computer equipment, readable storage medium storing program for executing
US9794746B2 (en) Dynamic content presentation based on proximity and user data
CN113132183B (en) Data transmission test method, device, electronic equipment and medium
CN109634615A (en) Dissemination method, verification method and the device of application installation package
CN111125729A (en) Block chain-based vehicle driving information processing method and device and storage medium
CN113204599A (en) Equipment monitoring method and device based on Internet of things, monitoring equipment and storage medium
CN114024723B (en) Online signing method and device based on ESOP system, equipment and medium
Maia et al. Cross city: Wi-fi location proofs for smart tourism
CN110839211B (en) Information sharing method and device and storage medium
CN113067802A (en) User identification method, device, equipment and computer readable storage medium
Stach et al. vHike-a dynamic ride-sharing service for smartphones
Shrestha et al. Design of secure location and message sharing system for android platform
CN108924365B (en) Travel reminding method, device, equipment and computer readable storage medium
Mrazovic et al. Mobics: Mobile platform for combining crowdsourcing and participatory sensing
KR102303761B1 (en) Method for providing augmented reality-based photo album
CN115379005A (en) Message processing method and device, storage medium and electronic equipment
Zhao et al. Exploiting Proximity‐Based Mobile Apps for Large‐Scale Location Privacy Probing
US20160156726A1 (en) Method, server, terminal, system, and storage medium for displaying multiuser map
Severino et al. Urbtrans: a system for mobility management of school vans for cities in the interior
CN111897620A (en) Interaction method and device and electronic equipment

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