CN116128507A - Block chain-based transaction method and device and electronic equipment - Google Patents

Block chain-based transaction method and device and electronic equipment Download PDF

Info

Publication number
CN116128507A
CN116128507A CN202211665521.XA CN202211665521A CN116128507A CN 116128507 A CN116128507 A CN 116128507A CN 202211665521 A CN202211665521 A CN 202211665521A CN 116128507 A CN116128507 A CN 116128507A
Authority
CN
China
Prior art keywords
transaction
signature
value
target
public key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211665521.XA
Other languages
Chinese (zh)
Inventor
邱炜伟
黄方蕾
乔沛杨
张珂杰
胡麦芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Qulian Technology Co Ltd
Original Assignee
Hangzhou Qulian 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 Hangzhou Qulian Technology Co Ltd filed Critical Hangzhou Qulian Technology Co Ltd
Priority to CN202211665521.XA priority Critical patent/CN116128507A/en
Publication of CN116128507A publication Critical patent/CN116128507A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • 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

Landscapes

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

Abstract

The invention discloses a transaction method and device based on a blockchain and electronic equipment. The method comprises the following steps: calculating to obtain a user terminal address according to the first public key of the user terminal and the second public key of the mechanism terminal; sending a transaction request to a mechanism end; under the condition that a transaction response fed back by the institution side is received, generating a pre-signature of the target transaction according to the address of the user side, the transaction request and the transaction response, and sending the pre-signature to the institution side, so that the institution side can send the target signature to the blockchain after generating the target signature according to the pre-signature, wherein the target transaction is executed under the condition that the blockchain successfully verifies the target signature. The invention solves the technical problem that the transaction based on the blockchain needs to recharge the cost on the blockchain in advance as the transaction cost.

Description

Block chain-based transaction method and device and electronic equipment
Technical Field
The present invention relates to the field of computers, and in particular, to a blockchain-based transaction method, a blockchain-based transaction device, a blockchain-based transaction storage medium, and an electronic device.
Background
Because of the complexity of the use of blockchain technology, individual user operations on blockchains are often done instead by blockchain exchanges, NFT (data units on blockchain digital ledgers) chain service providers, or other specialized institutions. Second, some of the fees incurred by blockchain transactions need to be paid in an on-chain manner, and individual users typically do not have on-chain assets to pay. It is therefore conventional that a user first purchases an asset on a chain of credit to an institution for subsequent payment of the fee, similar to the concept of recharging. However, the disadvantages of this approach are two: on the one hand, the user can still hold the unexpired on-chain assets when no longer using the organization service, and the assets often have on-chain value only, and the enthusiasm of user recharging is affected if the user is not allowed to return; on the other hand, if returns are allowed, there are many problems, such as valuable fluctuations in the assets on the chain, both sides may always suffer from the losses due to fluctuations, such as refunds to individual users, which require complex refund mechanisms.
Disclosure of Invention
The embodiment of the invention provides a transaction method and device based on a blockchain and electronic equipment, which at least solve the technical problem that the transaction based on the blockchain needs to recharge fees on the blockchain in advance as transaction fees.
According to an aspect of an embodiment of the present invention, there is provided a blockchain-based transaction method, applied to a client, including: calculating to obtain a user terminal address according to the first public key of the user terminal and the second public key of the mechanism terminal; sending a transaction request to a mechanism end; and under the condition that a transaction response fed back by the institution side is received, generating a pre-signature of a target transaction according to the address of the user side, the transaction request and the transaction response, and sending the pre-signature to the institution side so that the institution side can generate the target signature according to the pre-signature and then send the target signature to a blockchain, wherein the target transaction is executed under the condition that the blockchain successfully verifies the target signature.
According to an aspect of an embodiment of the present invention, there is provided a blockchain-based transaction method, applied to an organization side, including: under the condition that a transaction request sent by a user side is received, calculating the product of the second non-zero random number and the elliptic curve base point to obtain a transaction response; transmitting the transaction response to the client so that the client constructs a target transaction and generates a pre-signature according to the client address, the transaction request and the transaction response; when the target transaction and the pre-signature are sent out by the user side and the pre-signature is verified to pass, generating a target signature according to the pre-signature and sending the target signature to a blockchain; and executing the target transaction under the condition that a successful verification signal is received, wherein the successful verification signal is a signal which is sent by the blockchain and is used for successfully verifying the target signature.
According to an aspect of an embodiment of the present invention, there is provided a blockchain-based transaction method applied to a blockchain, including: under the condition that a target signature sent by a mechanism end is received, a fourth value and a fifth value are obtained according to the target signature, and a transaction request and a transaction response are obtained from the mechanism end, wherein the target signature is obtained by combining the fourth value and the fifth value; acquiring a first public key of a user side and a second public key of the mechanism side, and calculating the sum of the first public key and the second public key to obtain a sixth value; calculating the product of a third value and a sixth value, and obtaining a seventh value by the sum of the transaction request and the transaction response, wherein the third value is a numerical value calculated according to the transaction request, the transaction response and a one-way function; calculating the product of the fourth value and the elliptic curve base point to obtain an eighth value; and if the seventh value and the eighth value are equal, determining that the target signature verification is successful, and sending a success verification signal to the institution terminal so that the institution terminal executes the target transaction corresponding to the target signature.
According to another aspect of the embodiment of the present invention, there is provided a transaction apparatus based on blockchain, which is applied to a user terminal, including: the first calculation module is used for calculating and obtaining a user terminal address according to the first public key of the user terminal and the second public key of the mechanism terminal; the sending module is used for sending a transaction request to the mechanism side; and the generation module is used for generating a pre-signature of a target transaction according to the address of the user side, the transaction request and the transaction response under the condition that the transaction response fed back by the mechanism side is received, and transmitting the pre-signature to the mechanism side so that the mechanism side can generate the target signature according to the pre-signature and then transmit the target signature to a blockchain, wherein the target transaction is executed under the condition that the blockchain successfully verifies the target signature.
As an alternative example, the above apparatus further includes: and the second calculation module is used for calculating the product of the first non-zero random number and the elliptic curve base point to obtain the transaction request before sending the transaction request to the institution terminal, and sending the transaction request to the institution terminal so that the institution terminal can calculate the transaction response according to the second non-zero random number and the elliptic curve base point.
As an optional example, the first computing module includes: the first calculating unit is used for calculating the product of the first private key of the user side and the elliptic curve base point to obtain the first public key of the user side; the second calculating unit is used for calculating the product of the second private key of the mechanism end and the elliptic curve base point to obtain a second public key of the mechanism end; and a third calculation unit, configured to input the sum of the first public key and the second public key into the one-way function, to obtain the user address.
As an optional example, the generating module includes: a fourth calculation unit, configured to input the sum of the transaction request and the transaction response, and the address of the user side into the one-way function, so as to obtain a first value; a fifth calculating unit, configured to calculate a remainder of dividing the first value by a second value, to obtain a third value, where the second value is a modulus of the bottom domain; and a sixth calculation unit for calculating the product of the sum of the first public key and the second public key and the third value to obtain the pre-signature.
According to another aspect of the embodiments of the present invention, there is provided a blockchain-based transaction device, for use at an institution terminal, including: the calculating module is used for calculating the product of the second non-zero random number and the elliptic curve base point under the condition of receiving a transaction request sent by the user side to obtain a transaction response; the sending module is used for sending the transaction response to the user side so that the user side constructs a target transaction and generates a pre-signature according to the user side address, the transaction request and the transaction response; the generation module is used for generating a target signature according to the pre-signature and sending the target transaction and the pre-signature to a blockchain when the target transaction and the pre-signature are sent by the user side and the pre-signature is verified to pass; and the execution module is used for executing the target transaction under the condition of receiving a successful verification signal, wherein the successful verification signal is a signal which is sent by the block chain and is used for verifying the target signature successfully.
According to another aspect of an embodiment of the present invention, there is provided a blockchain-based transaction device, applied to a blockchain, including: the processing module is used for obtaining a fourth value and a fifth value according to the target signature under the condition that the target signature sent by the mechanism end is received, and obtaining a transaction request and a transaction response from the mechanism end, wherein the target signature is obtained by combining the fourth value and the fifth value; the first calculation module is used for obtaining a first public key of the user side and a second public key of the mechanism side, and calculating the sum of the first public key and the second public key to obtain a sixth value; a second calculation module, configured to calculate a product of a third value and a sixth value, where the third value is a value calculated according to the transaction request, the transaction response, and a one-way function, and obtain a seventh value; the third calculation module is used for calculating the product of the fourth value and the elliptic curve base point to obtain an eighth value; and the determining module is used for determining that the target signature is successfully verified under the condition that the seventh value and the eighth value are equal, and sending a successful verification signal to the institution terminal so as to enable the institution terminal to execute the target transaction corresponding to the target signature.
According to yet another aspect of embodiments of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program, when executed by a processor, performs the blockchain-based transaction method described above.
According to yet another aspect of an embodiment of the present invention, there is also provided an electronic device including a memory having a computer program stored therein, and a processor configured to execute the blockchain-based transaction method described above by the computer program.
In the embodiment of the invention, the address of the user terminal is obtained by adopting the calculation according to the first public key of the user terminal and the second public key of the mechanism terminal; sending a transaction request to a mechanism end; when a transaction response fed back by the mechanism side is received, a pre-signature of a target transaction is generated according to the address of the user side, the transaction request and the transaction response and is sent to the mechanism side, so that the mechanism side generates the target signature according to the pre-signature and then sends the target signature to a blockchain, wherein in the method, when the blockchain successfully verifies the target signature, the target transaction is executed.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a flow chart of an alternative blockchain-based transaction method applied to a client in accordance with an embodiment of the present invention;
FIG. 2 is a flow chart of an alternative blockchain-based transaction method applied to an institution-side in accordance with an embodiment of the present invention;
FIG. 3 is a flow chart of an alternative blockchain-based transaction method applied to a blockchain in accordance with embodiments of the present invention;
FIG. 4 is a block diagram of an alternative blockchain-based transaction method in accordance with embodiments of the invention;
FIG. 5 is a schematic diagram of an alternative blockchain-based transaction device applied to a client according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an alternative blockchain-based transaction device applied to a institutional end in accordance with an embodiment of the present invention;
FIG. 7 is a schematic diagram of an alternative blockchain-based transaction device applied to a blockchain in accordance with embodiments of the present invention;
Fig. 8 is a schematic diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to a first aspect of an embodiment of the present invention, there is provided a blockchain-based transaction method, optionally as shown in fig. 1, applied to a user terminal, where the method includes:
s102, calculating to obtain a user terminal address according to a first public key of the user terminal and a second public key of the mechanism terminal;
s104, sending a transaction request to a mechanism side;
and S106, under the condition that a transaction response fed back by the institution side is received, generating a pre-signature of the target transaction according to the address of the user side, the transaction request and the transaction response, and sending the pre-signature to the institution side so that the institution side can send the target signature to the blockchain after generating the target signature according to the pre-signature, wherein under the condition that the blockchain successfully verifies the target signature, the target transaction is executed.
Optionally, in this embodiment, the Public Key (Public Key) and the Private Key (Private Key) are a Key pair (i.e., a Public Key and a Private Key) obtained by an algorithm, the Public Key is a Public part of the Key pair, and the Private Key is a non-Public part. Address, unique identification of an account on the blockchain. The one-way function can only calculate the result from the input, and the one-shot function of the input cannot be deduced from the result. The elliptic curve is a one-generation curve.
Optionally, in this embodiment, the user side may calculate the user side Address address_tx according to the one-way function F (x), the first private key x_u of the user side, the second private key x_o of the institution side, and the elliptic curve base point G, and send a transaction request v_u·g to the institution side, after receiving the transaction response v_o·g fed back by the institution side according to the transaction request, generate a preSign of the target transaction according to the user side address_tx, the transaction request v_u·g, and the transaction response v_o·g, and send the preSign to the institution side, so that the institution side generates the target signature (s 1, s 2) according to the preSign, and then sends the target signature (s 1, s 2) to the blockchain, and under the condition that the blockchain successfully verifies the target signature (s 1, s 2), execute the target transaction, and deduct the cost of the target transaction from the institution side, otherwise reject the transaction without deducting any cost.
Optionally, in this embodiment, after the user side sends the transaction request to the mechanism side, the user side receives the transaction response sent by the mechanism side, creates the target transaction and the pre-signature according to the transaction request and the transaction response, and sends the target transaction and the pre-signature to the mechanism side, the mechanism side generates the final target signature according to the pre-signature and sends the final target signature to the blockchain for verification, after the verification is passed, the target transaction is executed, and any party can not generate the signature independently by generating the signature result approved by the same party, so that the purpose that the user can complete the transaction without recharging is achieved, and further the technical problem that the transaction based on the blockchain needs to be recharged to the blockchain in advance as the transaction fee is solved.
As an alternative example, before sending the transaction request to the institution side, the method further includes:
and calculating the product of the first non-zero random number and the elliptic curve base point to obtain a transaction request, and sending the transaction request to the mechanism end so that the mechanism end calculates to obtain a transaction response according to the second non-zero random number and the elliptic curve base point.
Optionally, in this embodiment, a first non-zero random number v_u and a second non-zero random number v_o are generated, and the product of the first non-zero random number v_u and the elliptic curve base point G is calculated to obtain the transaction request v_u·g. The transaction request v_u.G is sent to the mechanism side, so that the mechanism side calculates the transaction response v_o.G according to the second non-zero random number v_o and the elliptic curve base point G.
As an optional example, calculating the address of the user terminal according to the first public key of the user terminal and the second public key of the mechanism terminal includes:
calculating the product of the first private key of the user side and the elliptic curve base point to obtain a first public key of the user side;
calculating the product of the second private key of the mechanism end and the elliptic curve base point to obtain a second public key of the mechanism end;
and inputting the sum of the first public key and the second public key into a one-way function to obtain the address of the user terminal.
Optionally, in this embodiment, the product of the first private key x_u and the elliptic curve base point G is calculated to obtain a first public key x_u·g at the user end, the product of the second private key x_o and the elliptic curve base point G is calculated to obtain a second public key x_o·g at the mechanism end, and the sum of the first public key x_u·g and the second public key x_o·g is input to the one-way function F (x) to obtain the user end Address address_tx=f (x_u·g+x_o·g).
As an alternative example, generating a pre-signature of a target transaction from a user-side address, a transaction request, and a transaction response includes:
inputting the sum of the transaction request and the transaction response to a one-way function by the address of the user side to obtain a first value;
calculating a remainder of the first value divided by the second value to obtain a third value, wherein the second value is a modulus of the bottom domain;
and calculating the product of the sum of the first public key and the second public key and the third value to obtain the pre-signature.
Optionally, in this embodiment, the sum of the transaction request v_u·g and the transaction response v_o·g is input to the one-way function F (x) to obtain a first value F (v_o·g+v_u·g, address_tx, tx), a remainder of dividing the first value by the second value is calculated to obtain a third value e=f (v_o·g+v_u·g, address_tx, tx) mod p, wherein the second value is a modulus p of the underlying domain, and a product of the sum of the first public key x_u·g and the second public key x_o·g and the third value e is calculated to obtain the pre-signature presign=e·x_u+v_u.
According to a first aspect of an embodiment of the present invention, there is provided a blockchain-based transaction method, optionally as shown in fig. 2, applied to an institution terminal, the method including:
s202, under the condition that a transaction request sent by a user terminal is received, calculating the product of a second non-zero random number and an elliptic curve base point to obtain a transaction response;
s204, sending the transaction response to the user terminal so that the user terminal constructs a target transaction and generates a pre-signature according to the user terminal address, the transaction request and the transaction response;
s206, when the target transaction and the pre-signature are sent out by the user side and the pre-signature is verified to pass, generating the target signature according to the pre-signature and sending the target signature to the blockchain;
s208, executing the target transaction under the condition that a successful verification signal is received, wherein the successful verification signal is a signal that the target signature sent by the blockchain is successfully verified.
Optionally, in this embodiment, after receiving the transaction request sent by the user, the mechanism side calculates a product of the second non-zero random number v_o and the elliptic curve base point G to obtain a transaction response v_o·g, and sends the transaction response v_o·g to the user, so that the user constructs a target transaction and generates the preSign according to the Address of the user, the transaction request v_u·g, and the transaction response v_o·g. And (3) at the receiving user side, sending out the target transaction and the preSign, verifying whether the preSign passes or not, judging whether e (x_o.G+x_u.G) is equal to presign.G-v_o.G-v_u.G or not, if so, verifying that the preSign passes, and if not, verifying that the preSign does not pass. If the verification is passed, a target signature (s 1, s 2) is generated from the preSign, wherein s1=e·x_o+v_o+presign, s2=v_o·g+v_u·g. And finally, the target signature (s 1, s 2) is sent to the blockchain so as to enable the blockchain to verify whether the target signature (s 1, s 2) passes or not, under the condition that a signal of successful verification of the target signature sent by the blockchain is received, the target transaction is executed, the fee of the target transaction is deducted from an institution end, under the condition that the signal of unsuccessful verification of the target signature sent by the blockchain is received, the transaction is refused, and no fee is deducted.
According to a first aspect of an embodiment of the present invention, there is provided a blockchain-based transaction method, optionally as shown in fig. 3, applied to a blockchain, the method including:
s302, under the condition that a target signature sent by an organization end is received, a fourth value and a fifth value are obtained according to the target signature, and a transaction request and a transaction response are obtained from the organization end, wherein the target signature is obtained by combining the fourth value and the fifth value;
s304, a first public key of a user side and a second public key of a mechanism side are obtained, and the sum of the first public key and the second public key is calculated to obtain a sixth value;
s306, calculating the product of the third value and the sixth value, and the sum of the transaction request and the transaction response to obtain a seventh value, wherein the third value is a numerical value calculated according to the transaction request, the transaction response and the one-way function;
s308, calculating the product of the fourth value and the base point of the elliptic curve to obtain an eighth value;
and S310, under the condition that the seventh value and the eighth value are equal, determining that the target signature verification is successful, and sending a successful verification signal to the institution terminal so as to enable the institution terminal to execute the target transaction corresponding to the target signature.
Alternatively, in the present embodiment, in the case of receiving the target signature (s 1, s 2) issued by the institution side, the fourth value s1 and the fifth value s2 are obtained from the target signature (s 1, s 2), the transaction request v_u·g and the transaction response v_o·g are acquired from the institution side, the first public key x_u·g of the user side and the second public key x_o·g of the institution side are acquired, and the sum of the first public key x_u·g and the second public key x_o·g is calculated, the sixth value x_u·g+x_o·g is obtained, the product of the third value e=f (s 2, address_tx, tx) mod p and the sixth value x_u·g+x·o·g is calculated, the sum of the transaction request v_u.G and the transaction response v_o.G is obtained to obtain a seventh value e (x_o.G+x_u.G) +v_o.G+v_u.G, the product of the fourth value s1 and the elliptic curve base point G is calculated to obtain an eighth value s 1.G, whether the seventh value e (x_o.G+x_u.G) +v_o.G+v_u.G is equal to the eighth value s 1.G or not is verified, if the seventh value e.g. x_o.G+x_u.G) +v_o.g+v_u.G is equal to the eighth value s 1.G, the target signature is verified to pass, a successful verification signal is sent to the mechanism side so that the mechanism side executes the target transaction corresponding to the target signature, and the cost of the target transaction is deducted from the mechanism side. If the target signatures are not equal, the target signatures are verified to be not passed, and an unsuccessful verification signal is sent to the institution terminal, so that the institution terminal does not execute the target transaction corresponding to the target signatures, and any fee is not deducted.
Described in connection with one example, the present application relates to a blockchain-based transaction method that is improved based on the SM2 algorithm, possessing equivalent cryptographic assumptions and corresponding security strengths. The algorithm is completed through an interactive protocol, and signature result disclosure can be verified and cannot be repudiated, so that both parties can contain own rights and interests: the user can complete transaction fee payment on the premise of not recharging once, and the mechanism can also avoid the illegal use of the assets in the public account.
Alternatively, the flow of a transaction is as follows, as shown in FIG. 4:
1. the user initiates a transaction request, calculates the address of the transaction initiator based on the public key of the institution and the public key of the user before initiating the request, and then sends the transaction request to the institution. The address calculation method is to use a one-way function, and take the public key as the input of the one-way function to obtain the address;
2. the institution analyzes the transaction request and stores the transaction request, calculates the transaction response according to the signature algorithm of the method, and returns the transaction response to the user;
3. after receiving the transaction response, the user constructs a transaction, calculates the institution address using the institution public key and as part of the transaction content. The user address of the transaction is the address of the initiator calculated before, a pre-signature is generated according to a signature algorithm of the method, and the transaction with the pre-signature is sent to an institution;
4. The institution uses the pre-signature, the own data and the random number to calculate the final signature according to the signature algorithm, and links the transaction with the final signature.
5. The transaction is accepted after the verification signature passes on the chain, and the transaction is executed after the corresponding transaction fee is deducted from the institution address. Otherwise, refusing the transaction without deducting any fee.
Optionally, the user private key is recorded as x_u, and the mechanism account private key is recorded as x_o; g is marked as an elliptic curve base point, and p is marked as a mode of a bottom layer finite field; the scalar and elliptic curve point multiplication is denoted by "·". The one-way function is noted as F. The signature algorithm is as follows:
calculating an initiator address: address_tx=f (x_o·g+x_u·g);
calculating a transaction request: uniformly selecting a non-zero random number v_u, calculating v_u.G, and making a transaction request v_u.G;
calculating a transaction response: uniformly selecting a non-zero random number v_o, calculating v_o.G, and determining the transaction response as v_o.G
Calculating a pre-signature: e=f (v_o·g+v_u·g, address_tx, tx) mod p, pre-signed presign=e·x_u+v_u;
verifying the pre-signature: e=f (v_o·g+v_u·g, address_tx, tx) mod p, and determining if e· (x_o·g+x_u·g) is equal to presign·g-v_o·g-v_u·g, and if equal, pass;
calculating a final signature: (s 1, s 2) = (e·x_o+v_o+presign, v_o·g+v_u·g);
Verifying the final signature: let the received final signature be (s 1, s 2), calculate e=f (s 2, address_tx, tx) mod p, calculate if e· (x_o·g+x_u·g) +v_o·g+v_u·g=s1·g, if equal, verify pass, otherwise not pass.
Alternatively, no elliptic curve is assumed to be used in the method, and compatibility with the SM2 algorithm can be achieved when a curve of the national encryption algorithm is adopted (a private key and a public key of the SM2 algorithm are directly used as the private key and the public key of the algorithm).
Optionally, the method can realize the function of deducting transaction fees, and solves the problem that a user needs to recharge the fees on the chain in advance as the transaction fees. Such that the account performing the transaction and the account deducting the transaction fee can be separated. It is also possible to generate a signature result that is recognized by the same party, and neither party can generate the signature alone. The algorithm is compatible with public and private keys of the SM2 algorithm, and bilinear pairing is not needed.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
According to another aspect of the embodiments of the present application, there is further provided a transaction device based on blockchain, as shown in fig. 5, applied to a user terminal, including:
the first calculating module 502 is configured to calculate a user address according to the first public key of the user and the second public key of the mechanism;
a sending module 504, configured to send a transaction request to an institution terminal;
and the generating module 506 is configured to generate a pre-signature of the target transaction according to the address of the user side, the transaction request and the transaction response when receiving the transaction response fed back by the institution side, and send the pre-signature to the institution side, so that the institution side generates the target signature according to the pre-signature and then sends the target signature to the blockchain, where the target transaction is executed when the blockchain successfully verifies the target signature.
Optionally, in this embodiment, the Public Key (Public Key) and the Private Key (Private Key) are a Key pair (i.e., a Public Key and a Private Key) obtained by an algorithm, the Public Key is a Public part of the Key pair, and the Private Key is a non-Public part. Address, unique identification of an account on the blockchain. The one-way function can only calculate the result from the input, and the one-shot function of the input cannot be deduced from the result. The elliptic curve is a one-generation curve.
Optionally, in this embodiment, the user side may calculate the user side Address address_tx according to the one-way function F (x), the first private key x_u of the user side, the second private key x_o of the institution side, and the elliptic curve base point G, and send a transaction request v_u·g to the institution side, after receiving the transaction response v_o·g fed back by the institution side according to the transaction request, generate a preSign of the target transaction according to the user side address_tx, the transaction request v_u·g, and the transaction response v_o·g, and send the preSign to the institution side, so that the institution side generates the target signature (s 1, s 2) according to the preSign, and then sends the target signature (s 1, s 2) to the blockchain, and under the condition that the blockchain successfully verifies the target signature (s 1, s 2), execute the target transaction, and deduct the cost of the target transaction from the institution side, otherwise reject the transaction without deducting any cost.
Optionally, in this embodiment, after the user side sends the transaction request to the mechanism side, the user side receives the transaction response sent by the mechanism side, creates the target transaction and the pre-signature according to the transaction request and the transaction response, and sends the target transaction and the pre-signature to the mechanism side, the mechanism side generates the final target signature according to the pre-signature and sends the final target signature to the blockchain for verification, after the verification is passed, the target transaction is executed, and any party can not generate the signature independently by generating the signature result approved by the same party, so that the purpose that the user can complete the transaction without recharging is achieved, and further the technical problem that the transaction based on the blockchain needs to be recharged to the blockchain in advance as the transaction fee is solved.
As an alternative example, the above apparatus further includes:
and the second calculation module is used for calculating the product of the first non-zero random number and the elliptic curve base point to obtain a transaction request before sending the transaction request to the mechanism end, and sending the transaction request to the mechanism end so that the mechanism end can calculate and obtain a transaction response according to the second non-zero random number and the elliptic curve base point.
Optionally, in this embodiment, a first non-zero random number v_u and a second non-zero random number v_o are generated, and the product of the first non-zero random number v_u and the elliptic curve base point G is calculated to obtain the transaction request v_u·g. The transaction request v_u.G is sent to the mechanism side, so that the mechanism side calculates the transaction response v_o.G according to the second non-zero random number v_o and the elliptic curve base point G.
As an alternative example, the first computing module includes:
the first calculating unit is used for calculating the product of the first private key of the user side and the elliptic curve base point to obtain the first public key of the user side;
the second calculating unit is used for calculating the product of the second private key of the mechanism end and the elliptic curve base point to obtain a second public key of the mechanism end;
and the third calculation unit is used for inputting the sum of the first public key and the second public key into the one-way function to obtain the address of the user terminal.
Optionally, in this embodiment, the product of the first private key x_u and the elliptic curve base point G is calculated to obtain a first public key x_u·g at the user end, the product of the second private key x_o and the elliptic curve base point G is calculated to obtain a second public key x_o·g at the mechanism end, and the sum of the first public key x_u·g and the second public key x_o·g is input to the one-way function F (x) to obtain the user end Address address_tx=f (x_u·g+x_o·g).
As an alternative example, the generating module includes:
a fourth calculation unit, configured to input a sum of the transaction request and the transaction response, where the address of the user side is input to a one-way function, to obtain a first value;
a fifth calculating unit, configured to calculate a remainder of dividing the first value by the second value, to obtain a third value, where the second value is a modulus of the bottom domain;
and a sixth calculation unit, configured to calculate a product of the sum of the first public key and the second public key and the third value, and obtain a pre-signature.
Optionally, in this embodiment, the sum of the transaction request v_u·g and the transaction response v_o·g is input to the one-way function F (x) to obtain a first value F (v_o·g+v_u·g, address_tx, tx), a remainder of dividing the first value by the second value is calculated to obtain a third value e=f (v_o·g+v_u·g, address_tx, tx) mod p, wherein the second value is a modulus p of the underlying domain, and a product of the sum of the first public key x_u·g and the second public key x_o·g and the third value e is calculated to obtain the pre-signature presign=e·x_u+v_u.
According to another aspect of the embodiment of the present invention, there is provided a transaction apparatus based on a blockchain, as shown in fig. 6, applied to an organization end, including:
the calculating module 602 is configured to calculate a product of the second non-zero random number and the elliptic curve base point to obtain a transaction response when receiving a transaction request sent by the user terminal;
a sending module 604, configured to send the transaction response to the client, so that the client constructs a target transaction and generates a pre-signature according to the address of the client, the transaction request and the transaction response;
the generating module 606 is configured to generate a target signature according to the pre-signature and send the target signature to the blockchain when the target transaction and the pre-signature are sent by the user terminal and the pre-signature is verified to pass;
and an execution module 608, configured to execute the transaction if a success verification signal is received, where the success verification signal is a signal that the target signature sent by the blockchain verifies successfully.
Optionally, in this embodiment, after receiving the transaction request sent by the user, the mechanism side calculates a product of the second non-zero random number v_o and the elliptic curve base point G to obtain a transaction response v_o·g, and sends the transaction response v_o·g to the user, so that the user constructs a target transaction and generates the preSign according to the Address of the user, the transaction request v_u·g, and the transaction response v_o·g. And (3) at the receiving user side, sending out the target transaction and the preSign, verifying whether the preSign passes or not, judging whether e (x_o.G+x_u.G) is equal to presign.G-v_o.G-v_u.G or not, if so, verifying that the preSign passes, and if not, verifying that the preSign does not pass. If the verification is passed, a target signature (s 1, s 2) is generated from the preSign, wherein s1=e·x_o+v_o+presign, s2=v_o·g+v_u·g. And finally, the target signature (s 1, s 2) is sent to the blockchain so as to enable the blockchain to verify whether the target signature (s 1, s 2) passes or not, under the condition that a signal of successful verification of the target signature sent by the blockchain is received, the target transaction is executed, the fee of the target transaction is deducted from an institution end, under the condition that the signal of unsuccessful verification of the target signature sent by the blockchain is received, the transaction is refused, and no fee is deducted.
According to another aspect of an embodiment of the present invention, there is provided a blockchain-based transaction device, as shown in fig. 7, applied to a blockchain, including:
the processing module 702 is configured to obtain a fourth value and a fifth value according to a target signature when the target signature sent by the institution side is received, and obtain a transaction request and a transaction response from the institution side, where the target signature is obtained by combining the fourth value and the fifth value;
the first calculating module 704 is configured to obtain a first public key of the user side and a second public key of the mechanism side, and calculate a sum of the first public key and the second public key to obtain a sixth value;
a second calculating module 706, configured to calculate a sum of the third value and the sixth value, and the transaction request and the transaction response to obtain a seventh value, where the third value is a value calculated according to the transaction request, the transaction response, and the one-way function;
a third calculation module 708, configured to calculate a product of the fourth value and the elliptic curve base point to obtain an eighth value;
and the determining module 710 is configured to determine that the target signature is successfully verified if the seventh value and the eighth value are equal, and send a success verification signal to the institution terminal, so that the institution terminal executes the target transaction corresponding to the target signature.
Alternatively, in the present embodiment, in the case of receiving the target signature (s 1, s 2) issued by the institution side, the fourth value s1 and the fifth value s2 are obtained from the target signature (s 1, s 2), the transaction request v_u·g and the transaction response v_o·g are acquired from the institution side, the first public key x_u·g of the user side and the second public key x_o·g of the institution side are acquired, and the sum of the first public key x_u·g and the second public key x_o·g is calculated, the sixth value x_u·g+x_o·g is obtained, the product of the third value e=f (s 2, address_tx, tx) mod p and the sixth value x_u·g+x·o·g is calculated, the sum of the transaction request v_u.G and the transaction response v_o.G is obtained to obtain a seventh value e (x_o.G+x_u.G) +v_o.G+v_u.G, the product of the fourth value s1 and the elliptic curve base point G is calculated to obtain an eighth value s 1.G, whether the seventh value e (x_o.G+x_u.G) +v_o.G+v_u.G is equal to the eighth value s 1.G or not is verified, if the seventh value e.g. x_o.G+x_u.G) +v_o.g+v_u.G is equal to the eighth value s 1.G, the target signature is verified to pass, a successful verification signal is sent to the mechanism side so that the mechanism side executes the target transaction corresponding to the target signature, and the cost of the target transaction is deducted from the mechanism side. If the target signatures are not equal, the target signatures are verified to be not passed, and an unsuccessful verification signal is sent to the institution terminal, so that the institution terminal does not execute the target transaction corresponding to the target signatures, and any fee is not deducted.
For other examples of this embodiment, please refer to examples, and are not described herein.
Fig. 8 is a block diagram of an alternative electronic device, according to an embodiment of the present application, including a processor 802, a communication interface 804, a memory 806, and a communication bus 808, as shown in fig. 8, wherein the processor 802, the communication interface 804, and the memory 806 communicate with each other via the communication bus 808, wherein,
a memory 806 for storing a computer program;
the processor 802, when executing the computer program stored on the memory 806, performs the following steps:
calculating to obtain a user terminal address according to the first public key of the user terminal and the second public key of the mechanism terminal;
sending a transaction request to a mechanism end;
under the condition that a transaction response fed back by the institution side is received, generating a pre-signature of the target transaction according to the address of the user side, the transaction request and the transaction response, and sending the pre-signature to the institution side, so that the institution side can send the target signature to the blockchain after generating the target signature according to the pre-signature, wherein the target transaction is executed under the condition that the blockchain successfully verifies the target signature.
Alternatively, in the present embodiment, the above-described communication bus may be a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or an EISA (Extended Industry Standard Architecture ) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, only one thick line is shown in fig. 8, but not only one bus or one type of bus. The communication interface is used for communication between the electronic device and other devices.
The memory may include RAM or may include non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
As an example, the memory 806 may include, but is not limited to, the first computing module 502, the transmitting module 504, and the generating module 506 in the blockchain-based transaction device. In addition, other module units in the processing apparatus of the above request may be included, but are not limited to, and are not described in detail in this example.
The processor may be a general purpose processor and may include, but is not limited to: CPU (Central Processing Unit ), NP (Network Processor, network processor), etc.; but also DSP (Digital Signal Processing, digital signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field-Programmable Gate Array, field programmable gate array) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely illustrative, and the device implementing the blockchain-based transaction method may be a terminal device, and the terminal device may be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palm computer, a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 8 is not limited to the structure of the electronic device described above. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 8, or have a different configuration than shown in FIG. 8.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute in association with hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, ROM, RAM, magnetic or optical disk, etc.
According to yet another aspect of embodiments of the present invention, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program when executed by a processor performs the steps in the blockchain-based transaction method described above.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present invention.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (10)

1. A blockchain-based transaction method, applied to a user terminal, comprising:
calculating to obtain a user terminal address according to the first public key of the user terminal and the second public key of the mechanism terminal;
sending a transaction request to a mechanism end;
and under the condition that a transaction response fed back by the institution side is received, generating a pre-signature of a target transaction according to the user side address, the transaction request and the transaction response, and sending the pre-signature to the institution side so that the institution side can send the target signature to a blockchain after generating the target signature according to the pre-signature, wherein the target transaction is executed under the condition that the blockchain successfully verifies the target signature.
2. The method of claim 1, wherein prior to sending the transaction request to the institution-side, the method further comprises:
and calculating the product of the first non-zero random number and the elliptic curve base point to obtain the transaction request, and sending the transaction request to the institution terminal so that the institution terminal calculates the transaction response according to the second non-zero random number and the elliptic curve base point.
3. The method of claim 1, wherein the calculating the address of the user terminal based on the first public key of the user terminal and the second public key of the organization terminal comprises:
calculating the product of the first private key of the user side and the elliptic curve base point to obtain a first public key of the user side;
calculating the product of the second private key of the mechanism end and the elliptic curve base point to obtain a second public key of the mechanism end;
and inputting the sum of the first public key and the second public key into the one-way function to obtain the address of the user terminal.
4. The method of claim 1, wherein the generating a pre-signature of a target transaction from the client address, the transaction request, and the transaction response comprises:
Inputting the sum of the transaction request and the transaction response to a one-way function by the address of the user side to obtain a first value;
calculating the remainder of the first value divided by the second value to obtain a third value, wherein the second value is a modulus of the bottom domain;
and calculating the product of the sum of the first public key and the second public key and the third value to obtain the pre-signature.
5. A blockchain-based transaction method, applied to an institution terminal, comprising:
under the condition that a transaction request sent by a user side is received, calculating the product of the second non-zero random number and the elliptic curve base point to obtain a transaction response;
transmitting the transaction response to the user side so that the user side constructs a target transaction and generates a pre-signature according to a user side address, the transaction request and the transaction response;
generating a target signature according to the pre-signature and sending the target transaction and the pre-signature to a blockchain under the condition that the target transaction and the pre-signature are sent by the user side and the pre-signature is verified to pass;
the target transaction is performed upon receipt of a successful verification signal, wherein the successful verification signal is a signal sent by the blockchain that the target signature verification was successful.
6. A blockchain-based transaction method, applied to a blockchain, comprising:
under the condition that a target signature sent by an organization end is received, a fourth value and a fifth value are obtained according to the target signature, and a transaction request and a transaction response are obtained from the organization end, wherein the target signature is obtained by combining the fourth value and the fifth value;
acquiring a first public key of a user side and a second public key of the mechanism side, and calculating the sum of the first public key and the second public key to obtain a sixth value;
calculating the product of a third value and a sixth value, wherein the sum of the transaction request and the transaction response is a seventh value, and the third value is a value calculated according to the transaction request, the transaction response and a one-way function;
calculating the product of the fourth value and the elliptic curve base point to obtain an eighth value;
and under the condition that the seventh value and the eighth value are equal, determining that the target signature verification is successful, and sending a successful verification signal to the institution terminal so that the institution terminal executes the target transaction corresponding to the target signature.
7. A blockchain-based transaction device, for use at a client, comprising:
The first calculation module is used for calculating and obtaining a user terminal address according to the first public key of the user terminal and the second public key of the mechanism terminal;
the sending module is used for sending a transaction request to the mechanism side;
and the generation module is used for generating a pre-signature of a target transaction according to the address of the user side, the transaction request and the transaction response under the condition that the transaction response fed back by the mechanism side is received, and sending the pre-signature to the mechanism side so that the mechanism side can send the target signature to a blockchain after generating the target signature according to the pre-signature, wherein the target transaction is executed under the condition that the blockchain successfully verifies the target signature.
8. A blockchain-based transaction device, for use at an institution terminal, comprising:
the calculating module is used for calculating the product of the second non-zero random number and the elliptic curve base point under the condition of receiving a transaction request sent by the user side to obtain a transaction response;
the sending module is used for sending the transaction response to the user side so that the user side constructs a target transaction and generates a pre-signature according to the user side address, the transaction request and the transaction response;
The generation module is used for generating a target signature according to the pre-signature and sending the target transaction and the pre-signature to a blockchain under the condition that the target transaction and the pre-signature are sent by the user side and the pre-signature is verified to pass;
and the execution module is used for executing the target transaction under the condition of receiving a successful verification signal, wherein the successful verification signal is a signal which is sent out by the blockchain and is used for verifying the target signature successfully.
9. A blockchain-based transaction device, for use with a blockchain, comprising:
the processing module is used for obtaining a fourth value and a fifth value according to the target signature under the condition that the target signature sent by the mechanism end is received, and obtaining a transaction request and a transaction response from the mechanism end, wherein the target signature is obtained by combining the fourth value and the fifth value;
the first calculation module is used for acquiring a first public key of the user side and a second public key of the mechanism side, and calculating the sum of the first public key and the second public key to obtain a sixth value;
the second calculation module is used for calculating the product of a third value and a sixth value, and the sum of the transaction request and the transaction response is obtained to obtain a seventh value, wherein the third value is a numerical value calculated according to the transaction request, the transaction response and a one-way function;
The third calculation module is used for calculating the product of the fourth value and the elliptic curve base point to obtain an eighth value;
and the determining module is used for determining that the target signature is successfully verified under the condition that the seventh value and the eighth value are equal, and sending a successful verification signal to the institution terminal so as to enable the institution terminal to execute the target transaction corresponding to the target signature.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 6 by means of the computer program.
CN202211665521.XA 2022-12-23 2022-12-23 Block chain-based transaction method and device and electronic equipment Pending CN116128507A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211665521.XA CN116128507A (en) 2022-12-23 2022-12-23 Block chain-based transaction method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211665521.XA CN116128507A (en) 2022-12-23 2022-12-23 Block chain-based transaction method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116128507A true CN116128507A (en) 2023-05-16

Family

ID=86305633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211665521.XA Pending CN116128507A (en) 2022-12-23 2022-12-23 Block chain-based transaction method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116128507A (en)

Similar Documents

Publication Publication Date Title
JP7112690B2 (en) Digital Wealth Management for Decentralized Transaction Consensus Network
CN107609866B (en) Electronic payment and electronic cash collection method and device based on virtual currency
US20170221022A1 (en) Information transaction infrastructure
EP1205889A1 (en) Returning of change in an electronic payment system
CA2686280A1 (en) Method and system for payment authorization and card presentation using pre-issued identities
US11640604B2 (en) Automated blockchain address creation and transfers by uniform resource locator generation and execution
CN106296197A (en) A kind of method, apparatus and system of payment
CN107256484A (en) Mobile payment sublicense method and the payment system realized using this method
CN106209386B (en) A kind of methods, devices and systems for realizing safety certification
CN111967967A (en) Block chain-based cross-bank payment service processing method and device
CN112288431A (en) Transaction method and device based on threshold signature
CN111861457A (en) Payment token application method, device, system and server
CA2793270A1 (en) Message storage and transfer system
CN111062717B (en) Data transfer processing method, device and computer readable storage medium
CN108876373A (en) A kind of method of payment, device, server and system
CN106330888B (en) The method and device of payment safety in a kind of guarantee the Internet line
TW201317911A (en) Cloud credit card transaction system and transaction method thereof
EP3533172B1 (en) System for secure authentication of a user's identity in an electronic system for banking transactions
KR20110107311A (en) A transaction system and mehod using mobile network, computer program therefor
CN116128507A (en) Block chain-based transaction method and device and electronic equipment
CN110378689A (en) A kind of method of payment, device, electronic equipment and computer readable storage medium
CN113222603A (en) International trade credit settlement authentication method and system
CN109474565B (en) Information verification method and apparatus, storage medium, and electronic apparatus
CN110570305A (en) Game data processing method and device based on block chain
CN113837762B (en) Digital currency payment method and device

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