CN107909476B - Digital asset receiving and sending method, electronic equipment and transaction system - Google Patents

Digital asset receiving and sending method, electronic equipment and transaction system Download PDF

Info

Publication number
CN107909476B
CN107909476B CN201711185411.2A CN201711185411A CN107909476B CN 107909476 B CN107909476 B CN 107909476B CN 201711185411 A CN201711185411 A CN 201711185411A CN 107909476 B CN107909476 B CN 107909476B
Authority
CN
China
Prior art keywords
digital asset
parameter
encryption operation
encryption
input
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
CN201711185411.2A
Other languages
Chinese (zh)
Other versions
CN107909476A (en
Inventor
王为民
张洪宁
林家存
罗宾
M·章
董智勇
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.)
Shenzhen Jiehui Technology Co ltd
Original Assignee
Shenzhen Jiehui Technology 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 Shenzhen Jiehui Technology Co ltd filed Critical Shenzhen Jiehui Technology Co ltd
Priority to CN201711185411.2A priority Critical patent/CN107909476B/en
Publication of CN107909476A publication Critical patent/CN107909476A/en
Application granted granted Critical
Publication of CN107909476B publication Critical patent/CN107909476B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a digital asset receiving and sending method, electronic equipment and a transaction system. The digital asset receiving method comprises the following steps: in response to a transaction event; obtaining a first encryption operation value and a second encryption operation value; initiating a payment operation to a payment system, and paying funds to the digital asset sender when the value obtained after the second encryption operation is carried out on the input value of the digital asset sender is consistent with the value obtained after the second encryption operation is carried out on the input value of the digital asset sender; obtaining an input value of a digital asset sender from a payment system as an authentication key; and performing the inverse operation of the first encryption operation on the Xk by using the verification key to obtain the digital asset. According to the invention, through the verification mode of the payment operation, both transaction parties can obtain the digital assets and funds at the same time, fraud is avoided, and the credible digital asset transaction is completed when no third party intervenes.

Description

Digital asset receiving and sending method, electronic equipment and transaction system
Technical Field
The invention relates to the technical field related to transaction systems, in particular to a digital asset receiving and sending method, electronic equipment and a transaction system.
Background
Digital asset trading, meaning that a customer has some solution X of the equation H (X) Y sold, where H is a programmable function, X is the solution to the function, and Y is the desired result. And when the B customer wishes to purchase the solution X, a digital asset transaction is generated.
For example, in a blockchain-based digital asset (token) trading system, when customer a issues a digital asset contract that does not specify a payee on the blockchain public/private/alliance chain. The digital contract needs three conditions to be executed, namely a public key signature As of a client A, a public key signature Bs of a client B of a receiving party and a digital asset X of the client A, and the pseudo code of the contract is As follows:
Constract(As,Bs,X)=Yb
the execution of the contract results in B customer obtaining digital asset X and A customer obtaining B customer's payment funds.
However, in the prior art, in order to avoid fraud when performing the above digital asset transaction, for example, a tells B to solve X and B does not pay, or a does not tell B to solve X after B pays, thus requiring the intervention of a third party, such as a transaction center or the like.
Thus, the prior art fails to complete a trusted digital asset transaction without third party intervention.
Disclosure of Invention
Based on this, it is necessary to provide a digital asset receiving and sending method, an electronic device and a transaction system for solving the technical problem that the prior art cannot complete the credible digital asset transaction without the intervention of a third party.
The invention provides a digital asset receiving method, which comprises the following steps:
responding to a transaction event, wherein the transaction event is that a digital asset sender sells a digital asset, and the digital asset obtains a preset expected result after being input into a preset programming function;
obtaining a first encryption operation value Xk and a second encryption operation value Hk, wherein Xk is a value obtained by a digital asset sender after performing a first encryption operation on a digital asset by using a random key K, and Hk is a value obtained by performing a second encryption operation on the random key;
initiating a payment operation to a payment system, wherein the payment operation pays funds to a digital asset sender when a value obtained after the second encryption operation is performed on an input value of the digital asset sender is consistent with Hk;
obtaining an input value of a digital asset sender from a payment system as an authentication key;
and performing the inverse operation of the first encryption operation on Xk by using the verification key to obtain the digital asset.
Further, the first encryption operation is a reversible encryption operation, and the second encryption operation is an irreversible encryption operation.
Further, after the responding to the transaction event, the method further comprises:
generating a judgment program, wherein input parameters of the judgment program comprise an input random key parameter and an input digital asset encryption parameter, the judgment program performs a second encryption operation on the random key parameter to obtain an output second encryption operation value parameter, inputs a value obtained by performing an inverse operation of a first encryption operation on the input digital asset encryption parameter by the input random key parameter into the programming function to obtain an output expected result parameter, and returns the input digital asset encryption parameter, the output second encryption operation value parameter and the output expected result parameter;
uploading the judgment program to a black box operation server, receiving an input digital asset encryption parameter, an output second encryption operation value parameter and an output expected result parameter returned by the black box operation server;
and if the output expected result parameter is consistent with the expected result, taking the input digital asset encryption parameter as a first encryption operation value Xk and taking the second encryption operation value parameter as a second encryption operation value Hk.
The invention provides a digital asset transmitting method, which comprises the following steps:
initiating a transaction event, wherein the transaction event is a sale digital asset, and a preset expected result is obtained after the digital asset is input into a preset programming function;
carrying out first encryption operation on the digital assets by using a random key K to obtain a first encryption operation value Xk, carrying out second encryption operation on the random key K to obtain a second encryption operation value Hk, wherein the first encryption operation value Xk and the second encryption operation value Hk are obtained by a digital asset receiving party;
and in response to a verification request of a payment operation initiated by the digital asset receiving party to a payment system, inputting the random key K to the payment system, paying funds when a value obtained after the random key K is subjected to the second encryption operation is consistent with Hk, sending the random key K to the digital asset receiving party by the payment system, and performing reverse operation of the first encryption operation on Xk by the digital asset receiving party to obtain the digital asset.
Further, after obtaining the first encryption operation value Xk after the first encryption operation is performed on the digital asset by using the random key K, the method further includes:
inputting the random key K, the first encryption operation value Xk and the programming function into a judgment program uploaded to a black box operation server by a digital asset receiving party, wherein input parameters of the judgment program comprise an input random key parameter and an input digital asset encryption parameter, the judgment program performs second encryption operation on the random key parameter to obtain an output second encryption operation value parameter, inputs a value obtained by performing inverse operation of the first encryption operation on the input digital asset encryption parameter by the input random key parameter into the programming function to obtain an output expected result parameter, and returns the input digital asset encryption parameter, the output second encryption operation value parameter and the output expected result parameter;
when the judgment program is input, the random key K corresponds to an input random key parameter, the first encryption operation value Xk corresponds to an input digital asset encryption parameter, the programming function corresponds to the input programming function parameter, the returned input digital asset encryption parameter, an output second encryption operation value parameter and an output expected result parameter are obtained, when the digital asset receiving party receives the output expected result parameter from the judgment program and is consistent with the expected result, the input digital asset encryption parameter is used as the first encryption operation value Xk, and the second encryption operation value parameter is used as the second encryption operation value Hk.
The present invention provides a digital asset receiving electronic device comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the one processor to cause the at least one processor to:
responding to a transaction event, wherein the transaction event is that a digital asset sender sells a digital asset, and the digital asset obtains a preset expected result after being input into a preset programming function;
obtaining a first encryption operation value Xk and a second encryption operation value Hk, wherein Xk is a value obtained by a digital asset sender after performing a first encryption operation on a digital asset by using a random key K, and Hk is a value obtained by performing a second encryption operation on the random key;
initiating a payment operation to a payment system, wherein the payment operation pays funds to a digital asset sender when a value obtained after the second encryption operation is performed on an input value of the digital asset sender is consistent with Hk;
obtaining an input value of a digital asset sender from a payment system as an authentication key;
and performing the inverse operation of the first encryption operation on Xk by using the verification key to obtain the digital asset.
Further, the first encryption operation is a reversible encryption operation, and the second encryption operation is an irreversible encryption operation.
Further, after the responding to the transaction event, the method further comprises:
generating a judgment program, wherein input parameters of the judgment program comprise an input random key parameter and an input digital asset encryption parameter, the judgment program performs a second encryption operation on the random key parameter to obtain an output second encryption operation value parameter, inputs a value obtained by performing an inverse operation of a first encryption operation on the input digital asset encryption parameter by the input random key parameter into the programming function to obtain an output expected result parameter, and returns the input digital asset encryption parameter, the output second encryption operation value parameter and the output expected result parameter;
uploading the judgment program to a black box operation server, receiving an input digital asset encryption parameter, an output second encryption operation value parameter and an output expected result parameter returned by the black box operation server;
and if the output expected result parameter is consistent with the expected result, taking the input digital asset encryption parameter as a first encryption operation value Xk and taking the second encryption operation value parameter as a second encryption operation value Hk.
The invention provides a digital asset transmission electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the one processor to cause the at least one processor to:
initiating a transaction event, wherein the transaction event is a sale digital asset, and a preset expected result is obtained after the digital asset is input into a preset programming function;
carrying out first encryption operation on the digital assets by using a random key K to obtain a first encryption operation value Xk, carrying out second encryption operation on the random key K to obtain a second encryption operation value Hk, wherein the first encryption operation value Xk and the second encryption operation value Hk are obtained by a digital asset receiving party;
and in response to a verification request of a payment operation initiated by the digital asset receiving party to a payment system, inputting the random key K to the payment system, paying funds when a value obtained after the random key K is subjected to the second encryption operation is consistent with Hk, sending the random key K to the digital asset receiving party by the payment system, and performing reverse operation of the first encryption operation on Xk by the digital asset receiving party to obtain the digital asset.
Further, after obtaining the first encryption operation value Xk after the first encryption operation is performed on the digital asset by using the random key K, the method further includes:
inputting the random key K, the first encryption operation value Xk and the programming function into a judgment program uploaded to a black box operation server by a digital asset receiving party, wherein input parameters of the judgment program comprise an input random key parameter and an input digital asset encryption parameter, the judgment program performs second encryption operation on the random key parameter to obtain an output second encryption operation value parameter, inputs a value obtained by performing inverse operation of the first encryption operation on the input digital asset encryption parameter by the input random key parameter into the programming function to obtain an output expected result parameter, and returns the input digital asset encryption parameter, the output second encryption operation value parameter and the output expected result parameter;
when the judgment program is input, the random key K corresponds to an input random key parameter, the first encryption operation value Xk corresponds to an input digital asset encryption parameter, the programming function corresponds to the input programming function parameter, the returned input digital asset encryption parameter, an output second encryption operation value parameter and an output expected result parameter are obtained, when the digital asset receiving party receives the output expected result parameter from the judgment program and is consistent with the expected result, the input digital asset encryption parameter is used as the first encryption operation value Xk, and the second encryption operation value parameter is used as the second encryption operation value Hk.
The invention provides a digital asset transaction system comprising a digital asset receiving electronic device as described above and a digital asset transmitting electronic device as described above, the digital asset receiving electronic device being in communicative connection with the digital asset transmitting electronic device.
The present invention provides a readable storage medium storing computer instructions for performing the digital asset receiving method of any of the above claims 1-3 when the computer instructions are executed by a computer.
The present invention provides a readable storage medium storing computer instructions for performing the method of transmitting a digital asset as claimed in any one of the preceding claims 4 to 5 when the computer instructions are executed by a computer.
According to the invention, through the verification mode of the payment operation, both transaction parties can obtain the digital assets and funds at the same time, fraud is avoided, and the credible digital asset transaction is completed when no third party intervenes.
Drawings
FIG. 1 is a flowchart of the operation of a digital asset receiving method of the present invention;
FIG. 2 is a flowchart illustrating a method for sending digital assets in accordance with the present invention;
FIG. 3 is a flowchart of the operation of a digital asset transaction method in accordance with a preferred embodiment of the present invention;
FIG. 4 is a schematic diagram of a hardware configuration of a digital asset receiving electronic device of the present invention;
FIG. 5 is a schematic diagram of a hardware configuration of a digital asset delivery electronic device of the present invention;
fig. 6 is a system block diagram of a digital asset transaction system of the present invention.
Detailed Description
The invention is described in further detail below with reference to the figures and specific examples.
Fig. 1 is a flowchart illustrating a digital asset receiving method according to the present invention, which includes:
step S101, responding to a transaction event, wherein the transaction event is that a digital asset sender sells a digital asset, and the digital asset obtains a preset expected result after inputting a preset programming function;
step S102, a first encryption operation value Xk and a second encryption operation value Hk are obtained, wherein Xk is a value obtained after a digital asset sender uses a random key K to perform first encryption operation on digital assets, and Hk is a value obtained after the random key is performed with second encryption operation;
step S103, initiating a payment operation to a payment system, wherein the payment operation pays funds to a digital asset sender when a value obtained after the second encryption operation is performed on an input value of the digital asset sender is consistent with Hk;
step S104, obtaining the input value of the digital asset sender from the payment system as a verification key;
and step S105, performing the inverse operation of the first encryption operation on Xk by using the verification key to obtain the digital asset.
Specifically, the present embodiment performs an encryption operation on the random key such that the digital asset receiver obtains a value encrypted by the random key, thereby hiding the random key, and therefore, all received by the digital asset receiver are encrypted values in step S101, and then performs verification of the payment operation using the second encryption operation value in step S103. Therefore, the unencrypted value of the digital asset is not available to the digital asset recipient until step S104, i.e., until the payment operation is complete. Then, after the verification password is obtained in step S104, the encrypted value of the digital asset may be decrypted to obtain the digital asset.
According to the invention, through the verification mode of the payment operation, both transaction parties can obtain the digital assets and funds at the same time, fraud is avoided, and the credible digital asset transaction is completed when no third party intervenes.
In one embodiment, the first encryption operation is a reversible encryption operation and the second encryption operation is an irreversible encryption operation.
Since the second encryption operation, that is, the encryption operation on the random key is an irreversible encryption operation, the encrypted value Hk of the random key cannot be decrypted through an inverse operation after being obtained by the digital asset receiver, thereby ensuring the security of the random key. After the payment operation is completed in step S104, the digital asset receiver obtains the random key, and performs the inverse operation of the first encryption operation by the random key to complete decryption, thereby obtaining the digital asset.
Specifically, the first encryption operation is preferably: advanced Encryption Standard (AES) that can be encrypted and decrypted by a key. The second encryption operation is preferably a hash obfuscation function, which is not invertible.
In one embodiment, after said responding to a transaction event, the method further comprises:
generating a judgment program, wherein input parameters of the judgment program comprise an input random key parameter and an input digital asset encryption parameter, the judgment program performs a second encryption operation on the random key parameter to obtain an output second encryption operation value parameter, inputs a value obtained by performing an inverse operation of a first encryption operation on the input digital asset encryption parameter by the input random key parameter into the programming function to obtain an output expected result parameter, and returns the input digital asset encryption parameter, the output second encryption operation value parameter and the output expected result parameter;
uploading the judgment program to a black box operation server, receiving an input digital asset encryption parameter, an output second encryption operation value parameter and an output expected result parameter returned by the black box operation server;
and if the output expected result parameter is consistent with the expected result, taking the input digital asset encryption parameter as a first encryption operation value Xk and taking the second encryption operation value parameter as a second encryption operation value Hk.
The present embodiment adds a decision-making procedure to enable both parties to the transaction to confirm the authenticity of the digital asset. Since the digital asset is a solution X of the equation H (X) ═ Y, the present embodiment performs determination by a determination program in order to determine that the solution X can be calculated by the function H to obtain Y before trading. After the digital asset sender confirms that the digital asset cannot be leaked, the judgment program provided by the digital asset receiver is uploaded to a black box operation server, such as a sandbox space, and the black box operation server only has input and output interfaces, so that the random key provided by the digital asset sender can be ensured not to be directly acquired by the digital asset receiver. After the judgment program judges that the expected result parameters are output, the digital asset receiver can be considered to provide a correct key when confirming that the expected result parameters are output to be consistent with the expected result, but the digital asset receiver cannot directly obtain the random key because the judgment program outputs only the encrypted value of the random key. After payment operation is carried out, the unencrypted random key can be obtained, so that not only the authenticity of the digital asset is ensured, but also the safety of the digital asset is ensured.
Fig. 2 is a flowchart illustrating a method for sending a digital asset according to the present invention, which includes:
step S201, initiating a transaction event, wherein the transaction event is a sale digital asset, and a preset expected result is obtained after the digital asset is input into a preset programming function;
step S202, a random key K is used for carrying out first encryption operation on digital assets to obtain a first encryption operation value Xk, the random key K is used for carrying out second encryption operation to obtain a second encryption operation value Hk, and the first encryption operation value Xk and the second encryption operation value Hk are obtained by a digital asset receiving party;
step S203, responding to a verification request of a payment operation initiated by the digital asset receiving party to a payment system, inputting the random key K to the payment system, paying funds when a value obtained after the random key K is subjected to the second encryption operation is consistent with Hk, sending the random key K to the digital asset receiving party by the payment system, and performing reverse operation of the first encryption operation on Xk by the digital asset receiving party to obtain the digital asset by the verification key K.
The digital asset sending method of the digital asset sender in this embodiment initiates a transaction through step S201, for example, a digital asset contract that does not specify a payee is issued on the blockchain public/private/alliance chain. Then, in step S202, the digital asset is encrypted by the random key K, and in step S203, the random key K is input to the payment system to verify the payment operation initiated by the digital asset recipient and finally obtain the payment funds.
In one embodiment, after obtaining the first encryption operation value Xk after the first encryption operation is performed on the digital asset by using the random key K, the method further includes:
inputting the random key K, the first encryption operation value Xk and the programming function into a judgment program uploaded to a black box operation server by a digital asset receiving party, wherein input parameters of the judgment program comprise an input random key parameter and an input digital asset encryption parameter, the judgment program performs second encryption operation on the random key parameter to obtain an output second encryption operation value parameter, inputs a value obtained by performing inverse operation of the first encryption operation on the input digital asset encryption parameter by the input random key parameter into the programming function to obtain an output expected result parameter, and returns the input digital asset encryption parameter, the output second encryption operation value parameter and the output expected result parameter;
when the judgment program is input, the random key K corresponds to an input random key parameter, the first encryption operation value Xk corresponds to an input digital asset encryption parameter, the programming function corresponds to the input programming function parameter, the returned input digital asset encryption parameter, an output second encryption operation value parameter and an output expected result parameter are obtained, when the digital asset receiving party receives the output expected result parameter from the judgment program and is consistent with the expected result, the input digital asset encryption parameter is used as the first encryption operation value Xk, and the second encryption operation value parameter is used as the second encryption operation value Hk.
As shown in fig. 3, as a preferred embodiment of the present invention, for equation H (X) Y, where H is a programmable function, X is the solution of the function, and Y is the desired result. When a client a has a solution X of the equation to sell and B client B wishes to purchase the solution X, a digital asset trading method of a preferred embodiment of the present invention, without the intervention of a third party or the presence of a third party to which both parties are trusted, comprises:
in step S301, the client a initiates a transaction event as a sender of the digital asset, and encrypts the digital asset X by using a random number K to form Xk, i.e., Xk ═ AES (X, K).
In step S302, the client B, as a digital asset receiver, constructs an executable decision program in response to the transaction event, as follows:
Program(K,Xk,H())=>[Xk,Hk,Y]{
hk — SHA512 (K); // SHA512 is a hash obfuscation function, i.e., hash obfuscating K, which is not invertible, so that anyone knows that Hk cannot deduce K back.
And Y is H (UN-AES (Xk, K))// the target function operation is executed after Xk is decrypted, and the expected result Y is calculated, wherein the UN-AES is the inverse operation of the AES.
return[Xk,Hk,Y]
}
Step S303, after the client A confirms that the judgment program is correct, namely X is not leaked, the client B uploads the judgment program to a cloud sandbox space, the sandbox space is a black box operation server, and only input and output are allowed to be acquired by a user.
In step S304, the client a transmits K, Xk as an input to the Program, and outputs answers Xk, Hk, and Y to the client B.
Step S305, the client B initiates a payment operation to the client a through a payment system, such as a payment interface of a bank, using the obtained Hk, where the payment operation is verified in the following manner:
SHA512(K)=Hk。
in step S306, the client a inputs K so as to satisfy the equation Hk — SHA512(K), and after the authentication is passed, K is transmitted to the B client, and the payment operation completes the payment of funds to the account of the client a.
Step S307, after obtaining K, the client B obtains X by decrypting Xk, that is: x is UN-AES (Xk, K).
The transaction mode of the embodiment enables the buyer and the seller to carry out safe transaction, and the transaction parties cannot carry out fraud, so that trust is not needed.
Fig. 4 is a schematic diagram of a hardware structure of a digital asset receiving electronic device according to the present invention, which includes:
at least one processor 401; and the number of the first and second groups,
a memory 402 communicatively coupled to the at least one processor 401; wherein the content of the first and second substances,
the memory 402 stores instructions executable by the one processor to cause the at least one processor to:
responding to a transaction event, wherein the transaction event is that a digital asset sender sells a digital asset, and the digital asset obtains a preset expected result after being input into a preset programming function;
obtaining a first encryption operation value Xk and a second encryption operation value Hk, wherein Xk is a value obtained by a digital asset sender after performing a first encryption operation on a digital asset by using a random key K, and Hk is a value obtained by performing a second encryption operation on the random key;
initiating a payment operation to a payment system, wherein the payment operation pays funds to a digital asset sender when a value obtained after the second encryption operation is performed on an input value of the digital asset sender is consistent with Hk;
obtaining an input value of a digital asset sender from a payment system as an authentication key;
and performing the inverse operation of the first encryption operation on Xk by using the verification key to obtain the digital asset.
One processor 402 is illustrated in fig. 4.
The server may further include: an input device 403 and an output device 404.
The processor 401, the memory 402, the input device 403, and the display device 404 may be connected by a bus or other means, and are illustrated as being connected by a bus.
The memory 402, which is a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the digital asset receiving method in the embodiments of the present application, for example, the method flows shown in fig. 1 and fig. 3. The processor 401 executes various functional applications and data processing by executing nonvolatile software programs, instructions, and modules stored in the memory 402, that is, implements the digital asset receiving method in the above-described embodiment.
The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the digital asset receiving method, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 402 optionally includes memory located remotely from processor 401, and these remote memories may be connected over a network to a device that performs the digital asset reception method. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 403 may receive input user clicks and generate signal inputs related to user settings and function control of the digital asset reception method. The display device 404 may include a display screen or the like.
The digital asset reception method in any of the above method embodiments is performed when the one or more modules are stored in the memory 402 and executed by the one or more processors 401.
In one embodiment, the first encryption operation is a reversible encryption operation and the second encryption operation is an irreversible encryption operation.
In one embodiment, after said responding to a transaction event, the method further comprises:
generating a judgment program, wherein input parameters of the judgment program comprise an input random key parameter, an input digital asset encryption parameter and an input programming function parameter, the judgment program performs a second encryption operation on the random key parameter to obtain an output second encryption operation value parameter, the input random key parameter performs a reverse operation of a first encryption operation on the input digital asset encryption parameter, and then the value obtained after the reverse operation is performed on the input digital asset encryption parameter is input into the input programming function parameter to obtain an output expected result parameter, and the input digital asset encryption parameter, the output second encryption operation value parameter and the output expected result parameter are returned;
uploading the judgment program to a black box operation server, receiving an input digital asset encryption parameter, an output second encryption operation value parameter and an output expected result parameter returned by the black box operation server;
and if the output expected result parameter is consistent with the expected result, taking the input digital asset encryption parameter as a first encryption operation value Xk and taking the second encryption operation value parameter as a second encryption operation value Hk.
Fig. 5 is a schematic diagram of a hardware structure of a digital asset transmission electronic device according to the present invention, including:
at least one processor 501; and the number of the first and second groups,
a memory 502 communicatively coupled to the at least one processor 501; wherein the content of the first and second substances,
the memory 502 stores instructions executable by the one processor to cause the at least one processor to:
initiating a transaction event, wherein the transaction event is a sale digital asset, and a preset expected result is obtained after the digital asset is input into a preset programming function;
carrying out first encryption operation on the digital assets by using a random key K to obtain a first encryption operation value Xk, carrying out second encryption operation on the random key K to obtain a second encryption operation value Hk, wherein the first encryption operation value Xk and the second encryption operation value Hk are obtained by a digital asset receiving party;
and in response to a verification request of a payment operation initiated by the digital asset receiving party to a payment system, inputting the random key K to the payment system, paying funds when a value obtained after the random key K is subjected to the second encryption operation is consistent with Hk, sending the random key K to the digital asset receiving party by the payment system, and performing reverse operation of the first encryption operation on Xk by the digital asset receiving party to obtain the digital asset.
One processor 502 is illustrated in fig. 5.
The server may further include: an input device 503 and an output device 504.
The processor 501, the memory 502, the input device 503, and the display device 504 may be connected by a bus or other means, and are illustrated as being connected by a bus.
The memory 502, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the digital asset transmission method in the embodiments of the present application, for example, the method flows shown in fig. 2 and fig. 3. The processor 501 executes various functional applications and data processing, i.e., implements the digital asset transmission method in the above-described embodiments, by executing nonvolatile software programs, instructions, and modules stored in the memory 502.
The memory 502 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the digital asset transmission method, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 502 optionally includes memory located remotely from processor 501, and these remote memories may be connected over a network to a device that performs the method of digital asset transmission. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Input device 503 may receive input user clicks and generate signal inputs related to user settings and function controls for the digital asset delivery method. The display 504 may include a display device such as a display screen.
The digital asset transmission method in any of the above method embodiments is performed when the one or more modules are stored in the memory 502 and when executed by the one or more processors 501.
In one embodiment, after obtaining the first encryption operation value Xk after the first encryption operation is performed on the digital asset by using the random key K, the method further includes:
inputting the random key K, the first encryption operation value Xk and the programming function into a judgment program uploaded to a black box operation server by a digital asset receiving party, wherein input parameters of the judgment program comprise an input random key parameter and an input digital asset encryption parameter, the judgment program performs second encryption operation on the random key parameter to obtain an output second encryption operation value parameter, inputs a value obtained by performing inverse operation of the first encryption operation on the input digital asset encryption parameter by the input random key parameter into the programming function to obtain an output expected result parameter, and returns the input digital asset encryption parameter, the output second encryption operation value parameter and the output expected result parameter;
when the judgment program is input, the random key K corresponds to an input random key parameter, the first encryption operation value Xk corresponds to an input digital asset encryption parameter, the programming function corresponds to the input programming function parameter, the returned input digital asset encryption parameter, an output second encryption operation value parameter and an output expected result parameter are obtained, when the digital asset receiving party receives the output expected result parameter from the judgment program and is consistent with the expected result, the input digital asset encryption parameter is used as the first encryption operation value Xk, and the second encryption operation value parameter is used as the second encryption operation value Hk.
Fig. 6 is a system block diagram of a digital asset transaction system of the present invention, which includes the aforementioned digital asset receiving electronic device 61 and the aforementioned digital asset transmitting electronic device 62, wherein the digital asset receiving electronic device 61 is connected to the digital asset transmitting electronic device 62 in communication.
The present invention provides a readable storage medium storing computer instructions for performing the digital asset receiving method of any of the above claims 1-3 when the computer instructions are executed by a computer.
The present invention provides a readable storage medium storing computer instructions for performing the method of transmitting a digital asset as claimed in any one of the preceding claims 4 to 5 when the computer instructions are executed by a computer.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (13)

1. A digital asset receiving method, comprising:
responding to a transaction event, wherein the transaction event is that a digital asset sender sells a digital asset, and the digital asset obtains a preset expected result after being input into a preset programming function;
obtaining a first encryption operation value Xk and a second encryption operation value Hk, wherein Xk is a value obtained by a digital asset sender after performing a first encryption operation on a digital asset by using a random key K, and Hk is a value obtained by performing a second encryption operation on the random key;
initiating a payment operation to a payment system, wherein the payment operation pays funds to a digital asset sender when a value obtained after the second encryption operation is performed on an input value of the digital asset sender is consistent with Hk;
obtaining an input value of a digital asset sender from a payment system as an authentication key;
and performing the inverse operation of the first encryption operation on Xk by using the verification key to obtain the digital asset.
2. The digital asset reception method of claim 1, wherein the first encryption operation is a reversible encryption operation and the second encryption operation is an irreversible encryption operation.
3. The digital asset reception method of claim 1, wherein after said responding to a transaction event, said method further comprises:
generating a judgment program, wherein input parameters of the judgment program comprise an input random key parameter and an input digital asset encryption parameter, the judgment program performs a second encryption operation on the random key parameter to obtain an output second encryption operation value parameter, inputs a value obtained by performing an inverse operation of a first encryption operation on the input digital asset encryption parameter by the input random key parameter into the programming function to obtain an output expected result parameter, and returns the input digital asset encryption parameter, the output second encryption operation value parameter and the output expected result parameter;
uploading the judgment program to a black box operation server, receiving an input digital asset encryption parameter, an output second encryption operation value parameter and an output expected result parameter returned by the black box operation server;
and if the output expected result parameter is consistent with the expected result, taking the input digital asset encryption parameter as a first encryption operation value Xk and taking the second encryption operation value parameter as a second encryption operation value Hk.
4. A method for transmitting a digital asset, comprising:
initiating a transaction event, wherein the transaction event is a sale digital asset, and a preset expected result is obtained after the digital asset is input into a preset programming function;
carrying out first encryption operation on the digital assets by using a random key K to obtain a first encryption operation value Xk, carrying out second encryption operation on the random key K to obtain a second encryption operation value Hk, wherein the first encryption operation value Xk and the second encryption operation value Hk are obtained by a digital asset receiving party;
and inputting the random key K to a payment system in response to a verification request of a payment operation initiated by the digital asset receiving party to the payment system, wherein the payment operation pays funds when a value obtained after the second encryption operation is performed on the random key K is consistent with Hk, the payment system sends the random key K to the digital asset receiving party, the random key is used as a verification key, and the verification key K is used by the digital asset receiving party for performing the inverse operation of the first encryption operation on Xk to obtain the digital asset.
5. The method according to claim 4, wherein after the first encryption operation on the digital asset by using the random key K to obtain the first encryption operation value Xk, the method further comprises:
inputting the random key K, the first encryption operation value Xk and the programming function into a judgment program uploaded to a black box operation server by a digital asset receiving party, wherein input parameters of the judgment program comprise an input random key parameter and an input digital asset encryption parameter, the judgment program performs second encryption operation on the random key parameter to obtain an output second encryption operation value parameter, inputs a value obtained by performing inverse operation of the first encryption operation on the input digital asset encryption parameter by the input random key parameter into the programming function to obtain an output expected result parameter, and returns the input digital asset encryption parameter, the output second encryption operation value parameter and the output expected result parameter;
when the judgment program is input, the random key K corresponds to an input random key parameter, the first encryption operation value Xk corresponds to an input digital asset encryption parameter, the programming function corresponds to the input programming function parameter, the returned input digital asset encryption parameter, an output second encryption operation value parameter and an output expected result parameter are obtained, when the digital asset receiving party receives the output expected result parameter from the judgment program and is consistent with the expected result, the input digital asset encryption parameter is used as the first encryption operation value Xk, and the second encryption operation value parameter is used as the second encryption operation value Hk.
6. A digital asset receiving electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the one processor to cause the at least one processor to:
responding to a transaction event, wherein the transaction event is that a digital asset sender sells a digital asset, and the digital asset obtains a preset expected result after being input into a preset programming function;
obtaining a first encryption operation value Xk and a second encryption operation value Hk, wherein Xk is a value obtained by a digital asset sender after performing a first encryption operation on a digital asset by using a random key K, and Hk is a value obtained by performing a second encryption operation on the random key;
initiating a payment operation to a payment system, wherein the payment operation pays funds to a digital asset sender when a value obtained after the second encryption operation is performed on an input value of the digital asset sender is consistent with Hk;
obtaining an input value of a digital asset sender from a payment system as an authentication key;
and performing the inverse operation of the first encryption operation on Xk by using the verification key to obtain the digital asset.
7. The digital asset receiving electronic device of claim 6, wherein the first encryption operation is a reversible encryption operation and the second encryption operation is an irreversible encryption operation.
8. The digital asset receiving electronic device of claim 6, further comprising, after said responding to a transaction event:
generating a judgment program, wherein input parameters of the judgment program comprise an input random key parameter and an input digital asset encryption parameter, the judgment program performs a second encryption operation on the random key parameter to obtain an output second encryption operation value parameter, inputs a value obtained by performing an inverse operation of a first encryption operation on the input digital asset encryption parameter by the input random key parameter into the programming function to obtain an output expected result parameter, and returns the input digital asset encryption parameter, the output second encryption operation value parameter and the output expected result parameter;
uploading the judgment program to a black box operation server, receiving an input digital asset encryption parameter, an output second encryption operation value parameter and an output expected result parameter returned by the black box operation server;
and if the output expected result parameter is consistent with the expected result, taking the input digital asset encryption parameter as a first encryption operation value Xk and taking the second encryption operation value parameter as a second encryption operation value Hk.
9. A digital asset transmission electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the one processor to cause the at least one processor to:
initiating a transaction event, wherein the transaction event is a sale digital asset, and a preset expected result is obtained after the digital asset is input into a preset programming function;
carrying out first encryption operation on the digital assets by using a random key K to obtain a first encryption operation value Xk, carrying out second encryption operation on the random key K to obtain a second encryption operation value Hk, wherein the first encryption operation value Xk and the second encryption operation value Hk are obtained by a digital asset receiving party;
and inputting the random key K to a payment system in response to a verification request of a payment operation initiated by the digital asset receiving party to the payment system, wherein the payment operation pays funds when a value obtained after the second encryption operation is performed on the random key K is consistent with Hk, the payment system sends the random key K to the digital asset receiving party, the random key is used as a verification key, and the verification key K is used by the digital asset receiving party for performing the inverse operation of the first encryption operation on Xk to obtain the digital asset.
10. The digital asset transmission electronic device according to claim 9, further comprising, after said first encryption operation on the digital asset using the random key K to obtain a first encryption operation value Xk:
inputting the random key K, the first encryption operation value Xk and the programming function into a judgment program uploaded to a black box operation server by a digital asset receiving party, wherein input parameters of the judgment program comprise an input random key parameter and an input digital asset encryption parameter, the judgment program performs second encryption operation on the random key parameter to obtain an output second encryption operation value parameter, inputs a value obtained by performing inverse operation of the first encryption operation on the input digital asset encryption parameter by the input random key parameter into the programming function to obtain an output expected result parameter, and returns the input digital asset encryption parameter, the output second encryption operation value parameter and the output expected result parameter;
when the judgment program is input, the random key K corresponds to an input random key parameter, the first encryption operation value Xk corresponds to an input digital asset encryption parameter, the programming function corresponds to the input programming function parameter, the returned input digital asset encryption parameter, an output second encryption operation value parameter and an output expected result parameter are obtained, when the digital asset receiving party receives the output expected result parameter from the judgment program and is consistent with the expected result, the input digital asset encryption parameter is used as the first encryption operation value Xk, and the second encryption operation value parameter is used as the second encryption operation value Hk.
11. A digital asset transaction system comprising a digital asset receiving electronic device according to any of claims 6 to 8 and a digital asset transmitting electronic device according to any of claims 9 to 10, said digital asset receiving electronic device being communicatively connected to said digital asset transmitting electronic device.
12. A readable storage medium storing computer instructions for performing the digital asset receiving method of any of the preceding claims 1-3 when the computer instructions are executed by a computer.
13. A readable storage medium storing computer instructions for performing the method of transmitting digital assets according to any one of the preceding claims 4-5 when the computer instructions are executed by a computer.
CN201711185411.2A 2017-11-23 2017-11-23 Digital asset receiving and sending method, electronic equipment and transaction system Active CN107909476B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711185411.2A CN107909476B (en) 2017-11-23 2017-11-23 Digital asset receiving and sending method, electronic equipment and transaction system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711185411.2A CN107909476B (en) 2017-11-23 2017-11-23 Digital asset receiving and sending method, electronic equipment and transaction system

Publications (2)

Publication Number Publication Date
CN107909476A CN107909476A (en) 2018-04-13
CN107909476B true CN107909476B (en) 2021-07-20

Family

ID=61847715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711185411.2A Active CN107909476B (en) 2017-11-23 2017-11-23 Digital asset receiving and sending method, electronic equipment and transaction system

Country Status (1)

Country Link
CN (1) CN107909476B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105373955A (en) * 2015-12-08 2016-03-02 布比(北京)网络技术有限公司 Multi-signature-based digital asset treatment method and device
CN105956923A (en) * 2016-04-20 2016-09-21 上海如鸽投资有限公司 Asset transaction platform and digital certification and transaction method for assets
CN106982205A (en) * 2017-03-01 2017-07-25 中钞信用卡产业发展有限公司北京智能卡技术研究院 Digital asset treating method and apparatus based on block chain

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964793A (en) * 2010-10-08 2011-02-02 上海银联电子支付服务有限公司 Method and system for transmitting data between terminal and server and sign-in and payment method
US20160307192A1 (en) * 2015-04-17 2016-10-20 Todd Frankson Secure Digital Asset Distribution System and Methods
CN105681301B (en) * 2016-01-16 2019-03-12 杭州复杂美科技有限公司 Settlement method on block chain
CN106779707B (en) * 2016-12-23 2021-04-09 中钞信用卡产业发展有限公司杭州区块链技术研究院 Block chain-based digital currency transaction information supervision method, device and system
CN106790253A (en) * 2017-01-25 2017-05-31 中钞信用卡产业发展有限公司北京智能卡技术研究院 Authentication method and device based on block chain
CN107038578B (en) * 2017-04-19 2020-10-16 浙江数秦科技有限公司 Multi-signature transaction information processing method in data transaction platform based on block chain
CN107220824A (en) * 2017-05-02 2017-09-29 北京云知科技有限公司 A kind of commercial articles vending system and method based on digital cash
CN107222312B (en) * 2017-06-20 2020-11-24 无锡井通网络科技有限公司 Asset digitalization method based on block chain technology
CN107342858B (en) * 2017-07-05 2019-09-10 武汉凤链科技有限公司 A kind of intelligent contract guard method and system based on trusted context

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105373955A (en) * 2015-12-08 2016-03-02 布比(北京)网络技术有限公司 Multi-signature-based digital asset treatment method and device
CN105956923A (en) * 2016-04-20 2016-09-21 上海如鸽投资有限公司 Asset transaction platform and digital certification and transaction method for assets
CN106982205A (en) * 2017-03-01 2017-07-25 中钞信用卡产业发展有限公司北京智能卡技术研究院 Digital asset treating method and apparatus based on block chain

Also Published As

Publication number Publication date
CN107909476A (en) 2018-04-13

Similar Documents

Publication Publication Date Title
JP5766199B2 (en) Secure mobile payment processing
EP3813324B1 (en) Data processing method and device
JP6117317B2 (en) Non-repudiation method, settlement management server for this, and user terminal
CN109697365B (en) Information processing method, block chain node and electronic equipment
CN103138934A (en) Secure key generation
CN112383611B (en) File evidence storing method and system based on block chain and server
CN102790767B (en) Information safety control method, information safety display equipment and electronic trading system
CN102223354B (en) Network payment authentication method, server and system
US11756029B2 (en) Secured end-to-end communication for remote payment verification
CN115114658B (en) Verifiable data transaction method, device, equipment and medium based on blockchain
CN112581127A (en) Commodity transaction method and device, computer equipment, storage medium and system
CN111431840B (en) Security processing method and device, computer equipment and readable storage medium
WO2020176950A1 (en) Systems, methods and devices for provision of a secret
CN109792446A (en) Transient state trading server
CN110636067A (en) Data encryption method, data decryption method and device
CN110838919A (en) Communication method, storage method, operation method and device
CN103139737B (en) Cryptographic key negotiation method and device, note secondary-confirmation method, system and equipment
CN116506134B (en) Digital certificate management method, device, equipment, system and readable storage medium
CN107909476B (en) Digital asset receiving and sending method, electronic equipment and transaction system
KR102056612B1 (en) Method for Generating Temporary Anonymous Certificate
CN108429621B (en) Identity verification method and device
CN111260359A (en) Mobile payment method, device and system
TW201619880A (en) Network authentication method using card device
CN103903130A (en) Payment system and payment method achieved through near field communication
CN116561739B (en) Data transaction method and device, electronic equipment and storage medium

Legal Events

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