CN110868499A - Ticket generating, inquiring and checking method, device and equipment, and storage medium - Google Patents

Ticket generating, inquiring and checking method, device and equipment, and storage medium Download PDF

Info

Publication number
CN110868499A
CN110868499A CN201810983583.2A CN201810983583A CN110868499A CN 110868499 A CN110868499 A CN 110868499A CN 201810983583 A CN201810983583 A CN 201810983583A CN 110868499 A CN110868499 A CN 110868499A
Authority
CN
China
Prior art keywords
information
information block
communication record
value
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810983583.2A
Other languages
Chinese (zh)
Other versions
CN110868499B (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.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201810983583.2A priority Critical patent/CN110868499B/en
Publication of CN110868499A publication Critical patent/CN110868499A/en
Application granted granted Critical
Publication of CN110868499B publication Critical patent/CN110868499B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/22Arrangements for supervision, monitoring or testing
    • H04M3/2218Call detail recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3297Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving time stamps, e.g. generation of time stamps

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the disclosure discloses a method, a device, equipment and a storage medium for generating, checking and inquiring a call ticket, wherein the method comprises the following steps: acquiring communication record information generated by a user in a time window; calculating the communication record information by adopting a specific function to obtain a unique calculation value; acquiring a timestamp of an information block of the call ticket; and generating the information block according to the timestamp of the information block, the unique operation value and the communication record information.

Description

Ticket generating, inquiring and checking method, device and equipment, and storage medium
Technical Field
The disclosed embodiments relate to, but not limited to, a telephone charge billing technology, and in particular, to a method, an apparatus, and a storage medium for generating, querying, and verifying a telephone bill.
Background
The objectivity and authenticity of the call charge expenditure are seriously worried by the user. It is necessary to provide a real and reliable way of storing the telephone fee to restore the trust level of the user to the operator and establish a good customer relationship.
Disclosure of Invention
In view of this, embodiments of the present disclosure provide a method, an apparatus, and a storage medium for generating, querying, and verifying a ticket to solve at least one problem in the prior art.
An embodiment of the present disclosure provides a method for generating a ticket, where the method includes:
acquiring communication record information generated by a user in a time window;
calculating the communication record information by adopting a specific function to obtain a unique calculation value;
acquiring a timestamp of an information block of the call ticket;
and generating the information block according to the timestamp of the information block, the unique operation value and the communication record information.
Another embodiment of the present disclosure provides a method for checking a ticket, where the method includes:
a checking unit or a system receives an information block sent by first equipment; the information block comprises a unique operation value, a first information block identification and a second information block identification; wherein the second information block identifier is an identifier of a previous information block;
and when the first information block identification is verified to be smaller than a third threshold value, linking the information block to the information block which takes the second information block identification as the first information block identification.
Another embodiment of the present disclosure provides a method for querying a ticket, where the method includes:
a user sends a ticket query request to a system;
receiving a first query result and an encrypted check address sent by a system, wherein the first query result comprises an information unit set of the user;
obtaining a second query result according to the encrypted check address, wherein the second query result comprises an operation value P corresponding to the information unit set of the user;
calculating the information unit set of the user by adopting a specific function to obtain a check calculation value;
verifying the operation value in the second query result by using the verification operation value to obtain a verification result;
and determining the authenticity of the first query result by using the verification result.
Another embodiment of the present disclosure provides a call ticket generating apparatus, where the apparatus includes:
the first acquisition unit is used for acquiring communication record information generated by a user in a time window;
the first arithmetic unit is used for calculating the communication record information by adopting a specific function to obtain a unique calculation value;
the second acquisition unit is used for acquiring the timestamp of the information block of the call ticket;
and the generating unit is used for generating the information block according to the timestamp of the information block, the unique operation value and the communication record information.
Another embodiment of the present disclosure provides a ticket checking device, where the device includes:
a first receiving unit, configured to receive an information block sent by a first device; the information block comprises a unique operation value, a first information block identification and a second information block identification; wherein the second information block identifier is an identifier of a previous information block;
the first checking unit is used for checking whether the first information block identifier in the information block is less than or equal to a third threshold value F and checking the unique operation value;
and the linking unit is used for checking that the first information block identifier in the information block is smaller than a third threshold value, and when the first information block identifier passes the checking, linking the information block to the position behind the information block taking the second information block identifier as the first information block identifier.
Another embodiment of the present disclosure provides a ticket query apparatus, where the apparatus includes:
a third sending unit, configured to send a ticket query request to the system;
a third receiving unit, configured to receive a first query result and an encrypted check address sent by a system, where the first query result includes an information unit set of the user;
a fourth obtaining unit, configured to obtain a second query result according to the encrypted check address, where the second query result includes an operation value P corresponding to the information unit set of the user;
the fourth operation unit is used for operating the information unit set of the user by adopting a specific function to obtain a check operation value;
the second checking unit is used for checking the operation value in the second query result by using the checking operation value to obtain a checking result;
a determining unit, configured to determine authenticity of the first query result using the verification result.
Yet another embodiment of the present disclosure provides a computer device, including a memory and a processor, where the memory stores a computer program that can be run on the processor, and the processor implements the steps in the ticket generating method when executing the program, or implements the steps in the ticket checking method when executing the program, or implements the steps in the ticket querying method when executing the program.
Yet another embodiment of the present disclosure provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the above-mentioned call ticket generating method, or the steps in the above-mentioned call ticket checking method, or the steps in the above-mentioned call ticket querying method.
The embodiment of the disclosure provides a method, a device and a storage medium for generating, inquiring and checking a call ticket, wherein communication record information generated by a user in a time window is acquired; calculating the communication record information by adopting a specific function to obtain a unique calculation value; acquiring a timestamp of an information block of the call ticket; generating the information block according to the timestamp of the information block, the unique operation value and the communication record information; therefore, the unique characteristic of the operation value is obtained after the specific function is used for operating the communication record information, the storage of the ticket is guaranteed to be not falsifiable, and the user trust is improved.
Drawings
Fig. 1 is a schematic diagram of an implementation flow of a call ticket generation method according to an embodiment of the disclosure;
fig. 2 is a schematic structural diagram of a composition of an information pool to be recorded according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a structure of an operation value feature tree according to an embodiment of the present disclosure;
fig. 4A is a schematic diagram of a composition structure of a ticket generating apparatus according to an embodiment of the disclosure;
fig. 4B is a schematic diagram of a composition structure of the ticket checking apparatus according to the embodiment of the disclosure;
fig. 4C is a schematic diagram of a composition structure of the ticket query apparatus according to the embodiment of the disclosure;
fig. 5 is a schematic diagram of a hardware entity of a computer device according to an embodiment of the present disclosure.
Detailed Description
The technical solution of the present disclosure is further elaborated below with reference to the drawings and the embodiments.
The embodiment provides a ticket generating method, which is applied to a first device, and functions implemented by the method can be implemented by calling a program code through a processor in the first device, where the program code can be stored in a computer storage medium.
Fig. 1 is a schematic view of an implementation flow of a call ticket generating method according to an embodiment of the disclosure, as shown in fig. 1, the method includes:
step S101, acquiring communication record information generated by a user in a time window;
here, the time window is a unit of time or a unit of time, such as one hour, one day, one week, or one month, in which the communication record information is recorded. The query time window may be an integer multiple of one time window.
Step S102, a specific function is adopted to operate the communication record information to obtain a unique operation value;
here, the specific function is a one-way encryption function, a hash function, or an elliptic function.
Step S103, acquiring a timestamp of an information block of the call ticket;
here, the current time may be obtained as a timestamp of the information block of the ticket, and the current time may be a time for generating the information block. In other embodiments, the obtaining the timestamp of the information block of the ticket includes: and acquiring the current time, and using the current time or the current time superposition deviation value as the timestamp of the information block of the ticket.
And step S104, generating the information block according to the time stamp of the information block, the unique operation value and the communication record information.
In other embodiments, the obtaining the communication record information generated by the user in the time window includes:
acquiring communication record information generated by one or more users in a time window from an information pool to be recorded; the information pool to be recorded is used for storing communication record information which is not recorded yet.
In other embodiments, the operating the communication record information with a specific function includes: and calculating the communication record of the user by adopting a specific function to obtain a unique calculation value, wherein the specific function is a one-way encryption function, a hash function or an elliptic function.
The acquiring of the communication record information generated by the user in the time window comprises: and calculating the mobile phone number, IMSI, ID card number or name of the user by adopting a specific function to obtain the user identification, and acquiring the communication record information generated by the user in a time window from an information pool to be recorded according to the user identification, wherein the information pool to be recorded is used for storing the communication record information which is not recorded yet.
In other embodiments, the communication record information includes at least one of the following:
the service type, the voice service, the voice call calling party, the voice call called party, the voice call start time, the voice call duration, the video call service, the video call calling party, the video call called party, the video call origination time, the video call duration, the data service access APP name, the data service access HTTP address, the data service origination time, the data service usage duration, the data service usage traffic, the short message service, the short message sender, the short message receiver, the short message sending time, the multimedia message service, the multimedia message sender, the multimedia message receiver, the multimedia message sending time, the value added service name, the value added service charge time, the collection service name, and the collection service charge.
In other embodiments, the performing the operation on the communication record information by using a specific function to obtain a unique operation value includes:
determining the total number of information units in the communication record information;
performing first-layer calculation, pairing the information units pairwise, and calculating each pairing to obtain a first calculation value;
performing second-layer calculation, pairing the first calculation values pairwise, and calculating each pairing to obtain a second calculation value;
repeating the steps until a unique operation value is obtained;
and when the number of the values to be calculated in the Nth layer of calculation is determined to be singular, copying the last value to be calculated, and matching the last value to be calculated for calculation.
In other embodiments, the performing the operation on the communication record information by using a specific function to obtain a unique operation value includes:
step S11, determining the total number N of information units in the communication record information;
and step S12, if the N is less than or equal to a preset first threshold value M, calculating N information units in the communication record information by using a specific function to obtain a unique calculation value.
In other embodiments, the performing the operation on the communication record information by using a specific function to obtain a unique operation value includes:
step S21, determining the total number N of information units in the communication record information;
step S22, if N is larger than a preset first threshold value M, grouping information units in the communication record information to obtain k groups of information units;
step S23, calculating k groups of information units in the communication record information by using a specific function to obtain a second calculation value corresponding to each group of information units;
step S24, determining the unique operation value according to the k second operation values.
In other embodiments, the grouping information units in the communication record information includes: grouping is performed according to the type of the information units contained in the communication record information, or the information units in the communication record information are grouped together.
In other embodiments, the uniformly grouping information units in the communication record information includes:
information units in communication record information are randomly divided into k groups according to N mod M, wherein N is the number of the information units contained in the communication record information, M is the number of the information units contained in each group at most, the 1 st to (k-1) th groups contain M information units, and the number of the information units contained in the k group is less than M.
In other embodiments, the method further comprises:
step S31, if the number L of information units contained in the kth group of information units is less than M, filling (M-L) 0 or (M-L) Lth information units in the kth group, and complementing the kth group of information units to M information units;
and step S32, computing the complemented kth group of information units by using a specific function to obtain a second computation value corresponding to the kth group of information units.
In other embodiments, said determining said unique operation value from said k second operation values comprises:
step S41, if k is less than or equal to a preset second threshold value P, k second operation values are operated by adopting a specific function to obtain the only operation value;
step S42, if k is larger than a preset second threshold value P, randomly dividing k second operation values into Q groups according to k mod P, wherein the 1 st to (Q-1) th groups all contain P second operation values, and if the number L of the second operation values contained in the Q group is less than or equal to P;
step S43, computing the Q groups of second computation values by adopting a specific function to obtain Q third computation values;
step S44, determining the unique operation value according to the Q third operation values.
In other embodiments, the generating the information block according to the timestamp of the information block, the unique operation value, and the communication record information includes:
step S51, determining a first information block identifier according to the timestamp of the information block, a second information block identifier, the communication record information and the unique operation value; wherein the second information block identification is an identification of a previous information block;
step S52, generating the information block according to the timestamp of the information block, the unique operation value, the communication record information, the first information block identifier, and the second information block identifier.
In other embodiments, the determining the first information block identifier according to the timestamp of the information block, the second information block identifier, the communication record information, and the unique operation value includes:
step S61, according to the timestamp, the identification of the previous information block, the communication record information, the unique operation value and the supplementary field, performing a fourth operation to obtain a fourth operation value;
step S62, determining a difference between the fourth operation value and a third threshold value obtained from the system;
step S63, determining a supplementary field according to the difference;
step S64, determining the supplementary field, the timestamp, the second information block identifier, the address record information, and the unique operation value as a first information block identifier.
In other embodiments, the method further comprises: and changing the content of the supplementary field, and performing fourth operation according to the timestamp, the identifier of the previous information block, the communication record information, the unique operation value and the supplementary field until a fourth operation value smaller than a third threshold value is obtained.
In other embodiments, the method further comprises: the first device sends the generated information block to the system.
The present embodiment provides a ticket checking method, which is applied to a checking unit or system (where the system may be understood as a server of a terminal), where the function implemented by the method may be implemented by a processor in the checking unit or system calling a program code, and of course, the program code may be stored in a computer storage medium, and thus, the checking unit or system at least includes the processor and the storage medium.
The ticket checking method comprises the following steps:
step S111, a checking unit or a system receives an information block sent by first equipment; the information block comprises a unique operation value, a first information block identification and a second information block identification; wherein the second information block identifier is an identifier of a previous information block;
step S112, when the first information block identifier in the information block is checked to be smaller than the third threshold and the first information block identifier is checked to pass, the information block is linked to the information block having the second information block identifier as the first information block identifier.
In other embodiments, the information block further comprises a timestamp of the information block, the communication record information, and a supplemental field; correspondingly, the checking the first information block identifier includes: calculating an information unit of the communication record information, the unique calculation value, the second information block identifier, the timestamp and the supplementary field by using a specific function to obtain a fifth calculation value; and if the fifth operation value is the same as the first information block identifier, the verification is passed.
In other embodiments, the method further comprises:
step S121, a system receives a call ticket query request sent by a user; the call ticket query request comprises the identity of the user, a query time window and an information unit item to be queried, wherein the length of the query time window comprises at least one time window; the information unit item to be inquired is the category identification of the information unit;
step S122, the system acquires the information unit set of the user according to the identity of the user and the query time window and the information unit items to be queried;
step S123, using the information unit set of the user as a first query result, and encrypting the check address of the first query result by using the public key of the user;
and step S124, sending the encrypted verification address and the first query result to the user and sending the verification address and the first query result to the user.
The embodiment provides a call ticket query method, which comprises the following steps:
step S131, a user sends a ticket query request to a system;
step S132, receiving a first query result and an encrypted check address sent by a system, wherein the first query result comprises an information unit set of the user;
step S133, obtaining a second query result according to the encrypted check address, where the second query result includes an operation value P corresponding to the information unit set of the user;
step S134, a specific function is adopted to calculate the information unit set of the user to obtain a check calculation value;
step S135, checking the operation value in the second query result by using the checking operation value to obtain a checking result;
and step S136, determining the authenticity of the first query result by using the verification result.
In other embodiments, the obtaining a second query result according to the encrypted check address includes: decrypting the encrypted check address by using a private key of the user to obtain a decrypted check address; and obtaining a second query result according to the decrypted check address.
The embodiment of the disclosure provides a call ticket processing method, which comprises the following steps:
step S301, a first device acquires first information generated by a user of a first user identifier in a time window;
here, there may be one or more users of the first subscriber identity.
The first device is a core network charging unit with a PDN-GW or similar function, or a call ticket storage information block generation device, or a functional body deployed on an edge computing unit, or an information storage unit of a third party;
the first user identification is a first operation value obtained by performing a first operation according to the mobile phone number or IMSI of the user, and the first operation is a one-way encryption function operation, a hash function operation or an elliptic function operation;
the time window is a recording time window of the first information, such as one hour, one day, one week or one month;
the first information comprises the related information of the call ticket of the user of the first user identification in a time window;
the first information is acquired by first equipment from an information pool to be recorded, the first equipment broadcasts first information of users of first user identifications which are not recorded to other first equipment, and the other first equipment stores the first information of the users of the first user identifications which are not recorded in the information pool to be recorded; as shown in fig. 2, the information pool to be recorded includes the related information of the call tickets of a plurality of users.
Step S302, the first equipment carries out grouping operation on information units in the first information;
1) the information content in the first information is as follows, and the information unit in the first information is a record of one of the following contents;
the voice call recording includes: information of calling party, called party, call initiation time, call duration and the like
The video call record comprises: information of calling party, called party, call initiation time, call duration and the like
The data service record includes: initiating one or more of a data service APP name, data service using time, data service using duration, data service using traffic, an accessed server address, and an accessed website address;
the short message recording comprises the following steps: sending time, a sender and a receiver;
the multimedia message record comprises: sending time, a sender and a receiver;
the value added service comprises the following steps: value added service name, service fee and charging time;
the collecting service comprises the following steps: collecting the name of the service, the service fee and the charging time;
2) grouping and calculating the information units in the first information, wherein the grouping can be performed according to the type of the information units contained in the first information, or all the information units can be uniformly grouped, and the specific method comprises the following steps:
assuming that the number of information units contained in the first information is N, and the number of information units contained in each group is M, randomly dividing the unit information in the first information into k groups according to N mod M, wherein the 1 st to (k-1) groups all contain M information units, and the number of information units contained in the k group is less than M (in an extreme case, directly performing a second operation on the N information units to obtain a final calculated value R);
performing second operation on k groups of information units in the first information to obtain second operation values corresponding to each group of information units; if the number of the information units contained in the k groups of information units is L, and L is less than M, filling M-L0 information units in the k groups, and complementing the M information units to perform a second operation; the second operation is one-way encryption function operation, hash function operation or elliptic function operation; the second operation value is a unique numerical value corresponding to the content of each group of information units in the k groups of information units, and whether the content of the corresponding group of information units is tampered (the call ticket is tampered by an operator) can be obtained by checking k;
3) the first device performs grouping operation on the second operation value, and the specific method is as follows:
dividing the k second operation values into Q groups randomly according to k mod P, wherein the groups 1-Q-1 all contain P second operation values, and if the number of the second operation values contained in the Q groups is less than P, 0 is complemented, and the method is the same as the step 2;
performing third operation on the Q groups of second operation values to obtain Q third operation values; in other embodiments, P may be the same as M, i.e. the grouping calculation is performed on k sets of second operation values again according to step 2).
4) And repeating the step 3) until the first device obtains the unique calculated value R, wherein the algorithm adopts a manner similar to a binary tree, and as shown in fig. 3, whether the content of the information unit corresponding to any branch is tampered can be obtained by checking the calculated value on the branch. For example, it can be described whether the unit 1 and the unit 2 are tampered by checking the second operation value 1, and whether the unit 1, the unit 2, the unit 3, and the unit 4 are tampered by checking the third operation value 1.
Step S303, the first device generates a first information block;
the content of the information block is as follows:
the first information block identification: performing a third operation on a calculated value and a filling field which are calculated and obtained by each information unit in the first information of the user of the first information block generation timestamp, the second information block identification and the first user identification;
time stamp of first information block: generating current time corresponding to the information block;
the second information block identification: the second information block is the mark of the information block released by the system before the first information block
Unique calculation value obtained by calculating each information unit in first information of user of first user identification
Filling a field: a value of variable length;
the individual information units in the first information of the user (the first information block identity no longer calculates the information units in the specific first information).
Note: because hash functions and the like have the characteristics of being irreversible and unique in calculated value (different operation results can be obtained when input contents are different and the hash functions have the property of preventing falsification), other system equipment or users can check whether the ticket information is real or not and whether the ticket information is falsified or not (if the content of a certain information unit is falsified, the corresponding calculated value can be changed, so that the calculation result of the corresponding parent node on the feature tree of the calculated value can be changed, the final first information block identification can be changed, and which information block content is falsified can be traced according to the change of the calculated value).
Step S304, the first device sends the first information block to the system;
step S305, a second device checks the first information block, wherein the second device is a checking unit assigned by a system or a distributed checking node on the system;
in the implementation process, the implementation process of step S305 includes:
1) checking whether the first device has the right to issue the first block of information: the second device checks whether the first information block identifier meets the requirement of a threshold F set by a system, and the method comprises the following steps:
the second equipment calculates a unique calculation value and a filling field which are obtained by calculating each information unit in the timestamp of the first information block, the second information block identifier and the first information of the user of the first user identifier to obtain a calculation value;
when the second device judges that the calculated value is equal to the first information block identifier and the first information block identifier is smaller than or equal to a threshold value F, the first information block identifier is confirmed to meet the release requirement;
2) checking whether the first device has tampered the information contained in the first information block:
and when the calculated value is the same as the calculated value obtained by calculating each information unit in the first information of the user of the first user identifier contained in the first information block, the first device confirms that the information contained in the first information block is not tampered.
3) The second device stores the first information block meeting the two requirements into the system information queue and links to the information block containing the second information block identification.
1) And checking whether the first information block identifier meets the requirement of a threshold F set by a system, wherein the specific method comprises the following steps: when the first information block identifier is less than or equal to the threshold value F, confirming that the first information block identifier is satisfactory;
2) checking whether the first information block identification meets the requirement of the operation format, and confirming that the second equipment meets the requirement of the operation format when the operation value is the same as the first information block identification;
3) the second device stores the first information block meeting the two requirements into the system information queue and links to the information block containing the second information block identification.
The following provides an information query and verification method, which comprises the following steps:
step S311, the user of the first user identification submits a query request of first information to the system, and the identity identification and public key or digital signature of the user containing the first user identification, a query time window and an information unit item to be queried; when the user and the identity of the first user identity are different from the identity of the user of the first user identity stored in the first device, identity mapping is required.
Here, the system may be considered as a server of the first device, or may be considered as a server of the user terminal;
for example, the user identifier of the first user identifier adopted by the first device is an IMSI, and the identifier submitted to the system by the user of the first user identifier is a mobile phone number, the system needs to map the mobile phone number as the IMSI, so that the identifiers are unified to ensure the accuracy of the query information.
The identity identification comprises IMSI or a mobile phone number, or an operation value obtained by carrying out first operation on the IMSI or the mobile phone number, or an address which can be accessed through a private key of a user of the first user identification;
the public key or digital signature being obtained by performing a specific cryptographic operation on a private key of the user
Inquiring the length of the time window to include at least one time window;
the information unit item to be inquired is the category identification of the information unit in the first information;
step S312, the system checks the query request;
in the implementation process, the process of verifying the query request by the system is as follows: and the system performs matching authentication on the identity of the user containing the first user identifier and a public key or a digital signature, and when the public key or the digital signature is matched with the identity, the identity can be unlocked or a corresponding private key can be proved to unlock the identity, and the verification is passed.
S313, the system extracts a corresponding information block according to the identity of the user of the first user identifier, the query time window and the category identifier pair in the information unit entry to be queried;
in the implementation process, the implementation process of step S303 includes:
step 1) the system determines a corresponding first information block set according to the identity of the user of the first user identity;
step 2) the system selects a second information block set meeting the requirement of the query time window according to the query time window and the time stamps of the information blocks contained in the first information block set;
and 3) selecting the information units which accord with the information unit category identification from the second information block set by the system, and generating a query result.
Step S314, the system sends the query result to the user of the first user identification, and utilizes the public key of the user of the first user identification to encrypt the verification address of the query result;
step S315, the user of the first user identifier obtains the query result, the user of the first user identifier further can utilize a private key to unlock and obtain the check address, and obtain the query result according to the check address, wherein the query result specifically comprises the content of the second information unit and the operation value P corresponding to the second information unit;
step S316, the user of the first user identification can verify the query result;
in the implementation process, the implementation process of step S313 includes:
1) a user of the first user identification acquires one or more second information units in the query time window;
2) the user of the first user identification performs a second operation on the second information unit in the step 1) to obtain an operation value T (the operation service can be performed through third-party software or operator provided service);
3) and comparing the operation value T with the operation value P provided by the second information unit system by the user of the first user identifier, and judging that the content of the information unit is not tampered if the operation value T is the same as the operation value P provided by the second information unit system.
In the embodiment, the first device stores the ticket information unit in the first window of the user of the first user identifier by means of hash operation and the like; the first equipment carries out mode combination and random packet network operation on the information unit; a method for inquiring and checking the ticket information by the user of the first user identification by using a private key;
compared with the prior art, the embodiment has the following technical advantages: 1) by utilizing the characteristics of non-reversibility of a hash function and unique operation value, the storage of the ticket is ensured to be not falsifiable, and the user trust is improved; 2) and checking the inquiry authorization of the ticket by using a private key to ensure the privacy of the user information.
Based on the foregoing embodiment, the present disclosure provides a ticket generating apparatus, where the apparatus includes each unit and each module included in each unit, and may be implemented by a processor in first equipment; of course, the implementation can also be realized through a specific logic circuit; in implementation, the processor may be a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 4A is a schematic diagram of a structure of a ticket generating apparatus according to an embodiment of the disclosure, and as shown in fig. 4A, the apparatus 400 includes:
a first obtaining unit 401, configured to obtain communication record information generated by a user in a time window;
a first operation unit 402, configured to perform an operation on the communication record information by using a specific function to obtain a unique operation value;
a second obtaining unit 403, configured to obtain a timestamp of an information block of the ticket;
in other embodiments, the second obtaining unit 403 is configured to obtain current time, and use the current time or a current time superposition offset value as a timestamp of an information block of the ticket.
A generating unit 404, configured to generate the information block according to the timestamp of the information block, the unique operation value, and the communication record information.
In other embodiments, the first obtaining unit is configured to obtain, from the information pool to be recorded, communication record information generated by one or more users in a time window; the information pool to be recorded is used for storing communication record information which is not recorded yet.
In other embodiments, the first operation unit is configured to operate the communication record of the user by using a specific function, so as to obtain a unique operation value, where the specific function is a one-way encryption function, a hash function, or an elliptic function.
The first obtaining unit is configured to calculate a mobile phone number, an IMSI, an identity card number, or a name of the user by using a specific function to obtain the user identifier, and obtain communication record information generated by the user in a time window from an information pool to be recorded according to the user identifier, where the information pool to be recorded is used to store the communication record information that is not recorded yet.
In other embodiments, the communication record information includes at least one of the following:
the service type, the voice service, the voice call calling party, the voice call called party, the voice call start time, the voice call duration, the video call service, the video call calling party, the video call called party, the video call origination time, the video call duration, the data service access APP name, the data service access HTTP address, the data service origination time, the data service usage duration, the data service usage traffic, the short message service, the short message sender, the short message receiver, the short message sending time, the multimedia message service, the multimedia message sender, the multimedia message receiver, the multimedia message sending time, the value added service name, the value added service charge time, the collection service name, and the collection service charge.
In other embodiments, the first arithmetic unit is configured to:
determining the total number of information units in the communication record information;
performing first-layer calculation, pairing the information units pairwise, and calculating each pairing to obtain a first calculation value;
performing second-layer calculation, pairing the first calculation values pairwise, and calculating each pairing to obtain a second calculation value;
repeating the steps until a unique operation value is obtained;
and when the number of the values to be calculated in the Nth layer of calculation is determined to be singular, copying the last value to be calculated, and matching the last value to be calculated for calculation.
In other embodiments, the first arithmetic unit includes:
the first determining module is used for determining the total number N of the information units in the communication record information;
and the first operation module is used for calculating N information units in the communication record information by adopting a specific function to obtain a unique operation value if the N is less than or equal to a preset first threshold value M.
In other embodiments, the first arithmetic unit includes:
the first determining module is used for determining the total number N of the information units in the communication record information;
the grouping module is used for grouping the information units in the communication record information to obtain k groups of information units if the N is greater than a preset first threshold value M;
the second operation module is used for operating k groups of information units in the communication record information by adopting a specific function to obtain a second operation value corresponding to each group of information units;
a second determining module, configured to determine the unique operation value according to the k second operation values.
In other embodiments, the grouping module is to:
grouping by category of the information unit included in the communication record information, or,
and uniformly grouping the information units in the communication record information.
In other embodiments, the grouping module includes:
information units in communication record information are randomly divided into k groups according to N mod M, wherein N is the number of the information units contained in the communication record information, M is the number of the information units contained in each group at most, the 1 st to (k-1) th groups contain M information units, and the number of the information units contained in the k group is less than M.
In other embodiments, the first arithmetic unit includes:
a padding module, configured to pad (M-L) 0 or (M-L) L-th information units in the kth group if the number L of information units included in the kth group of information units is less than M, and make up the kth group of information units for the M information units;
and the third operation module is used for operating the complemented kth group of information units by adopting a specific function to obtain a second operation value corresponding to the kth group of information units.
In other embodiments, the third operation module includes:
the first operation sub-module is used for operating the k second operation values by adopting a specific function to obtain the unique operation value if the k is less than or equal to a preset second threshold value P;
the grouping submodule is used for randomly dividing k second operation values into Q groups according to k mod P if the k is larger than a preset second threshold value P, wherein the 1 st to (Q-1) th groups all contain P second operation values, and if the number L of the second operation values contained in the Q group is smaller than or equal to P;
the second operation submodule is used for operating the Q groups of second operation values by adopting a specific function to obtain Q third operation values;
a first determining submodule, configured to determine the unique operation value according to the Q third operation values.
In other embodiments, the generating unit includes:
a third determining module, configured to determine a first information block identifier according to the timestamp of the information block, the second information block identifier, the communication record information, and the unique operation value; wherein the second information block identification is an identification of a previous information block;
and the generating module is used for generating the information block according to the timestamp of the information block, the unique operation value, the communication record information, the first information block identifier and the second information block identifier.
In other embodiments, the third determining module includes:
the operation submodule is used for carrying out fourth operation according to the timestamp, the identifier of the previous information block, the communication record information, the unique operation value and the supplementary field to obtain a fourth operation value;
a second determination submodule for determining a difference between the fourth operation value and a third threshold value obtained from the system;
a third determining submodule for determining a supplementary field according to the difference;
and the fourth determining submodule is used for determining the supplementary field, the timestamp, the second information block identifier, the communication record information and the unique operation value into a first information block identifier.
In other embodiments, the apparatus further comprises: and the sending unit is used for sending the generated information block to the system.
Based on the foregoing embodiment, the present disclosure provides a ticket checking apparatus, where the apparatus includes each unit and each module included in each unit, and may be implemented by a processor in a second device or system; of course, the implementation can also be realized through a specific logic circuit; in implementation, the processor may be a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 4B is a schematic diagram of a structure of a ticket checking apparatus according to an embodiment of the disclosure, and as shown in fig. 4B, the apparatus 410 includes:
a first receiving unit 411, configured to receive an information block sent by a first device; the information block comprises a unique operation value, a first information block identification and a second information block identification; wherein the second information block identifier is an identifier of a previous information block;
a first checking unit 412, configured to check whether a first information block identifier in the information block is smaller than or equal to a third threshold F, and check the first information block identifier;
a linking unit 413, configured to link the information block after the information block with the second information block identifier as the first information block identifier when the first information block identifier in the information block is checked to be smaller than the third threshold and the unique operation value is checked to pass.
In other embodiments, the information block further comprises a timestamp of the information block, the communication record information, and a supplemental field; verifying the first information block identifier, including: calculating an information unit of the communication record information, the unique calculation value, the second information block identifier, the timestamp and the supplementary field by using a specific function to obtain a fifth calculation value; if the fifth operation value is the same as the first information block identity, the check passes.
In other embodiments, the apparatus further comprises:
the second receiving unit is used for receiving a ticket inquiry request sent by a user; the call ticket query request comprises the identity of the user, a query time window and an information unit item to be queried, wherein the length of the query time window comprises at least one time window; the information unit item to be inquired is the category identification of the information unit;
a third obtaining unit, configured to obtain, according to the identity of the user, an information unit set of the user according to the query time window and the information unit entry to be queried;
the encryption unit is used for taking the information unit set of the user as a first query result and encrypting the check address of the first query result by using the public key of the user;
and the second sending unit is used for sending the encrypted check address and the first query result to the user and sending the encrypted check address and the first query result to the user.
Based on the foregoing embodiments, the present disclosure provides a ticket query apparatus, which includes each included unit and each module included in each unit, and can be implemented by a processor in a user side (terminal); of course, the implementation can also be realized through a specific logic circuit; in implementation, the processor may be a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 4C is a schematic diagram of a structure of a ticket query apparatus according to an embodiment of the disclosure, and as shown in fig. 4C, the apparatus 420 includes:
a third sending unit 421, configured to send a ticket query request to the system;
a third receiving unit 422, configured to receive a first query result and an encrypted check address sent by a system, where the first query result includes a set of information units of the user;
a fourth obtaining unit 423, configured to obtain a second query result according to the encrypted check address, where the second query result includes an operation value P corresponding to the information unit set of the user;
a fourth operation unit 424, configured to perform operation on the information unit set of the user by using a specific function, so as to obtain a check operation value;
a second checking unit 425, configured to check, by using the checking operation value, an operation value in the second query result to obtain a checking result;
a determining unit 426, configured to determine the authenticity of the first query result using the verification result.
In other embodiments, the fourth obtaining unit is configured to:
decrypting the encrypted check address by using a private key of the user to obtain a decrypted check address;
and obtaining a second query result according to the decrypted check address.
The above description of the apparatus embodiments, similar to the above description of the method embodiments, has similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus of the present disclosure, reference is made to the description of the embodiments of the method of the present disclosure.
It should be noted that, in the embodiment of the present disclosure, if the above-mentioned call ticket generating method, call ticket checking method, or call ticket querying method is implemented in the form of a software function module, and is sold or used as an independent product, it may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device to execute all or part of the methods described in the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the present disclosure are not limited to any specific combination of hardware and software.
Correspondingly, the embodiment of the disclosure provides a computer device, which includes a memory and a processor, where the memory stores a computer program that can be run on the processor, and the processor implements the steps in the above-mentioned call ticket generating method, call ticket checking method, or call ticket querying method when executing the program.
Correspondingly, the disclosed embodiments provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the above-mentioned call ticket generating method, call ticket checking method, or call ticket querying method.
Here, it should be noted that: the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and apparatus of the present disclosure, reference is made to the description of the embodiments of the method of the present disclosure.
It should be noted that fig. 5 is a schematic diagram of a hardware entity of a computer device (including a first device, a second device, a system, and a terminal) in an embodiment of the present disclosure, and as shown in fig. 5, the hardware entity of the computer device 500 includes: a processor 501, a communication interface 502 and a memory 503, wherein
The processor 501 generally controls the overall operation of the computer device 500.
The communication interface 502 may enable the computer device to communicate with other devices over a network.
The Memory 503 is configured to store instructions and applications executable by the processor 501, and may also buffer data to be processed or already processed by the processor 501 and modules in the computer device 500, and may be implemented by a FLASH Memory (FLASH) or a Random Access Memory (RAM).
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present disclosure. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present disclosure, the size of the sequence numbers of the above-mentioned processes does not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the inherent logic thereof, and should not constitute any limitation to the implementation process of the embodiments of the present disclosure. The above-mentioned serial numbers of the embodiments of the present disclosure are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, 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 identical elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication between the components shown or discussed may be through some interfaces, indirect coupling or communication between devices or units, and may be electrical, mechanical or other.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; the storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present disclosure may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. With this understanding, the technical solutions of the embodiments of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device to perform all or part of the methods according to the embodiments of the present disclosure. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only an embodiment of the present disclosure, but the scope of the present disclosure is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered by the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the following claims.

Claims (27)

1. A method for generating call tickets, the method comprising:
acquiring communication record information generated by a user in a time window;
calculating the communication record information by adopting a specific function to obtain a unique calculation value;
acquiring a timestamp of an information block of the call ticket;
and generating the information block according to the timestamp of the information block, the unique operation value and the communication record information.
2. The method of claim 1, wherein the obtaining of the communication record information generated by the user in the time window comprises:
acquiring communication record information generated by one or more users in a time window from an information pool to be recorded; the information pool to be recorded is used for storing communication record information which is not recorded yet.
3. The method of claim 1, wherein the computing the communication record information with a specific function to obtain a unique computation value comprises:
and calculating the communication record of the user by adopting a specific function to obtain a unique calculation value, wherein the specific function is a one-way encryption function, a hash function or an elliptic function.
4. The method of claim 1, wherein the obtaining of the communication record information generated by the user in the time window comprises:
calculating the mobile phone number, IMSI, ID card number or name of the user by adopting a specific function to obtain the user identification;
and acquiring the communication record information generated by the user in a time window from an information pool to be recorded according to the user identification, wherein the information pool to be recorded is used for storing the communication record information which is not recorded yet.
5. The method of claim 4, wherein the communication record information comprises at least one of the following information:
the service type, the voice service, the voice call calling party, the voice call called party, the voice call start time, the voice call duration, the video call service, the video call calling party, the video call called party, the video call start time, the video call duration, the data service access APP name, the data service access HTTP address, the data service initiation time, the data service usage duration, the data service usage traffic, the short message service, the short message sender, the short message receiver, the short message sending time, the multimedia message service, the multimedia message sender, the multimedia message receiver, the multimedia message sending time, the value added service name, the value added service charge time, the collection service name, and the collection service charge.
6. The method according to any one of claims 1 to 5, wherein the operating the communication record information by using a specific function to obtain a unique operating value comprises:
determining the total number of information units in the communication record information;
performing first-layer calculation, pairing the information units pairwise, and calculating each pairing to obtain a first calculation value;
performing second-layer calculation, pairing the first calculation values pairwise, and calculating each pairing to obtain a second calculation value;
repeating the steps until a unique operation value is obtained;
and when the number of the values to be calculated in the Nth layer of calculation is determined to be singular, copying the last value to be calculated, and matching the last value to be calculated for calculation.
7. The method according to any one of claims 1 to 5, wherein the operating the communication record information by using a specific function to obtain a unique operating value comprises:
determining the total number N of information units in the communication record information;
and if the N is less than or equal to a preset first threshold value M, calculating N information units in the communication record information by adopting a specific function to obtain a unique calculation value.
8. The method according to any one of claims 1 to 5, wherein the operating the communication record information by using a specific function to obtain a unique operating value comprises:
determining the total number N of information units in the communication record information;
if the N is larger than a preset first threshold value M, grouping information units in the communication record information to obtain k groups of information units;
calculating k groups of information units in the communication record information by adopting a specific function to obtain a second calculation value corresponding to each group of information units;
determining the unique operation value from the k second operation values.
9. The method of claim 8, wherein grouping information units in the communication record information comprises:
grouping by category of the information unit included in the communication record information, or,
and uniformly grouping the information units in the communication record information.
10. The method of claim 9, wherein grouping information units in the communication record information collectively comprises:
information units in communication record information are randomly divided into k groups according to N mod M, wherein N is the number of the information units contained in the communication record information, M is the number of the information units contained in each group at most, the 1 st to (k-1) th groups contain M information units, the number of the information units contained in the k group is less than M, and mod is a complementation function.
11. The method of claim 8, further comprising:
if the number L of the information units contained in the kth group of information units is less than M, filling (M-L) 0 or (M-L) L-th information units in the kth group, and complementing the kth group of information units with M information units;
and computing the complemented kth group of information units by adopting a specific function to obtain a second computation value corresponding to the kth group of information units.
12. The method of claim 9, wherein determining the unique operation value from the k second operation values comprises:
if the k is smaller than or equal to a preset second threshold value P, performing operation on the k second operation values by adopting a specific function to obtain the unique operation value;
if the k is larger than a preset second threshold value P, randomly dividing k second operation values into Q groups according to k mod P, wherein the 1 st to (Q-1) th groups all contain P second operation values, and if the number L of the second operation values contained in the Q group is less than or equal to P; mod is a remainder function;
calculating the Q groups of second operation values by adopting a specific function to obtain Q third operation values;
determining the unique operation value according to Q third operation values.
13. The method of claim 1, wherein generating the information block according to the timestamp of the information block, the unique operation value, and the communication record information comprises:
determining a first information block identifier according to the timestamp of the information block, a second information block identifier, the communication record information and the unique operation value; wherein the second information block identification is an identification of a previous information block;
and generating the information block according to the timestamp of the information block, the unique operation value, the communication record information, the first information block identifier and the second information block identifier.
14. The method of claim 13, wherein determining a first information block identifier from a timestamp of the information block, a second information block identifier, the communication record information, and the unique operation value comprises:
performing fourth operation according to the timestamp, the identifier of the previous information block, the communication record information, the unique operation value and the supplementary field to obtain a fourth operation value;
determining a difference between the fourth operation value and a third threshold value F obtained from the server;
determining a supplementary field according to the difference value;
and determining the supplementary field, the timestamp, the second information block identifier, the telephone charge record information and the unique operation value as a first information block identifier.
15. The method of claim 14, further comprising:
and changing the content of the supplementary field, and performing fourth operation according to the timestamp, the identifier of the previous information block, the communication record information, the unique operation value and the supplementary field until a fourth operation value smaller than a third threshold value is obtained.
16. The method according to any one of claims 1 to 5, wherein the obtaining the time stamp of the information block of the ticket comprises:
and acquiring the current time, and using the current time or the current time superposition deviation value as the timestamp of the information block of the ticket.
17. The method according to any one of claims 1 to 5, further comprising:
the first device sends the generated information block to the system.
18. A method for checking a call ticket, the method comprising:
a checking unit or a system receives an information block sent by first equipment; the information block comprises a unique operation value, a first information block identification and a second information block identification; wherein the second information block identifier is an identifier of a previous information block;
and when the first information block identification is verified to be smaller than a third threshold value, linking the information block to the information block which takes the second information block identification as the first information block identification.
19. The method of claim 18, wherein the information block further comprises a timestamp of the information block, the communication record information, and a supplemental field;
verifying the first information block identifier, including: calculating an information unit of the communication record information, the unique calculation value, the second information block identifier, the timestamp and the supplementary field by using a specific function to obtain a fifth calculation value; and if the fifth operation value is the same as the first information block identifier, the verification is passed.
20. The method of claim 18, further comprising:
a checking unit or a system receives a ticket query request sent by a user; the call ticket query request comprises the identity of the user, a query time window and an information unit item to be queried, wherein the length of the query time window comprises at least one time window; the information unit item to be inquired is the category identification of the information unit;
the checking unit or the system acquires the information unit set of the user according to the identity of the user and the query time window and the information unit item to be queried;
the verification unit or the system takes the information unit set of the user as a first query result, and encrypts a verification address of the first query result by using the public key of the user;
and the verification unit or the system sends the encrypted verification address and the first query result to the user and sends the verification address and the first query result to the user.
21. A method for querying a call ticket, the method comprising:
sending a ticket query request to a system;
receiving a first query result and an encrypted check address sent by a system, wherein the first query result comprises an information unit set of the user;
obtaining a second query result according to the encrypted check address, wherein the second query result comprises an operation value P corresponding to the information unit set of the user;
calculating the information unit set of the user by adopting a specific function to obtain a check calculation value;
verifying the operation value in the second query result by using the verification operation value to obtain a verification result;
and determining the authenticity of the first query result by using the verification result.
22. The method of claim 21, wherein obtaining a second query result based on the encrypted check address comprises:
decrypting the encrypted check address by using a private key of the user to obtain a decrypted check address;
and obtaining a second query result according to the decrypted check address.
23. A ticket generating apparatus, comprising:
the first acquisition unit is used for acquiring communication record information generated by a user in a time window;
the first arithmetic unit is used for calculating the communication record information by adopting a specific function to obtain a unique calculation value;
the second acquisition unit is used for acquiring the timestamp of the information block of the call ticket;
and the generating unit is used for generating the information block according to the timestamp of the information block, the unique operation value and the communication record information.
24. A ticket checking apparatus, comprising:
a first receiving unit, configured to receive an information block sent by a first device; the information block comprises a unique operation value, a first information block identification and a second information block identification; wherein the second information block identifier is an identifier of a previous information block;
the first checking unit is used for checking whether the first information block identifier in the information block is less than or equal to a third threshold value F and checking the unique operation value;
and the linking unit is used for linking the information block to the information block with the second information block identification as the first information block identification when the first information block identification is verified to be smaller than a third threshold value and the first information block identification passes the verification.
25. A ticket lookup apparatus, comprising:
a third sending unit, configured to send a ticket query request to the system;
a third receiving unit, configured to receive a first query result and an encrypted check address sent by a system, where the first query result includes an information unit set of the user;
a fourth obtaining unit, configured to obtain a second query result according to the encrypted check address, where the second query result includes an operation value P corresponding to the information unit set of the user;
the fourth operation unit is used for operating the information unit set of the user by adopting a specific function to obtain a check operation value;
the second checking unit is used for checking the operation value in the second query result by using the checking operation value to obtain a checking result;
a determining unit, configured to determine authenticity of the first query result using the verification result.
26. A computer device comprising a memory and a processor, wherein the memory stores a computer program operable on the processor, and the processor executes the program to implement the steps in the ticket generating method according to any one of claims 1 to 17, or executes the program to implement the steps in the ticket checking method according to any one of claims 18 to 20, or executes the program to implement the steps in the ticket querying method according to claim 21 or 22.
27. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps in the ticket generating method according to any one of claims 1 to 17, or the steps in the ticket checking method according to any one of claims 18 to 20, or the steps in the ticket querying method according to claim 21 or 22.
CN201810983583.2A 2018-08-27 2018-08-27 Ticket generating and checking method, device and equipment and storage medium Active CN110868499B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810983583.2A CN110868499B (en) 2018-08-27 2018-08-27 Ticket generating and checking method, device and equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810983583.2A CN110868499B (en) 2018-08-27 2018-08-27 Ticket generating and checking method, device and equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110868499A true CN110868499A (en) 2020-03-06
CN110868499B CN110868499B (en) 2022-05-10

Family

ID=69651133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810983583.2A Active CN110868499B (en) 2018-08-27 2018-08-27 Ticket generating and checking method, device and equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110868499B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111511044A (en) * 2020-04-16 2020-08-07 蓓安科仪(北京)技术有限公司 Data communication method for realizing telemedicine based on 5G network

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076055A (en) * 2007-06-18 2007-11-21 中兴通讯股份有限公司 Method for converting toll-ticket format
CN101572762A (en) * 2009-02-25 2009-11-04 南京联创科技股份有限公司 Method for realizing combination of mass tickets by statistic based storage management and quick indexing
US20110007880A1 (en) * 2009-07-09 2011-01-13 Level 3 Communications, Llc Call Setup Penalty Cost Categorization
CN102075899A (en) * 2009-11-25 2011-05-25 中国移动通信集团广东有限公司 Method and device for checking charge of communication service
CN104105112A (en) * 2013-04-02 2014-10-15 中兴通讯股份有限公司 Phone bill processing method, device and system
CN105915352A (en) * 2016-03-30 2016-08-31 中国联合网络通信集团有限公司 Application bill generation method, generation device, charging method and charging system
CN107092607A (en) * 2016-02-18 2017-08-25 中国移动通信集团安徽有限公司 A kind of bill storage method and device
US9749840B1 (en) * 2015-11-19 2017-08-29 Cisco Technology, Inc. Generating and analyzing call detail records for various uses of mobile network resources
CN107294738A (en) * 2017-06-12 2017-10-24 中国联合网络通信集团有限公司 The treating method and apparatus of communication charge

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076055A (en) * 2007-06-18 2007-11-21 中兴通讯股份有限公司 Method for converting toll-ticket format
CN101572762A (en) * 2009-02-25 2009-11-04 南京联创科技股份有限公司 Method for realizing combination of mass tickets by statistic based storage management and quick indexing
US20110007880A1 (en) * 2009-07-09 2011-01-13 Level 3 Communications, Llc Call Setup Penalty Cost Categorization
CN102075899A (en) * 2009-11-25 2011-05-25 中国移动通信集团广东有限公司 Method and device for checking charge of communication service
CN104105112A (en) * 2013-04-02 2014-10-15 中兴通讯股份有限公司 Phone bill processing method, device and system
US9749840B1 (en) * 2015-11-19 2017-08-29 Cisco Technology, Inc. Generating and analyzing call detail records for various uses of mobile network resources
CN107092607A (en) * 2016-02-18 2017-08-25 中国移动通信集团安徽有限公司 A kind of bill storage method and device
CN105915352A (en) * 2016-03-30 2016-08-31 中国联合网络通信集团有限公司 Application bill generation method, generation device, charging method and charging system
CN107294738A (en) * 2017-06-12 2017-10-24 中国联合网络通信集团有限公司 The treating method and apparatus of communication charge

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111511044A (en) * 2020-04-16 2020-08-07 蓓安科仪(北京)技术有限公司 Data communication method for realizing telemedicine based on 5G network

Also Published As

Publication number Publication date
CN110868499B (en) 2022-05-10

Similar Documents

Publication Publication Date Title
CN109598616B (en) Method for protecting privacy of blockchain data by introducing arbitration mechanism
CN110473105B (en) Block chain transaction settlement method, system and related equipment
US7512398B2 (en) Authenticating data units of a mobile communications device
CN107493273A (en) Identity identifying method, system and computer-readable recording medium
US8688988B2 (en) Transaction auditing for data security devices
CN104025498B (en) Methods and apparatus for sharing real-time user context information
CN106790156B (en) Intelligent device binding method and device
US20100268649A1 (en) Method and Apparatus for Electronic Ticket Processing
CN110138744A (en) Replace method, apparatus, system, computer equipment and the storage medium of communicating number
CN112311538B (en) Identity verification method, device, storage medium and equipment
EP0904581A1 (en) System with and method of cryptographically protecting communications
CN110569666A (en) data statistics method and device based on block chain
CN103186720B (en) A kind of digital copyright management method, equipment and system
CN107094077A (en) A kind of license chain Accounting system for not limiting signature algorithm
CN111405505B (en) Bill processing method, system and storage medium for roaming service
CN114817889A (en) Digital certificate updating method, device and storage medium of electronic signature
CN104579662B (en) Mobile terminal authentication method and system based on WPKI and timestamp
CN109274837A (en) Method and device can be traced in telephone source based on block chain technology
CN109242404A (en) History information management method, device, computer equipment and readable storage medium storing program for executing
CN109242666A (en) Personal reference method, apparatus and computer equipment are obtained based on block chain
JP4060889B2 (en) Security system and method for services provided on computer networks such as the Internet
CN111181944B (en) Communication system, information distribution method, device, medium, and apparatus
KR20180000220A (en) Method providing secure message service and apparatus therefor
CN110868499B (en) Ticket generating and checking method, device and equipment and storage medium
CN115913802A (en) Service data processing method and device, electronic equipment and storage medium

Legal Events

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