CN112184229A - Block chain-based sub-account transaction processing method, system and equipment - Google Patents

Block chain-based sub-account transaction processing method, system and equipment Download PDF

Info

Publication number
CN112184229A
CN112184229A CN202011098399.3A CN202011098399A CN112184229A CN 112184229 A CN112184229 A CN 112184229A CN 202011098399 A CN202011098399 A CN 202011098399A CN 112184229 A CN112184229 A CN 112184229A
Authority
CN
China
Prior art keywords
account
sub
user
address
account address
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.)
Pending
Application number
CN202011098399.3A
Other languages
Chinese (zh)
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.)
OneConnect Smart Technology Co Ltd
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN202011098399.3A priority Critical patent/CN112184229A/en
Publication of CN112184229A publication Critical patent/CN112184229A/en
Priority to PCT/CN2021/123563 priority patent/WO2022078398A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Abstract

The application provides a block chain-based sub-account transaction processing method, system and device, wherein a terminal receives a private key of a user and transfer information comprising a sub-account address, and the sub-account address comprises a main account address; signing the transfer information through a private key to obtain a transfer information ciphertext; and sending a transfer request comprising the transfer information ciphertext and the public key to the blockchain node. The block chain node acquires a corresponding sub-account address and a main account address according to the transfer request; and determining whether the sub account is the sub account of the user according to the sub account address and the main account address. According to the method and the system, a plurality of accounts of a user are constructed into a main account and a plurality of sub-accounts, and the sub-account addresses comprise main account addresses. The same private key is adopted by a plurality of accounts, so that the condition that the plurality of private keys are mixed or forgotten is avoided. And determining whether the sub-account is the account owned by the user according to the sub-account address and the main account address, and identifying the sub-account in time under the condition that the account is stolen so as to avoid user loss.

Description

Block chain-based sub-account transaction processing method, system and equipment
Technical Field
The application belongs to the technical field of block chains, and particularly relates to a block chain-based sub-account transaction processing method, system and device.
Background
At present, one private key corresponds to one account in a block chain account, when a user initiates a transfer request, a transfer amount and a destination account address are signed through the private key, and the transfer request carries the signature and a public key corresponding to the private key. And after receiving the transfer request, the block chain link point decrypts the signature in the transfer request through the public key carried by the transfer request to obtain the transfer amount and the destination account address. And then, the public key is operated through an asymmetric encryption algorithm to obtain an account address of the user, the transfer amount is transferred from the account address of the user, and the transfer amount is transferred from the destination account address.
Because one private key corresponds to one account, if a user has a plurality of accounts, the user needs to remember the plurality of private keys, and the private keys are easy to be mixed or lost.
Disclosure of Invention
The application provides a block chain-based sub-account transaction processing method, system and device, wherein a plurality of accounts of a user are constructed into a main account and a plurality of sub-accounts, and the sub-account addresses comprise main account addresses. The same private key is adopted by a plurality of accounts, so that the condition that the plurality of private keys are mixed or forgotten is avoided. And determining whether the sub-account is the account owned by the user according to the sub-account address and the main account address, and identifying the sub-account in time under the condition that the account is stolen so as to avoid user loss.
An embodiment of a first aspect of the present application provides a block chain-based sub-account transaction processing method, which is applied to a terminal, and includes:
receiving a private key submitted by a user and transfer information corresponding to a sub-account, wherein the transfer information comprises a sub-account address corresponding to the sub-account, and the sub-account address comprises a main account address corresponding to a main account of the user;
signing the transfer information through the private key to obtain a transfer information ciphertext;
and sending a transfer request corresponding to the sub-account to a block chain node, wherein the transfer request comprises the transfer information ciphertext and a pre-stored public key.
In some embodiments of the present application, before receiving the private key submitted by the user and the transfer information corresponding to the sub-account, the method further includes:
acquiring a main account address corresponding to a main account of a user;
generating a sub-account address according to the main account address;
and sending an account creation request to a blockchain node, wherein the account creation request comprises the sub-account address.
In some embodiments of the present application, the generating a sub-account address according to the main account address includes:
generating a temporary character string; and adding the temporary character string at a preset position of the character sequence of the main account address to obtain a sub-account address.
In some embodiments of the present application, the generating a temporary string includes:
generating a random number through a random number generator, and determining the random number as a temporary character string; or acquiring random information input by the user; and carrying out Hash operation on the random information to obtain a temporary character string.
An embodiment of a second aspect of the present application provides a block chain-based sub-account transaction processing method, applied to a block chain node, including:
receiving a transfer request corresponding to a sub-account sent by a terminal of a user;
acquiring a sub-account address corresponding to the sub-account and a main account address of the user according to the transfer request;
determining whether the sub account is a sub account owned by the user according to the sub account address and the main account address;
and if the sub account is determined to be the sub account owned by the user, transferring the transfer request.
In some embodiments of the present application, the obtaining, according to the transfer request, a sub-account address corresponding to the sub-account and a main account address of the user includes:
acquiring a public key and a transfer information ciphertext from the transfer request;
decrypting the transfer information ciphertext through the public key to obtain transfer information, wherein the transfer information comprises a sub-account address;
and calculating the public key through a preset asymmetric encryption algorithm to obtain the main account address of the user.
In some embodiments of the present application, the determining whether the sub-account is a sub-account owned by the user according to the sub-account address and the main account address includes:
determining whether the primary account address is included in the sub-account address;
if so, determining that the sub-account is a sub-account owned by the user;
if not, determining that the sub-account is not a sub-account owned by the user.
An embodiment of a third aspect of the present application provides a block chain-based sub-account transaction system, including: terminal and block link points;
the terminal is used for receiving a private key submitted by a user and transfer information corresponding to a sub-account, wherein the transfer information comprises a sub-account address corresponding to the sub-account, and the sub-account address comprises a main account address corresponding to a main account of the user; signing the transfer information through the private key to obtain a transfer information ciphertext; sending a transfer request corresponding to the sub-account to the block chain node, wherein the transfer request comprises the transfer information ciphertext and a pre-stored public key;
the block chain node is used for receiving the transfer request; acquiring a sub-account address corresponding to the sub-account and a main account address of the user according to the transfer request; determining whether the sub account is a sub account owned by the user according to the sub account address and the main account address; and if the sub account is determined to be the sub account owned by the user, transferring the transfer request.
An embodiment of a fourth aspect of the present application provides a computer device, including a memory and a processor, where the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, cause the processor to execute the steps of the block chain-based sub-account transaction processing method according to the first aspect or the second aspect.
Embodiments of a fifth aspect of the present application provide a storage medium storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to perform the steps of the block chain based sub-account transaction processing method of the first or second aspect.
The technical scheme provided in the embodiment of the application at least has the following technical effects or advantages:
in the embodiment of the application, a plurality of accounts owned by a user are constructed into a form of one main account and a plurality of sub-accounts, and the sub-account addresses corresponding to the sub-accounts comprise the main account address corresponding to the main account. The user only needs to memorize the private key corresponding to the main account, and the operation on the sub-account can be realized by combining the address of the main account and the address of the sub-account through one private key. Therefore, the multiple accounts of the user do not need to be distinguished by keys, the multiple accounts can adopt the same key, the user only needs to remember one private key, and any sub-account of the user can be operated by the private key, so that the condition that the multiple keys are mixed or forgotten is avoided. And the block chain node acquires the sub-account address and the main account address of the user according to the transfer request, and determines whether the current sub-account is the sub-account owned by the user or not according to the sub-account address and the main account address. The transfer processing is carried out only after the sub-account is determined to be the sub-account owned by the user, so that the account of the user can be identified in time under the condition that the account is stolen by other people, and the loss of the account balance of the user is avoided.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic flow chart illustrating a block chain-based sub-account transaction processing method according to an embodiment of the present application;
FIG. 2 is a block chain-based sub-account transaction processing system according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating an exemplary configuration of a computer device according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a storage medium provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another.
Some embodiments of the present application provide a block chain-based sub-account transaction processing method, in which a plurality of accounts owned by a user are constructed in the form of one main account and a plurality of sub-accounts, a sub-account address corresponding to a sub-account includes a main account address corresponding to the main account, and the user only needs to memorize a private key corresponding to the main account, and can implement an operation on the sub-account by using one private key in combination with the main account address and the sub-account address. Therefore, the plurality of accounts of the user do not need to be distinguished by the private keys, the plurality of accounts can adopt the same private key, the user only needs to remember one private key, and any sub-account of the user can be operated through the private key, so that the condition that the plurality of private keys are mixed or forgotten is avoided.
Before the sub-account transaction processing is performed by the method provided by the embodiment of the present application, a sub-account of a user is first created in a blockchain through the following operations of steps S1-S4, which specifically includes:
step S1: the terminal acquires a main account address corresponding to a main account of a user.
When a user needs to create a sub-account in the blockchain, the user can submit a main account address of the user to the terminal, and the main account address can be an account number of a main account selected by the user. And the terminal receives the primary account address submitted by the user.
Step S2: and the terminal generates a sub-account address according to the main account address.
The sub-account address is generated based on the primary account address so that when a subsequent sub-account transfer is made, it can be determined whether the sub-account is indeed the account owned by the user originating the transfer request based on the primary account address and the sub-account address. Therefore, the account of the user can be identified in time under the condition that the account of the user is stolen by other people, and the loss of the account balance of the user is avoided.
The terminal specifically generates the sub-account address through the following operations of steps S21 and S22, and specifically includes:
step S21: the terminal generates a temporary string.
The embodiment of the application can generate a random number through the random number generator, and the random number is determined as the temporary character string. Alternatively, the user inputs random information to the terminal, where the random information may be user information such as the user's name, nickname, telephone number, and address, or a character sequence randomly input by the user. As long as it is ensured that the random information entered by the user is different for each sub-account created. The terminal acquires random information input by a user, and performs hash operation on the random information to obtain a temporary character string.
A random number may be generated each time as a temporary string, or a hash operation may be performed on random information input by a user to obtain a temporary string. This ensures that the account address of each sub-account of the user is different.
Step S22: and adding a temporary character string at a preset position of the character sequence of the main account address by the terminal to obtain the sub-account address.
After generating the temporary character string through step S21, the terminal adds the temporary character string at a preset position of the character sequence of the primary account address, which may be a start position, an end position, an intermediate position, or the like of the character sequence of the primary account address. And adding the temporary character string into the address of the main account to obtain a new address, and taking the new address as the address of the sub-account corresponding to the sub-account which needs to be created currently.
The sub-account address is generated by adding a temporary character string in the main account address, so that the main account address is included in the sub-account address, and whether the sub-account is really the account owned by the user who initiates the transfer request can be determined according to the main account address and the sub-account address when the sub-account transfer is subsequently carried out. After the sub-account address is generated, the sub-account is created in the blockchain by the operation of step S3 as follows.
Step S3: and the terminal sends an account creation request to the block link point, wherein the account creation request comprises the generated sub-account address.
After the terminal generates the sub-account address, an account creation request is sent to the block link point, and the generated sub-account address is carried in the account creation request.
Step S4: and the block chain node receives an account creation request sent by the terminal and creates a sub-account of the user in the block chain.
The block link node receives an account creation request sent by the terminal, where the account creation request includes one or more of user information such as a user's name, phone, URL (Uniform Resource Locator), and the like, and includes the generated sub-account address. And storing the corresponding relation between the sub-account address and the user information in each block chain point. And storing the corresponding relation between the sub-account address and the user information in the block chain node to complete the creation process of the sub-account, wherein the block chain node can return a successful creation notification to the terminal.
In other embodiments of the present application, when a user needs to create a sub-account in a blockchain, after acquiring a primary account address corresponding to a primary account of the user, the terminal may also directly send an account creation request to a blockchain link point, where the account creation request includes the primary account address of the user and user information. After the block link point receives the account creation request, a sub-account address is generated by the block link point in the manner of step S2, and then. And storing the corresponding relation between the sub-account address and the user information in each block chain point, completing the creation process of the sub-account, and returning the sub-account address corresponding to the sub-account to the terminal of the user.
Each sub-account owned by the user may be created in a blockchain in the manner described above. After creating the sub-account, the user can perform a transfer operation on the sub-account. Referring to FIG. 1, the transfer operation is performed on the sub-account, specifically by the following operations of steps S101-S106.
Step S101: the terminal receives a private key submitted by a user and transfer information corresponding to the sub-account, wherein the transfer information comprises a sub-account address corresponding to the sub-account, and the sub-account address comprises a main account address corresponding to a main account of the user.
In the embodiment of the application, when a user creates a main account, a terminal generates a key pair by a preset asymmetric encryption algorithm according to the address of the main account of the user, and stores a public key included in the key pair in the terminal. The private key is remembered by the user himself. The predetermined asymmetric encryption Algorithm may be rsa (rsa Algorithm), DSA (Digital Signature Algorithm), ECC (Elliptic encryption Algorithm), etc.
When the user needs to transfer accounts from the sub-accounts to other accounts, the terminal displays a transfer interface, the user submits the sub-account address, the destination account address and the transfer amount corresponding to the sub-accounts in the transfer interface, and the private key of the user is input. The transfer information may include a sub-account address, a destination account address, and a transfer amount.
Step S102: and the terminal signs the transfer information through a private key submitted by the user to obtain a transfer information ciphertext.
And the terminal encrypts the transfer information such as the sub account address, the target account address, the transfer amount and the like through a private key input by the user to obtain a transfer information ciphertext.
Step S103: and the terminal sends a transfer request corresponding to the sub-account to the block chain node, wherein the transfer request comprises a transfer information ciphertext and a pre-stored public key.
And the terminal acquires a pre-stored public key from the local, generates a transfer request according to the public key and the transfer information ciphertext generated in the step S102, and sends the transfer request to the block chain node.
Step S104: and the block chain node receives a transfer request corresponding to the sub-account sent by the terminal of the user, and acquires the sub-account address corresponding to the sub-account and the main account address of the user according to the transfer request.
Specifically, the sub-account address and the main account address are obtained through the following operations of steps S1041 to S1043:
step S1041: and the block chain node acquires the public key and the transfer information ciphertext from the transfer request.
Step S1042: and the block chain node decrypts the transfer information ciphertext through the public key to obtain transfer information, wherein the transfer information comprises a sub-account address.
And the block chain node decrypts the transfer information ciphertext through the public key to obtain transfer information such as a sub-account address, a target account address, a transfer amount and the like.
Step S1043: and the block chain node calculates the public key through a preset asymmetric encryption algorithm to obtain the main account address of the user.
The public key is obtained by calculating the main account address of the user through the preset asymmetric encryption algorithm, so that the main account address of the user can be obtained by reversely running the public key through the preset asymmetric encryption algorithm.
The sub-account address corresponding to the transfer request and the main account address of the user can be obtained through the transfer request, so that whether the current sub-account is the account owned by the user or not can be determined according to the sub-account address and the main account address.
Step S105: and the block chain node determines whether the sub account is a sub account owned by the user according to the sub account address and the main account address.
And comparing the sub-account address with the main account address by the block chain node, and determining whether the main account address is included in the sub-account address. Specifically, the blockchain node traverses from a first character of the sub-account address, compares whether the first character of the sub-account address is the same as a first character of the main account address, and if so, compares whether a second character of the sub-account address is the same as a second character of the main account address. If the first character of the sub-account address is not the same as the first character of the primary account address, comparing whether the second character of the sub-account address is the same as the first character of the primary account address. And if the characters of the sub-account address and the main account address are traversed out and all the characters of the main account address are included in the sub-account address, determining that the sub-account address includes the main account address, and further determining that the sub-account is the sub-account owned by the user. If it is determined that the sub-account address does not include all of the characters of the primary account address, then it is determined that the sub-account is not a sub-account owned by the user.
Through the operation, whether the sub account which initiates the transfer request at present is the sub account owned by the user can be accurately determined, and if the sub account is determined not to be the sub account owned by the user, the fact that the user wants to transfer money from the sub account of other people is indicated, and property safety of other people is damaged. The method and the device for determining the sub-account can determine whether the sub-account is the sub-account owned by the current user. Therefore, the account of the user can be identified in time under the condition that the account of the user is stolen by other people, and the loss of the account balance of the user is avoided.
Since the sub-account addresses of the user are in the form of the main account address plus the temporary character string, the main account address of the user is included in the address of each sub-account of the user, and therefore, whether the sub-account is the sub-account owned by the current user can be determined by determining whether the main account address of the user is included in the address of the sub-account which currently initiates the account request. Therefore, the account of the user can be identified in time under the condition that the account of the user is stolen by other people, and the loss of the account balance of the user is avoided.
Step S106: and if the block chain node determines that the sub-account is the sub-account owned by the user, performing transfer processing on the transfer request.
If the block link point determines that the sub-account is a sub-account owned by the user, the transfer may be made. Specifically, according to the sub-account address and the transfer amount included in the transfer information obtained in step S1042, the transfer amount is subtracted from the account balance corresponding to the sub-account address. And adding the transfer amount to account balance corresponding to the destination account address according to the destination account address and the transfer amount included in the transfer information.
After the transfer is carried out from the sub account to the destination account in the mode, a transfer success notice is generated according to the sub account address, the transfer amount and the destination account address, and the transfer success notice comprises the sub account address, the transfer amount, the destination account address and prompt information for prompting the transfer success. And sending a transfer success notice to the terminal of the user so that the user can know the balance change condition of the sub-account in real time.
After the transfer of the sub-account is completed in the above mode, a transfer record corresponding to the transfer request is generated according to the transfer amount, the destination account address and the sub-account address. And storing the corresponding relation between the sub-account address and the transfer record in each block chain node. Based on the traceable and non-tamperable characteristics of the block chain, the transfer records of the sub-accounts are stored in the block chain link points, the authenticity of the transfer records of the sub-accounts can be ensured, and account book counterfeiting is avoided.
And if the block link point determines that the sub-account is not the sub-account owned by the user, the transfer operation cannot be carried out, the transfer request is discarded, and a transfer failure notification is sent to the terminal of the user. In this embodiment, the block link point may further obtain, according to the sub-account address, a URL of the real user of the sub-account from account information corresponding to the sub-account address. And sending warning information to the real user of the sub-account according to the acquired URL, wherein the warning information is used for prompting that other people try to transfer accounts from the sub-account, so that the user is prompted that the sub-account has a safety risk, the user can timely perform freezing operation on the sub-account, or the balance in the sub-account is transferred away, or own keys are modified, and the like, so that the loss of the account balance of the user is avoided when the sub-account is stolen.
In the embodiment of the application, a plurality of accounts owned by a user are constructed into a form of one main account and a plurality of sub-accounts, and the sub-account addresses corresponding to the sub-accounts comprise the main account address corresponding to the main account. The user only needs to memorize the private key corresponding to the main account, and the operation on the sub-account can be realized by combining the address of the main account and the address of the sub-account through one private key. Therefore, the multiple accounts of the user do not need to be distinguished by keys, the multiple accounts can adopt the same key, the user only needs to remember one private key, and any sub-account of the user can be operated by the private key, so that the condition that the multiple keys are mixed or forgotten is avoided. And the block chain node acquires the sub-account address and the main account address of the user according to the transfer request, and determines whether the current sub-account is the sub-account owned by the user or not according to the sub-account address and the main account address. The transfer processing is carried out only after the sub-account is determined to be the sub-account owned by the user, so that the account of the user can be identified in time under the condition that the account is stolen by other people, and the loss of the account balance of the user is avoided.
As shown in fig. 2, an embodiment of the present application provides a block chain-based sub-account transaction system, which includes: terminal 201 and block link point 202. The terminal 201 may be a mobile phone or a computer of a user. Only 3 block link nodes 202 are schematically shown in fig. 2, and any number of block link nodes 202 may be used in practice.
The terminal 201 is used for receiving a private key submitted by a user and transfer information corresponding to a sub-account, wherein the transfer information comprises a sub-account address corresponding to the sub-account, and the sub-account address comprises a main account address corresponding to a main account of the user; signing the transfer information through a private key to obtain a transfer information ciphertext; sending a transfer request corresponding to the sub-account to the block link point 202, wherein the transfer request comprises a transfer information ciphertext and a pre-stored public key;
a blockchain node 202 for receiving a transfer request; acquiring a sub-account address corresponding to the sub-account and a main account address of the user according to the transfer request; determining whether the sub account is a sub account owned by the user according to the sub account address and the main account address; and if the sub account is determined to be the sub account owned by the user, performing transfer processing on the transfer request.
The terminal 201 is specifically configured to obtain a primary account address corresponding to a primary account of a user; generating a sub-account address according to the main account address; an account creation request is sent to the block link point 202, the account creation request including the sub-account address.
The terminal 201 is specifically configured to generate a temporary character string; and adding a temporary character string at a preset position of the character sequence of the main account address to obtain a sub-account address.
The terminal 201 is specifically configured to generate a random number through a random number generator, and determine the random number as a temporary character string; or acquiring random information input by a user; and carrying out Hash operation on the random information to obtain a temporary character string.
The block chain node 202 is specifically used for acquiring a public key and a transfer information ciphertext from the transfer request; decrypting the transfer information ciphertext through the public key to obtain transfer information, wherein the transfer information comprises a sub-account address; and calculating the public key through a preset asymmetric encryption algorithm to obtain the main account address of the user.
The block chain node 202 is specifically configured to determine whether the sub-account address includes a main account address; if so, determining that the sub-account is the sub-account owned by the user; if not, it is determined that the sub-account is not a user owned sub-account.
In the embodiment of the application, a plurality of accounts owned by a user are constructed into a form of one main account and a plurality of sub-accounts, and the sub-account addresses corresponding to the sub-accounts comprise the main account address corresponding to the main account. The user only needs to memorize the private key corresponding to the main account, and the operation on the sub-account can be realized by combining the address of the main account and the address of the sub-account through one private key. Therefore, the multiple accounts of the user do not need to be distinguished by keys, the multiple accounts can adopt the same key, the user only needs to remember one private key, and any sub-account of the user can be operated by the private key, so that the condition that the multiple keys are mixed or forgotten is avoided. And the block chain node acquires the sub-account address and the main account address of the user according to the transfer request, and determines whether the current sub-account is the sub-account owned by the user or not according to the sub-account address and the main account address. The transfer processing is carried out only after the sub-account is determined to be the sub-account owned by the user, so that the account of the user can be identified in time under the condition that the account is stolen by other people, and the loss of the account balance of the user is avoided.
The embodiment of the application provides a computer device, which can be a terminal such as a mobile phone or a computer, or a block chain node device. As shown in fig. 3, the computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected through a system bus. The non-volatile storage medium of the computer device stores an operating system, a database and computer readable instructions, the database can store control information sequences, and the computer readable instructions can enable the processor to realize a block chain-based sub-account transaction processing method when being executed by the processor. The processor of the computer device is used for providing calculation and control capability and supporting the operation of the whole computer device. The memory of the computer device may have stored therein computer-readable instructions that, when executed by the processor, may cause the processor to perform a method of processing block chain based sub-account transactions. The network interface of the computer device is used for connecting and communicating with the terminal. Those skilled in the art will appreciate that the architecture shown in fig. 3 is merely 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 apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
When the computer device is a terminal, the computer device comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, and the processor executes the computer program to realize the following steps: receiving a private key submitted by a user and transfer information corresponding to a sub-account, wherein the transfer information comprises a sub-account address corresponding to the sub-account, and the sub-account address comprises a main account address corresponding to a main account of the user; signing the transfer information through a private key to obtain a transfer information ciphertext; and sending a transfer request corresponding to the sub-account to the block chain node, wherein the transfer request comprises a transfer information ciphertext and a pre-stored public key.
The following steps can be realized when the processor executes the computer program: acquiring a main account address corresponding to a main account of a user; generating a sub-account address according to the main account address; and sending an account creating request to the blockchain node, wherein the account creating request comprises a sub-account address.
The processor, when executing the computer program, may further perform the steps of: generating a temporary character string; and adding a temporary character string at a preset position of the character sequence of the main account address to obtain a sub-account address.
The processor, when executing the computer program, may further perform the steps of: generating a random number through a random number generator, and determining the random number as a temporary character string; or acquiring random information input by a user; and carrying out Hash operation on the random information to obtain a temporary character string.
When the computer device is a block link point device, the computer device comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, and the processor executes the computer program to realize the following steps: receiving a transfer request corresponding to a sub-account sent by a terminal of a user; acquiring a sub-account address corresponding to the sub-account and a main account address of the user according to the transfer request; determining whether the sub account is a sub account owned by the user according to the sub account address and the main account address; and if the sub account is determined to be the sub account owned by the user, performing transfer processing on the transfer request.
The processor, when executing the computer program, may further perform the steps of: acquiring a public key and a transfer information ciphertext from the transfer request; decrypting the transfer information ciphertext through the public key to obtain transfer information, wherein the transfer information comprises a sub-account address; and calculating the public key through a preset asymmetric encryption algorithm to obtain the main account address of the user.
The processor, when executing the computer program, may further perform the steps of: determining whether the sub-account address comprises a main account address; if so, determining that the sub-account is the sub-account owned by the user; if not, it is determined that the sub-account is not a user owned sub-account.
Embodiments of the present application also provide a storage medium storing computer-readable instructions, as shown in fig. 4, which when executed by one or more processors, cause the one or more processors to perform the following steps: receiving a private key submitted by a user and transfer information corresponding to a sub-account, wherein the transfer information comprises a sub-account address corresponding to the sub-account, and the sub-account address comprises a main account address corresponding to a main account of the user; signing the transfer information through the private key to obtain a transfer information ciphertext; and sending a transfer request corresponding to the sub-account to a block chain node, wherein the transfer request comprises the transfer information ciphertext and a pre-stored public key.
The processor may further perform the steps of: acquiring a main account address corresponding to a main account of a user; generating a sub-account address according to the main account address; and sending an account creating request to the blockchain node, wherein the account creating request comprises a sub-account address.
The processor may further perform the steps of: generating a temporary character string; and adding a temporary character string at a preset position of the character sequence of the main account address to obtain a sub-account address.
The processor may further perform the steps of: generating a random number through a random number generator, and determining the random number as a temporary character string; or acquiring random information input by a user; and carrying out Hash operation on the random information to obtain a temporary character string.
The computer readable instructions, when executed by the one or more processors, may further cause the one or more processors to perform the steps of: receiving a transfer request corresponding to a sub-account sent by a terminal of a user; acquiring a sub-account address corresponding to the sub-account and a main account address of the user according to the transfer request; determining whether the sub account is a sub account owned by the user according to the sub account address and the main account address; and if the sub account is determined to be the sub account owned by the user, performing transfer processing on the transfer request.
The processor may further perform the steps of: acquiring a public key and a transfer information ciphertext from the transfer request; decrypting the transfer information ciphertext through the public key to obtain transfer information, wherein the transfer information comprises a sub-account address; and calculating the public key through a preset asymmetric encryption algorithm to obtain the main account address of the user.
The processor may further perform the steps of: determining whether the sub-account address comprises a main account address; if so, determining that the sub-account is the sub-account owned by the user; if not, it is determined that the sub-account is not a user owned sub-account.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A sub-account transaction processing method based on a block chain is applied to a terminal and comprises the following steps:
receiving a private key submitted by a user and transfer information corresponding to a sub-account, wherein the transfer information comprises a sub-account address corresponding to the sub-account, and the sub-account address comprises a main account address corresponding to a main account of the user;
signing the transfer information through the private key to obtain a transfer information ciphertext;
and sending a transfer request corresponding to the sub-account to a block chain node, wherein the transfer request comprises the transfer information ciphertext and a pre-stored public key.
2. The method of claim 1, wherein before receiving the private key submitted by the user and the transfer information corresponding to the sub-account, the method further comprises:
acquiring a main account address corresponding to a main account of a user;
generating a sub-account address according to the main account address;
and sending an account creation request to a blockchain node, wherein the account creation request comprises the sub-account address.
3. The method of claim 2, wherein generating a sub-account address from the primary account address comprises:
generating a temporary character string;
and adding the temporary character string at a preset position of the character sequence of the main account address to obtain a sub-account address.
4. The method of claim 3, wherein generating a temporary string comprises:
generating a random number through a random number generator, and determining the random number as a temporary character string; alternatively, the first and second electrodes may be,
acquiring random information input by the user; and carrying out Hash operation on the random information to obtain a temporary character string.
5. A sub-account transaction processing method based on a block chain is characterized in that the method is applied to a block chain node and comprises the following steps:
receiving a transfer request corresponding to a sub-account sent by a terminal of a user;
acquiring a sub-account address corresponding to the sub-account and a main account address of the user according to the transfer request;
determining whether the sub account is a sub account owned by the user according to the sub account address and the main account address;
and if the sub account is determined to be the sub account owned by the user, transferring the transfer request.
6. The method of claim 5, wherein the obtaining a sub-account address corresponding to the sub-account and a primary account address of the user according to the transfer request comprises:
acquiring a public key and a transfer information ciphertext from the transfer request;
decrypting the transfer information ciphertext through the public key to obtain transfer information, wherein the transfer information comprises a sub-account address;
and calculating the public key through a preset asymmetric encryption algorithm to obtain the main account address of the user.
7. The method of claim 5, wherein determining whether the sub-account is a sub-account owned by the user based on the sub-account address and the main account address comprises:
determining whether the primary account address is included in the sub-account address;
if so, determining that the sub-account is a sub-account owned by the user;
if not, determining that the sub-account is not a sub-account owned by the user.
8. A block chain based sub-account transaction system, comprising: terminal and block link points;
the terminal is used for receiving a private key submitted by a user and transfer information corresponding to a sub-account, wherein the transfer information comprises a sub-account address corresponding to the sub-account, and the sub-account address comprises a main account address corresponding to a main account of the user; signing the transfer information through the private key to obtain a transfer information ciphertext; sending a transfer request corresponding to the sub-account to the block chain node, wherein the transfer request comprises the transfer information ciphertext and a pre-stored public key;
the block chain node is used for receiving the transfer request; acquiring a sub-account address corresponding to the sub-account and a main account address of the user according to the transfer request; determining whether the sub account is a sub account owned by the user according to the sub account address and the main account address; and if the sub account is determined to be the sub account owned by the user, transferring the transfer request.
9. A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the steps of the blockchain based sub-account transaction processing method of any one of claims 1 to 4 or 5 to 7.
10. A storage medium storing computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the blockchain based sub-account transaction processing method of any one of claims 1 to 4 or 5 to 7.
CN202011098399.3A 2020-10-14 2020-10-14 Block chain-based sub-account transaction processing method, system and equipment Pending CN112184229A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011098399.3A CN112184229A (en) 2020-10-14 2020-10-14 Block chain-based sub-account transaction processing method, system and equipment
PCT/CN2021/123563 WO2022078398A1 (en) 2020-10-14 2021-10-13 Blockchain-based sub-account transaction processing method and system, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011098399.3A CN112184229A (en) 2020-10-14 2020-10-14 Block chain-based sub-account transaction processing method, system and equipment

Publications (1)

Publication Number Publication Date
CN112184229A true CN112184229A (en) 2021-01-05

Family

ID=73950116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011098399.3A Pending CN112184229A (en) 2020-10-14 2020-10-14 Block chain-based sub-account transaction processing method, system and equipment

Country Status (2)

Country Link
CN (1) CN112184229A (en)
WO (1) WO2022078398A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113011882A (en) * 2021-04-23 2021-06-22 上海和数软件有限公司 Power data information query system based on block chain, electronic equipment and medium
CN113269642A (en) * 2021-05-24 2021-08-17 深圳壹账通智能科技有限公司 Transaction processing method, device, equipment and storage medium based on block chain
WO2022078398A1 (en) * 2020-10-14 2022-04-21 深圳壹账通智能科技有限公司 Blockchain-based sub-account transaction processing method and system, device and medium
CN117057806A (en) * 2023-10-11 2023-11-14 腾讯科技(深圳)有限公司 Data processing method and device based on block chain and related equipment

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114971610A (en) * 2022-04-22 2022-08-30 中移互联网有限公司 Transfer management method and device
CN117808602A (en) * 2024-03-01 2024-04-02 联动优势电子商务有限公司 Hot account billing method and related device based on sub-account expansion

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120597A (en) * 2018-07-18 2019-01-01 阿里巴巴集团控股有限公司 Proof of identity, login method, device and computer equipment
CN109523243A (en) * 2018-11-19 2019-03-26 济南浪潮高新科技投资发展有限公司 A kind of mist calculates the date storage method based on block chain under environment
CN109583887A (en) * 2018-10-26 2019-04-05 阿里巴巴集团控股有限公司 A kind of method of commerce and device of block chain
CN111027035A (en) * 2019-11-06 2020-04-17 香农数据有限公司 Multi-identity authentication method and system based on block chain
US10742422B1 (en) * 2019-08-14 2020-08-11 OX Labs Inc. Digital transaction signing for multiple client devices using secured encrypted private keys
KR102162763B1 (en) * 2019-05-31 2020-10-07 넷마블 주식회사 Method to transfer accounts

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109428722A (en) * 2017-08-30 2019-03-05 上海策赢网络科技有限公司 A kind of content delivery method and device
CN110084068B (en) * 2018-01-26 2023-09-29 阿里巴巴集团控股有限公司 Block chain system and data processing method for block chain system
CN110400136B (en) * 2018-04-27 2021-05-14 腾讯科技(深圳)有限公司 Account management method, device, server and storage medium based on block chain
CN110417561B (en) * 2018-04-28 2021-10-15 华为技术有限公司 Block chain-based distributed charging method, device and system
CN111104688B (en) * 2019-11-13 2021-11-16 上海链颉科技有限公司 Public and private key authority proxy method, system and storage medium based on block chain
CN110942301B (en) * 2019-11-22 2022-07-12 腾讯科技(深圳)有限公司 Data processing method and device based on block chain, computer and storage medium
CN112184229A (en) * 2020-10-14 2021-01-05 深圳壹账通智能科技有限公司 Block chain-based sub-account transaction processing method, system and equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120597A (en) * 2018-07-18 2019-01-01 阿里巴巴集团控股有限公司 Proof of identity, login method, device and computer equipment
CN109583887A (en) * 2018-10-26 2019-04-05 阿里巴巴集团控股有限公司 A kind of method of commerce and device of block chain
CN109523243A (en) * 2018-11-19 2019-03-26 济南浪潮高新科技投资发展有限公司 A kind of mist calculates the date storage method based on block chain under environment
KR102162763B1 (en) * 2019-05-31 2020-10-07 넷마블 주식회사 Method to transfer accounts
US10742422B1 (en) * 2019-08-14 2020-08-11 OX Labs Inc. Digital transaction signing for multiple client devices using secured encrypted private keys
CN111027035A (en) * 2019-11-06 2020-04-17 香农数据有限公司 Multi-identity authentication method and system based on block chain

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022078398A1 (en) * 2020-10-14 2022-04-21 深圳壹账通智能科技有限公司 Blockchain-based sub-account transaction processing method and system, device and medium
CN113011882A (en) * 2021-04-23 2021-06-22 上海和数软件有限公司 Power data information query system based on block chain, electronic equipment and medium
CN113269642A (en) * 2021-05-24 2021-08-17 深圳壹账通智能科技有限公司 Transaction processing method, device, equipment and storage medium based on block chain
CN117057806A (en) * 2023-10-11 2023-11-14 腾讯科技(深圳)有限公司 Data processing method and device based on block chain and related equipment
CN117057806B (en) * 2023-10-11 2024-01-30 腾讯科技(深圳)有限公司 Data processing method and device based on block chain and related equipment

Also Published As

Publication number Publication date
WO2022078398A1 (en) 2022-04-21

Similar Documents

Publication Publication Date Title
CN112184229A (en) Block chain-based sub-account transaction processing method, system and equipment
KR102050129B1 (en) Block chain supporting multiple one-way functions used for verification of blocks
CN110958110B (en) Block chain private data management method and system based on zero knowledge proof
JP6908700B2 (en) Systems and methods for information protection
CN110569668B (en) Data encryption storage method, device, equipment and medium based on block chain
CN110730963B (en) System and method for information protection
US20200358595A1 (en) System and method for information protection
CN109359994B (en) Service processing method, device and system based on block chain
CN112035889A (en) Block chain privacy verification method and device for computing outsourcing and computer equipment
CN112288434B (en) Privacy transaction method, device, zero knowledge proof system and privacy transaction architecture model
CN112069526A (en) Block chain-based account attribute processing method and device and storage medium
CN110138744A (en) Replace method, apparatus, system, computer equipment and the storage medium of communicating number
CN110930153B (en) Block chain privacy data management method and system based on hidden third party account
CN109660330B (en) Method and system for identity authentication on block chain
CN111815321A (en) Transaction proposal processing method, device, system, storage medium and electronic device
CN109272316A (en) A kind of block realization method and system under the chain network based on block
CN110719172B (en) Signature method, signature system and related equipment in block chain system
KR101253683B1 (en) Digital Signing System and Method Using Chained Hash
CN112347516A (en) Asset certification method and device based on block chain
CN110443076B (en) Evidence storage method and system based on real-name block chain
CN104917763B (en) A kind of PIN cache method
CN111353780A (en) Authorization verification method, device and storage medium
CN109816525A (en) A kind of data processing method and its device, medium, terminal
CN112330449A (en) Block chain-based joint account creation method, system, device and storage medium
CN111383008B (en) Block chain transfer method and device based on account model

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