Disclosure of Invention
Embodiments of the present disclosure provide a method, an apparatus, and an electronic device for settling transaction fees based on a blockchain, which can realize deduction of transaction fees on the blockchain, so as to facilitate a user to flexibly initiate a blockchain transaction.
In order to achieve the above object, the embodiments of the present specification are implemented as follows:
in a first aspect, a block chain transaction fee settlement method is provided, including:
generating deduction entrusting information of target blockchain transaction by the first blockchain account and sending the deduction entrusting information to the second blockchain account, wherein the deduction entrusting information is used for entrusting and paying transaction cost of the target blockchain transaction;
the second blockchain account signs the deduction entrusting information of the target blockchain transaction based on a private key of the second blockchain account;
the second blockchain account sends deduction entrusting information signed by the private key of the second blockchain account to the first blockchain account;
the first blockchain account initiates a transaction request of the target blockchain transaction to a blockchain system, wherein the transaction request carries withholding entrusting information signed by a private key of the second blockchain account;
the block chain system carries out signature verification on the withholding entrusting information signed by the second block chain account private key;
the blockchain system performs a transaction fee settlement for the target blockchain transaction to the second blockchain account based on the withholding delegation information verified by the signature.
In a second aspect, a block chain transaction fee settlement method is provided, including:
generating deduction entrusting information of target block chain transaction by a first block chain account and sending the deduction entrusting information to a second block chain account, wherein the deduction entrusting information is used for entrusting and paying transaction cost of the target block chain transaction, so that the second block chain account signs the deduction entrusting information of the target block chain transaction based on a private key of the second block chain account, and sends the deduction entrusting information signed by the private key of the second block chain account to the first block chain account;
the first blockchain account initiates a transaction request of the target blockchain transaction to a blockchain system, wherein the transaction request carries withholding entrusting information signed by the private key of the second blockchain account, so that the blockchain system conducts signature verification on the withholding entrusting information signed by the private key of the second blockchain account, and transaction fee settlement aiming at the target blockchain transaction is executed on the second blockchain account based on the withholding entrusting information passing the signature verification.
In a third aspect, a block chain transaction fee settlement method is provided, including:
the block chain system receives a transaction request of target block chain transaction initiated by a first block chain account, wherein the transaction request carries withholding entrusting information signed by a private key of a second block chain account;
the block chain system carries out signature verification on the withholding entrusting information signed by the second block chain account private key; and the number of the first and second groups,
the blockchain system performs a transaction fee settlement for the target blockchain transaction to the second blockchain account based on the withholding delegation information verified by the signature.
In a fourth aspect, a blockchain client device is provided, including:
the deduction entrusting module is used for generating deduction entrusting information of target block chain transaction and sending the deduction entrusting information to a second block chain account, wherein the deduction entrusting information is used for entrusting and paying the transaction cost of the target block chain transaction, so that the second block chain account signs the deduction entrusting information of the target block chain transaction based on a private key of the second block chain account, and sends the deduction entrusting information signed by the private key of the second block chain account to the first block chain account;
and the transaction initiating module initiates a transaction request of the target blockchain transaction to a blockchain system, wherein the transaction request carries withholding entrusting information signed by the second blockchain account private key, so that the blockchain system performs signature verification on the withholding entrusting information signed by the second blockchain account private key, and performs transaction fee settlement aiming at the target blockchain transaction on the second blockchain account based on the withholding entrusting information passing the signature verification.
In a fifth aspect, an electronic device is provided comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to:
generating deduction entrusting information of target block chain transaction and sending the deduction entrusting information to a second block chain account, wherein the deduction entrusting information is used for entrusting and paying the transaction cost of the target block chain transaction, so that the second block chain account signs the deduction entrusting information of the target block chain transaction based on a private key of the second block chain account, and sends the deduction entrusting information signed by the private key of the second block chain account to the first block chain account;
and initiating a transaction request of the target blockchain transaction to a blockchain system, wherein the transaction request carries withholding entrusting information signed by the second blockchain account private key, so that the blockchain system performs signature verification on the withholding entrusting information signed by the second blockchain account private key, and executes transaction fee settlement aiming at the target blockchain transaction to the second blockchain account based on the withholding entrusting information passing the signature verification.
In a sixth aspect, a computer-readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of:
generating deduction entrusting information of target block chain transaction and sending the deduction entrusting information to a second block chain account, wherein the deduction entrusting information is used for entrusting and paying the transaction cost of the target block chain transaction, so that the second block chain account signs the deduction entrusting information of the target block chain transaction based on a private key of the second block chain account, and sends the deduction entrusting information signed by the private key of the second block chain account to the first block chain account;
and initiating a transaction request of the target blockchain transaction to a blockchain system, wherein the transaction request carries withholding entrusting information signed by the second blockchain account private key, so that the blockchain system performs signature verification on the withholding entrusting information signed by the second blockchain account private key, and executes transaction fee settlement aiming at the target blockchain transaction to the second blockchain account based on the withholding entrusting information passing the signature verification.
In a seventh aspect, a blockchain system is provided, including:
the receiving module is used for receiving a transaction request of target block chain transaction initiated by a first block chain account, wherein the transaction request carries withholding entrusting information signed by a private key of a second block chain account;
the verification module is used for performing signature verification on the withholding entrusting information signed by the second block chain account private key; and the number of the first and second groups,
and the settlement module is used for performing transaction fee settlement for the target blockchain transaction on the second blockchain account based on the withholding entrusting information verified by the signature.
In an eighth aspect, an electronic device is provided comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to:
receiving a transaction request of target block chain transaction initiated by a first block chain account, wherein the transaction request carries withholding entrusting information signed by a private key of a second block chain account;
carrying out signature verification on the withholding entrusting information signed by the second block chain account private key; and the number of the first and second groups,
performing transaction fee settlement for the target blockchain transaction for the second blockchain account based on the withholding delegation information verified by the signature.
In a ninth aspect, there is provided a computer readable storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the steps of:
receiving a transaction request of target block chain transaction initiated by a first block chain account, wherein the transaction request carries withholding entrusting information signed by a private key of a second block chain account;
carrying out signature verification on the withholding entrusting information signed by the second block chain account private key; and the number of the first and second groups,
performing transaction fee settlement for the target blockchain transaction for the second blockchain account based on the withholding delegation information verified by the signature.
Based on the scheme of the embodiment of the present specification, the first blockchain account may provide deduction delegation information of the target blockchain transaction to the second blockchain account, and if the second blockchain account decides to pay the transaction fee of the target blockchain transaction instead of the first blockchain account, the deduction delegation information is subjected to private key signature and then fed back to the first blockchain account. Subsequently, the first blockchain account initiates a transaction request carrying the ID information of the second blockchain account and the withholding entrusting information after private key signature to the blockchain system, so that the blockchain system verifies the authenticity of the second blockchain account for paying the transaction fee of the target blockchain transaction instead of the first blockchain account based on the public key of the second blockchain account, and executes transaction fee settlement aiming at the target blockchain transaction to the second blockchain account after verification is error-free. The scheme of the embodiment of the specification simply and conveniently realizes the function of paying the transaction fee for the blockchain account instead of other blockchain accounts, the blockchain transaction is initiated more flexibly, and the use experience of a blockchain user is improved.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
In existing blockchain systems, any blockchain transaction requires a corresponding fee. The general charging principle is to pack the transaction by miners and implement the preferential incentive competition principle by calculating the data volume of the transaction, and the higher the transaction fee, the shorter the transaction confirmation time. In some specific scenarios, some blockchain accounts have no underlying reserve, so that there is a need for paying transaction fees for the blockchain transaction to be initiated by other blockchain accounts. However, the current blockchain system does not support the deduction function of the transaction fee, and therefore, the document aims to provide a convenient and efficient deduction-capable blockchain transaction fee settlement scheme.
FIG. 1 is a flow chart of a method according to an embodiment of the present disclosure. The method shown in fig. 1 may be performed by a corresponding apparatus below, comprising the steps of:
and S102, generating deduction entrusting information of the target blockchain transaction by the first blockchain account and sending the deduction entrusting information to the second blockchain account, wherein the deduction entrusting information is used for entrusting and paying the transaction fee of the target blockchain transaction.
The embodiment of the present specification does not specifically limit the proxy information. As an exemplary introduction deduction entrusting information, transaction data of the target blockchain transaction expressed by the preset code and/or a transaction hash value of the target blockchain transaction may be used.
The second blockchain account can determine that the first blockchain account expects the principal to pay the transaction fee of the target blockchain transaction based on the transaction data of the target blockchain transaction and/or the transaction hash value of the target blockchain transaction, which are expressed by the preset codes. The transaction fee at least includes a transaction commission of the target blockchain transaction, and on this basis, other fees of the target blockchain transaction may also be included, which is not described herein for example.
And S104, the second blockchain account signs the deduction entrusting information of the target blockchain transaction based on the private key of the second blockchain account.
The second blockchain account signs deduction entrusting information of the target blockchain transaction based on the local private key and is used for representing the payment transaction cost of the entrusting target blockchain transaction of the first blockchain account. It should be appreciated that in this illustrative embodiment, if the second blockchain account does not agree to pay the transaction fee for the target blockchain transaction, then the transaction may respond by denying the private key signature of the proxy information.
And S106, the second block chain account sends the withholding entrusting information signed by the private key of the second block chain account to the first block chain account.
The manner in which the second blockchain account sends the deduction delegation information to the first blockchain account is not specifically limited herein. The second blockchain account can directly send deduction entrusting information signed by the private key of the second blockchain account to the first blockchain account, and can also indirectly send deduction entrusting information signed by the private key of the second blockchain account to the first blockchain account through a blockchain system or other blockchain accounts.
And S108, the first blockchain account initiates a transaction request of the target blockchain transaction to the blockchain system, wherein the transaction request carries withholding entrusting information signed by a private key of the second blockchain account.
It should be understood that, in this step, deduction delegation information is introduced on the basis of a transaction request of a traditional blockchain transaction, so that the blockchain transaction is indicated to a blockchain system that the blockchain transaction is paid by a blockchain account corresponding to the deduction delegation information.
S110, the block chain system conducts signature verification on the withholding entrusting information signed by the second block chain account private key.
Specifically, the transaction request for the target blockchain transaction carries identification information for the second blockchain account. In this step, the blockchain system may first query whether the second blockchain account exists based on the ID information of the second blockchain account. And if so, acquiring the public key of the second blockchain account from the inquired second blockchain account. And then, verifying the deduction entrusting information signed by the private key based on the public key of the second block chain account.
And S112, the blockchain system executes transaction fee settlement for the target blockchain transaction to the second blockchain account based on the withholding entrusting information verified by the signature.
It should be understood that if the signature verification is successful, this indicates that the second blockchain account confirms payment of the transaction fee for the target blockchain transaction in place of the first blockchain account. At this time, the blockchain system acquires a digital currency resource (such as gas currency, token currency and the like) of the second blockchain account based on the deduction entrusting information passing the verification for executing the transaction fee settlement for the target blockchain transaction.
Conversely, if the signature verification fails, it cannot be verified whether the second blockchain account confirms payment of the transaction fee for the target blockchain transaction in place of the first blockchain account. At this time, the blockchain system may return the transaction request of the current target blockchain transaction, or instruct the first blockchain account to resend the valid transaction request for which the second blockchain account pays the transaction fee.
In addition, after the blockchain system has performed the transaction fee settlement for the target blockchain transaction, if the target blockchain transaction fails or rolls back, the blockchain system may return the transaction fee of the settled target blockchain transaction to the second blockchain account.
In addition, if the blockchain system has a surplus digital currency resource after performing the transaction fee settlement for the target blockchain transaction, the surplus digital currency resource may also be returned to the second blockchain account.
Based on the method shown in fig. 1, it can be known that, in the solution of the embodiment of the present specification, the first blockchain account may provide deduction delegation information of the target blockchain transaction to the second blockchain account, and if the second blockchain account determines to pay the transaction cost of the target blockchain transaction instead of the first blockchain account, the deduction delegation information is subjected to private key signature and then fed back to the first blockchain account. Subsequently, the first blockchain account initiates a transaction request carrying the ID information of the second blockchain account and the withholding entrusting information after private key signature to the blockchain system, so that the blockchain system verifies the authenticity of the second blockchain account for paying the transaction fee of the target blockchain transaction instead of the first blockchain account based on the public key of the second blockchain account, and executes transaction fee settlement aiming at the target blockchain transaction to the second blockchain account after verification is error-free. The scheme of the embodiment of the specification simply and conveniently realizes the function of paying the transaction fee for the blockchain account instead of other blockchain accounts, the blockchain transaction is initiated more flexibly, and the use experience of a blockchain user is improved.
The following describes the flow of the method in the embodiment of the present specification in detail with reference to an actual application scenario.
In this application scenario, the blockchain system uses gas currency as the transaction fee settlement. Referring to fig. 2, the process mainly includes the following steps:
s201, the first blockchain account constructs a target blockchain transaction, and sends a transaction hash value of the target blockchain transaction to the second blockchain account.
And S202, the second blockchain account carries out private key signature on the transaction hash value of the target blockchain transaction and feeds back the transaction hash value after the private key signature to the first blockchain account.
S203, the first blockchain account encodes the id of the second blockchain account and the transaction hash value signed by the private key into data of the target blockchain transaction, and initiates a transaction request of the target blockchain transaction to the blockchain system, wherein the transaction request comprises the data of the target blockchain transaction.
S204, after the blockchain system receives the transaction request, the data of the target blockchain transaction are analyzed, and whether the target blockchain transaction is paid for the transaction fee instead of the first blockchain account by the second blockchain account is determined according to the id of the second blockchain account and the transaction hash value signed by the private key.
It should be understood that, in this step, if the transaction hash value signed by the private key is not obtained through parsing, a traditional procedure is performed on the target blockchain transaction, that is, transaction fee settlement is performed on the first blockchain account.
S205, the blockchain system inquires whether a second blockchain account exists according to the analyzed id, if not, the transaction fails, otherwise, the following steps are continuously executed.
S206, the blockchain system acquires the public key of the second blockchain account from the second blockchain account, matching verification is carried out on the transaction hash value signed by the private key, if the matching verification fails, the transaction fails, and if not, the following steps are continuously executed.
S207, the blockchain system checks whether a withholding account corresponds to the blockchain transaction before the target blockchain transaction is executed; if yes, extracting gas coins of the account of the second blockchain account, and paying corresponding transaction fees; if not, the gas currency of the account of the first blockchain account is extracted, and the corresponding transaction fee is paid.
S208, after the target blockchain transaction is executed, the blockchain system checks whether a withholding account corresponds to the target blockchain transaction; if yes, returning the gas coins left after the transaction fee is paid to the second blockchain account; if not, the gas currency remaining after payment of the transaction fee is returned to the first blockchain account.
S209, after the target block chain transaction is rolled back, the block chain system checks whether a withholding account is corresponding to the target block chain transaction; if so, returning the gas currency for paying the transaction fee to the second blockchain account; if not, the gas coin in which the transaction fee was paid is returned to the first blockchain account.
The above application scenarios are exemplary descriptions of the methods of the embodiments of the present specification. It should be understood that the transaction fee in the above application scenario includes only the transaction commission for the target blockchain transaction, and the fee involved in performing the target blockchain transaction may be, but need not be, paid by the second blockchain account, and is not specifically limited herein.
Corresponding to the method shown in fig. 1, an embodiment of the present specification further provides a blockchain client device corresponding to the first blockchain account. Fig. 3 is a block diagram of a blockchain client device 300 according to an embodiment of the present disclosure, including:
and the deduction delegation module 310 is configured to generate deduction delegation information of the target block chain transaction and send the deduction delegation information to a second block chain account, where the deduction delegation information is used for delegating payment of transaction cost of the target block chain transaction, so that the second block chain account signs the deduction delegation information of the target block chain transaction based on a private key of the second block chain account, and sends the deduction delegation information signed by the private key of the second block chain account to the first block chain account.
The transaction initiating module 320 initiates a transaction request of the target blockchain transaction to a blockchain system, where the transaction request carries deduction commission information signed by the second blockchain account private key, so that the blockchain system performs signature verification on the deduction commission information signed by the second blockchain account private key, and performs transaction fee settlement for the target blockchain transaction on the second blockchain account based on the deduction commission information passing the signature verification.
The blockchain client device in the embodiment of the present specification may provide deduction delegation information of the target blockchain transaction to the second blockchain account when the second blockchain account is required to replace the first blockchain account to pay the transaction fee of the target blockchain transaction, and if the second blockchain account determines to replace the first blockchain account to pay, perform private key signature on the deduction delegation information and feed back the private key signature to the blockchain client device. Subsequently, when the blockchain client device initiates a transaction request of the target blockchain transaction to the blockchain system, the blockchain client device indicates the ID information of the second blockchain account and the withholding entrusting information signed by the private key, so that the blockchain system verifies the withholding entrusting information signed by the private key based on the public key matched with the ID information of the second blockchain account, and performs transaction fee settlement aiming at the target blockchain transaction on the second blockchain account after verification is error-free. In the whole process, the deduction function of the block chain transaction cost is realized in a simple and convenient mode for a user at the block chain client, so that the user can initiate the block chain transaction more flexibly, and the use experience is improved.
Obviously, the blockchain client device of the embodiment of the present specification may be an execution subject of the first blockchain account in the method shown in fig. 1, and thus can implement the functions of the method implemented in fig. 1 and fig. 2. Since the principle is the same, the detailed description is omitted here.
In correspondence with the method shown in fig. 1, an embodiment of the present disclosure further provides a block chain system. Fig. 4 is a block diagram of a blockchain system 400 according to an embodiment of the present disclosure, including:
the receiving module 410 receives a transaction request of a target blockchain transaction initiated by a first blockchain account, where the transaction request carries deduction delegation information signed by a private key of a second blockchain account.
The verification module 420 performs signature verification on the deduction entrusting information signed by the second block chain account private key. And the number of the first and second groups,
the settlement module 430 performs a transaction fee settlement for the target blockchain transaction for the second blockchain account based on the withholding delegation information verified by the signature.
The blockchain system of the embodiments of the present disclosure may provide a deduction function for transaction fees. When the first blockchain account needs the second blockchain account to replace the payment of the transaction fee of the target blockchain transaction, deduction entrusting information of the target blockchain transaction can be provided for the second blockchain account, and if the second blockchain account decides to replace the payment of the first blockchain account, private key signature is carried out on the deduction entrusting information and the deduction entrusting information is fed back to the blockchain client device. Subsequently, when the blockchain client device initiates a transaction request of target blockchain transaction to the blockchain system, the blockchain client device indicates the ID information of the second blockchain account and the withholding delegation information signed by the private key. The blockchain system can verify the withholding entrusting information signed by the private key based on the public key matched with the ID information of the second blockchain account, and perform transaction fee settlement for the target blockchain transaction on the second blockchain account after verification is error-free. In the whole process, the deduction function of the block chain transaction cost is realized in a simple and convenient mode for a user at the block chain client, so that the user can initiate the block chain transaction more flexibly, and the use experience is improved.
Optionally, the checking module 420 may first query whether the second blockchain account exists based on the ID information of the second blockchain account; and if the verification result exists, acquiring the public key of the second block chain account from the inquired second block chain account, and verifying the deduction entrusting information signed by the private key based on the public key of the second block chain account.
Optionally, the settlement module 430 may obtain the digital currency resource of the second blockchain account based on the verified withholding commission information to perform settlement of the transaction fee for the target blockchain transaction.
Optionally, after performing the transaction fee settlement for the target blockchain transaction, the settlement module 430 may also return the settled transaction fee for the target blockchain transaction to the second blockchain account if the target blockchain transaction fails or rolls back.
Optionally, the settlement module 430 returns the remaining digital currency resource to the second blockchain account if the remaining digital currency resource exists after performing the settlement of the transaction fee for the target blockchain transaction.
Obviously, the blockchain system of the embodiment of the present specification can be used as an execution subject of the blockchain system in the method shown in fig. 1, and thus the functions of the method implemented in fig. 1 and fig. 2 can be implemented. Since the principle is the same, the detailed description is omitted here.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present description. Referring to fig. 5, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 5, but this does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
Optionally, the processor reads a corresponding computer program from the non-volatile memory into the memory and then runs the computer program, and forms a transaction fee settlement device on a logic level, where the transaction fee settlement device may be a blockchain client device or a component of the blockchain client device. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
generating deduction entrusting information of target block chain transaction and sending the deduction entrusting information to a second block chain account, wherein the deduction entrusting information is used for entrusting and paying the transaction cost of the target block chain transaction, so that the second block chain account signs the deduction entrusting information of the target block chain transaction based on a private key of the second block chain account, and sends the deduction entrusting information signed by the private key of the second block chain account to the first block chain account.
And initiating a transaction request of the target blockchain transaction to a blockchain system, wherein the transaction request carries withholding entrusting information signed by the second blockchain account private key, so that the blockchain system performs signature verification on the withholding entrusting information signed by the second blockchain account private key, and executes transaction fee settlement aiming at the target blockchain transaction to the second blockchain account based on the withholding entrusting information passing the signature verification.
Alternatively, the processor reads a corresponding computer program from the non-volatile memory into the memory and then runs the computer program to form a blockchain execution device on a logic level, where the blockchain execution device may be a blockchain system or may be a component of the blockchain system. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
and receiving a transaction request of target block chain transaction initiated by the first block chain account, wherein the transaction request carries withholding entrusting information signed by a private key of the second block chain account.
And performing signature verification on the deduction entrusting information signed by the second block chain account private key. And the number of the first and second groups,
performing transaction fee settlement for the target blockchain transaction for the second blockchain account based on the withholding delegation information verified by the signature.
The transaction fee settlement method disclosed in the embodiment of fig. 1 of the present specification may be implemented in or by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present specification may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present specification may be embodied directly in a hardware decoding processor, or in a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
It should be understood that the electronic device of the embodiments of the present specification may implement the functions of the above-described blockchain client device or the above-described blockchain system corresponding to the embodiments shown in fig. 1 and fig. 2. Since the principle is the same, the detailed description is omitted here.
Of course, besides the software implementation, the electronic device in this specification does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
Furthermore, the present specification embodiments also propose a computer-readable storage medium storing one or more programs, the one or more programs including instructions.
Optionally, the above instructions, when executed by a portable electronic device including a plurality of application programs, can cause the portable electronic device to perform the method of the embodiment shown in fig. 1, and is specifically configured to perform the following method:
generating deduction entrusting information of target block chain transaction and sending the deduction entrusting information to a second block chain account, wherein the deduction entrusting information is used for entrusting and paying the transaction cost of the target block chain transaction, so that the second block chain account signs the deduction entrusting information of the target block chain transaction based on a private key of the second block chain account, and sends the deduction entrusting information signed by the private key of the second block chain account to the first block chain account;
and initiating a transaction request of the target blockchain transaction to a blockchain system, wherein the transaction request carries withholding entrusting information signed by the second blockchain account private key, so that the blockchain system performs signature verification on the withholding entrusting information signed by the second blockchain account private key, and executes transaction fee settlement aiming at the target blockchain transaction to the second blockchain account based on the withholding entrusting information passing the signature verification.
Alternatively, the above instructions, when executed by a portable electronic device comprising a plurality of application programs, can cause the portable electronic device to perform the following method:
and receiving a transaction request of target block chain transaction initiated by the first block chain account, wherein the transaction request carries withholding entrusting information signed by a private key of the second block chain account.
And performing signature verification on the deduction entrusting information signed by the second block chain account private key. And the number of the first and second groups,
performing transaction fee settlement for the target blockchain transaction for the second blockchain account based on the withholding delegation information verified by the signature.
It will be appreciated that the above instructions, when executed by a portable electronic device comprising a plurality of applications, enable the blockchain client device or blockchain system described above to implement the functionality corresponding to the embodiments shown in fig. 1 and 2. Since the principle is the same, the detailed description is omitted here.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The above description is only an example of the present specification, and is not intended to limit the present specification. Various modifications and alterations to this description will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification should be included in the scope of the claims of the present specification. Moreover, all other embodiments obtained by a person skilled in the art without making any inventive step shall fall within the scope of protection of this document.