CN109493564B - Alarm method, device and system - Google Patents

Alarm method, device and system Download PDF

Info

Publication number
CN109493564B
CN109493564B CN201811434538.8A CN201811434538A CN109493564B CN 109493564 B CN109493564 B CN 109493564B CN 201811434538 A CN201811434538 A CN 201811434538A CN 109493564 B CN109493564 B CN 109493564B
Authority
CN
China
Prior art keywords
alarm
service order
block chain
plaintext data
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.)
Active
Application number
CN201811434538.8A
Other languages
Chinese (zh)
Other versions
CN109493564A (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201811434538.8A priority Critical patent/CN109493564B/en
Publication of CN109493564A publication Critical patent/CN109493564A/en
Priority to TW108131636A priority patent/TWI723525B/en
Priority to PCT/CN2019/111522 priority patent/WO2020108145A1/en
Application granted granted Critical
Publication of CN109493564B publication Critical patent/CN109493564B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/02Alarms for ensuring the safety of persons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

One or more embodiments of the present specification provide an alarm method, apparatus and system, the method including: receiving an alarm request sent by a user terminal; determining plaintext data of a service order corresponding to the alarm request; and storing the plaintext data of the service order corresponding to the determined alarm request into the block chain, so that the alarm receiving terminal accessing the block chain responds to the alarm request based on the plaintext data. In one or more embodiments of the present disclosure, both the alarm terminal and the alarm receiving terminal are accessed into the block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain at the first time, so that the alarm receiving terminal accessed into the block chain at the same time can be ensured to view the plaintext data in time, and the alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an police can give an alarm in time based on the plaintext data of the service order corresponding to the alarm request acquired by the alarm receiving terminal, thereby improving alarm efficiency and improving safety of the user.

Description

Alarm method, device and system
Technical Field
One or more of the present descriptions relate to the field of computer communications, and in particular, to an alarm method, apparatus, and system.
Background
At present, with the rapid development of internet technology, online transactions through the internet become a part of people's daily life, for example, online taxi taking, online ordering, online shopping and the like are realized through the internet, which not only brings convenience to people, but also may have fraudulent activities, for example, a buyer is deceived by a bad seller, which brings certain economic loss to the buyer, and also may have security problems, for example, the bad activities of the owner of a car pose certain threat to the security of the taxi taking user.
When a user is in danger, the alarm needs to be given to the police, the current user mainly gives an alarm by dialing a telephone of the police, when the alarm is given, the current situation, the alarm requirement and the like of the user need to be described, and if necessary, the police also needs to verify a third-party platform to determine whether to give an alarm or not and how to give the alarm.
Therefore, it is desirable to provide a timely and efficient alarm method for distress events.
Disclosure of Invention
One or more embodiments of the present disclosure provide an alarm method, an alarm device, and an alarm receiving terminal, where the alarm terminal and the alarm receiving terminal are both connected to a block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain in a first time, so that the alarm receiving terminal connected to the block chain at the same time can be ensured to view the plaintext data in time, and an alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an alarm is given by an alarm party based on the plaintext data of the service order corresponding to the alarm request obtained by the alarm receiving terminal in time, and the alarm efficiency is improved, thereby improving the security of the user.
To solve the above technical problem, one or more embodiments of the present specification are implemented as follows:
one or more embodiments of the present specification provide an alarm method, which is applied to an alarm terminal accessing a block chain, and the method includes:
receiving an alarm request sent by a user terminal;
determining plaintext data of a service order corresponding to the alarm request;
and storing the plaintext data of the service order corresponding to the alarm request to the block chain, so that an alarm receiving terminal accessed to the block chain responds to the alarm request based on the plaintext data.
One or more embodiments of the present specification provide an alarm method, which is applied to an alarm receiving terminal accessing a block chain, and the method includes:
monitoring order data of a business order stored in the blockchain, wherein the order data comprises: ciphertext data of the service order and/or plaintext data of the service order;
if the plaintext data of the service order is stored in the block chain, determining the service order of the plaintext data as a service order corresponding to the alarm request;
and responding to the alarm request based on the plaintext data of the service order corresponding to the alarm request.
One or more embodiments of the present specification provide an alarm apparatus, which is disposed at an alarm terminal of an access block chain, and includes:
the alarm request receiving module is used for receiving an alarm request sent by a user terminal;
the order plaintext determining module is used for determining plaintext data of the service order corresponding to the alarm request;
and the order plaintext storage module is used for storing plaintext data of the service order corresponding to the alarm request to the block chain so that an alarm receiving terminal accessed to the block chain responds to the alarm request based on the plaintext data.
One or more embodiments of the present specification provide an alarm apparatus, which is disposed at an alarm receiving terminal of an access block chain, and the apparatus includes:
an order data monitoring module, configured to monitor order data of the service order stored in the block chain, where the order data includes: ciphertext data of the service order and/or plaintext data of the service order;
the service order determining module is used for determining the service order of the plaintext data as a service order corresponding to the alarm request if the plaintext data of the service order is stored in the block chain;
and the alarm request response module is used for responding to the alarm request based on the plaintext data of the service order corresponding to the alarm request.
One or more embodiments of the present specification provide an alarm system, including: the system comprises an alarm terminal and an alarm receiving terminal; the alarm terminal and the alarm receiving terminal are both connected to a block chain;
the alarm terminal is used for receiving an alarm request sent by a user terminal; determining plaintext data of a service order corresponding to the alarm request; storing the plain text data of the service order corresponding to the alarm request to the block chain;
the alarm receiving terminal is configured to monitor order data of the service order stored in the block chain, where the order data includes: ciphertext data of the service order and/or plaintext data of the service order; if the plaintext data of the service order is stored in the block chain, determining the service order of the plaintext data as a service order corresponding to the alarm request; and responding to the alarm request based on the plaintext data of the service order corresponding to the alarm request.
One or more embodiments of the present specification provide an alarm apparatus including: a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
receiving an alarm request sent by a user terminal;
determining plaintext data of a service order corresponding to the alarm request;
and storing the plaintext data of the service order corresponding to the alarm request to a block chain, so that an alarm receiving terminal accessing the block chain responds to the alarm request based on the plaintext data.
One or more embodiments of the present specification provide an alarm apparatus including: a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
monitoring order data of a business order stored in a block chain, wherein the order data comprises: ciphertext data of the service order and/or plaintext data of the service order;
if the plaintext data of the service order is stored in the block chain, determining the service order of the plaintext data as a service order corresponding to the alarm request;
and responding to the alarm request based on the plaintext data of the service order corresponding to the alarm request.
One or more embodiments of the present specification provide a storage medium storing computer-executable instructions that, when executed, implement the following:
receiving an alarm request sent by a user terminal;
determining plaintext data of a service order corresponding to the alarm request;
and storing the plaintext data of the service order corresponding to the alarm request to a block chain, so that an alarm receiving terminal accessing the block chain responds to the alarm request based on the plaintext data.
One or more embodiments of the present specification provide a storage medium storing computer-executable instructions that, when executed, implement the following:
monitoring order data of a business order stored in a block chain, wherein the order data comprises: ciphertext data of the service order and/or plaintext data of the service order;
if the plaintext data of the service order is stored in the block chain, determining the service order of the plaintext data as a service order corresponding to the alarm request;
and responding to the alarm request based on the plaintext data of the service order corresponding to the alarm request.
The alarm method, the alarm device and the alarm system in one or more embodiments of the present specification receive an alarm request sent by a user terminal; determining plaintext data of a service order corresponding to the alarm request; and storing the plaintext data of the service order corresponding to the determined alarm request into the block chain, so that the alarm receiving terminal accessing the block chain responds to the alarm request based on the plaintext data. In one or more embodiments of the present disclosure, both the alarm terminal and the alarm receiving terminal are accessed into the block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain at the first time, so that the alarm receiving terminal accessed into the block chain at the same time can be ensured to view the plaintext data in time, and the alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an police can give an alarm in time based on the plaintext data of the service order corresponding to the alarm request acquired by the alarm receiving terminal, thereby improving alarm efficiency and improving safety of the user.
Drawings
In order to more clearly illustrate one or more embodiments or prior art solutions of the present specification, the drawings that are needed in the description of the embodiments or prior art will be briefly described below, it is obvious that the drawings in the following description are only some of the embodiments described in one or more of the specification, and that other drawings can be obtained by those skilled in the art without inventive exercise.
Fig. 1 is a schematic application scenario diagram of an alarm method provided in one or more embodiments of the present disclosure;
fig. 2 is a first flowchart of an alarm method applied to an alarm terminal side according to one or more embodiments of the present disclosure;
fig. 3 is a second flowchart of an alarm method applied to an alarm terminal side according to one or more embodiments of the present disclosure;
FIG. 4 is a third flowchart of an alarm method applied to an alarm terminal according to one or more embodiments of the present disclosure;
FIG. 5a is a fourth flowchart of an alarm method applied to an alarm terminal according to one or more embodiments of the present disclosure;
FIG. 5b is a fifth flowchart of an alarm method applied to an alarm terminal according to one or more embodiments of the present disclosure;
FIG. 6 is a schematic diagram illustrating an implementation of an alarm method according to one or more embodiments of the present disclosure;
fig. 7 is a flowchart illustrating an alarm method applied to an alarm receiving terminal side according to one or more embodiments of the present disclosure;
fig. 8 is a schematic diagram illustrating a module composition of an alarm device provided in an alarm terminal according to one or more embodiments of the present disclosure;
fig. 9 is a schematic block diagram illustrating an alarm device disposed at an alarm receiving terminal according to one or more embodiments of the present disclosure;
FIG. 10 is a schematic diagram of an alarm system according to one or more embodiments of the present disclosure;
fig. 11 is a schematic structural diagram of an alarm device provided in one or more embodiments of the present disclosure.
Detailed Description
In order to make the technical solutions in one or more embodiments of the present disclosure better understood, the technical solutions in one or more embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in one or more embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of one or more embodiments of the present disclosure, but not all embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments in one or more of the specification without inventive faculty are intended to fall within the scope of one or more of the specification.
One or more embodiments of the present disclosure provide an alarm, an apparatus, and a system, where an alarm terminal and an alarm receiving terminal are both connected to a block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain in a first time, so that the alarm receiving terminal connected to the block chain at the same time can check the plaintext data in time, and the alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an police can alarm in time based on the plaintext data of the service order corresponding to the alarm request acquired by the alarm receiving terminal, and thus, the alarm efficiency is improved, and the security of the user is improved.
Fig. 1 is a schematic view of an application scenario of an alarm method according to one or more embodiments of the present disclosure, and as shown in fig. 1, the system includes: the system comprises a plurality of alarm terminals and a plurality of alarm receiving terminals, wherein the alarm terminals can be merchant servers providing business services, such as a server providing taxi taking services, a server providing ordering services and the like, and the alarm receiving terminals can be background servers of public inspection institutions, and the specific process of alarming is as follows:
(1) the method comprises the steps that an alarm terminal receives an alarm request sent by a user terminal, wherein when the user is in danger, the user terminal generates the alarm request based on touch operation of a user on an alarm trigger control on a display interface, and the user terminal sends the alarm request to the alarm terminal, wherein the alarm request can carry an order identification;
(2) after receiving an alarm request, an alarm terminal determines plaintext data of a service order corresponding to the alarm request, wherein the plaintext data can be obtained by decrypting ciphertext data uploaded to a block chain in advance by the alarm terminal or obtained by inquiring the plaintext data of the service order corresponding to the alarm request in a local database, in the example of fig. 1, ciphertext data uploaded to the block chain is directly decrypted to obtain plaintext data, and the alarm terminal directly decrypts the ciphertext data uploaded to the block chain in advance corresponding to the alarm request to obtain plaintext data;
(3) the alarm terminal stores the determined plaintext data of the service order corresponding to the alarm request to the block chain, wherein the plaintext data is stored to the block chain after decryption is completed aiming at the condition that the alarm terminal decrypts the plaintext data obtained by decrypting the ciphertext data uploaded to the block chain in advance, and in addition, a plurality of alarm receiving terminals are also accessed to the block chain, and each alarm receiving terminal is used as a node in the block chain;
(4) the alarm receiving terminal monitors order data of a service order stored in a block chain in real time, wherein the order data is data stored in the block chain by the alarm terminal, the order data can be ciphertext data of the service order linked by the alarm terminal, or plaintext data of the service order corresponding to the alarm request and stored in the block chain when the alarm request is received, and the order data stored in the block chain can be checked in real time for the alarm receiving terminal as the alarm terminal and the alarm receiving terminal are both connected into the same block chain;
(5) if the alarm receiving terminal monitors that plaintext data of a service order is stored in the block chain, determining the service order of the plaintext data as the service order corresponding to the alarm request, wherein the plaintext data of the service order is required to be processed by the alarm receiving terminal, and ciphertext data of the service order cannot be identified for the alarm receiving terminal, so that the monitored plaintext data of the service order is obtained;
(6) the alarm receiving terminal responds to the alarm request of the user terminal based on the acquired plaintext data of the service order corresponding to the alarm request, specifically, the alarm receiving terminal can judge whether the corresponding alarm request belongs to the alarm output range of the alarm receiving terminal according to the plaintext data of the service order corresponding to the acquired alarm request, if so, corresponding alarm information is generated, the alarm information is displayed or an alarm is sent out based on the alarm information, so that an alarm output action is executed by an alarm party at the first time, the alarm efficiency is improved, and the safety of the user is improved.
Fig. 2 is a first flowchart of an alarm method provided in one or more embodiments of the present specification, where the method in fig. 2 can be executed by an alarm terminal of an access block chain in fig. 1, and as shown in fig. 2, the method at least includes the following steps:
s201, receiving an alarm request sent by a user terminal, wherein for the online taxi taking service, the user terminal can be a taxi renting terminal or an owner terminal; for the on-line ordering service, the user terminal can be a meal ordering terminal or a meal delivery terminal; for the online shopping service, the user terminal may be a buyer terminal or a seller terminal;
specifically, when a user using a user terminal is in danger, the user may touch an alarm trigger control on a display interface of the user terminal by one key, and at this time, after the user terminal detects a touch operation of the user, an alarm request is generated based on the touch operation, and the user terminal sends the alarm request to an alarm terminal (i.e., a merchant server providing a business service), where the alarm request may carry an order identifier of a business order that needs to request an alarm.
S202, determining the plaintext data of the service order corresponding to the received alarm request, specifically, after the alarm terminal receives the alarm request, the ciphertext data of the service order corresponding to the alarm request, which is uploaded to the block chain in advance, can be directly decrypted to obtain plaintext data, the plaintext data of the service order corresponding to the alarm request can be inquired in a local database, wherein, the alarm terminal can adopt either the mode of the lower single uplink or the alarm uplink to upload the service order data to the block chain, preferably, the mode of the lower single uplink, the generated business order data are all hashed and uploaded to the block chain, so that the traceability of the business order data can be ensured, any business order data are required to be used subsequently, decrypting the ciphertext data of the corresponding service order in the block chain to obtain plaintext data;
s203, storing the plaintext data of the service order corresponding to the determined alarm request to a block chain, so that an alarm receiving terminal accessed to the block chain responds to the alarm request of the user terminal based on the plaintext data;
specifically, for the situation that ciphertext data linked in advance is decrypted to obtain plaintext data, the alarm terminal directly decrypts the ciphertext data on the block chain, namely, the ciphertext data is automatically stored in the block chain, and for the situation that the plaintext data is searched in a local database, the alarm terminal needs to upload the searched plaintext data to the block chain;
wherein, because to a plurality of nodes of accessing same block chain, no matter which node uploads the target data to the block chain, each node of accessing this block chain all can acquire this target data, consequently, need all access alarm terminal and receive alarm terminal in the block chain in advance, specifically do:
the alarm terminal receives a block link access request; and responding to the block link access request to access the block chain, so that the alarm terminal becomes a node in the block chain;
and the alarm receiving terminal also receives the block link entering request; and accessing the blockchain in response to the blockchain access request, so that the alarm receiving terminal also becomes a node in the blockchain;
after the alarm terminal stores the plaintext data of the service order corresponding to the alarm request to the blockchain, the alarm receiving terminal accessing the blockchain can automatically acquire the plaintext data of the service order corresponding to the alarm request, and then the alarm receiving terminal can judge whether the corresponding alarm request belongs to the alarm output range of the alarm receiving terminal according to the acquired plaintext data of the service order corresponding to the alarm request, if so, corresponding alarm information is generated, the alarm information is displayed or an alarm is sent out based on the alarm information, so that an alarm output action can be executed by an alarm party at the first time.
In one or more embodiments of the present disclosure, both the alarm terminal and the alarm receiving terminal are accessed into the block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain at the first time, so that the alarm receiving terminal accessed into the block chain at the same time can be ensured to view the plaintext data in time, and the alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an police can give an alarm in time based on the plaintext data of the service order corresponding to the alarm request acquired by the alarm receiving terminal, thereby improving alarm efficiency and improving safety of the user.
Further, considering that a plurality of nodes may be connected to the same block chain, where a competition relationship may exist between two nodes, in order to ensure confidentiality of normal business order data of a merchant, and because an alarm receiving terminal cannot identify ciphertext data, in order to facilitate the alarm receiving terminal to quickly identify data of a business order corresponding to an alarm request, plaintext data of a business order may be encrypted and then uploaded, and once a certain business order becomes a business order corresponding to an alarm request, ciphertext data corresponding to the business order may be decrypted to obtain corresponding plaintext data, as shown in fig. 3, before S201 receives an alarm request sent by a user terminal, the method further includes:
s204, encrypting plaintext data of the business order to obtain ciphertext data of the business order, wherein the plaintext data of the business order is generated based on business services provided by a merchant platform for a user, and a unique order identifier is distributed to each business order when the business order is generated;
specifically, when the alarm terminal determines that the service order data meets the chaining condition, the alarm terminal encrypts the service data, can encrypt the plaintext data of the service order by using a public key, and then decrypts the ciphertext data of the service order by using a private key corresponding to the public key if the plaintext data of the service order needs to be used, so as to obtain the plaintext data of the service order;
and S205, uploading the encrypted ciphertext data of the service order to the block chain, wherein in consideration of the fact that the data stored in the block chain is not falsifiable and traceable, the alarm terminal can adopt a form of ordering and uploading, that is, the service order data is encrypted and uploaded to the block chain, so that any service order can be traced in the subsequent process.
In one or more embodiments of the present disclosure, in order to a situation that a merchant uses a mode of placing orders and uploading business order data to a block chain, plaintext data of a business order may be encrypted, and then ciphertext data of the encrypted business order may be uploaded to the block chain, and after an alarm request of a user terminal is received, ciphertext data of the business order corresponding to the alarm request in the block chain may be decrypted to obtain plaintext data, so that not only can confidentiality of a normal business order be ensured, but also data of the business order corresponding to the alarm request may be quickly identified by an alarm receiving terminal.
Further, considering that there may be a case where the plaintext data of the service order includes at least one item of attribute data related to time, for example, for a service order generated by an online taxi taking service, correspondingly, the plaintext data of the service order includes a driving track, and the driving track is refined over time, and the driving track is a driving route from a starting position to a destination when the order is completed, so that the driving track in the service order data needs to be updated in real time, based on this, as shown in fig. 4, the above S204 performs an encryption process on the plaintext data of the service order to obtain ciphertext data of the service order, specifically including:
s2041, determining a target preset condition corresponding to the business order according to the type of the business order, wherein the preset condition comprises: generating a business order for the first time, wherein the order execution time reaches at least one of a preset threshold value and business order completion; specifically, the corresponding relationship between the type of the service order and the target preset condition can be set;
s2042, judging whether the current order execution state of the business order meets a target preset condition corresponding to the business order;
specifically, the target preset condition corresponding to the service order may be determined according to the type of the service order, and then it is determined whether the current order execution state of the service order meets the target preset condition, for example, in case that the plaintext data of the service order includes at least one item of attribute data related to time, the target preset condition of the service order includes: the method includes the steps that a service order is generated for the first time, order execution time reaches a preset threshold value, and the service order is completed, namely when the current order execution state of the service order meets the condition that the order execution time reaches the preset threshold value, namely when service order data are sent and changed, encrypted ciphertext data of the service order also need to be uploaded to a block chain;
if the judgment result is yes, executing S2043, and encrypting the plaintext data of the service order to obtain ciphertext data of the service order;
specifically, for the case that the plaintext data of the service order includes at least one item of attribute data related to time, it is necessary to not only upload the service order data generated for the first time to the block chain, but also continuously update the attribute data related to time in the service order data;
if not, determining whether the service order is completed and chaining the ciphertext data of the service order, and if not, continuing to execute step S2042.
Specifically, the process of determining plaintext data of a service order corresponding to an alarm request by an alarm terminal may be implemented by directly decrypting ciphertext data of the service order corresponding to the alarm request, which is uploaded to a block chain in advance, or by querying plaintext data of the service order corresponding to the alarm request in a local database, and specifically, the process of determining plaintext data of the service order corresponding to the alarm request by the alarm terminal is implemented by directly decrypting ciphertext data of the service order corresponding to the alarm request, which is uploaded to the block chain in advance, to obtain plaintext data specifically:
as shown in fig. 5a, the determining, in S202, plaintext data of a service order corresponding to the received alarm request specifically includes:
s2021, searching ciphertext data of a service order corresponding to the received alarm request in a block chain accessed by the alarm terminal;
the alarm terminal uploads encrypted ciphertext data of a service order to a block chain when generating the service order, and when a user terminal initiates an alarm request for a certain service order, the ciphertext data of the service order corresponding to the received alarm request is automatically searched;
s2022, carrying out decryption processing on the ciphertext data of the service order corresponding to the searched alarm request to obtain plaintext data of the service order corresponding to the alarm request; specifically, after ciphertext data of the service order corresponding to the alarm request is found, the ciphertext data is decrypted by using a private key, and corresponding plaintext data can be obtained.
Specifically, for the case of querying plaintext data of a service order corresponding to the alarm request in the local database, the method specifically includes:
as shown in fig. 5b, the determining, in S202, plaintext data of a service order corresponding to the received alarm request specifically includes:
s2023, determining an order identifier of the business order carried in the received alarm request;
s2024, searching plaintext data corresponding to the determined order identification of the business order in a local database; specifically, the found plaintext data is determined as the plaintext data of the service order corresponding to the received alarm request, and the corresponding plaintext data can be directly inquired and uploaded to the block chain in response to the situation that the plaintext data of the service order corresponding to the alarm request is locally stored in the alarm terminal.
In one or more embodiments of the present disclosure, in consideration that data stored in a block chain has encryption and non-tamper-resistance, it is preferable to directly decrypt ciphertext data of a service order corresponding to an alarm request, which is uploaded to the block chain in advance, to obtain plaintext data, so that accuracy of the plaintext data transmitted to an alarm receiving terminal can be ensured.
The plaintext data for the service order comprises: in the case of at least one item of time-related attribute data, for example, a service order generated for an online taxi-taking service, the clear text data of the service order includes a driving track, and the driving track is continuously improved over time, and when the order is completed, the driving track is a driving route from a starting position to a destination, so that the driving track in the service order data needs to be updated in real time;
in the process of encrypting the plaintext data of the service order, when the current order execution state of the service order meets the condition that the order execution time reaches a preset threshold value, the plaintext data of the service order is encrypted, so that the encrypted ciphertext data of the service order also needs to be uploaded to a block chain when the service order data is sent and changed;
correspondingly, the uploading, by the S205, the encrypted ciphertext data of the service order to the block chain specifically includes:
and uploading the latest ciphertext data aiming at the same business order to a block chain according to a preset time interval.
Correspondingly, when a service order is in the process of executing, if an alarm request of a user terminal for the service order is received, plaintext data of the service order corresponding to the received alarm request needs to be determined according to a preset time interval, that is, as long as ciphertext data of the service order corresponding to the alarm request exists on a block chain, the ciphertext data needs to be decrypted to obtain plaintext data;
correspondingly, the step S203 of storing the plaintext data of the service order corresponding to the determined alarm request to the block chain specifically includes:
and storing the latest plaintext data of the service order corresponding to the determined alarm request to the block chain according to a preset time interval.
Furthermore, considering that plaintext data of all service orders on the block chain is visible for the alarm receiving terminal, the alarm receiving terminal needs to select alarm information belonging to the management of the alarm receiving terminal, so that in order to reduce the need for the alarm receiving terminal to exclude too many alarm information not belonging to the jurisdiction range of the alarm receiving terminal, based on this, if the service area in charge of the alarm receiving terminal accessing the block chain is a first service area, the service area in charge of the alarm terminal accessing the block chain is a second service area;
correspondingly, the first service area and the second service area satisfy a preset position relationship, preferably, the first service area is the same as the second service area, for example, if the area where the business service provided by the merchant server accessing the block chain is facing to the user is in beijing, the background server of the public inspection agency in beijing is accessed into the block chain at the same time.
In a specific embodiment, taking a service order corresponding to an alarm request of a user terminal as an example of a service order generated by an online taxi taking service, a process of triggering a public security organization to acquire alarm information for the alarm request is specifically as follows:
as shown in fig. 6, the alarm terminal accessing the block chain includes: the system comprises a merchant terminal 1 providing online shopping service, a merchant terminal 2 providing online ordering service, a merchant terminal 3 providing online taxi taking service and the like, wherein the alarm receiving terminal accessing the block chain comprises: a public security terminal;
(1) the process for order data chaining specifically comprises the following steps:
after each merchant terminal generates a business order, encrypting plaintext data of the business order to obtain ciphertext data of the business order, and uploading the ciphertext data of the business order to a block chain;
the plaintext data of the business order generated by the merchant terminal 2 may include: distributor identity information, user identity information, order receiving time, delivery address, distributor current geographical location information, user current geographical location information, and the like; the clear data of the business order generated by the merchant terminal 3 may include: driver identity information, user identity information, vehicle registration information, order taking time, destination, current vehicle geographic position information and vehicle running track information;
in addition, for the merchant terminal 3, the current geographic position information of the vehicle and the vehicle driving track information are changed with time, so that the latest ciphertext data for the same service order needs to be uploaded to the block chain at preset time intervals.
(2) The process for determining plaintext data for a service order specifically includes:
after receiving an alarm request sent by a user terminal, a merchant terminal 3 determines a hash value of a business order corresponding to the alarm request, and searches ciphertext data of the business order corresponding to the alarm request in a block chain based on the hash value;
and decrypting the ciphertext data of the service order corresponding to the found alarm request to obtain the plaintext data of the service order corresponding to the alarm request.
(3) The process of acquiring plaintext data for a public security terminal specifically comprises the following steps:
the method comprises the steps that a public security terminal monitors order data of a service order stored in a block chain in real time, and if plaintext data of the service order is stored in the monitored block chain, the service order of the plaintext data is determined to be the service order corresponding to an alarm request, wherein the plaintext data stored in the block chain is required to be processed by the public security terminal, and ciphertext data of the service order cannot be identified for the public security terminal, so that the monitored plaintext data of the service order is reserved;
the public security terminal responds to the alarm request of the user terminal based on the plaintext data of the service order corresponding to the obtained alarm request, specifically, the public security terminal can judge whether the corresponding alarm request belongs to the alarm output range of the public security terminal according to the plaintext data of the service order corresponding to the obtained alarm request, if yes, corresponding alarm information is generated, the alarm information is displayed or an alarm is sent out based on the alarm information, so that an alarm output action is executed by an alarm party at the first time, the alarm efficiency is improved, and the safety of the user is improved.
An alarm method in one or more embodiments of the present specification receives an alarm request sent by a user terminal; determining plaintext data of a service order corresponding to the alarm request; and storing the plaintext data of the service order corresponding to the determined alarm request into the block chain, so that the alarm receiving terminal accessing the block chain responds to the alarm request based on the plaintext data. In one or more embodiments of the present disclosure, both the alarm terminal and the alarm receiving terminal are accessed into the block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain at the first time, so that the alarm receiving terminal accessed into the block chain at the same time can be ensured to view the plaintext data in time, and the alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an police can give an alarm in time based on the plaintext data of the service order corresponding to the alarm request acquired by the alarm receiving terminal, thereby improving alarm efficiency and improving safety of the user.
Based on the same technical concept, the alarm method described in correspondence to fig. 2 to fig. 6 above, one or more embodiments of the present specification further provide an alarm method, fig. 7 is a flowchart of the alarm method provided in one or more embodiments of the present specification, and the method in fig. 7 can be executed by an alarm receiving terminal of an access block chain, as shown in fig. 7, and the method at least includes the following steps:
s701, monitoring order data of the business orders stored in the block chain, wherein the order data comprises: ciphertext data of the service order and/or plaintext data of the service order;
specifically, the order data may be ciphertext data of a service order linked to an alarm terminal accessing a block chain, or plaintext data of a service order corresponding to an alarm request, which is stored to the block chain by the alarm terminal when the alarm request is received, and as the alarm terminal and the alarm receiving terminal are both accessed to the same block chain, the order data stored in the block chain can be checked in real time for the alarm receiving terminal, wherein for the service order corresponding to the alarm request, only the plaintext data of the service order corresponding to the alarm request can be stored in the block chain, and the plaintext data and the ciphertext data of the service order corresponding to the alarm request can be stored at the same time; for normal business orders, namely for business orders which do not send out alarm requests, only the ciphertext data of the business orders are stored in the block chain;
s702, if the plaintext data of the service order is monitored to be stored in the block chain, determining the service order of the plaintext data as the service order corresponding to the alarm request;
when the alarm receiving terminal scans the plaintext data of the service order, the service order of the plaintext data is determined to be the service order corresponding to the alarm request, so that the plaintext data of the service order corresponding to the alarm request is obtained;
and S703, responding to the alarm request of the user terminal based on the plaintext data of the service order corresponding to the obtained alarm request, specifically, judging whether the corresponding alarm request belongs to the alarm output range of the alarm request according to the plaintext data of the service order corresponding to the obtained alarm request by the alarm receiving terminal, if so, generating corresponding alarm information, displaying the alarm information or sending an alarm based on the alarm information so that the police can execute the alarm output action at the first time, so that the alarm efficiency is improved, and the safety of the user is improved.
In one or more embodiments of the present disclosure, both the alarm terminal and the alarm receiving terminal are accessed into the block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain at the first time, so that the alarm receiving terminal accessed into the block chain at the same time can be ensured to view the plaintext data in time, and the alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an police can give an alarm in time based on the plaintext data of the service order corresponding to the alarm request acquired by the alarm receiving terminal, thereby improving alarm efficiency and improving safety of the user.
Wherein, because to a plurality of nodes of accessing same block chain, no matter which node uploads the target data to the block chain, each node of accessing this block chain all can acquire this target data, consequently, need all access alarm terminal and receive alarm terminal in the block chain in advance, specifically do:
the alarm terminal receives a block link access request; and responding to the block link access request to access the block chain, so that the alarm terminal becomes a node in the block chain;
and the alarm receiving terminal also receives the block link entering request; and accessing the blockchain in response to the blockchain access request, so that the alarm receiving terminal also becomes a node in the blockchain;
after the alarm terminal stores the plaintext data of the service order corresponding to the alarm request to the blockchain, the alarm receiving terminal accessing the blockchain can automatically acquire the plaintext data of the service order corresponding to the alarm request, and then the alarm receiving terminal can judge whether the corresponding alarm request belongs to the alarm output range of the alarm receiving terminal according to the acquired plaintext data of the service order corresponding to the alarm request, if so, corresponding alarm information is generated, the alarm information is displayed or an alarm is sent out based on the alarm information, so that an alarm output action can be executed by an alarm party at the first time.
In view of the fact that data stored in a block chain is not falsifiable and traceable, and the alarm terminal adopts a form of placing orders and uploading business order data to the block chain when generating a business order, so that a subsequent public inspection authority can directly trigger the corresponding alarm terminal to decrypt ciphertext data on the block chain when needing to acquire plaintext data of a certain business order, and acquire corresponding plaintext data, and therefore, tracing of any business order can be realized, and in particular, after responding to an alarm request of a user terminal based on the obtained plaintext data of the business order corresponding to the alarm request in S703, the method further includes:
step one, determining decryption requirement information for an event to be traced back, and uploading the decryption requirement information to a block chain, wherein the decryption requirement information may include: order identification of a business order related to an event to be traced;
step two, plaintext data of a service order corresponding to the event to be traced is obtained, wherein the plaintext data is obtained by decrypting ciphertext data of the service order corresponding to the event to be traced in the block chain by the alarm terminal based on the decryption demand information;
for an alarm terminal, acquiring decryption demand information which is uploaded to a block chain by an alarm receiving terminal and aims at an event to be traced; and decrypting the ciphertext data of the service order corresponding to the event to be traced in the block chain based on the decryption demand information to obtain corresponding plaintext data, so that the alarm receiving terminal reads the plaintext data of the service order corresponding to the event to be traced from the block chain.
Specifically, after an order identifier of a service order related to an event to be traced is uploaded to a block chain, an alarm terminal accessing the block chain acquires the order identifier of the service order related to the event to be traced, further determines a hash value of the service order according to the order identifier, searches ciphertext data of the corresponding service order in the block chain based on the hash value, decrypts the searched ciphertext data to obtain plaintext data, and stores the plaintext data into the block chain, so that the alarm receiving terminal accessing the block chain monitors and acquires the plaintext data.
Furthermore, considering that plaintext data of all service orders on the block chain is visible for the alarm receiving terminal, the alarm receiving terminal needs to select alarm information belonging to the management of the alarm receiving terminal, so that in order to reduce the need for the alarm receiving terminal to exclude too many alarm information not belonging to the jurisdiction range of the alarm receiving terminal, based on this, if the service area in charge of the alarm receiving terminal accessing the block chain is a first service area, the service area in charge of the alarm terminal accessing the block chain is a second service area;
correspondingly, the first service area and the second service area satisfy a preset position relationship, preferably, the first service area is the same as the second service area, for example, if the area where the business service provided by the merchant server accessing the block chain is facing to the user is in beijing, the background server of the public inspection agency in beijing is accessed into the block chain at the same time.
In the alarm method in one or more embodiments of the present specification, order data of a service order stored in a block chain is monitored; if the plaintext data of the service order is stored in the block chain, determining the service order of the plaintext data as a service order corresponding to the alarm request; and responding to the alarm request based on the plaintext data of the service order corresponding to the alarm request. In one or more embodiments of the present disclosure, both the alarm terminal and the alarm receiving terminal are accessed into the block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain at the first time, so that the alarm receiving terminal accessed into the block chain at the same time can be ensured to view the plaintext data in time, and the alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an police can give an alarm in time based on the plaintext data of the service order corresponding to the alarm request acquired by the alarm receiving terminal, thereby improving alarm efficiency and improving safety of the user.
It should be noted that the embodiment in this specification and the previous embodiment in this specification are based on the same inventive concept, and therefore, for specific implementation of this embodiment, reference may be made to implementation of the aforementioned alarm method, and repeated details are not described again.
On the basis of the same technical concept, corresponding to the alarm method described in fig. 2 to 6, one or more embodiments of the present specification further provide an alarm device, and fig. 8 is a schematic diagram of a module of the alarm device provided in one or more embodiments of the present specification and disposed at an alarm terminal, where the alarm device is configured to perform the alarm method described in fig. 2 to 6, and as shown in fig. 8, the alarm device includes:
an alarm request receiving module 801, configured to receive an alarm request sent by a user terminal;
an order plaintext determining module 802, configured to determine plaintext data of a service order corresponding to the alarm request;
an order plaintext storage module 803, configured to store plaintext data of a service order corresponding to the alarm request to the block chain, so that an alarm receiving terminal accessing the block chain responds to the alarm request based on the plaintext data.
In one or more embodiments of the present disclosure, both the alarm terminal and the alarm receiving terminal are accessed into the block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain at the first time, so that the alarm receiving terminal accessed into the block chain at the same time can be ensured to view the plaintext data in time, and the alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an police can give an alarm in time based on the plaintext data of the service order corresponding to the alarm request acquired by the alarm receiving terminal, thereby improving alarm efficiency and improving safety of the user.
Optionally, the apparatus further comprises:
the order data encryption module is used for encrypting plaintext data of the business order to obtain ciphertext data of the business order;
and the ciphertext data uploading module is used for uploading the ciphertext data of the service order to the block chain.
Optionally, the order data encryption module is specifically configured to:
judging whether the current order execution state of the business order meets preset conditions or not, wherein the preset conditions comprise: generating a business order for the first time, wherein the order execution time reaches at least one of a preset threshold value and business order completion;
if so, encrypting the plaintext data of the service order to obtain ciphertext data of the service order.
Optionally, the order plaintext determining module 802 is specifically configured to:
searching cipher text data of a service order corresponding to the alarm request in the block chain;
and decrypting the ciphertext data of the searched service order to obtain plaintext data of the service order corresponding to the alarm request.
Optionally, the order plaintext determining module 802 is further specifically configured to:
determining an order identifier of a business order carried in the alarm request;
and searching plaintext data corresponding to the order identification of the service order in a local database.
Optionally, the plaintext data of the service order includes: at least one item of time-dependent attribute data;
correspondingly, the ciphertext data uploading module is specifically configured to:
and uploading the latest ciphertext data aiming at the same business order to the block chain according to a preset time interval.
Correspondingly, the order plaintext storage module 803 is specifically configured to:
and storing the latest plaintext data of the service order corresponding to the determined alarm request into a block chain according to a preset time interval.
Optionally, the apparatus further comprises:
an access request receiving module, configured to receive a block link access request;
and the block link access module is used for responding to the block link access request to access the block link.
Optionally, a service area in charge of the alarm receiving terminal accessing the block chain is a first service area, and a service area in charge of the alarm terminal accessing the block chain is a second service area;
and the first service area and the second service area meet a preset position relationship.
The alarm device in one or more embodiments of the present specification receives an alarm request sent by a user terminal; determining plaintext data of a service order corresponding to the alarm request; and storing the plaintext data of the service order corresponding to the determined alarm request into the block chain, so that the alarm receiving terminal accessing the block chain responds to the alarm request based on the plaintext data. In one or more embodiments of the present disclosure, both the alarm terminal and the alarm receiving terminal are accessed into the block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain at the first time, so that the alarm receiving terminal accessed into the block chain at the same time can be ensured to view the plaintext data in time, and the alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an police can give an alarm in time based on the plaintext data of the service order corresponding to the alarm request acquired by the alarm receiving terminal, thereby improving alarm efficiency and improving safety of the user.
It should be noted that, the embodiment of the alarm device disposed at the alarm terminal side in this specification and the embodiment of the alarm method applied at the alarm terminal side in this specification are based on the same inventive concept, so that the specific implementation of this embodiment may refer to the implementation of the corresponding alarm method, and repeated parts are not described again.
On the basis of the same technical concept, corresponding to the alarm method described in fig. 7, one or more embodiments of the present specification further provide an alarm device, and fig. 9 is a schematic diagram of a module of the alarm device provided in one or more embodiments of the present specification and disposed at an alarm receiving terminal side, where the alarm device is configured to execute the alarm method described in fig. 7, and as shown in fig. 9, the alarm device includes:
an order data monitoring module 901, configured to monitor order data of a service order stored in a block chain, where the order data includes: ciphertext data of the service order and/or plaintext data of the service order;
a service order determining module 902, configured to determine, if it is monitored that plaintext data of a service order is stored in the block chain, the service order of the plaintext data as a service order corresponding to the alarm request;
and an alarm request responding module 903, configured to respond to the alarm request based on plaintext data of the service order corresponding to the alarm request.
In one or more embodiments of the present disclosure, both the alarm terminal and the alarm receiving terminal are accessed into the block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain at the first time, so that the alarm receiving terminal accessed into the block chain at the same time can be ensured to view the plaintext data in time, and the alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an police can give an alarm in time based on the plaintext data of the service order corresponding to the alarm request acquired by the alarm receiving terminal, thereby improving alarm efficiency and improving safety of the user.
Optionally, the apparatus further comprises:
the decryption demand determining module is used for determining decryption demand information aiming at the event to be traced and uploading the decryption demand information to the block chain;
and the tracing data acquisition module is used for acquiring plaintext data of the service order corresponding to the event to be traced, wherein the plaintext data is obtained by decrypting ciphertext data of the service order corresponding to the event to be traced in the block chain by the alarm terminal based on the decryption demand information.
Optionally, the apparatus further comprises:
an access request receiving module, configured to receive a block link access request;
and the block link access module is used for responding to the block link access request to access the block link.
Optionally, a service area in charge of the alarm receiving terminal accessing the block chain is a first service area, and a service area in charge of the alarm terminal accessing the block chain is a second service area;
and the first service area and the second service area meet a preset position relationship.
The alarm device in one or more embodiments of the present specification monitors order data of a service order stored in a block chain; if the plaintext data of the service order is stored in the block chain, determining the service order of the plaintext data as a service order corresponding to the alarm request; and responding to the alarm request based on the plaintext data of the service order corresponding to the alarm request. In one or more embodiments of the present disclosure, both the alarm terminal and the alarm receiving terminal are accessed into the block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain at the first time, so that the alarm receiving terminal accessed into the block chain at the same time can be ensured to view the plaintext data in time, and the alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an police can give an alarm in time based on the plaintext data of the service order corresponding to the alarm request acquired by the alarm receiving terminal, thereby improving alarm efficiency and improving safety of the user.
It should be noted that, the embodiment of the alarm device disposed at the alarm receiving terminal side in this specification and the embodiment of the alarm method applied at the alarm receiving terminal side in this specification are based on the same inventive concept, and therefore, specific implementation of this embodiment may refer to implementation of the corresponding alarm method, and repeated parts are not described again.
On the basis of the same technical concept, corresponding to the alarm method described in fig. 1 to 7, one or more embodiments of the present specification further provide an alarm system, and fig. 10 is a schematic structural composition diagram of the alarm system provided in one or more embodiments of the present specification, where the alarm system is configured to perform the alarm method described in fig. 1 to 7, and as shown in fig. 10, the alarm system includes: an alarm terminal 10 and an alarm receiving terminal 20; the alarm terminal 10 and the alarm receiving terminal 20 are both connected to a block chain;
the alarm terminal 10 is configured to receive an alarm request sent by a user terminal; determining plaintext data of a service order corresponding to the alarm request; storing the plain text data of the service order corresponding to the alarm request to the block chain;
the alarm receiving terminal 20 is configured to monitor order data of a service order stored in a block chain, where the order data includes: ciphertext data of the service order and/or plaintext data of the service order; if the block chain is monitored to store plaintext data of a service order, determining the service order of the plaintext data as a service order corresponding to the alarm request; and responding to the alarm request based on the plaintext data of the service order corresponding to the alarm request.
In one or more embodiments of the present disclosure, both the alarm terminal and the alarm receiving terminal are accessed into the block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain at the first time, so that the alarm receiving terminal accessed into the block chain at the same time can be ensured to view the plaintext data in time, and the alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an police can give an alarm in time based on the plaintext data of the service order corresponding to the alarm request acquired by the alarm receiving terminal, thereby improving alarm efficiency and improving safety of the user.
Specifically, when a user is in danger, a user terminal generates an alarm request based on touch operation of the user on an alarm trigger control reported on a display interface, and the user terminal sends the alarm request to the alarm terminal, wherein the alarm request can carry an order identifier;
after receiving the alarm request, the alarm terminal determines plaintext data of a service order corresponding to the alarm request, where the plaintext data may be obtained by decrypting ciphertext data uploaded to a block chain in advance by the alarm terminal, or may be obtained by querying plaintext data of the service order corresponding to the alarm request in a local database, and in fig. 10, taking an example of directly decrypting ciphertext data uploaded to the block chain to obtain plaintext data, the alarm terminal directly decrypts ciphertext data uploaded to the block chain in advance corresponding to the alarm request to obtain plaintext data;
the alarm terminal stores the determined plaintext data of the service order corresponding to the alarm request to the block chain, wherein the plaintext data is stored to the block chain after decryption is completed aiming at the condition that the alarm terminal decrypts the plaintext data obtained by decrypting the ciphertext data uploaded to the block chain in advance, and in addition, a plurality of alarm receiving terminals are also accessed to the block chain, and each alarm receiving terminal is used as a node in the block chain;
the alarm receiving terminal monitors order data stored in a block chain in real time, wherein the order data is data stored in the block chain by the alarm terminal, the order data can be ciphertext data of a business order linked by the alarm terminal, or plaintext data of the business order corresponding to the alarm request and stored in the block chain when the alarm request is received, and the order data stored in the block chain can be checked in real time for the alarm receiving terminal as the alarm terminal and the alarm receiving terminal are both connected into the same block chain;
if the alarm receiving terminal monitors that plaintext data of a service order is stored in the block chain, determining the service order of the plaintext data as the service order corresponding to the alarm request, wherein the plaintext data of the service order is required to be processed by the alarm receiving terminal, and ciphertext data of the service order cannot be identified for the alarm receiving terminal, so that the monitored plaintext data of the service order is obtained;
the alarm receiving terminal responds to the alarm request of the user terminal based on the acquired plaintext data of the service order corresponding to the alarm request, specifically, the alarm receiving terminal can judge whether the corresponding alarm request belongs to the alarm output range of the alarm receiving terminal according to the plaintext data of the service order corresponding to the acquired alarm request, if so, corresponding alarm information is generated, the alarm information is displayed or an alarm is sent out based on the alarm information, so that an alarm output action is executed by an alarm party at the first time, the alarm efficiency is improved, and the safety of the user is improved.
An alarm system in one or more embodiments of the present specification receives an alarm request sent by a user terminal; determining plaintext data of a service order corresponding to the alarm request; and storing the plaintext data of the service order corresponding to the determined alarm request into the block chain, so that the alarm receiving terminal accessing the block chain responds to the alarm request based on the plaintext data. In one or more embodiments of the present disclosure, both the alarm terminal and the alarm receiving terminal are accessed into the block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain at the first time, so that the alarm receiving terminal accessed into the block chain at the same time can be ensured to view the plaintext data in time, and the alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an police can give an alarm in time based on the plaintext data of the service order corresponding to the alarm request acquired by the alarm receiving terminal, thereby improving alarm efficiency and improving safety of the user.
It should be noted that, the embodiment of the alarm system in this specification and the embodiment of the alarm method applied to the alarm terminal side and the embodiment applied to the alarm receiving terminal in this specification are based on the same inventive concept, so that specific implementation of this embodiment may refer to implementation of the corresponding alarm method, and repeated parts are not described again.
Further, corresponding to the methods shown in fig. 1 to 7, based on the same technical concept, one or more embodiments of the present specification further provide an alarm apparatus for performing the alarm method, as shown in fig. 11.
The alerting devices, which may vary widely in configuration or performance, may include one or more processors 1101 and memory 1102, where the memory 1102 may have one or more stored applications or data stored therein. Wherein memory 1102 may be transient or persistent. The application stored in memory 1102 may include one or more modules (not shown), each of which may include a series of computer-executable instructions for the alarm device. Still further, the processor 1101 may be configured to communicate with the memory 1102 to execute a series of computer-executable instructions in the memory 1102 on the alerting device. The alarm apparatus may also include one or more power supplies 1103, one or more wired or wireless network interfaces 1104, one or more input-output interfaces 1105, one or more keyboards 1106, and the like.
In a particular embodiment, the alert device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the alert device, and the one or more programs configured to be executed by the one or more processors include computer-executable instructions for:
receiving an alarm request sent by a user terminal;
determining plaintext data of a service order corresponding to the alarm request;
and storing plaintext data of the service order corresponding to the alarm request to the block chain so that an alarm receiving terminal accessed to the block chain responds to the alarm request based on the plaintext data.
In one or more embodiments of the present disclosure, both the alarm terminal and the alarm receiving terminal are accessed into the block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain at the first time, so that the alarm receiving terminal accessed into the block chain at the same time can be ensured to view the plaintext data in time, and the alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an police can give an alarm in time based on the plaintext data of the service order corresponding to the alarm request acquired by the alarm receiving terminal, thereby improving alarm efficiency and improving safety of the user.
Optionally, the computer executable instructions, when executed, further comprise computer executable instructions for:
before receiving an alarm request sent by a user terminal, the method further comprises the following steps:
encrypting plaintext data of a service order to obtain ciphertext data of the service order;
and uploading the ciphertext data of the service order to the block chain.
Optionally, when executed, the computer-executable instructions perform encryption processing on plaintext data of a service order to obtain ciphertext data of the service order, where the encryption processing includes:
judging whether the current order execution state of the business order meets preset conditions or not, wherein the preset conditions comprise: generating a business order for the first time, wherein the order execution time reaches at least one of a preset threshold value and business order completion;
if so, encrypting the plaintext data of the service order to obtain ciphertext data of the service order.
Optionally, the computer executable instructions, when executed, determine plaintext data for a service order corresponding to the alert request, comprising:
searching cipher text data of a service order corresponding to the alarm request in the block chain;
and decrypting the ciphertext data of the searched service order to obtain plaintext data of the service order corresponding to the alarm request.
Optionally, the computer executable instructions, when executed, determine plaintext data for a service order corresponding to the alert request, comprising:
determining an order identifier of a business order carried in the alarm request;
and searching plaintext data corresponding to the order identification of the service order in a local database.
Optionally, the computer executable instructions when executed, the clear text data of the service order comprises: at least one item of time-dependent attribute data;
the uploading the ciphertext data of the service order to the block chain includes:
and uploading the latest ciphertext data aiming at the same business order to the block chain according to a preset time interval.
Optionally, when executed, the computer-executable instructions store the plaintext data of the service order corresponding to the alarm request to the blockchain, including:
and storing the latest plaintext data of the service order corresponding to the determined alarm request into a block chain according to a preset time interval.
Optionally, the computer executable instructions, when executed, further comprise computer executable instructions for:
before receiving an alarm request sent by a user terminal, the method further comprises the following steps:
receiving a block link access request;
accessing a blockchain in response to the blockchain access request.
Optionally, when executed, the computer executable instructions enable the service area in charge of the alarm receiving terminal accessing the block chain to be a first service area, and enable the service area in charge of the alarm terminal accessing the block chain to be a second service area;
and the first service area and the second service area meet a preset position relationship.
The alarm device in one or more embodiments of the present specification receives an alarm request sent by a user terminal; determining plaintext data of a service order corresponding to the alarm request; and storing the plaintext data of the service order corresponding to the determined alarm request into the block chain, so that the alarm receiving terminal accessing the block chain responds to the alarm request based on the plaintext data. In one or more embodiments of the present disclosure, both the alarm terminal and the alarm receiving terminal are accessed into the block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain at the first time, so that the alarm receiving terminal accessed into the block chain at the same time can be ensured to view the plaintext data in time, and the alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an police can give an alarm in time based on the plaintext data of the service order corresponding to the alarm request acquired by the alarm receiving terminal, thereby improving alarm efficiency and improving safety of the user.
In another particular embodiment, an alert device includes a memory, and one or more programs, where the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the alert device, and execution of the one or more programs by one or more processors includes computer-executable instructions for:
monitoring order data of a business order stored in a block chain, wherein the order data comprises: ciphertext data of the service order and/or plaintext data of the service order;
if the plaintext data of the service order is stored in the block chain, determining the service order of the plaintext data as a service order corresponding to the alarm request;
and responding to the alarm request based on the plaintext data of the service order corresponding to the alarm request.
In one or more embodiments of the present disclosure, both the alarm terminal and the alarm receiving terminal are accessed into the block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain at the first time, so that the alarm receiving terminal accessed into the block chain at the same time can be ensured to view the plaintext data in time, and the alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an police can give an alarm in time based on the plaintext data of the service order corresponding to the alarm request acquired by the alarm receiving terminal, thereby improving alarm efficiency and improving safety of the user.
Optionally, the computer executable instructions, when executed, further comprise computer executable instructions for:
after responding to the alarm request based on the plaintext data of the service order corresponding to the alarm request, the method further comprises the following steps:
determining decryption demand information aiming at an event to be traced, and uploading the decryption demand information to the block chain;
and acquiring plaintext data of the service order corresponding to the event to be traced, wherein the plaintext data is obtained by decrypting, by the alarm terminal, ciphertext data of the service order corresponding to the event to be traced in the block chain based on the decryption demand information.
Optionally, the computer executable instructions, when executed, further comprise computer executable instructions for:
before the order data of the service order stored in the monitoring block chain, the method further comprises the following steps:
receiving a block link access request;
accessing a blockchain in response to the blockchain access request.
Optionally, when executed, the computer executable instructions enable the service area in charge of the alarm receiving terminal accessing the block chain to be a first service area, and enable the service area in charge of the alarm terminal accessing the block chain to be a second service area;
and the first service area and the second service area meet a preset position relationship.
The alarm device in one or more embodiments of the present specification monitors order data of a service order stored in a block chain; if the plaintext data of the service order is stored in the block chain, determining the service order of the plaintext data as a service order corresponding to the alarm request; and responding to the alarm request based on the plaintext data of the service order corresponding to the alarm request. In one or more embodiments of the present disclosure, both the alarm terminal and the alarm receiving terminal are accessed into the block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain at the first time, so that the alarm receiving terminal accessed into the block chain at the same time can be ensured to view the plaintext data in time, and the alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an police can give an alarm in time based on the plaintext data of the service order corresponding to the alarm request acquired by the alarm receiving terminal, thereby improving alarm efficiency and improving safety of the user.
Further, based on the same technical concept, corresponding to the methods shown in fig. 1 to fig. 7, one or more embodiments of the present specification further provide a storage medium for storing computer-executable instructions, where in a specific embodiment, the storage medium may be a usb disk, an optical disk, a hard disk, and the like, and the storage medium stores computer-executable instructions that, when executed by a processor, implement the following processes:
receiving an alarm request sent by a user terminal;
determining plaintext data of a service order corresponding to the alarm request;
and storing plaintext data of the service order corresponding to the alarm request to the block chain so that an alarm receiving terminal accessed to the block chain responds to the alarm request based on the plaintext data.
In one or more embodiments of the present disclosure, both the alarm terminal and the alarm receiving terminal are accessed into the block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain at the first time, so that the alarm receiving terminal accessed into the block chain at the same time can be ensured to view the plaintext data in time, and the alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an police can give an alarm in time based on the plaintext data of the service order corresponding to the alarm request acquired by the alarm receiving terminal, thereby improving alarm efficiency and improving safety of the user.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further implement the following process:
before receiving an alarm request sent by a user terminal, the method further comprises the following steps:
encrypting plaintext data of a service order to obtain ciphertext data of the service order;
and uploading the ciphertext data of the service order to the block chain.
Optionally, when executed by a processor, the computer-executable instructions stored in the storage medium perform an encryption process on plaintext data of a service order to obtain ciphertext data of the service order, and include:
judging whether the current order execution state of the business order meets preset conditions or not, wherein the preset conditions comprise: generating a business order for the first time, wherein the order execution time reaches at least one of a preset threshold value and business order completion;
if so, encrypting the plaintext data of the service order to obtain ciphertext data of the service order.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, determine plaintext data for a service order corresponding to the alert request, comprising:
searching cipher text data of a service order corresponding to the alarm request in the block chain;
and decrypting the ciphertext data of the searched service order to obtain plaintext data of the service order corresponding to the alarm request.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, determine plaintext data for a service order corresponding to the alert request, comprising:
determining an order identifier of a business order carried in the alarm request;
and searching plaintext data corresponding to the order identification of the service order in a local database.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, cause the clear text data of the service order to comprise: at least one item of time-dependent attribute data;
the uploading the ciphertext data of the service order to the block chain includes:
and uploading the latest ciphertext data aiming at the same business order to the block chain according to a preset time interval.
Optionally, the storing the plain text data of the service order corresponding to the alarm request to the blockchain when the computer-executable instructions stored in the storage medium are executed by the processor includes:
and storing the latest plaintext data of the service order corresponding to the determined alarm request into a block chain according to a preset time interval.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further implement the following process:
before receiving an alarm request sent by a user terminal, the method further comprises the following steps:
receiving a block link access request;
accessing a blockchain in response to the blockchain access request.
Optionally, when executed by the processor, the storage medium stores computer-executable instructions, where a service area in charge of the alarm receiving terminal accessing the block chain is a first service area, and a service area in charge of the alarm receiving terminal accessing the block chain is a second service area;
and the first service area and the second service area meet a preset position relationship.
The storage medium in one or more embodiments of the present specification stores computer-executable instructions that, when executed by the processor, receive an alert request sent by a user terminal; determining plaintext data of a service order corresponding to the alarm request; and storing the plaintext data of the service order corresponding to the determined alarm request into the block chain, so that the alarm receiving terminal accessing the block chain responds to the alarm request based on the plaintext data. In one or more embodiments of the present disclosure, both the alarm terminal and the alarm receiving terminal are accessed into the block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain at the first time, so that the alarm receiving terminal accessed into the block chain at the same time can be ensured to view the plaintext data in time, and the alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an police can give an alarm in time based on the plaintext data of the service order corresponding to the alarm request acquired by the alarm receiving terminal, thereby improving alarm efficiency and improving safety of the user.
In another specific embodiment, the storage medium may be a usb disk, an optical disk, a hard disk, or the like, and the storage medium stores computer executable instructions that, when executed by the processor, implement the following process:
monitoring order data of a business order stored in a block chain, wherein the order data comprises: ciphertext data of the service order and/or plaintext data of the service order;
if the plaintext data of the service order is stored in the block chain, determining the service order of the plaintext data as a service order corresponding to the alarm request;
and responding to the alarm request based on the plaintext data of the service order corresponding to the alarm request.
In one or more embodiments of the present disclosure, both the alarm terminal and the alarm receiving terminal are accessed into the block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain at the first time, so that the alarm receiving terminal accessed into the block chain at the same time can be ensured to view the plaintext data in time, and the alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an police can give an alarm in time based on the plaintext data of the service order corresponding to the alarm request acquired by the alarm receiving terminal, thereby improving alarm efficiency and improving safety of the user.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further implement the following process:
after responding to the alarm request based on the plaintext data of the service order corresponding to the alarm request, the method further comprises the following steps:
determining decryption demand information aiming at an event to be traced, and uploading the decryption demand information to the block chain;
and acquiring plaintext data of the service order corresponding to the event to be traced, wherein the plaintext data is obtained by decrypting, by the alarm terminal, ciphertext data of the service order corresponding to the event to be traced in the block chain based on the decryption demand information.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further implement the following process:
before the order data of the service order stored in the monitoring block chain, the method further comprises the following steps:
receiving a block link access request;
accessing a blockchain in response to the blockchain access request.
Optionally, when executed by the processor, the storage medium stores computer-executable instructions, where a service area in charge of the alarm receiving terminal accessing the block chain is a first service area, and a service area in charge of the alarm receiving terminal accessing the block chain is a second service area;
and the first service area and the second service area meet a preset position relationship.
The storage medium in one or more embodiments of the present specification stores computer-executable instructions that, when executed by the processor, monitor order data for a business order stored in a blockchain; if the plaintext data of the service order is stored in the block chain, determining the service order of the plaintext data as a service order corresponding to the alarm request; and responding to the alarm request based on the plaintext data of the service order corresponding to the alarm request. In one or more embodiments of the present disclosure, both the alarm terminal and the alarm receiving terminal are accessed into the block chain, and the alarm terminal stores plaintext data of a service order corresponding to an alarm request to the block chain at the first time, so that the alarm receiving terminal accessed into the block chain at the same time can be ensured to view the plaintext data in time, and the alarm request of a user is transmitted to the alarm receiving terminal in real time, so that an police can give an alarm in time based on the plaintext data of the service order corresponding to the alarm request acquired by the alarm receiving terminal, thereby improving alarm efficiency and improving safety of the user.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Language Description Language), traffic, pl (core unified Programming Language), Cal, jhdware Description Language, langua, mylar, pams, Hardware (Hardware Description Language), langva, Lola, HDL, palmware, Hardware (Hardware Description Language), VHDL (Hardware Description Language), and the like, which are currently used in the most popular languages. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the various elements may be implemented in the same one or more software and/or hardware implementations of one or more of the present descriptions.
As will be appreciated by one skilled in the art, one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied in the medium.
One or more of the present specification has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to one or more embodiments of the specification. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied in the medium.
One or more of the present specification can be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more of the present specification can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is merely illustrative of one or more embodiments of the present disclosure and is not intended to limit one or more embodiments of the present disclosure. Various modifications and alterations to one or more of the present descriptions will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of one or more of the present specification should be included in the scope of one or more claims of the present specification.

Claims (19)

1. An alarm method is applied to an alarm terminal of an access block chain, and the method comprises the following steps:
receiving an alarm request sent by a user terminal;
determining plaintext data of a service order corresponding to the alarm request; the plaintext data is obtained by searching from a local database according to the order identification of the service order carried in the alarm request;
and storing the plaintext data of the service order corresponding to the alarm request to the block chain, so that an alarm receiving terminal accessed to the block chain responds to the alarm request based on the plaintext data.
2. The method of claim 1, prior to receiving the alert request sent by the user terminal, further comprising:
encrypting plaintext data of a service order to obtain ciphertext data of the service order;
and uploading the ciphertext data of the service order to the block chain.
3. The method according to claim 2, wherein the encrypting plaintext data of a service order to obtain ciphertext data of the service order comprises:
judging whether the current order execution state of the business order meets preset conditions or not, wherein the preset conditions comprise: generating a business order for the first time, wherein the order execution time reaches at least one of a preset threshold value and business order completion;
if so, encrypting the plaintext data of the service order to obtain ciphertext data of the service order.
4. The method of claim 1, the determining plaintext data for a service order corresponding to the alert request, comprising:
determining an order identifier of a business order carried in the alarm request;
and searching plaintext data corresponding to the order identification of the service order in a local database.
5. The method of claim 2, the clear text data of the service order comprising: at least one item of time-dependent attribute data;
the uploading the ciphertext data of the service order to the block chain includes:
and uploading the latest ciphertext data aiming at the same business order to the block chain according to a preset time interval.
6. The method of claim 5, wherein storing the plaintext data for the service order corresponding to the alert request to the blockchain comprises:
and storing the latest plaintext data of the service order corresponding to the determined alarm request to a block chain according to a preset time interval.
7. The method according to any one of claims 1 to 6, further comprising, before receiving the alert request sent by the user terminal:
receiving a block link access request;
accessing a blockchain in response to the blockchain access request.
8. The method of claim 7, wherein a service area for which an alarm receiving terminal accessing the blockchain is responsible is a first service area, and a service area for which an alarm terminal accessing the blockchain is responsible is a second service area;
and the first service area and the second service area meet a preset position relationship.
9. An alarm method is applied to an alarm receiving terminal of an access block chain, and the method comprises the following steps:
monitoring order data of a business order stored in the blockchain, wherein the order data comprises: ciphertext data of the service order and/or plaintext data of the service order;
if the plaintext data of the service order is stored in the block chain, determining the service order of the plaintext data as a service order corresponding to the alarm request; the alarm terminal accessing the block chain with the plaintext data is obtained by searching from a local database according to the order identification of the service order, and the alarm terminal stores the block chain after receiving an alarm request of the user terminal;
and responding to the alarm request based on the plaintext data of the service order corresponding to the alarm request.
10. The method of claim 9, further comprising, after responding to the alert request based on plaintext data for a service order corresponding to the alert request:
determining decryption demand information aiming at an event to be traced, and uploading the decryption demand information to the block chain;
and acquiring plaintext data of the service order corresponding to the event to be traced, wherein the plaintext data is obtained by decrypting, by the alarm terminal, ciphertext data of the service order corresponding to the event to be traced in the block chain based on the decryption demand information.
11. The method of claim 9, further comprising, prior to monitoring order data for business orders stored in the blockchain:
receiving a block link access request;
accessing a blockchain in response to the blockchain access request.
12. The method of claim 11, wherein a service area for which an alarm receiving terminal accessing the blockchain is responsible is a first service area, and a service area for which an alarm terminal accessing the blockchain is responsible is a second service area;
and the first service area and the second service area meet a preset position relationship.
13. An alarm device is arranged at an alarm terminal of an access block chain, and the device comprises:
the alarm request receiving module is used for receiving an alarm request sent by a user terminal;
the order plaintext determining module is used for determining plaintext data of the service order corresponding to the alarm request; the plaintext data is obtained by searching from a local database according to the order identification of the service order carried in the alarm request;
and the order plaintext storage module is used for storing plaintext data of the service order corresponding to the alarm request to the block chain so that an alarm receiving terminal accessed to the block chain responds to the alarm request based on the plaintext data.
14. An alarm device is arranged at an alarm receiving terminal of an access block chain, and the device comprises:
an order data monitoring module, configured to monitor order data of the service order stored in the block chain, where the order data includes: ciphertext data of the service order and/or plaintext data of the service order;
the service order determining module is used for determining the service order of the plaintext data as a service order corresponding to the alarm request if the plaintext data of the service order is stored in the block chain; the alarm terminal accessing the block chain with the plaintext data is obtained by searching from a local database according to the order identification of the service order, and the alarm terminal stores the block chain after receiving an alarm request of the user terminal;
and the alarm request response module is used for responding to the alarm request based on the plaintext data of the service order corresponding to the alarm request.
15. An alarm system, the system comprising: the system comprises an alarm terminal and an alarm receiving terminal; the alarm terminal and the alarm receiving terminal are both connected to a block chain;
the alarm terminal is used for receiving an alarm request sent by a user terminal; determining plaintext data of a service order corresponding to the alarm request; storing the plain text data of the service order corresponding to the alarm request to the block chain; the plaintext data is obtained by searching from a local database according to the order identification of the service order carried in the alarm request;
the alarm receiving terminal is configured to monitor order data of the service order stored in the block chain, where the order data includes: ciphertext data of the service order and/or plaintext data of the service order; if the plaintext data of the service order is stored in the block chain, determining the service order of the plaintext data as a service order corresponding to the alarm request; and responding to the alarm request based on the plaintext data of the service order corresponding to the alarm request.
16. An alarm device, the device comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
receiving an alarm request sent by a user terminal;
determining plaintext data of a service order corresponding to the alarm request; the plaintext data is obtained by searching from a local database according to the order identification of the service order carried in the alarm request;
and storing the plaintext data of the service order corresponding to the alarm request to a block chain, so that an alarm receiving terminal accessing the block chain responds to the alarm request based on the plaintext data.
17. An alarm device, the device comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
monitoring order data of a business order stored in a block chain, wherein the order data comprises: ciphertext data of the service order and/or plaintext data of the service order;
if the plaintext data of the service order is stored in the block chain, determining the service order of the plaintext data as a service order corresponding to the alarm request; the alarm terminal accessing the block chain with the plaintext data is obtained by searching from a local database according to the order identification of the service order, and the alarm terminal stores the block chain after receiving an alarm request of the user terminal;
and responding to the alarm request based on the plaintext data of the service order corresponding to the alarm request.
18. A storage medium storing computer-executable instructions that, when executed, implement the following:
receiving an alarm request sent by a user terminal;
determining plaintext data of a service order corresponding to the alarm request; the plaintext data is obtained by searching from a local database according to the order identification of the service order carried in the alarm request;
and storing the plaintext data of the service order corresponding to the alarm request to a block chain, so that an alarm receiving terminal accessing the block chain responds to the alarm request based on the plaintext data.
19. A storage medium storing computer-executable instructions that, when executed, implement the following:
monitoring order data of a business order stored in a block chain, wherein the order data comprises: ciphertext data of the service order and/or plaintext data of the service order;
if the plaintext data of the service order is stored in the block chain, determining the service order of the plaintext data as a service order corresponding to the alarm request; the alarm terminal accessing the block chain with the plaintext data is obtained by searching from a local database according to the order identification of the service order, and the alarm terminal stores the block chain after receiving an alarm request of the user terminal;
and responding to the alarm request based on the plaintext data of the service order corresponding to the alarm request.
CN201811434538.8A 2018-11-28 2018-11-28 Alarm method, device and system Active CN109493564B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201811434538.8A CN109493564B (en) 2018-11-28 2018-11-28 Alarm method, device and system
TW108131636A TWI723525B (en) 2018-11-28 2019-09-03 Alarm method, device and system
PCT/CN2019/111522 WO2020108145A1 (en) 2018-11-28 2019-10-16 Alarm method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811434538.8A CN109493564B (en) 2018-11-28 2018-11-28 Alarm method, device and system

Publications (2)

Publication Number Publication Date
CN109493564A CN109493564A (en) 2019-03-19
CN109493564B true CN109493564B (en) 2020-06-16

Family

ID=65698043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811434538.8A Active CN109493564B (en) 2018-11-28 2018-11-28 Alarm method, device and system

Country Status (3)

Country Link
CN (1) CN109493564B (en)
TW (1) TWI723525B (en)
WO (1) WO2020108145A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109493564B (en) * 2018-11-28 2020-06-16 阿里巴巴集团控股有限公司 Alarm method, device and system
CN110266644B (en) * 2019-05-20 2021-04-06 创新先进技术有限公司 Receipt storage method and node combining code marking and transaction types
CN110365685A (en) * 2019-07-18 2019-10-22 恒生电子股份有限公司 A kind of data processing method, device, equipment and computer readable storage medium
CN110601891B (en) * 2019-09-16 2021-12-28 腾讯科技(深圳)有限公司 Alarm processing method and related device
CN110798807B (en) * 2019-11-06 2020-12-22 北京海益同展信息科技有限公司 Method, apparatus, computer device and medium for recording vehicle trajectory
CN112101289A (en) * 2020-09-25 2020-12-18 北京市商汤科技开发有限公司 Service providing method and device, computer equipment and storage medium

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2258338C (en) * 1999-01-11 2009-02-24 Certicom Corp. Method and apparatus for minimizing differential power attacks on processors
JP3996428B2 (en) * 2001-12-25 2007-10-24 松下電器産業株式会社 Abnormality detection device and abnormality detection system
TWM248672U (en) * 2003-07-22 2004-11-01 Wen-Li Jang Dispatch and anti-thief system for automobile
TW200634572A (en) * 2005-03-17 2006-10-01 Chunghwa Telecom Co Ltd Central abnormality monitoring and warning method used in satellite positioning taxi dispatching service
CN102117532B (en) * 2009-12-31 2014-03-19 厦门雅迅网络股份有限公司 Method for pre-alarming illegal gathering of taxis based on GPS (global positioning system)
US11176519B2 (en) * 2016-11-11 2021-11-16 International Business Machines Corporation Smart contract admission check and fault tolerance in a blockchain
CN107122838B (en) * 2017-04-21 2021-06-25 杭州趣链科技有限公司 Intelligent network car booking system and method based on block chain technology
CN107358301A (en) * 2017-05-27 2017-11-17 上海与德科技有限公司 A kind of net about car monitoring method and system, vehicle-mounted monitoring equipment
CN107294709A (en) * 2017-06-27 2017-10-24 阿里巴巴集团控股有限公司 A kind of block chain data processing method, apparatus and system
CN108648079A (en) * 2018-05-02 2018-10-12 北京阿尔山金融科技有限公司 Block chain node monitoring method, apparatus and system
CN108777703A (en) * 2018-05-15 2018-11-09 维沃移动通信有限公司 A kind of abnormal behaviour processing method and system based on block chain
CN108734931A (en) * 2018-05-22 2018-11-02 海能达通信股份有限公司 A kind of police strength sends method, apparatus and equipment
CN109493564B (en) * 2018-11-28 2020-06-16 阿里巴巴集团控股有限公司 Alarm method, device and system

Also Published As

Publication number Publication date
WO2020108145A1 (en) 2020-06-04
TW202020816A (en) 2020-06-01
CN109493564A (en) 2019-03-19
TWI723525B (en) 2021-04-01

Similar Documents

Publication Publication Date Title
CN109493564B (en) Alarm method, device and system
CN111539813B (en) Method, device, equipment and system for backtracking processing of business behaviors
CN107862215B (en) Data storage method, data query method and device
CN108932297B (en) Data query method, data sharing method, device and equipment
KR102200790B1 (en) Login information processing method and device
CN110895611B (en) Data query method, device, equipment and system based on privacy information protection
US20220035922A1 (en) Blockchain-based data processing method, apparatus, and device
CN109583224B (en) User privacy data processing method, device, equipment and system
CN111881386B (en) Page access method, device and system based on code scanning operation
CN111601293B (en) Positioning method and device based on Bluetooth beacon equipment
CN111193597B (en) Transmission method, device, equipment and system capable of verifying statement
CN112214519B (en) Data query method, device, equipment and readable medium
CN112435105A (en) Rental risk assessment method, device, equipment and system based on block chain
CN113076527A (en) Block chain-based digital asset processing method and device
CN112287376A (en) Method and device for processing private data
CN112182506A (en) Data compliance detection method, device and equipment
CN108694333B (en) User information processing method and device
CN114638005A (en) Data processing method, device and system based on block chain and storage medium
CN114091062A (en) Occupational data processing method and device
CN111368328A (en) Data storage method and device, computer readable storage medium and electronic equipment
CN110992039B (en) Transaction processing method, device and equipment
CN112788151A (en) Data synchronization method, device and system
CN111737304A (en) Processing method, device and equipment of block chain data
CN110866274A (en) Data fusion method, data fusion platform, data fusion system and data processing platform
US20240129288A1 (en) Privacy-protection based verification

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40005612

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201012

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201012

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.

TR01 Transfer of patent right