CN112714437A - Virtual number activation method and device based on block chain and computer equipment - Google Patents

Virtual number activation method and device based on block chain and computer equipment Download PDF

Info

Publication number
CN112714437A
CN112714437A CN202011545144.7A CN202011545144A CN112714437A CN 112714437 A CN112714437 A CN 112714437A CN 202011545144 A CN202011545144 A CN 202011545144A CN 112714437 A CN112714437 A CN 112714437A
Authority
CN
China
Prior art keywords
client
virtual number
communication
block chain
activation
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
CN202011545144.7A
Other languages
Chinese (zh)
Other versions
CN112714437B (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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202011545144.7A priority Critical patent/CN112714437B/en
Publication of CN112714437A publication Critical patent/CN112714437A/en
Application granted granted Critical
Publication of CN112714437B publication Critical patent/CN112714437B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support
    • H04W8/265Network addressing or numbering for mobility support for initial activation of new user
    • 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
    • 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/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a virtual number activation method, a virtual number activation device and computer equipment based on a block chain, wherein the method comprises the following steps: acquiring a first protocol uploaded by a first client and a virtual number related to a second client; sending a confirmation message to the second block link node according to the virtual number; if the feedback message is received, generating a communication contract according to the feedback message; and activating the virtual number of the second client based on the activation mode in the communication contract. The invention has the beneficial effects that: the virtual number needs to establish a communication contract to communicate, so that the user is guaranteed not to be disturbed based on the virtual number, in addition, the actual number of the user is obtained through the block chain, information is transmitted through the virtual number at the APP end, the actual number of the user cannot be transmitted in the block chain network, and therefore the risk of revealing the mobile phone number of the user from the intermediate platform does not exist.

Description

Virtual number activation method and device based on block chain and computer equipment
Technical Field
The present invention relates to the field of blockchains, and in particular, to a method and an apparatus for activating a virtual number based on a blockchain, and a computer device.
Background
The mobile phone number, which is bound with a bank card, has become an important identity for various communication, social contact and e-commerce APP. Because the mobile phone number is the most direct communication mode at the same time, the mobile phone number is extremely easy to leak and spread, so that people can not be harassed, and even the personal and property safety of people is influenced. At present, in order to avoid leakage of a mobile phone number, generally, a transfer mode is performed through an intermediate platform, and an intermediate number with time limit is given, wherein the intermediate number cannot correspond to the mobile phone number of a user, but the user needs to provide the mobile phone number to the corresponding platform for many times, the actual mobile phone number of the user still exists at the intermediate platform, and the risk of leakage still exists.
Disclosure of Invention
The invention mainly aims to provide a virtual number activation method, a virtual number activation device and computer equipment based on a block chain, and aims to solve the problem that the actual mobile phone number of a user still exists at an intermediate platform and the risk of leakage still exists.
The invention provides a virtual number activation method based on a block chain, which comprises the following steps:
the method comprises the steps that a first block chain node acquires a first protocol uploaded by a first client and a virtual number related to a second client;
sending a confirmation message to the second block link node according to the virtual number; wherein the second block link node is connected with the second client; the first block chain node and the second block chain node are different nodes in the same block chain;
if a feedback message that the second block chain link point agrees to the confirmation message is received, generating a communication contract according to the feedback message and synchronizing the communication contract into the block chain;
and activating the virtual number of the second client based on the activation mode in the communication contract.
Further, the step of generating a communication contract according to the feedback message and synchronizing the communication contract into the blockchain includes:
acquiring the virtual number of the first client and the virtual number of the second client;
generating a corresponding activation code by the virtual number of the first client, the virtual number of the second client and the feedback message through a preset hash value algorithm;
and generating the communication contract according to the activation code and synchronizing the communication contract into the block chain.
Further, the step of generating the corresponding activation code by the virtual number of the first client, the virtual number of the second client, and the feedback message through a preset hash value algorithm includes:
acquiring a communication protocol in the feedback message;
determining a communicable time period of the virtual number of the first client and the virtual number of the second client according to the communication protocol;
generating communication information by the communication-capable time slot, the virtual number of the first client and the virtual number of the second client according to a set sequence;
and calculating the hash value of the communication information according to a preset hash value algorithm, and taking the hash value of the communication information as the activation code.
Further, the step of acquiring, by the first block link point, the first protocol uploaded by the first client and the virtual number related to the second client includes:
acquiring an actual number and number information of the first client;
and binding a corresponding virtual number for the first client according to the actual number, and setting a corresponding modification permission level for the virtual number according to the number information.
Further, after the step of generating a communication contract according to the feedback message and synchronizing the communication contract into the blockchain, the method further includes:
acquiring a modification instruction uploaded by the first client;
judging whether the modification permission level of the first client is higher than that of the second client;
and if so, modifying the content in the communication treaty in response to the modification instruction.
Further, after the step of activating the virtual number of the second client based on the activation mode in the communication contract, the method further includes:
receiving a call instruction of the first client terminal for dialing the virtual number of the second client terminal;
sending a plurality of set display information according to the call instruction for selection by a user;
and initiating a call request to the second client according to the display information selected by the user.
The invention also provides a virtual number activation device, comprising:
the acquisition module is used for acquiring a first protocol uploaded by a first client and a virtual number related to a second client;
a sending module, configured to send a confirmation message to the second block link node according to the virtual number; wherein the second block link node is connected with the second client; the first block chain node and the second block chain node are different nodes in the same block chain;
a generating module, configured to generate a communication contract according to the feedback message and synchronize the communication contract into the block chain if the feedback message that the second block link node agrees with the acknowledgment message is received;
and the activation module is used for activating the virtual number of the second client based on the activation mode in the communication contract.
Further, the generating module includes:
the virtual number acquisition submodule is used for acquiring the virtual number of the first client and the virtual number of the second client;
the activation code generation submodule is used for generating the corresponding activation codes for the virtual number of the first client, the virtual number of the second client and the feedback message through a preset hash value algorithm;
and the communication contract generation submodule is used for generating the communication contract according to the activation code and synchronizing the communication contract into the block chain.
The invention also provides a computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of any of the above methods when executing the computer program.
The invention also provides a computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method of any of the above.
The invention has the beneficial effects that: establish communication contract for first customer end and second customer end through the zone chain, activate the virtual number that corresponds based on the communication contract, make each virtual number all can correspond a customer end, in addition, the virtual number need establish communication contract and just can communicate, thereby guaranteed that the user can not be harassed based on the virtual number, in addition, carry out the transmission of information through the virtual number at the APP end, and user's actual number can not propagate in the zone chain network, consequently also do not have the risk of revealing user's cell phone number from middle platform.
Drawings
Fig. 1 is a flowchart illustrating a virtual number activation method based on a block chain according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of a virtual number activation apparatus based on a block chain according to an embodiment of the present invention;
fig. 3 is a block diagram illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that all directional indicators (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative position relationship between the components, the motion situation, etc. in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indicator is changed accordingly, and the connection may be a direct connection or an indirect connection.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
In addition, the descriptions related to "first", "second", etc. in the present invention are only for descriptive purposes and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Referring to fig. 1, the present invention provides a virtual number activation method based on a block chain, including:
s1: the method comprises the steps that a first block chain node acquires a first protocol uploaded by a first client and a virtual number related to a second client;
s2: sending a confirmation message to the second block link node according to the virtual number of the second client; wherein the second block link node is connected with the second client; the first blockchain node and the second blockchain node are different nodes in the same blockchain;
s3: if a feedback message that the second block chain link point agrees to the confirmation message is received, generating a communication contract according to the feedback message and synchronizing the communication contract into the block chain;
s4: and activating the virtual number of the second client based on the activation mode in the communication contract.
As described in step S1, the first chunk link point obtains the first protocol uploaded by the first client and the virtual number related to the second client. The first block link point is used for being connected with a first client, namely, accessing the first client, specifically, the access method is that corresponding APP software is installed on the first client, then, registration is performed on the APP software based on an actual number of the first client, namely, a first block link node is formed, connection between the first client and the first block link node is realized, a first protocol is protocol information written in the first client, the protocol information at least comprises a conversation time period applied by a second client, and the rest of the time is in a failure state. The virtual number of the second client is a virtual number given by the blockchain to the second client according to the actual number of the second client, and each virtual number contains information stored with a corresponding actual number.
As described in step S2 above, a confirmation message is sent to the second tile link point according to the virtual number of the second client. That is, the first blockchain node sends a confirmation message to the second blockchain node, and the second blockchain node forwards the corresponding confirmation message to the second client when receiving the confirmation message. The confirmation message should include the identity information of the first client, the time period information of the call application, and the like.
As described in step S3, if a feedback message that the second block link point agrees with the acknowledgment message is received, a communication contract is generated according to the feedback message and synchronized into the block chain. After receiving and confirming the confirmation message, the second client feeds back the corresponding feedback message to the second block chain node, and the second block chain node sends the feedback message to the corresponding first block chain node, and generates a corresponding communication contract at the first block chain node and synchronizes the communication contract to the corresponding block chain. The communication contract at least comprises a time period for allowing the first client to communicate with the second client, the virtual number and the actual number of the first client, and the virtual number and the actual number of the second client. If the feedback message that the second block link point does not agree with the confirmation message is received, a communication contract does not need to be established, and the second client corresponding to the second block link point cannot communicate with the first client.
As described in the above step S4, the virtual number of the second client is activated based on the activation method in the communication contract. In order to guarantee the rights and interests of the clients, the first client cannot directly initiate a communication request to the second client based on the virtual number of the second client. The corresponding virtual number still needs to be activated, and the activation mode is pre-stored in the communication contract, specifically, the activation mode may be that a corresponding activation code is generated in a communication allowed time period in the communication contract, and then a communication request may be initiated to the second client based on the corresponding activation code and the virtual number of the second client, thereby effectively preventing the first client from harassing the second client.
Specifically, when a first client initiates a call request to a second client through an APP formed by the blockchain, whether a communication contract between the first client and the second client exists needs to be checked, whether the call request meets a specification in the communication contract is detected, and if not, the first client cannot initiate a request to the second client. The first block chain link point is used for data connection with a first client, receiving a first protocol of the first client and a virtual number of the client needing to establish a call, sending a confirmation message to the corresponding virtual number, and performing a message interaction process, wherein the interaction process can be uploaded to a block chain network or not, namely the block chain network is mainly defined to reserve a communication contract and monitor whether the call request of each client meets the specification in the communication contract or not, and the leakage of the virtual number does not cause the client to be harassed, because no communication contract exists, the call request of other clients to the client based on the virtual number cannot be transmitted to the client. Of course, the first block link point may independently process the received acknowledgement message and send feedback, or may send the acknowledgement message and establish a communication contract according to the feedback message. When a correspondence contract is sent into the blockchain network, the correspondence contract is sent to each blockchain node to ensure the uncorruptability of the data.
In one embodiment, the step S3 of generating a communication contract according to the feedback message and synchronizing into the block chain includes:
s301: acquiring the virtual number of the first client and the virtual number of the second client;
s302: generating a corresponding activation code by the virtual number of the first client, the virtual number of the second client and the feedback message through a preset hash value algorithm;
s303: and generating the communication contract according to the activation code and synchronizing the communication contract into the block chain.
As described above in steps S301-S303, the generation of the communication contract is realized. The virtual number of the first client and the virtual number of the second client are obtained first, the virtual number of the first client, the virtual number of the second client and the feedback message are arranged according to a specified sequence, and a corresponding activation code is obtained through calculation according to a preset hash value algorithm, wherein the lengths of the virtual numbers of the clients are preferably kept consistent, a corresponding hash value function can be conveniently set, and the formats of the feedback message are also kept consistent, that is, the formats and the lengths of the arranged virtual number of the first client, the arranged virtual number of the second client and the arranged feedback message are preferably kept consistent, because the value obtained according to the hash value algorithm is generally a character string with a specified length, if the input value is kept consistent, the hash function in the hash value algorithm can be selected more. Specifically, the hash function h (h) (m) may be an SHA-1 algorithm, an SHA-2 algorithm, an SHA-256 algorithm, or the like, the generated hash value may be used as an activation code, and due to the characteristics of the hash function, the client cannot acquire corresponding information based on the activation code, so that the confidentiality of the first virtual number and the second virtual number is ensured, and other clients cannot initiate a communication request to the first client or the second client based on the activation code. In addition, the activation code includes the virtual number of the first client, the virtual number of the second client, and information of the feedback message, so that the corresponding communication contract is generated into the blockchain, and other blockchain nodes can know the communication contract between the first client and the second client, so that when the first client and the second client subsequently make a call request, the other blockchain nodes agree to the call request based on the communication contract, and the call request can be transmitted to the corresponding client.
In an embodiment, the step S302 of generating the corresponding activation code by using the virtual number of the first client, the virtual number of the second client, and the feedback message through a preset hash value algorithm includes:
s3021: acquiring a communication protocol in the feedback message;
s3022: determining a communicable time period of the virtual number of the first client and the virtual number of the second client according to the communication protocol;
s3023: generating communication information by the communication-capable time slot, the virtual number of the first client and the virtual number of the second client according to a set sequence;
s3024: and calculating the hash value of the communication information according to a preset hash value algorithm, and taking the hash value of the communication information as the activation code.
As described above in steps S3021-S3024, a specific acquisition of the activate code is achieved. That is, a communication protocol in the feedback message is first acquired, where the communication protocol includes a communicable time period between a virtual number of the first client and a virtual number of the second client, the virtual number of the first client and the virtual number of the second client, a communication request initiation method (for example, a communication request can be issued only one way or both of the first client and the second client), and the like, and the generated activation code mainly requires information such as a virtual number of the clients of both the communication parties and a communicable time period, and then the communicable time period, the virtual number of the first client, and the virtual number of the second client generate communication information in a set order, where the set order may be any designated order, for example, the communicable time period may be placed at the top, placed in the middle, or placed at the last. The positions of the virtual number of the first client and the virtual number of the second client are not limited, and the virtual numbers can be in any order specified in advance, so that the format and the size of the input communication information are the same, and the generated activation code can be conveniently analyzed subsequently.
In one embodiment, the step S1 of the first chunk link point acquiring the first protocol uploaded by the first client and the virtual number related to the second client includes:
s001: acquiring an actual number and number information of the first client;
s002: and binding a corresponding virtual number for the first client according to the actual number, and setting a corresponding modification permission level for the virtual number according to the number information.
As described in steps S001 to S002, the setting of the virtual number is realized. The method includes the steps that an actual number and number information of a first client are obtained first, a corresponding virtual number is bound for the first client according to the actual number, the binding mode is not limited, for example, the corresponding virtual number can also be obtained by inputting the actual number into a preset hash function, different actual numbers have different identity information, such as takeaway, sales, housing agency and common users, a modification permission level can be set for each actual number based on the actual number, namely after any two communication agreements are established, the actual number with the high modification permission level can change a call time period in the communication agreements, the modification permission level of the common user can be slightly higher than that of other intermediary users, and the common user is prevented from being frequently disturbed by the intermediary users. The number information may be obtained based on external big data, for example, in the continuous use process of the actual number, some people may mark the actual number, and when the same mark exceeds a certain number, the mark may be regarded as the number information of the actual number, and if the same mark does not exceed the certain number, the actual number may be regarded as a normal number.
In one embodiment, after the step S3 of generating a communication contract according to the feedback message and synchronizing to the block chain, the method further includes:
s401: acquiring a modification instruction uploaded by the first client;
s402: judging whether the modification permission level of the first client is higher than that of the second client;
s403: and if so, modifying the content in the communication treaty in response to the modification instruction.
As described above in steps S401-S403, the definition of the modification of the communication treaty is achieved. As can be seen from the above description, a corresponding modification permission level is set for each client, when a modification instruction uploaded by a first client is received, it can be determined that the modification permission level of a second client with which a communication contract is established is higher or lower, if the modification permission level of the first client is higher than that of the second client, the modification instruction can be responded, content in the communication contract is modified, if the modification permission level of the first client is lower than that of the second client, no right is given to the modification, if the modification permission level of the first client is equal to that of the second client, permission change or no permission change can be set, and the modification permission level can be set in a block chain in advance, so that modification of the communication contract is realized, and thus, each client can use the APP more flexibly.
In one embodiment, after the step S4 of activating the virtual number of the second client based on the activation mode in the communication contract, the method further includes:
s501: receiving a call instruction of the first client terminal for dialing the virtual number of the second client terminal;
s502: sending a plurality of set display information according to the call instruction for selection by a user;
s503: and initiating a call request to the second client according to the display information selected by the user.
As described in the above steps S501-S503, selection of the presentation information of the first client is realized. That is, when dialing the virtual number of the second client, the first client may send several pieces of display information to the first client to be displayed on the first client for selection by a user of the first client, where the display information may be only the display of the virtual number. The method and the device can be used for displaying the actual number, the identity information of the first client and the like, and displaying a plurality of display information, and the like, and then initiating a call request to the second client according to the display information selected by the user, namely displaying the display information selected by the first client on the second client, so that the first client can transmit own information to the second client, the second client can know the identity of the first client, and whether the call request is agreed or not can be judged, and the call is carried out with the first client.
Referring to fig. 2, the present invention also provides a virtual number activation apparatus, including:
an obtaining module 10, configured to obtain a first protocol uploaded by a first client and a virtual number of a second client;
a sending module 20, configured to send a confirmation message to the second block link node according to the virtual number; wherein the second block link node is connected with the second client; the first block chain node and the second block chain node are different nodes in the same block chain;
a generating module 30, configured to generate a communication contract according to the feedback message and synchronize the communication contract into the block chain if the feedback message that the second block link node agrees with the acknowledgment message is received;
an activation module 40, configured to activate the virtual number of the second client based on the activation manner in the communication contract.
In one embodiment, the generating module 30 includes:
the virtual number acquisition submodule is used for acquiring the virtual number of the first client and the virtual number of the second client;
the activation code generation submodule is used for generating the corresponding activation codes for the virtual number of the first client, the virtual number of the second client and the feedback message through a preset hash value algorithm;
and the communication contract generation submodule is used for generating the communication contract according to the activation code and synchronizing the communication contract into the block chain.
In one embodiment, the activation code generation submodule includes:
an obtaining unit, configured to obtain a communication protocol in the feedback message;
a determination unit configured to determine a communicable period of the virtual number of the first client and the virtual number of the second client according to the communication protocol;
a generation unit configured to generate communication information from the communicable time zone, the virtual number of the first client, and the virtual number of the second client in a set order;
and the calculating unit is used for calculating the hash value of the communication information according to a preset hash value algorithm and taking the hash value of the communication information as the activation code.
In one embodiment, the apparatus for activating a virtual number based on a block chain further includes:
the number acquisition module is used for acquiring the actual number and number information of the first client;
and the modification permission level setting module is used for binding a corresponding virtual number for the first client according to the actual number and setting a corresponding modification permission level for the virtual number according to the number information.
In one embodiment, the apparatus for activating a virtual number based on a block chain further includes:
the modification instruction acquisition module is used for acquiring modification instructions uploaded by the first client;
the modification permission level judging module is used for judging whether the modification permission level of the first client is higher than that of the second client;
and the modification module is used for responding to the modification instruction and modifying the content in the communication treaty if the communication treaty is in the state of being modified.
In one embodiment, the apparatus for activating a virtual number based on a block chain further includes:
the call instruction receiving module is used for receiving a call instruction of the first client terminal for dialing the virtual number of the second client terminal;
the display information sending module is used for sending a plurality of set display information according to the call instruction for selection by a user;
and the call request initiating module is used for initiating a call request to the second client according to the display information selected by the user.
The invention has the beneficial effects that: establish communication contract for first customer end and second customer end through the zone chain, activate the virtual number that corresponds based on the communication contract, make each virtual number all can correspond a customer end, in addition, the virtual number need establish communication contract and just can communicate, thereby guaranteed that the user can not be harassed based on the virtual number, in addition, carry out the transmission of information through the virtual number at the APP end, and user's actual number can not propagate in the zone chain network, consequently also do not have the risk of revealing user's cell phone number from middle platform.
Referring to fig. 3, a computer device, which may be a server and whose internal structure may be as shown in fig. 3, is also provided in the embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for storing various communication contracts and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, may implement the virtual number activation method based on a blockchain according to any of the above embodiments.
Those skilled in the art will appreciate that the architecture shown in fig. 3 is only a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects may be applied.
The embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the virtual number activation method based on a block chain according to any of the embodiments above may be implemented.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware associated with instructions of a computer program, which may be stored on a non-volatile computer-readable storage medium, and when executed, may include processes of the above embodiments of the methods. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
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, apparatus, article, or method 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, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer.
The block chain underlying platform can comprise processing modules such as user management, basic service, intelligent contract and operation monitoring. The user management module is responsible for identity information management of all blockchain participants, and comprises public and private key generation maintenance (account management), key management, user real identity and blockchain address corresponding relation maintenance (authority management) and the like, and under the authorization condition, the user management module supervises and audits the transaction condition of certain real identities and provides rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node equipment and used for verifying the validity of the service request, recording the service request to storage after consensus on the valid request is completed, for a new service request, the basic service firstly performs interface adaptation analysis and authentication processing (interface adaptation), then encrypts service information (consensus management) through a consensus algorithm, transmits the service information to a shared account (network communication) completely and consistently after encryption, and performs recording and storage; the intelligent contract module is responsible for registering and issuing contracts, triggering the contracts and executing the contracts, developers can define contract logics through a certain programming language, issue the contract logics to a block chain (contract registration), call keys or other event triggering and executing according to the logics of contract clauses, complete the contract logics and simultaneously provide the function of upgrading and canceling the contracts; the operation monitoring module is mainly responsible for deployment, configuration modification, contract setting, cloud adaptation in the product release process and visual output of real-time states in product operation, such as: alarm, monitoring network conditions, monitoring node equipment health status, and the like.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (10)

1. A virtual number activation method based on a block chain is characterized by comprising the following steps:
the method comprises the steps that a first block chain node acquires a first protocol uploaded by a first client and a virtual number related to a second client;
sending a confirmation message to the second block link node according to the virtual number; wherein the second block link node is connected with the second client; the first block chain node and the second block chain node are different nodes in the same block chain;
if a feedback message that the second block chain link point agrees to the confirmation message is received, generating a communication contract according to the feedback message and synchronizing the communication contract into the block chain;
and activating the virtual number of the second client based on the activation mode in the communication contract.
2. The blockchain-based virtual number activation method according to claim 1, wherein the step of generating a communication contract according to the feedback message and synchronizing the communication contract into the blockchain comprises:
acquiring the virtual number of the first client and the virtual number of the second client;
generating a corresponding activation code by the virtual number of the first client, the virtual number of the second client and the feedback message through a preset hash value algorithm;
and generating the communication contract according to the activation code and synchronizing the communication contract into the block chain.
3. The method for activating a virtual number based on a blockchain according to claim 2, wherein the step of generating the corresponding activation code by the virtual number of the first client, the virtual number of the second client and the feedback message through a preset hash value algorithm includes:
acquiring a communication protocol in the feedback message;
determining a communicable time period of the virtual number of the first client and the virtual number of the second client according to the communication protocol;
generating communication information by the communication-capable time slot, the virtual number of the first client and the virtual number of the second client according to a set sequence;
and calculating the hash value of the communication information according to a preset hash value algorithm, and taking the hash value of the communication information as the activation code.
4. The method of claim 1, wherein the step of the first blockchain link point obtaining the first protocol uploaded by the first client and the virtual number related to the second client is preceded by the step of:
acquiring an actual number and number information of the first client;
and binding a corresponding virtual number for the first client according to the actual number, and setting a corresponding modification permission level for the virtual number according to the number information.
5. The blockchain-based virtual number activation method according to claim 4, wherein after the step of generating a communication contract according to the feedback message and synchronizing into the blockchain, further comprising:
acquiring a modification instruction uploaded by the first client;
judging whether the modification permission level of the first client is higher than that of the second client;
and if so, modifying the content in the communication treaty in response to the modification instruction.
6. The method for activating a virtual number based on a blockchain according to claim 1, wherein the step of activating the virtual number of the second client based on the activation mode in the communication contract is followed by further comprising:
receiving a call instruction of the first client terminal for dialing the virtual number of the second client terminal;
sending a plurality of set display information according to the call instruction for selection by a user;
and initiating a call request to the second client according to the display information selected by the user.
7. A virtual number activation device, comprising:
the acquisition module is used for acquiring a first protocol uploaded by a first client and a virtual number related to a second client;
a sending module, configured to send a confirmation message to the second block link node according to the virtual number; wherein the second block link node is connected with the second client; the first block chain node and the second block chain node are different nodes in the same block chain;
a generating module, configured to generate a communication contract according to the feedback message and synchronize the communication contract into the block chain if the feedback message that the second block link node agrees with the acknowledgment message is received;
and the activation module is used for activating the virtual number of the second client based on the activation mode in the communication contract.
8. The virtual number activation device based on block chains according to claim 7, wherein the generation module comprises:
the virtual number acquisition submodule is used for acquiring the virtual number of the first client and the virtual number of the second client;
the activation code generation submodule is used for generating the corresponding activation codes for the virtual number of the first client, the virtual number of the second client and the feedback message through a preset hash value algorithm;
and the communication contract generation submodule is used for generating the communication contract according to the activation code and synchronizing the communication contract into the block chain.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202011545144.7A 2020-12-23 2020-12-23 Virtual number activation method and device based on block chain and computer equipment Active CN112714437B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011545144.7A CN112714437B (en) 2020-12-23 2020-12-23 Virtual number activation method and device based on block chain and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011545144.7A CN112714437B (en) 2020-12-23 2020-12-23 Virtual number activation method and device based on block chain and computer equipment

Publications (2)

Publication Number Publication Date
CN112714437A true CN112714437A (en) 2021-04-27
CN112714437B CN112714437B (en) 2022-11-04

Family

ID=75543994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011545144.7A Active CN112714437B (en) 2020-12-23 2020-12-23 Virtual number activation method and device based on block chain and computer equipment

Country Status (1)

Country Link
CN (1) CN112714437B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109995523A (en) * 2019-03-13 2019-07-09 网易(杭州)网络有限公司 Activate code management method and device, activation code generating method and device
US20190238525A1 (en) * 2018-01-31 2019-08-01 Salesforce.Com, Inc. Systems, methods, and apparatuses for implementing super community and community sidechains with consent management for distributed ledger technologies in a cloud based computing environment
US20190281465A1 (en) * 2017-12-04 2019-09-12 Kevin K Moshir Blockchain for validating communications archiving
CN110233942A (en) * 2019-05-23 2019-09-13 中国平安人寿保险股份有限公司 The virtual unofficial biography method, apparatus of cell-phone number, equipment and storage medium
CN111277711A (en) * 2020-01-21 2020-06-12 腾讯科技(深圳)有限公司 Virtual contact number generation method and device, storage medium and computer equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190281465A1 (en) * 2017-12-04 2019-09-12 Kevin K Moshir Blockchain for validating communications archiving
US20190238525A1 (en) * 2018-01-31 2019-08-01 Salesforce.Com, Inc. Systems, methods, and apparatuses for implementing super community and community sidechains with consent management for distributed ledger technologies in a cloud based computing environment
CN109995523A (en) * 2019-03-13 2019-07-09 网易(杭州)网络有限公司 Activate code management method and device, activation code generating method and device
CN110233942A (en) * 2019-05-23 2019-09-13 中国平安人寿保险股份有限公司 The virtual unofficial biography method, apparatus of cell-phone number, equipment and storage medium
CN111277711A (en) * 2020-01-21 2020-06-12 腾讯科技(深圳)有限公司 Virtual contact number generation method and device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN112714437B (en) 2022-11-04

Similar Documents

Publication Publication Date Title
CN107508812B (en) Industrial control network data storage method, calling method and system
CN113691597B (en) Block chain contract deployment method, device, equipment and storage medium
CN111010372A (en) Block chain network identity authentication system, data processing method and gateway equipment
CN105681470B (en) Communication means, server based on hypertext transfer protocol, terminal
CN111277711B (en) Virtual contact number generation method and device, storage medium and computer equipment
CN112597481A (en) Sensitive data access method and device, computer equipment and storage medium
CN112822255B (en) Block chain-based mail processing method, mail sending end, receiving end and equipment
CN111488596A (en) Data processing permission verification method and device, electronic equipment and storage medium
CN112800393B (en) Authorization authentication method, software development kit generation method, device and electronic equipment
CN111522809A (en) Data processing method, system and equipment
CN110597541A (en) Interface updating processing method, device, equipment and storage medium based on block chain
CN104125230A (en) Short message authentication service system and authentication method
CN106605419A (en) Method and system for secure SMS communications
CN110597817A (en) Communication record evidence storing method and device based on block chain and computer equipment
CN107659579B (en) On-site certificate storing method and device and related certificate storing system
CN107888548A (en) A kind of Information Authentication method and device
CN111327602B (en) Equipment access processing method, equipment and storage medium
CN112714437B (en) Virtual number activation method and device based on block chain and computer equipment
CN110570197B (en) Data processing method and device based on block chain
CN113448924A (en) File display method, device, equipment and storage medium based on block chain
CN113342835A (en) Method, device, equipment and medium for modifying text to be checked based on block chain
CN110071908B (en) Terminal binding method and device, computer equipment and storage medium
CN110149367A (en) Judge calling interface request whether normal method, apparatus and computer equipment
JP6688782B2 (en) Network communication method and network communication system
CN110417754A (en) A kind of method and device of Intrusion Detection based on host agency service purview certification

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