A method for transferring value within emails based on blockchain technology

By using QR codes in emails to achieve blockchain value transfer, the problem of ordinary users' operation complexity and the inability to deliver value in traditional emails is solved, and the popularization of blockchain technology and the simplicity of value transfer is achieved.

CN115034771BActive Publication Date: 2025-05-16BEIJING SEND GOOD LUCK INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210751907.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-28
Publication Date
2025-05-16
Estimated Expiration
2042-06-28

AI Technical Summary

Technical Problem

The existing technology is difficult to promote the popularization of blockchain technology among ordinary users, mainly due to the operational complexity of digital tokens and the inability of traditional emails to deliver value.

Method used

By generating QR codes to realize blockchain value transfer in emails, users can complete value transfer by simply sending and receiving emails through emails. Email service providers provide blockchain-based value transfer services between mailboxes.

Benefits of technology

It realizes that ordinary users can easily and conveniently complete blockchain value transfer through email, reduces the difficulty of value transfer, and supports the transfer of multiple digital tokens, promoting the popularization of blockchain technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115034771B_ABST
    Figure CN115034771B_ABST
Patent Text Reader

Abstract

The present invention provides a method for transferring value in an email based on blockchain technology, which includes the following steps: S1, generating a QR code Q1 for initiating a transaction: generating the QR code Q1 according to the parameters of the receiving mailbox and the parameters of the digital token of the transaction as the metadata of the QR code; S2, confirming the transaction operation: the sending user scans the QR code Q1 to confirm whether to perform the transaction operation, and deducts the digital token required for the operation after confirming the transaction operation, and generates the QR code Q2 according to the transaction data generated by the transaction operation and inserts it into the email; S3, verifying whether the receiving mailbox Rae is bound to the blockchain address Sab: confirming that the receiving mailbox Rae has been bound to the blockchain address Sab and the blockchain public key Rpk and generating an extended multi-token blockchain wallet; S4, receiving the transaction and trading the digital token to the blockchain address of the receiving mailbox. It realizes the transfer of value in the email through blockchain technology, has high security, can distinguish responsibilities, and does not need to record complex blockchain addresses.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the application field of blockchain technology, and in particular to a method for transferring value within emails based on blockchain technology. Background Art

[0002] Blockchain technology was born in 2008. It is an Internet database technology that has the characteristics of decentralization, openness, transparency, traceability, and high difficulty in data tampering that centralized systems do not have. It brings a new solution to the problems of centralized systems. Compared with centralized systems, the information recorded by blockchain is more authentic and reliable, which can help people solve the trust problem in reality.

[0003] As the value carrier of blockchain technology, digital tokens are essentially an agreement between digital token owners. Blockchain provides the underlying technical support for digital tokens, and digital tokens, as the carrier of blockchain technology, have gradually been accepted by more and more people. However, the relevant operations of digital tokens require relatively professional knowledge, and a certain amount of knowledge reserves are required to complete the transfer operations such as sending and receiving digital tokens, which has a certain impact on the popularization of blockchain technology.

[0004] Email services have been around for many years. For people who can use computers or smartphones, email is already very familiar to them, and users are proficient in sending and receiving emails. However, traditional emails are limited in their capabilities and can only transfer text, multimedia and other information between people, but not in their ability to transfer value. If there is a way to allow people to transfer digital tokens as easily as sending and receiving emails, and the underlying logic of value between blockchains is managed by the program, ordinary users only need to write and receive emails to easily and conveniently complete the value transfer, then it will definitely have a very positive impact on promoting the popularization of blockchain. Therefore, there is an urgent need to study a method for value transfer and transmission in emails based on blockchain technology. Summary of the invention

[0005] Based on the above shortcomings of the prior art, the present invention provides a method for value transfer in emails based on blockchain technology, which realizes the completion of blockchain value transfer through emails. Ordinary users can complete the value transfer operation as long as they have their own mailboxes. As long as the email service provider provides an email value transfer solution based on the present invention, it can provide ordinary users with value transfer services between mailboxes based on blockchain technology.

[0006] The present invention provides a method for transferring value in emails based on blockchain technology, which comprises the following steps:

[0007] S1. Generate a QR code Q1 for initiating a transaction: Generate a QR code Q1 based on the parameters of the receiving mailbox and the parameters of the digital token of the transaction as the metadata of the QR code;

[0008] S2. Confirm the transaction operation: The sender scans the QR code Q1 to confirm whether to carry out the transaction operation. After confirming the transaction operation, the digital token required for the operation is deducted. The QR code Q2 is generated according to the transaction data generated by the transaction operation and inserted into the email;

[0009] S3. Verify whether the receiving mailbox Rae is bound to the blockchain address Sab: Confirm that the receiving mailbox Rae has been bound to the blockchain address Sab and the blockchain public key Rpk and generate an extended multi-token blockchain wallet;

[0010] S4. Receive the transaction, verify the signature and transfer the digital token to the blockchain wallet under the blockchain address of the recipient’s email address.

[0011] Preferably, before generating the QR code Q1, it is necessary to bind the user's email address Sae with the blockchain address Sab authenticated by the blockchain wallet private key and the blockchain public key Spk set by the encrypted email.

[0012] Preferably, in step S3, if the receiving mailbox Rae is not bound to the blockchain address Sab and its corresponding public key Rpk, the user is prompted to use the mailbox Rae to bind the blockchain address Sab and the public key Rpk; if the receiving mailbox Rae has been bound to the blockchain address Sab and its corresponding public key Rpk but the extended multi-token blockchain wallet has not been generated, the user is prompted to generate an extended multi-token blockchain wallet.

[0013] Preferably, the method is applied to a scenario with a fixed receiving mailbox or a scenario without a fixed receiving mailbox and the transaction amount is random.

[0014] Preferably, when the method is applied to a scenario with a fixed receiving mailbox, the generation method of the QR code Q1 in step S1 is specifically as follows: the receiving mailbox Rae, the digital token type T and the number of digital tokens Cn are concatenated into a string C1, and the string C1 is converted into a QR code Q1 as QR code metadata.

[0015] Preferably, when the method is applied to a scenario with no fixed recipient and random amount, the generation method of the QR code Q1 in step S1 is specifically as follows: the number of recipients Rnum, the digital token type T, the number of digital tokens Cn, and whether there is a fixed amount identifier are concatenated into a string C1, and the string C1 is converted into a QR code Q1 as metadata.

[0016] Preferably, when the method is applied to a scenario with a fixed receiving mailbox, the specific steps of step S2 are:

[0017] S21, identify the QR code Q1 to obtain transaction data and confirm whether to conduct this transaction;

[0018] S22. Confirm the transaction, use the client's wallet private key to unlock the blockchain wallet corresponding to the digital token type T, call the smart contract function on the digital token type T, deduct the digital token quantity Cn and transfer it to the receiving mailbox Rae, or trade the digital token quantity Cn to the temporary account of the digital token type T, and mark the receiving mailbox as Rae;

[0019] S23. Use the transaction data SCtx returned by the smart contract or the transaction address Ttx returned by the temporary account as the QR code metadata to generate a QR code Q2, pass it back to the email content and insert it into the email.

[0020] Preferably, when the method is applied to a scenario with no fixed recipient and random amount, the specific steps of step S2 are:

[0021] S21, identify the QR code Q1 to obtain transaction data and confirm whether to conduct this transaction;

[0022] S22. Confirm that this transaction is being carried out, and trade the digital tokens of quantity Cn to the temporary account corresponding to the digital token type T, and generate a unique transaction identifier on the server side, call the random number, generate a sub-transaction with quantity Rnum and a total digital token amount of Cn, and set a receiving mailbox that can scan the code in the unique transaction identifier;

[0023] S23. Generate a QR code Q2 using the unique transaction identifier generated by the server, pass it back to the email content and insert it into the email.

[0024] Preferably, when the method is applied to a scenario with a fixed receiving mailbox, the specific steps of step S4 are:

[0025] S41. Identify the QR code Q2 to obtain transaction data, and obtain the transaction data SCtx returned by the smart contract or the transaction address Ttx returned by the temporary account;

[0026] S42. Obtain the address Ae of the receiving mailbox, the digital token type T and blockchain address Ab of the receiving mailbox, and the mail server signature Sign-server of the mapping relationship by calling the mailbox attribute interface of the receiving mailbox;

[0027] S43. Call the smart contract on the blockchain according to the digital token type T of the receiving mailbox, and pass in the parameters SCtx, Ae, T, Ab, Sign-server and Tranb. Tranb is the signature of the private key of the wallet address of the temporary account on the address Ab and the number of digital tokens Cn. Transfer the original transaction with the number of digital tokens Cn to the blockchain address Ab; or verify the signature Sign-server on the server side to confirm the binding relationship between the Ae of the receiving mailbox and the digital token type T of the receiving mailbox and the blockchain address Ab. After confirming that the binding is completed, initiate a transaction to transfer the number of digital tokens Cn from the temporary account to the blockchain address Ab.

[0028] Preferably, when the method is applied to a scenario with no fixed recipient and random amount, the specific steps of step S4 are:

[0029] S41. The recipient uses an email client with a main blockchain wallet to scan the QR code Q2 to analyze the data, obtain the unique transaction identifier of the data, call the allocation amount operation, and the server matches one from the sub-transaction, updates the status of the sub-transaction and the recipient mailbox;

[0030] S42. The recipient extracts the digital token to the blockchain wallet address, calculates all unpaid transactions on the server side, transfers the digital token to the recipient's blockchain wallet account and marks the transactions in the subtransaction as paid.

[0031] Compared with the prior art, the present invention has the following beneficial effects:

[0032] (1) The present invention uses the mapping relationship between the mailbox and the blockchain address and public key, combined with the blockchain smart contract to realize the transfer of value in the email, realizes the safe transfer of value in the email, and can clearly distinguish responsibilities without recording complex blockchain addresses. At the same time, the method is combined with the code scanning method, making the overall operation simple for users without adding too many additional usage costs.

[0033] (2) The present invention completes the value transfer and transmission through the binding relationship between the email address and the blockchain address and the embedding of value information in the email, which reduces the difficulty of value transfer. As long as the user binds his blockchain address with the email address, the value transfer can be realized in the email. At the same time, the method supports binding multiple blockchain addresses to the same email address. By binding multiple blockchains, the value transfer of multiple digital tokens can be realized safely and conveniently. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a schematic diagram of the overall process of the present invention;

[0035] Figure 2 Schematic diagram of the working process in an embodiment of the present invention;

[0036] Figure 3 A schematic diagram of a value transfer process in an embodiment of the present invention;

[0037] Figure 4 This is a logic flow chart of sending mails by mailbox in an embodiment of the present invention;

[0038] Figure 5 The figure is a logic flow chart of receiving mails by mailbox in an embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to better understand the technical solution of the present invention, the specific implementation of the present invention is further described in detail below in conjunction with the drawings and embodiments.

[0040] The present invention provides a method for transferring value in emails based on blockchain technology. According to different requirements, the method can be applied to a scenario with a fixed recipient or a scenario with no fixed recipient and a random amount. The scenario with a fixed recipient refers to a scenario with a clear recipient, and the scenario with no fixed recipient and a random amount refers to a scenario with no clear recipient and the amount of transfer is also uncertain, and the recipient and the amount that each recipient can receive are random.

[0041] like Figure 1 As shown, it mainly includes the following steps:

[0042] S1. Generate Q1, a QR code for initiating a transaction: Generate Q1 based on the parameters of the receiving mailbox and the parameters of the digital token of the transaction as the metadata of the QR code. This step clarifies the parameters of the receiving mailbox and the parameters of the digital token of the transaction as the metadata of the QR code to generate the QR code. In the case of no fixed recipient, it is not necessary to add the parameters of the receiving mailbox.

[0043] S2. Confirm the transaction: The sender scans the QR code Q1 to confirm whether to carry out the transaction, and after confirming the transaction, the digital token required for the operation is deducted. The QR code Q2 is generated based on the transaction data generated by the transaction and inserted into the email. During the transaction, the QR code is scanned to confirm the transaction, and after confirmation, the digital token of the corresponding amount is deducted from the sender's blockchain wallet.

[0044] S3. Verify whether the receiving mailbox Rae is bound to the blockchain address Sab: Confirm that the receiving mailbox Rae has been bound to the blockchain address Sab and the blockchain public key Rpk and generate an extended multi-token blockchain wallet. If not, bind the receiving mailbox Rae to the blockchain address Sab and the blockchain public key Rpk and generate an extended multi-token blockchain wallet.

[0045] S4, receive the transaction, verify the signature and trade the digital token to the blockchain wallet under the blockchain address of the recipient’s email address. This completes the entire transaction process.

[0046] In a specific implementation, before generating the QR code Q1, it is necessary to bind the user's email address Sae with the blockchain address Sab authenticated by the blockchain wallet private key and the blockchain public key Spk set by the encrypted email.

[0047] In a specific implementation, in step S3, if the receiving mailbox Rae is not bound to the blockchain address Sab and its corresponding public key Rpk, the user is prompted to use the mailbox Rae to bind the blockchain address Sab and the public key Rpk; if the receiving mailbox Rae has been bound to the blockchain address Sab and its corresponding public key Rpk but the extended multi-token blockchain wallet has not been generated, the user is prompted to generate an extended multi-token blockchain wallet, and the user operates according to the relevant prompts to generate an extended multi-token blockchain wallet.

[0048] When the application scenario is a scenario with no fixed recipient and random amount, it includes the following steps:

[0049] S1. The user uses the email address Sae to bind the blockchain address Sab and its corresponding public key Spk to it.

[0050] S2. Concatenate the number of recipients Rnum, blockchain type T, number of digital tokens Cn, and whether the amount is fixed into a string C1, and convert the string C1 into a QR code Q1.

[0051] S3. The sending user scans the QR code Q1 to confirm the operation, trades the digital token quantity Cn to a temporary account of blockchain type T, generates a unique transaction identifier on the server side, calls a random number, generates a sub-transaction with a total amount of Cn and a quantity of Rnum, and can set a destination mailbox that can scan the code in the unique transaction.

[0052] The unique transaction identifier generated by the mailbox server is used to generate a QR code Q2, which is passed back to the email content and inserted into the email;

[0053] S4. If the receiving mailbox Rae is not bound to the blockchain address Rab and its corresponding public key Rpk, the user is prompted to use the mailbox Rae to bind the blockchain address Rab and the public key Rpk; if the extended multi-token blockchain wallet is not generated, the user is prompted to generate an extended multi-token blockchain wallet. The binding of the mailbox and the blockchain address mainly includes the following steps: first, use the private key of the blockchain address to sign the specified information; second, send the blockchain address, blockchain type and signature to the server; finally, the server verifies the signature and binds it after passing; when binding, use the private key of the email domain name to sign the user's email address and blockchain type, blockchain address relationship. After the binding is completed, the server generates an extended multi-token blockchain wallet according to the user's operation.

[0054] S5. The recipient uses an email client with a main blockchain wallet to scan the QR code Q2 to analyze the data, obtain the unique transaction identifier of the data, call the allocation amount operation, and the server matches one from the sub-transaction, updates the status of the sub-transaction and the receiving mailbox; among them, the main blockchain wallet refers to the recipient's blockchain wallet with signature verification function, and the main blockchain wallet also contains multiple sub-blockchain wallets for various types of digital tokens, so that it can adapt to various types of digital tokens. When a transaction is required, the main blockchain wallet is first used for signature verification, and then the corresponding sub-blockchain wallet is selected for transaction according to the type of digital token to be traded.

[0055] S6. The recipient extracts the digital token to the blockchain wallet address, calculates all unpaid transactions in the server platform, transfers the digital token to the recipient's blockchain wallet account, and the server marks the transactions in the subtransaction as paid.

[0056] Specifically, when the application scenario is to have a fixed receiving mailbox, that is, to transfer value to a fixed mailbox and the transfer amount is random, it specifically includes the following steps:

[0057] S1. Concatenate the email address Rae, blockchain type T and digital token quantity Cn into a string C1, and convert the string C1 into a QR code Q1.

[0058] S2. The sending user scans the QR code Q1 to confirm the operation, calls the smart contract function on the blockchain type T, deducts the number of digital tokens Cn from the receiving mailbox Rae, or trades the number of digital tokens Cn to a temporary account of the blockchain type T, marking the receiving mailbox as Rae.

[0059] Generate a QR code Q2 from the returned transaction data SCtx in the smart contract or the transaction address Ttx returned by the temporary account, pass it back to the email content, and insert it into the email.

[0060] S3. If the receiving mailbox Rae is not bound to the blockchain address Rab and its corresponding public key Rpk, the user is prompted to use the mailbox Rae to bind the blockchain address Rab and the public key Rpk; if the extended multi-token blockchain wallet is not generated, the user is prompted to generate an extended multi-token blockchain wallet.

[0061] S4. Identify the QR code Q2 data, obtain the data SCtx or Ttx, obtain your own email address Ae, blockchain type T, blockchain address Ab, mapping relationship signature Sign-server, call the smart contract or temporary transfer verification, and trade the digital token to your own blockchain address. Specific embodiments

[0063] This embodiment provides a method for transferring and delivering value in emails using blockchain technology in practical applications. In this embodiment, the method is applied to a scenario with a fixed recipient, such as Figures 2 to 5 As shown, the specific steps are as follows:

[0064] S1. The user uses the email address Sae to bind with the blockchain address Sab.

[0065] In this embodiment, it is assumed that the email address Sae of the sender is sender@example.com, its corresponding blockchain address Sab is 0x7ACfF8453973788C2Cc7cF75Ccec58582521eDd2, and the public key corresponding to the email address is 04a4e7f223f0a88bcb6a1cc3bd166c3c32bf1aa357c40916293e709c3ab5fc5f29017d946f5c67527a102915c25bda7561264e8f4243ef6f3de648b6277d245243. The email address, blockchain address and public key are bound. The number of OMY tokens that exist in the blockchain address 0x7ACfF8453973788C2Cc7cF75Ccec58582521eDd2 is 10.

[0066] S2. Concatenate the receiving email address Rae, the digital token type T and the digital token quantity Cn into a string C1, and convert the string C1 into a QR code Q1 as QR code metadata for use when the sending user uses a private key to confirm.

[0067] Assuming that the receiving address Rae is receiver@example.com, the digital token type T is OMY, and the number of digital tokens Cn is 1, this information is concatenated into a string C1 of blockchain-coin:receiverMail=receiver@example.com&blocktype=OMY&num=1, and the string is used as metadata to generate a QR code Q1.

[0068] S3. The sending user scans the QR code Q1 to confirm the operation, calls the smart contract function on the digital token type T, deducts the number of digital tokens Cn and transfers it to the receiving mailbox Rae, or trades the number of digital tokens Cn to a temporary account of the digital token type T, marking the receiving mailbox as Rae.

[0069] The returned transaction data SCtx in the smart contract or the transaction address Ttx returned by the temporary account is used as the QR code metadata to generate the QR code Q2, and the QR code Q2 is passed back to the email content and inserted into the email.

[0070] The email address Sae is sender@example.com. The data is confirmed by the wallet private key, and the smart contract function is called to transfer 1 token from the blockchain address 0x759050120330aE942a656658F08f97CE87eF0dC5 to the target account. There are two cases:

[0071] Case 1: The recipient receiver@example.com has bound a blockchain wallet:

[0072] If the recipient has bound a blockchain wallet, the digital token can be transferred to the target account, and the transaction data SCtx returned by the smart contract is 0x5fe3e3913f082a4ce4df4396ca79c63e93433c87590eba7f7a0f4c5130c5668d.

[0073] Case 2: The recipient receiver@example.com is not bound to a blockchain wallet:

[0074] If the recipient has not bound a blockchain wallet, a temporary account transaction address Ttx of 0xab1279cE4adcD39d906AE6b97DaD831F8E959895 will be generated, and 1 digital token will be transferred to the temporary account.

[0075] In response to the above two situations, after the smart contract is successfully called, the transaction data is composed into a string as follows: blockchain-coin:receiverMail=receiver@example.com&blocktype=OMY&num=&SCtx=0x5fe3e3913f082a4ce4df4396ca79c63e93433c87590eba7f7a0f4c5130c5668d&Ttx=0xab1279cE4adcD39d906AE6b97DaD831F8E959895. This string is used as the metadata of the QR code Q2. The generated QR code Q2 is written into the email content and sent to the email address receiver@example.com.

[0076] S4. If the receiving mailbox Rae is not bound to the blockchain address Sab and its corresponding public key Rpk, the user is prompted to use the mailbox Rae to bind the blockchain address Sab and the public key Rpk; if the extended multi-token blockchain wallet is not generated, the user is prompted to generate an extended multi-token blockchain wallet.

[0077] The receiving mailbox Rae is not bound to the public key Rpk when encrypting the email or the email is not mapped to the blockchain address Sab. Use the client to scan the QR code Q2 in the email, analyze the receiving email address Rae, digital token type T, and digital token quantity Cn, and use the private key Rpk bound to the receiving mailbox to sign the parsed data string, and submit the receiving mailbox Rae, digital token type T, digital token quantity Cn and signature Sign-server, transaction data SCtx or transaction address Ttx to the server.

[0078] In this embodiment, there are two situations to handle the process of users receiving digital tokens.

[0079] Case 1: The receiving email address Rae receiver@example.com is not bound to a blockchain address

[0080] When the recipient uses the receiving email address receiver@example.com to scan the QR code Q2, a prompt is given that the blockchain address is not bound. After the user completes the blockchain address binding, the 1 digital token temporarily stored in the temporary account transaction address Ttx is transferred to the blockchain address bound by the user, and the digital token can be received through the following "Case 2".

[0081] Case 2: The recipient email address Rae receiver@example.com has been bound to a blockchain address;

[0082] For example, if the email address receiver@example.com has been bound to a blockchain wallet, its address Rab is 0x759050120330aE942a656658F08f97CE87eF0dC5 and its public key Ppk is 0433e0a32a3c346dd320f46e966ee03f8138d12a28b9f1a9ddb492495ae3aa44138da623f765439c4e60921b57a731 194ef03e4c188c467ad5c66f8797b3040756, use the client to scan the code to obtain the email address receiver@example.com, the digital token type T is OMY, the digital token quantity Cn is 1, the transaction return data SCtx is 0x5fe3e3913f082a4ce4df4396ca79c63e93433c87590eba7f7a0f4c5130c5668d or the temporary transaction address Ttx is 0xab 1279cE4adcD39d906AE6b97DaD831F8E959895, and use the private key to pair the data receiverMail=receiver@example.com&blocktype=OMY&num=1&SCtx=0x5fe3e3913f082a4ce4df4396ca79c63e93433c87590eba7f7a0f4c5130c5668d&Ttx=0xab127 9cE4adcD39d906AE6b97DaD831F8E959895 is used for signing, generating the signature MEUCIH2iGFtNp160mRZ / H3O1G30akp7v5VL5QwMTdiHjgymsAiEAgxUsvvIlWF4KX0SSuk2pcANDF8pnrNBFhPBslm7twUM= and converting the data DATA1:{"receiverMail":"receiver@example.com", "blocktype":"OMY", "num":"1", "SCtx":"0x5fe3e3913f082a4ce4df4396ca79c63e93433c87590eba7f7a0f4c5130c5668d", "Ttx":"0xab1279cE4adcD39d906AE6b97DaD831F8E959895", "sign":"MEUCIH2iGFtNp160mRZ / H3O1G30akp7v5VL5QwMTdiHjgymsAiEAgxUsvvIlWF4KX0SSuk2pcANDF8pnrNBFhPBslm7twUM="} submitted to the server.

[0083] S5, identify the data of QR code Q2, obtain transaction data SCtx or Ttx, and obtain your own email address Ae, digital token type T, blockchain address Ab and mapping relationship signature Sign-server, call smart contract or temporary transfer verification, and trade the digital token to your own blockchain address;

[0084] The server receives data DATA1:{"receiverMail":"receiver@example.com","blocktype":"OMY","num":"1","SCtx":"0x5fe3e3913f082a4ce4df4396ca79c63e93433c87590eba7f7a0f4c5130c5668d","Ttx":"0xab1279cE4adcD39d906AE6b97DaD831F 8E959895","sign":"MEUCIH2iGFtNp160mRZ / H3O1G30akp7v5VL5QwMTdiHjgymsAiEAgxUsvvIlWF4KX0SSuk2pcANDF8pnr NBFhPBslm7twUM="}Use public key 0433e0a32a3c346dd320f46e966ee03f8138d12a28b9f1a9ddb492495ae3aa44138da623f765439 c4e60921b57a731194ef03e4c188c467ad5c66f8797b3040756 for data receiverMail=receiver@example.com&blocktype=OMY&num=1&SCtx=0x5fe3e3913f082a4ce4df4396ca79c63e93433c87590eba7f7a0f4c5130c5668d&Ttx=0xab1279cE4adcD 39d906AE6b97DaD831F8E959895 and signature MEUCIH2iGFtNp160mRZ / H3O1G30akp7v5VL5QwMTdiHjgymsAiEAgxUsvvIlWF4KX0SSuk2pcANDF8pnrNBFhPBslm7twUM= are used for signature verification. After the verification is passed, the token balance in 0x759050120330aE942a656658F08f97CE87eF0dC5 is increased by 1 digital token.

[0085] Finally, it should be noted that the above-described embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some or all of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for transferring value in emails based on blockchain technology, characterized in that: It includes the following steps: S1. Generate a QR code Q1 for initiating a transaction: Generate a QR code Q1 based on the parameters of the receiving mailbox and the parameters of the digital token of the transaction as the metadata of the QR code; Before generating the QR code Q1, it is necessary to bind the user's email address Sae with the blockchain address Sab authenticated by the blockchain wallet private key and the blockchain public key Spk set by the encrypted email; S2. Confirm the transaction operation: The sender scans the QR code Q1 to confirm whether to carry out the transaction operation. After confirming the transaction operation, the digital token required for the operation is deducted. The QR code Q2 is generated according to the transaction data generated by the transaction operation and inserted into the email; S3. Verify whether the receiving mailbox Rae is bound to the blockchain address Sab: Confirm that the receiving mailbox Rae has been bound to the blockchain address Sab and the blockchain public key Rpk and generate an extended multi-token blockchain wallet; In step S3, if the receiving mailbox Rae is not bound to the blockchain address Sab and its corresponding public key Rpk, the user is prompted to use the mailbox Rae to bind the blockchain address Sab and the public key Rpk; if the receiving mailbox Rae has been bound to the blockchain address Sab and its corresponding public key Rpk but the extended multi-token blockchain wallet has not been generated, the user is prompted to generate an extended multi-token blockchain wallet; S4. Receive the transaction, verify the signature and transfer the digital token to the blockchain wallet under the blockchain address of the recipient’s email address.

2. The method for transferring value in emails based on blockchain technology according to claim 1 is characterized in that: This method is applicable to scenarios with a fixed receiving mailbox or scenarios without a fixed receiving mailbox and the transaction amount is random.

3. The method for transferring value in emails based on blockchain technology according to claim 1 is characterized in that: When this method is applied to a scenario with a fixed receiving mailbox, the specific method of generating the QR code Q1 in step S1 is: the receiving mailbox Rae, the digital token type T and the number of digital tokens Cn are concatenated into a string C1, and the string C1 is converted into a QR code Q1 as QR code metadata.

4. The method for transferring value in emails based on blockchain technology according to claim 1 is characterized in that: When this method is applied to a scenario with no fixed recipient and random amount, the QR code Q1 in step S1 is generated in the following way: the number of recipients Rnum, the digital token type T, the number of digital tokens Cn, and whether there is a fixed amount identifier are concatenated into a string C1, and the string C1 is converted into a QR code Q1 as metadata.

5. The method for transferring value in emails based on blockchain technology according to claim 1 is characterized in that: When the method is applied to a scenario with a fixed receiving mailbox, the specific steps of step S2 are: S21, identify the QR code Q1 to obtain transaction data and confirm whether to conduct this transaction; S22. Confirm the transaction, use the client's wallet private key to unlock the blockchain wallet corresponding to the digital token type T, call the smart contract function on the digital token type T, deduct the digital token quantity Cn and transfer it to the receiving mailbox Rae, or trade the digital token quantity Cn to the temporary account of the digital token type T, and mark the receiving mailbox as Rae; S23. Use the transaction data SCtx returned by the smart contract or the transaction address Ttx returned by the temporary account as the QR code metadata to generate a QR code Q2, pass it back to the email content and insert it into the email.

6. The method for transferring value in emails based on blockchain technology according to claim 1 is characterized in that: When the method is applied to a scenario with no fixed recipient and random amount, the specific steps of step S2 are: S21, identify the QR code Q1 to obtain transaction data and confirm whether to conduct this transaction; S22. Confirm that this transaction is being carried out, and trade the digital tokens of quantity Cn to the temporary account corresponding to the digital token type T, and generate a unique transaction identifier on the server side, call the random number, generate a sub-transaction with quantity Rnum and a total digital token amount of Cn, and set a receiving mailbox that can scan the code in the unique transaction identifier; S23. Generate a QR code Q2 using the unique transaction identifier generated by the server, pass it back to the email content and insert it into the email.

7. The method for transferring value in emails based on blockchain technology according to claim 1 is characterized in that: When the method is applied to a scenario with a fixed receiving mailbox, the specific steps of step S4 are: S41. Identify the QR code Q2 to obtain transaction data, and obtain the transaction data SCtx returned by the smart contract or the transaction address Ttx returned by the temporary account; S42. Obtain the address Ae of the receiving mailbox, the digital token type T and blockchain address Ab of the receiving mailbox, and the mail server signature Sign-server of the mapping relationship by calling the mailbox attribute interface of the receiving mailbox; S43. Call the smart contract on the blockchain according to the digital token type T of the receiving mailbox, and pass in the parameters SCtx, Ae, T, Ab, Sign-server and Tranb. Tranb is the signature of the private key of the wallet address of the temporary account on the address Ab and the number of digital tokens Cn. Transfer the original transaction with the number of digital tokens Cn to the blockchain address Ab; or verify the signature Sign-server on the server side to confirm the binding relationship between the Ae of the receiving mailbox and the digital token type T of the receiving mailbox and the blockchain address Ab. After confirming that the binding is completed, initiate a transaction to transfer the number of digital tokens Cn from the temporary account to the blockchain address Ab.

8. The method for transferring value in emails based on blockchain technology according to claim 1 is characterized in that: When the method is applied to a scenario with no fixed recipient and random amount, the specific steps of step S4 are: S41. The recipient uses an email client with a main blockchain wallet to scan the QR code Q2 to analyze the data, obtain the unique transaction identifier of the data, call the allocation amount operation, and the server matches one from the sub-transaction, updates the status of the sub-transaction and the recipient mailbox; S42. The recipient extracts the digital token to the blockchain wallet address, calculates all unpaid transactions on the server side, transfers the digital token to the recipient's blockchain wallet account and marks the transactions in the subtransaction as paid.

Citation Information

Patent Citations

  • Distributed email box system based on block chain technology

    CN110351185A

  • Account management method and device based on block chain, server and storage medium

    CN110400136A