CN112714437B - 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
CN112714437B
CN112714437B CN202011545144.7A CN202011545144A CN112714437B CN 112714437 B CN112714437 B CN 112714437B CN 202011545144 A CN202011545144 A CN 202011545144A CN 112714437 B CN112714437 B CN 112714437B
Authority
CN
China
Prior art keywords
client
virtual number
block chain
communication
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.)
Active
Application number
CN202011545144.7A
Other languages
Chinese (zh)
Other versions
CN112714437A (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, thereby ensuring that the user is not disturbed based on the virtual number, in addition, acquiring the actual number of the user through the block chain, transmitting information through the virtual number at the APP end, and preventing the actual number of the user from being transmitted in the block chain network, thereby avoiding the risk of revealing the mobile phone number of the user from the intermediate platform.

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 identifier for various communication, social contact and e-commerce APPs. 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, and people can not be harassed, even 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 first block link point 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 a virtual number of the first client and a 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 contract 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 for the first client to dial the virtual number of the second client;
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 point is connected with the second client; the virtual number activation device 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 obtaining sub-module is used for obtaining 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 block 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 needs to establish communication contract could 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 block 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 schematic block diagram of 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, descriptions such as "first", "second", etc. in the present invention are used for descriptive purposes only 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 the embodiments may be combined with each other, but must be based on the realization of the technical solutions by a person skilled in the art, and when the technical solutions are contradictory to each other 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 point 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 with 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 block 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 the first client installs corresponding APP software, and then registers on the APP software based on the actual number of the first client, namely, a first block link node is formed, so that the connection between the first client and the first block link node is realized, the first protocol is protocol information written in the first client, and the protocol information at least comprises a communication time period applied by the first client and 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 block link node according to the virtual number of the second client. That is, the first block link node sends an acknowledgement message to the second block link node, and the second block link node forwards the corresponding acknowledgement message to the second client when receiving the acknowledgement 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 above, 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 is synchronized into the block chain. After receiving and confirming the confirmation message, the second client feeds back a 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 step S4 above, the virtual number of the second client is activated based on the activation mode 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 an 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 blockchain 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 a communication contract is effected. 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, and the like, the generated hash value may be used as the 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 a corresponding communication contract is generated to 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, specific acquisition of the activate code is achieved. That is, a communication protocol in the feedback message is obtained, where the communication protocol includes a communicable time period between 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 a communication request can be issued for both communication parties), and the like, and the generated activation code mainly requires information such as the virtual numbers of the clients of both communication parties, a communicable time period, and the like, 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 a preset sequence, so that the format and the size of the input communication information are the same, and the generated activation code can be analyzed conveniently in the follow-up process.
In one embodiment, the step S1 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:
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 comprises the steps of firstly acquiring an actual number and number information of a first client, binding a corresponding virtual number for the first client according to the actual number, wherein 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 takeout, sales, housing agency, common users and the like. 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 blockchain, 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 contract in response to the modification instruction.
As described above in steps S401-S403, the definition of the modification of the communication contract is implemented. As can be seen from the above, corresponding modification permission levels are 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, the modification is not authorized, if the modification permission level of the first client is equal to that of the second client, the modification can be set as permission change or permission-free change, and the modification can be set in a block chain in advance, so that modification of the communication contract is realized, and the APP can be used more flexibly by each client.
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 for the first client to dial the virtual number of the second client;
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 the first client dials 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 system can also be used for only showing the actual number, or only showing the identity information of the first client side, and the like, or all showing the identity information and the like, then initiating a call request to the second client side according to the showing information selected by the user, namely showing the showing information selected by the first client side on the second client side, thereby realizing that the first client side transmits own information to the second client side, so that the second client side knows the identity of the first client side, and the call request is conveniently judged to be agreed, and the call is carried out with the first client side.
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 related to a second client;
a sending module 20, configured to send an acknowledgement message to the second block node according to the virtual number; wherein the second block link point is connected with the second client; the virtual number activation device 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 a modification instruction 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 contract if the communication contract is 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, an embodiment of the present application further provides a computer device, where the computer device may be a server, and an internal structure of the computer device may be as shown in fig. 3. 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.
It will be understood by those skilled in the art that the structure shown in fig. 3 is only a block diagram of a part of the structure related to the present application, and does not constitute a limitation to the computer device to which the present application is 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 embodiments described above may be implemented by hardware related to instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. 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), dual data rate SDRAM (SSRDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct Rambus Dynamic RAM (DRDRAM), and Rambus 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 phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of another identical element in a process, apparatus, article, or method comprising 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 service layer, and an application service 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 the steps of maintaining public and private key generation (account management), key management, user real identity and blockchain address corresponding relation maintenance (authority management) and the like, and under the authorized condition, supervising and auditing the transaction condition of some real identities, and providing 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 first block link point acquires a first protocol uploaded by a first client and a virtual number related to a second client;
sending a confirmation message to a second block chain 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 of claim 1 wherein the step of generating and synchronizing a communication contract into the blockchain in accordance with the feedback message includes:
acquiring a virtual number of the first client and a 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 contract 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 for the first client to dial the virtual number of the second client;
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;
the sending module is used for sending a confirmation message to the second block chain link point according to the virtual number; wherein the second block link point is connected with the second client; the virtual number activation device 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 of 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 CN112714437A (en) 2021-04-27
CN112714437B true 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 (3)

* 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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11089478B2 (en) * 2017-12-04 2021-08-10 Celltrust Corporation Blockchain for validating communications archiving
US10701054B2 (en) * 2018-01-31 2020-06-30 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

Patent Citations (3)

* 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
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
CN112714437A (en) 2021-04-27

Similar Documents

Publication Publication Date Title
CN113691597B (en) Block chain contract deployment method, device, equipment and storage medium
CN107508812B (en) Industrial control network data storage method, calling method and system
CN111010372A (en) Block chain network identity authentication system, data processing method and gateway equipment
CN111277711B (en) Virtual contact number generation method and device, storage medium and computer equipment
CN105681470B (en) Communication means, server based on hypertext transfer protocol, terminal
CN112597481A (en) Sensitive data access method and device, computer equipment and storage medium
CN110138744A (en) Replace method, apparatus, system, computer equipment and the storage medium of communicating number
CN110719203A (en) Operation control method, device and equipment of intelligent household equipment and storage medium
CN111628871B (en) Block chain transaction processing method and device, electronic equipment and storage medium
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
CN112187466A (en) Identity management method, device, equipment and storage medium
CN110908812A (en) Business data processing method and device, readable storage medium and computer equipment
CN110597541A (en) Interface updating processing method, device, equipment and storage medium based on block chain
CN111934870A (en) Method, apparatus, device and medium for updating root certificate in block chain network
CN104125230A (en) Short message authentication service system and authentication method
CN111292057A (en) Service processing method based on block chain
CN112948499A (en) Information acquisition method and device, electronic equipment and storage medium
CN114666064A (en) Block chain-based digital asset management method, device, storage medium and equipment
CN110278270A (en) A kind of polled data cochain method and its equipment based on block chain
CN112714437B (en) Virtual number activation method and device based on block chain and computer equipment
CN111327602B (en) Equipment access processing method, equipment and storage medium
US20090150979A1 (en) Network system, network method, and terminal and program therefor
CN110247921A (en) A kind of polled data cochain method and its equipment for applying intelligent contract

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