CN109165941B - Payment method, medium and blockchain system based on blockchain system - Google Patents
Payment method, medium and blockchain system based on blockchain system Download PDFInfo
- Publication number
- CN109165941B CN109165941B CN201810857294.8A CN201810857294A CN109165941B CN 109165941 B CN109165941 B CN 109165941B CN 201810857294 A CN201810857294 A CN 201810857294A CN 109165941 B CN109165941 B CN 109165941B
- Authority
- CN
- China
- Prior art keywords
- transaction
- user
- address information
- user end
- pool
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3829—Payment protocols; Details thereof insuring higher security of transaction involving key management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, 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/401—Transaction verification
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Computer Security & Cryptography (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The invention discloses a payment method based on a block chain system, which comprises the following steps: starting a transfer pool; the first user end sends an encrypted first transaction request and sends encrypted transaction address information of the second user end at the same time, the transfer pool decrypts and verifies the first transaction request and obtains a transaction amount and a transaction address of the second user end; the transfer pool sends an encrypted second transaction request to the second user end according to the transaction address of the second user end, and simultaneously sends encrypted transaction address information of the first user end to the second user end, the second user end decrypts and verifies the second transaction request, and obtains the transaction amount and the transaction address of the first user end after the verification is passed so as to complete the payment process; correspondingly, the invention further provides a medium and a blockchain system, so that the users can pay in the blockchain system in an anonymous mode, the privacy of the users is guaranteed, and meanwhile, the safety of the blockchain system is improved.
Description
Technical Field
The invention relates to the technical field of block chains, in particular to a payment method, medium and block chain system based on a block chain system.
Background
The blockchain is a technical scheme for maintaining a reliable database by a group, and is widely regarded by a decentralized and distrust-free mode. However, in the existing blockchain system, others can easily track the user fund flow direction according to the transaction address in the blockchain transaction record, so that the privacy of the user cannot be guaranteed.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the art described above. Therefore, an object of the present invention is to provide a payment method based on a blockchain system, which can implement that a user pays in an anonymous manner in the blockchain system, thereby improving the security of the blockchain system while ensuring the privacy of the user.
A second object of the invention is to propose a computer-readable storage medium.
A third objective of the present invention is to provide a block chain system.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a payment method based on a blockchain system, including the following steps: when a payment request sent by a first user end is acquired, controlling the transfer pool to start; the first user end sends a first transaction request to the transfer pool, encrypts the first transaction request by adopting a first encryption mode, sends transaction address information of a second user end to the transfer pool, and encrypts the transaction address information of the second user end by adopting a second encryption mode, wherein the first transaction request comprises the transaction address information of the first user end, the transaction address information of the transfer pool and transaction amount information; the transit pool decrypts and verifies the first transaction request, judges that the first user side meets transaction conditions and obtains transaction amount after the first transaction request passes the verification, and decrypts the encrypted transaction address information of the second user side to obtain the transaction address of the second user side; the transit pool sends a second transaction request to the second user end according to the transaction address of the second user end, encrypts the second transaction request by adopting a third encryption mode, simultaneously sends the transaction address information of the first user end to the second user end, and encrypts the transaction address information of the first user end by adopting a fourth encryption mode, wherein the second transaction request comprises the transaction address information of the second user end, the transaction address information of the transit pool and the transaction amount information; and the second user terminal decrypts and verifies the second transaction request, judges that the transit pool meets transaction conditions and obtains transaction amount after the second transaction request passes the verification, and decrypts the encrypted transaction address information of the first user terminal to obtain the transaction address of the first user terminal so as to complete the payment process from the first user terminal to the second user terminal.
According to the payment method based on the block chain system, firstly, when a payment request sent by a first user end is obtained, a transfer pool is controlled to be started; then, the first user end sends a first transaction request to the transfer pool, encrypts the first transaction request by adopting a first encryption mode, sends transaction address information of a second user end to the transfer pool, and encrypts the transaction address information of the second user end by adopting a second encryption mode, wherein the first transaction request comprises the transaction address information of the first user end, the transaction address information of the transfer pool and transaction amount information; then, the transfer pool decrypts and verifies the first transaction request, judges that the first user end meets transaction conditions and obtains transaction amount after the first transaction request passes the verification, and decrypts the encrypted transaction address information of the second user end to obtain the transaction address of the second user end; then, the transfer pool sends a second transaction request to the second user end according to the transaction address of the second user end, encrypts the second transaction request by adopting a third encryption mode, simultaneously sends the transaction address information of the first user end to the second user end, and encrypts the transaction address information of the first user end by adopting a fourth encryption mode, wherein the second transaction request comprises the transaction address information of the second user end, the transaction address information of the transfer pool and the transaction amount information; then, the second user terminal decrypts and verifies the second transaction request, judges that the transit pool meets the transaction condition and obtains the transaction amount after the second transaction request passes the verification, and decrypts the encrypted transaction address information of the first user terminal to obtain the transaction address of the first user terminal so as to complete the payment process from the first user terminal to the second user terminal; therefore, the user can pay in the blockchain system in an anonymous mode, the privacy of the user is guaranteed, and meanwhile the safety of the blockchain system is improved.
In addition, the payment method based on the blockchain system according to the above embodiment of the present invention may further have the following additional technical features:
optionally, the first user terminal encrypts the first transaction request by using a first user terminal private key, and encrypts the transaction address information of the second user terminal by using a transit pool public key.
Optionally, the transit pool decrypts and verifies the first transaction request by using the first user public key, decrypts the encrypted transaction address information of the second user by using the transit pool private key, encrypts the second transaction request by using the transit pool private key, and encrypts the transaction address information of the first user by using the second user public key.
Optionally, the second user terminal decrypts and verifies the second transaction request by using the transit pool public key, and decrypts the encrypted transaction address information of the first user terminal by using the second user terminal private key.
In order to achieve the above object, a second aspect of the present invention provides a computer-readable storage medium, on which a payment program based on a blockchain system is stored, and when executed by a processor, the payment program based on the blockchain system implements the payment method based on the blockchain system.
In order to achieve the above object, a third embodiment of the present invention provides a blockchain system, including: the system comprises a first user terminal, a second user terminal and a transfer pool, wherein the transfer pool is started when a payment request sent by the first user terminal is acquired; the first user end is used for sending a first transaction request to the transfer pool, encrypting the first transaction request by adopting a first encryption mode, sending transaction address information of a second user end to the transfer pool, and encrypting the transaction address information of the second user end by adopting a second encryption mode, wherein the first transaction request comprises the transaction address information of the first user end, the transaction address information of the transfer pool and transaction amount information; the transit pool is used for decrypting and verifying the first transaction request, judging that the first user side meets transaction conditions and obtains transaction amount after the first transaction request passes the verification, and decrypting the encrypted transaction address information of the second user side to obtain the transaction address of the second user side; the transit pool is further used for sending a second transaction request to the second user end according to the transaction address of the second user end, encrypting the second transaction request by adopting a third encryption mode, sending the transaction address information of the first user end to the second user end, and encrypting the transaction address information of the first user end by adopting a fourth encryption mode, wherein the second transaction request comprises the transaction address information of the second user end, the transaction address information of the transit pool and the transaction amount information; and the second user end is used for decrypting and verifying the second transaction request, judging that the transit pool meets transaction conditions and obtains transaction amount after the second transaction request passes the verification, and decrypting the encrypted transaction address information of the first user end to obtain the transaction address of the first user end so as to complete the payment process from the first user end to the second user end.
According to the block chain system provided by the embodiment of the invention, the transfer pool is started when a payment request sent by the first user terminal is acquired; the first user end is used for sending a first transaction request to the transfer pool, encrypting the first transaction request by adopting a first encryption mode, simultaneously sending transaction address information of the second user end to the transfer pool, and encrypting the transaction address information of the second user end by adopting a second encryption mode, wherein the first transaction request comprises the transaction address information of the first user end, the transaction address information of the transfer pool and transaction amount information; the transfer pool is used for decrypting and verifying the first transaction request, judging that the first user end meets transaction conditions and obtains transaction amount after the first user end passes the verification, and decrypting the encrypted transaction address information of the second user end to obtain the transaction address of the second user end; the transfer pool is also used for sending a second transaction request to the second user end according to the transaction address of the second user end, encrypting the second transaction request by adopting a third encryption mode, sending the transaction address information of the first user end to the second user end, and encrypting the transaction address information of the first user end by adopting a fourth encryption mode, wherein the second transaction request comprises the transaction address information of the second user end, the transaction address information of the transfer pool and the transaction amount information; the second user end is used for decrypting and verifying the second transaction request, judging that the transit pool meets the transaction condition and obtains the transaction amount after the second transaction request passes the verification, and decrypting the encrypted transaction address information of the first user end to obtain the transaction address of the first user end so as to complete the payment process from the first user end to the second user end; therefore, the user can pay in the blockchain system in an anonymous mode, the privacy of the user is guaranteed, and meanwhile the safety of the blockchain system is improved.
In addition, the block chain system proposed according to the above embodiment of the present invention may also have the following additional technical features:
optionally, the first user terminal encrypts the first transaction request by using a first user terminal private key, and encrypts the transaction address information of the second user terminal by using a transit pool public key.
Optionally, the transit pool decrypts and verifies the first transaction request by using the first user public key, decrypts the encrypted transaction address information of the second user by using the transit pool private key, encrypts the second transaction request by using the transit pool private key, and encrypts the transaction address information of the first user by using the second user public key.
Optionally, the second user terminal decrypts and verifies the second transaction request by using the transit pool public key, and decrypts the encrypted transaction address information of the first user terminal by using the second user terminal private key.
Drawings
Fig. 1 is a payment method based on a blockchain system according to an embodiment of the present invention;
fig. 2 is a block diagram of a blockchain system according to an embodiment of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
In the existing block chain system, others can easily track the fund flow direction of a user according to a transaction address in the block chain, so that the privacy of the user cannot be guaranteed; the payment method based on the block chain comprises the steps that firstly, a transfer pool is started when a payment request is obtained, when a first user end sends a first transaction request to the transfer pool, a first encryption mode is adopted to encrypt the first transaction request, meanwhile, transaction address information of the first user end is sent to the transfer pool, a second encryption mode is adopted to encrypt the transaction address information of a second user end, and then the transfer pool decrypts and verifies the first transaction request; after the verification is passed, a second transaction request is sent to the second user end according to the transaction address of the second user, the second transaction request is encrypted in an encryption mode, meanwhile, the transaction address information of the first user end is sent to the second user end, the transaction address information of the first user end is encrypted in a fourth encryption mode, then, the second user end decrypts and verifies the second transaction request, and the transaction amount is obtained after the verification is passed; therefore, the user can pay in the blockchain system in an anonymous mode, the privacy of the user is guaranteed, and meanwhile the safety of the blockchain system is improved.
In order to better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Fig. 1 is a schematic flow chart of a payment method based on a blockchain system according to an embodiment of the present invention, as shown in fig. 1, the payment method based on the blockchain system includes the following steps:
and S101, when a payment request sent by a first user terminal is acquired, controlling the transfer pool to start.
That is, when the blockchain system acquires a payment request sent by the first user end, the relay pool is controlled to start so as to process the payment request.
As an example, the transit pool is set as a trusted transaction address that is system-hardened, and a corresponding public key and private key are configured for the transit pool.
And S102, the first user end sends a first transaction request to the transfer pool, encrypts the first transaction request by adopting a first encryption mode, sends transaction address information of the second user end to the transfer pool, and encrypts the transaction address information of the second user end by adopting a second encryption mode, wherein the first transaction request comprises the transaction address information of the first user end, the transaction address information of the transfer pool and transaction amount information.
That is, after the transit pool is started, the first user sends a first transaction request to the transit pool, wherein the first transaction request comprises transaction address information of the first user, transaction address information of the transit pool and transaction amount information; the first user terminal encrypts the first transaction request in a first encryption mode; meanwhile, the first user end also sends the transaction address information of the second user end to the transfer pool, and encrypts the transaction address information of the user end by adopting a second encryption mode.
The first user end refers to an initiator of the transaction request, and the second user end refers to a receiver of the transaction request.
As an example, the encrypting the first transaction request by using the first encryption manner specifically includes: the first user terminal encrypts the first transaction request by using a first user terminal private key.
As an example, the encrypting the transaction address information of the second user end by using the second encryption manner specifically includes: and the first user terminal encrypts the transaction address information of the second user terminal by adopting the transit pool public key.
It should be noted that the public key and the private key are a key pair obtained through an algorithm, the public key is a public part of the key pair, and the private key is a non-public part. The key pair derived by such an algorithm can be guaranteed to be unique worldwide; when using this key pair, if one of the keys is used to encrypt a piece of data, the other corresponding key must be used to decrypt the piece of data; for example, data encrypted using a public key must be decrypted using the corresponding private key; alternatively, data encrypted using a private key must be decrypted using the corresponding public key, otherwise decryption will not succeed.
S103, the transfer pool decrypts and verifies the first transaction request, judges that the first user side meets transaction conditions and obtains transaction amount after the first transaction request passes the verification, and decrypts the encrypted transaction address information of the second user side to obtain the transaction address of the second user side.
That is to say, after receiving the first transaction request, the transit pool decrypts the first transaction request, verifies whether the first user side meets the transaction condition according to the transaction address information of the first user side in the first transaction request, obtains the transaction amount after verifying that the first user side meets the transaction condition, and simultaneously decrypts the encrypted transaction address information of the second user side to obtain the transaction address of the second user side.
As an example, the decrypting and verifying the first transaction request specifically means that the transfer pool decrypts the first transaction request by using a first user public key to obtain transaction address information of the first user, transaction address information of the transfer pool, and transaction amount information in the first transaction request; and verifying whether the corresponding first user side meets the condition for conducting transaction according to the transaction amount information according to the transaction address information of the first user side (for example, when the transaction amount information is 50 bitcoins, judging whether the first user side is an owner of the 50 bitcoins according to the transaction address information of the first user side, and if so, determining that the first user side meets the condition for conducting transaction according to the transaction amount information).
As an example, decrypting the encrypted transaction address information of the second user end to obtain the transaction address of the second user end specifically means that the transfer pool decrypts the encrypted transaction address information of the second user end by using a transfer pool private key to obtain the transaction address information of the second user end.
And S104, the transfer pool sends a second transaction request to the second user end according to the transaction address of the second user end, encrypts the second transaction request by adopting a third encryption mode, simultaneously sends the transaction address information of the first user end to the second user end, and encrypts the transaction address information of the first user end by adopting a fourth encryption mode, wherein the second transaction request comprises the transaction address information of the second user end, the transaction address information of the transfer pool and the transaction amount information.
That is to say, after decrypting the encrypted first transaction request and the transaction address information of the second user, the transit pool acquires the transaction address information of the first user, the transaction address information of the transit pool, the transaction amount information and the transaction address information of the second user in the first transaction request; sending a second transaction request to the second user end according to the transaction address of the second user end, and encrypting the second transaction request by adopting a third encryption mode; meanwhile, the transaction address information of the first user end is sent to the second user end, and the transaction address information of the first user end is encrypted by adopting a fourth encryption mode; the second transaction request comprises transaction address information of the second user end, transaction address information of the transfer pool and transaction amount information.
As an example, the encrypting the second transaction request by using the third encryption manner specifically means that the transit pool encrypts the second transaction request by using a transit pool private key.
As an example, encrypting the transaction address information of the first user by using the fourth encryption manner specifically means that the transit pool encrypts the transaction address information of the first user by using the public key of the second user.
And S105, the second user terminal decrypts and verifies the second transaction request, judges that the transit pool meets the transaction condition and obtains the transaction amount after the second transaction request passes the verification, and decrypts the encrypted transaction address information of the first user terminal to obtain the transaction address of the first user terminal so as to complete the payment process from the first user terminal to the second user terminal.
That is to say, after receiving the second transaction request sent by the transit pool, the second user end decrypts the second transaction request, verifies whether the transit pool meets the condition of performing transaction according to the transaction amount information according to the transaction address information of the transit pool in the second transaction request, and obtains the transaction amount after the verification is passed; meanwhile, after receiving the encrypted transaction address information of the first user end sent by the relay pool, the second user end decrypts the transaction address information of the first user end to obtain the transaction address of the first user end, so that the payment process from the first user end to the second user end is completed.
As an example, after receiving a second transaction request sent by a transit pool, a second user terminal decrypts the second transaction request by using a transit pool public key to obtain transaction address information of the second user terminal, transaction address information of the transit pool and transaction amount information in the second transaction request, verifies whether the transit pool meets a condition for performing a transaction according to the transaction amount information according to the transaction address information of the transit pool in the second transaction request, and obtains a transaction amount after the verification is passed; meanwhile, the second user end also adopts a second user end private key to decrypt the encrypted transaction address information of the first user end so as to obtain the transaction address information of the first user end, and therefore the payment initiator corresponding to the transaction amount is obtained.
In summary, according to the payment method based on the blockchain system in the embodiment of the present invention, first, when a payment request sent by a first user is obtained, a relay pool is controlled to start; then, the first user end sends a first transaction request to the transfer pool, encrypts the first transaction request by adopting a first encryption mode, sends transaction address information of a second user end to the transfer pool, and encrypts the transaction address information of the second user end by adopting a second encryption mode, wherein the first transaction request comprises the transaction address information of the first user end, the transaction address information of the transfer pool and transaction amount information; then, the transfer pool decrypts and verifies the first transaction request, judges that the first user end meets transaction conditions and obtains transaction amount after the first transaction request passes the verification, and decrypts the encrypted transaction address information of the second user end to obtain the transaction address of the second user end; then, the transfer pool sends a second transaction request to the second user end according to the transaction address of the second user end, encrypts the second transaction request by adopting a third encryption mode, simultaneously sends the transaction address information of the first user end to the second user end, and encrypts the transaction address information of the first user end by adopting a fourth encryption mode, wherein the second transaction request comprises the transaction address information of the second user end, the transaction address information of the transfer pool and the transaction amount information; then, the second user terminal decrypts and verifies the second transaction request, judges that the transit pool meets the transaction condition and obtains the transaction amount after the second transaction request passes the verification, and decrypts the encrypted transaction address information of the first user terminal to obtain the transaction address of the first user terminal so as to complete the payment process from the first user terminal to the second user terminal; therefore, the user can pay in the blockchain system in an anonymous mode, the privacy of the user is guaranteed, and meanwhile the safety of the blockchain system is improved.
To achieve the above embodiments, an embodiment of the present invention further provides a computer-readable storage medium, on which a payment program based on a blockchain system is stored, and when executed by a processor, the payment program based on the blockchain system implements the above payment method based on the blockchain system.
To achieve the above embodiments, an embodiment of the present invention provides a blockchain system, as shown in fig. 2, the blockchain system includes: a first client 10, a second client 20 and a transit pool 30.
The transit pool 30 is started when acquiring a payment request sent by the first user terminal 10;
the first user terminal 10 is configured to send a first transaction request to the relay pool 30, encrypt the first transaction request by using a first encryption manner, send transaction address information of the second user terminal 20 to the relay pool 30, and encrypt the transaction address information of the second user terminal 20 by using a second encryption manner, where the first transaction request includes the transaction address information of the first user terminal 10, the transaction address information of the relay pool 30, and transaction amount information;
the transfer pool 30 is used for decrypting and verifying the first transaction request, judging that the first user terminal 10 meets the transaction condition and obtains the transaction amount after the first transaction request passes the verification, and decrypting the encrypted transaction address information of the second user terminal 20 to obtain the transaction address of the second user terminal 20;
the relay pool 30 is further configured to send a second transaction request to the second user end 20 according to the transaction address of the second user end 20, encrypt the second transaction request by using a third encryption manner, send the transaction address information of the first user end 10 to the second user end 20, and encrypt the transaction address information of the first user end 10 by using a fourth encryption manner, where the second transaction request includes the transaction address information of the second user end 20, the transaction address information of the relay pool 30, and the transaction amount information;
the second user 20 is configured to decrypt and verify the second transaction request, determine that the transit pool 30 meets the transaction condition and obtains the transaction amount after the verification passes, and decrypt the encrypted transaction address information of the first user 10 to obtain the transaction address of the first user 10, so as to complete the payment process from the first user 10 to the second user 20.
In summary, according to the block chain system in the embodiment of the present invention, the transfer pool is started when the payment request sent by the first user end is obtained; the first user end is used for sending a first transaction request to the transfer pool, encrypting the first transaction request by adopting a first encryption mode, simultaneously sending transaction address information of the second user end to the transfer pool, and encrypting the transaction address information of the second user end by adopting a second encryption mode, wherein the first transaction request comprises the transaction address information of the first user end, the transaction address information of the transfer pool and transaction amount information; the transfer pool is used for decrypting and verifying the first transaction request, judging that the first user end meets transaction conditions and obtains transaction amount after the first user end passes the verification, and decrypting the encrypted transaction address information of the second user end to obtain the transaction address of the second user end; the transfer pool is also used for sending a second transaction request to the second user end according to the transaction address of the second user end, encrypting the second transaction request by adopting a third encryption mode, sending the transaction address information of the first user end to the second user end, and encrypting the transaction address information of the first user end by adopting a fourth encryption mode, wherein the second transaction request comprises the transaction address information of the second user end, the transaction address information of the transfer pool and the transaction amount information; the second user end is used for decrypting and verifying the second transaction request, judging that the transit pool meets the transaction condition and obtains the transaction amount after the second transaction request passes the verification, and decrypting the encrypted transaction address information of the first user end to obtain the transaction address of the first user end so as to complete the payment process from the first user end to the second user end; therefore, the user can pay in the blockchain system in an anonymous mode, the privacy of the user is guaranteed, and meanwhile the safety of the blockchain system is improved.
In some embodiments, in the blockchain system provided in the embodiments of the present invention, the first user 10 encrypts the first transaction request by using a first user private key, and encrypts the transaction address information of the second user by using a transit pool public key.
In some embodiments, in the blockchain system provided in the embodiments of the present invention, the transit pool 30 decrypts and verifies the first transaction request by using the first user public key, decrypts the encrypted transaction address information of the second user by using the transit pool private key, encrypts the second transaction request by using the transit pool private key, and encrypts the transaction address information of the first user by using the second user public key.
In some embodiments, in the blockchain system provided in the embodiments of the present invention, the second user 20 decrypts and verifies the second transaction request by using the transit pool public key, and decrypts the encrypted transaction address information of the first user by using the second user private key.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention 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 present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above should not be understood to necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.
Claims (3)
1. A payment method based on a blockchain system is characterized in that the blockchain system comprises a transfer pool, and the payment method comprises the following steps:
when a payment request sent by a first user end is acquired, controlling the transfer pool to start;
the first user end sends a first transaction request to the transfer pool, encrypts the first transaction request by adopting a first encryption mode, sends transaction address information of a second user end to the transfer pool, and encrypts the transaction address information of the second user end by adopting a second encryption mode, wherein the first transaction request comprises the transaction address information of the first user end, the transaction address information of the transfer pool and transaction amount information;
the transit pool decrypts and verifies the first transaction request, judges that the first user side meets transaction conditions and obtains transaction amount after the first transaction request passes the verification, and decrypts the encrypted transaction address information of the second user side to obtain the transaction address of the second user side;
the transit pool sends a second transaction request to the second user end according to the transaction address of the second user end, encrypts the second transaction request by adopting a third encryption mode, simultaneously sends the transaction address information of the first user end to the second user end, and encrypts the transaction address information of the first user end by adopting a fourth encryption mode, wherein the second transaction request comprises the transaction address information of the second user end, the transaction address information of the transit pool and the transaction amount information;
the second user terminal decrypts and verifies the second transaction request, judges that the transit pool meets transaction conditions and obtains transaction amount after the second transaction request passes the verification, and decrypts the encrypted transaction address information of the first user terminal to obtain the transaction address of the first user terminal so as to complete the payment process from the first user terminal to the second user terminal;
the first user end adopts a first user end private key to encrypt the first transaction request, and adopts a transit pool public key to encrypt the transaction address information of the second user end;
the transit pool decrypts and verifies the first transaction request by adopting a first user public key, decrypts the encrypted transaction address information of the second user by adopting a transit pool private key, encrypts the second transaction request by adopting a transit pool private key, and encrypts the transaction address information of the first user by adopting a second user public key;
and the second user terminal decrypts and verifies the second transaction request by adopting the transfer pool public key and decrypts the encrypted transaction address information of the first user terminal by adopting a second user terminal private key.
2. A computer-readable storage medium having stored thereon a blockchain system-based payment program that, when executed by a processor, implements the blockchain system-based payment method of claim 1.
3. A block chain system comprises a first user terminal, a second user terminal and a relay pool, wherein,
the transfer pool is started when a payment request sent by the first user terminal is acquired;
the first user end is used for sending a first transaction request to the transfer pool, encrypting the first transaction request by adopting a first encryption mode, sending transaction address information of a second user end to the transfer pool, and encrypting the transaction address information of the second user end by adopting a second encryption mode, wherein the first transaction request comprises the transaction address information of the first user end, the transaction address information of the transfer pool and transaction amount information;
the transit pool is used for decrypting and verifying the first transaction request, judging that the first user side meets transaction conditions and obtains transaction amount after the first transaction request passes the verification, and decrypting the encrypted transaction address information of the second user side to obtain the transaction address of the second user side;
the transit pool is further used for sending a second transaction request to the second user end according to the transaction address of the second user end, encrypting the second transaction request by adopting a third encryption mode, sending the transaction address information of the first user end to the second user end, and encrypting the transaction address information of the first user end by adopting a fourth encryption mode, wherein the second transaction request comprises the transaction address information of the second user end, the transaction address information of the transit pool and the transaction amount information;
the second user end is used for decrypting and verifying the second transaction request, judging that the transit pool meets transaction conditions and obtains transaction amount after the second transaction request passes the verification, and decrypting the encrypted transaction address information of the first user end to obtain the transaction address of the first user end so as to complete the payment process from the first user end to the second user end;
the first user end adopts a first user end private key to encrypt the first transaction request, and adopts a transit pool public key to encrypt the transaction address information of the second user end;
the transit pool decrypts and verifies the first transaction request by adopting a first user public key, decrypts the encrypted transaction address information of the second user by adopting a transit pool private key, encrypts the second transaction request by adopting a transit pool private key, and encrypts the transaction address information of the first user by adopting a second user public key;
and the second user terminal decrypts and verifies the second transaction request by adopting the transfer pool public key and decrypts the encrypted transaction address information of the first user terminal by adopting a second user terminal private key.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810857294.8A CN109165941B (en) | 2018-07-31 | 2018-07-31 | Payment method, medium and blockchain system based on blockchain system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810857294.8A CN109165941B (en) | 2018-07-31 | 2018-07-31 | Payment method, medium and blockchain system based on blockchain system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109165941A CN109165941A (en) | 2019-01-08 |
CN109165941B true CN109165941B (en) | 2020-12-15 |
Family
ID=64898443
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810857294.8A Active CN109165941B (en) | 2018-07-31 | 2018-07-31 | Payment method, medium and blockchain system based on blockchain system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109165941B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109660345A (en) * | 2019-01-17 | 2019-04-19 | 如般量子科技有限公司 | Anti- quantum calculation block chain method of commerce and system based on unsymmetrical key pool server |
CN111709740B (en) * | 2020-05-18 | 2023-06-06 | 杜晓楠 | Method for hiding transaction address in blockchain system, computer readable storage medium and blockchain system |
CN111709738B (en) * | 2020-05-18 | 2023-08-01 | 杜晓楠 | Method for hiding transaction amount in blockchain system, computer readable storage medium and blockchain system |
CN112070500B (en) * | 2020-09-20 | 2022-03-01 | 中科柏诚科技(北京)股份有限公司 | Block chain payment processing method based on digital financial service and cloud computing center |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106357387A (en) * | 2016-09-26 | 2017-01-25 | 江苏荣泽信息科技股份有限公司 | Anonymous member transaction method based on block chain |
CN106779704A (en) * | 2016-12-06 | 2017-05-31 | 杭州趣链科技有限公司 | A kind of block chain anonymous deal method based on ring signatures |
CN107169826A (en) * | 2017-05-09 | 2017-09-15 | 武汉凤链科技有限公司 | A kind of tourist attraction ticketing method and system based on block chain |
CN107301521A (en) * | 2017-06-26 | 2017-10-27 | 深圳前海华深安信物联技术有限公司 | Strengthen the method for warehouse receipt transaction security in a kind of warehouse receipt system based on block chain |
CN107330694A (en) * | 2017-07-03 | 2017-11-07 | 重庆小犀智能科技有限公司 | Copyright trading system and method for commerce based on block chain |
CN107633400A (en) * | 2017-08-09 | 2018-01-26 | 北京云知科技有限公司 | A kind of method of payment and device of the machine wallet based on block chain |
CN107704269A (en) * | 2017-10-16 | 2018-02-16 | 中国银行股份有限公司 | A kind of method and system based on block chain generation block |
CN107705125A (en) * | 2017-08-28 | 2018-02-16 | 杭州云象网络技术有限公司 | A kind of payment marking method based on block chain |
CN107911216A (en) * | 2017-10-26 | 2018-04-13 | 矩阵元技术(深圳)有限公司 | A kind of block chain transaction method for secret protection and system |
CN108109257A (en) * | 2018-01-05 | 2018-06-01 | 杭州电子科技大学 | A kind of Anonymous Electronic Voting method based on block chain |
CN108123801A (en) * | 2017-12-29 | 2018-06-05 | 重庆小犀智能科技有限公司 | A kind of block chain wallet uses audio encryption private key system and method |
CN108171511A (en) * | 2017-12-26 | 2018-06-15 | 陈晶 | A kind of block chain model with privacy protection function |
CN108200079A (en) * | 2018-01-19 | 2018-06-22 | 深圳四方精创资讯股份有限公司 | Block chain method for secret protection and device based on symmetrical and asymmetric Hybrid Encryption |
CN108230109A (en) * | 2018-01-02 | 2018-06-29 | 罗梅琴 | A kind of shared system and method based on block chain technology |
-
2018
- 2018-07-31 CN CN201810857294.8A patent/CN109165941B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106357387A (en) * | 2016-09-26 | 2017-01-25 | 江苏荣泽信息科技股份有限公司 | Anonymous member transaction method based on block chain |
CN106779704A (en) * | 2016-12-06 | 2017-05-31 | 杭州趣链科技有限公司 | A kind of block chain anonymous deal method based on ring signatures |
CN107169826A (en) * | 2017-05-09 | 2017-09-15 | 武汉凤链科技有限公司 | A kind of tourist attraction ticketing method and system based on block chain |
CN107301521A (en) * | 2017-06-26 | 2017-10-27 | 深圳前海华深安信物联技术有限公司 | Strengthen the method for warehouse receipt transaction security in a kind of warehouse receipt system based on block chain |
CN107330694A (en) * | 2017-07-03 | 2017-11-07 | 重庆小犀智能科技有限公司 | Copyright trading system and method for commerce based on block chain |
CN107633400A (en) * | 2017-08-09 | 2018-01-26 | 北京云知科技有限公司 | A kind of method of payment and device of the machine wallet based on block chain |
CN107705125A (en) * | 2017-08-28 | 2018-02-16 | 杭州云象网络技术有限公司 | A kind of payment marking method based on block chain |
CN107704269A (en) * | 2017-10-16 | 2018-02-16 | 中国银行股份有限公司 | A kind of method and system based on block chain generation block |
CN107911216A (en) * | 2017-10-26 | 2018-04-13 | 矩阵元技术(深圳)有限公司 | A kind of block chain transaction method for secret protection and system |
CN108171511A (en) * | 2017-12-26 | 2018-06-15 | 陈晶 | A kind of block chain model with privacy protection function |
CN108123801A (en) * | 2017-12-29 | 2018-06-05 | 重庆小犀智能科技有限公司 | A kind of block chain wallet uses audio encryption private key system and method |
CN108230109A (en) * | 2018-01-02 | 2018-06-29 | 罗梅琴 | A kind of shared system and method based on block chain technology |
CN108109257A (en) * | 2018-01-05 | 2018-06-01 | 杭州电子科技大学 | A kind of Anonymous Electronic Voting method based on block chain |
CN108200079A (en) * | 2018-01-19 | 2018-06-22 | 深圳四方精创资讯股份有限公司 | Block chain method for secret protection and device based on symmetrical and asymmetric Hybrid Encryption |
Non-Patent Citations (2)
Title |
---|
Untraceable Electronic Mail,Return Addresses, and Digital Pseudonyms;David L. Chaum;《Communications of the ACM》;19811231;第24卷(第2期);第84-88页 * |
区块链交易数据隐私保护机制;祝烈煌等;《大数据》;20180131(第1期);第1-11页 * |
Also Published As
Publication number | Publication date |
---|---|
CN109165941A (en) | 2019-01-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109165941B (en) | Payment method, medium and blockchain system based on blockchain system | |
CN110519260B (en) | Information processing method and information processing device | |
CN105474573B (en) | For synchronizing and restoring the technology of reference template | |
CN107294714B (en) | Key agreement method, device and equipment thereof | |
CN111538784B (en) | Digital asset transaction method, device and storage medium based on blockchain | |
CN112383611B (en) | File evidence storing method and system based on block chain and server | |
CN109076078A (en) | Method to establish and update the key of the In-vehicle networking communication for safety | |
CN113034128B (en) | Block chain-based data transaction and right confirmation method | |
CN113487042B (en) | Federal learning method, device and federal learning system | |
CN108243176B (en) | Data transmission method and device | |
CN104836784B (en) | A kind of information processing method, client and server | |
CN109711841B (en) | Data transaction method and system, platform and storage medium | |
CN114362993B (en) | Block chain assisted Internet of vehicles security authentication method | |
CN110336673B (en) | Block chain design method based on privacy protection | |
CN109450648B (en) | Key generation device, data processing apparatus, and data transfer system | |
CN111510426A (en) | Internet of things distribution network encryption method, device and system, electronic equipment and storage medium | |
CN108259183B (en) | Attention method, attention device, attention electronic equipment and attention medium | |
CN111080300B (en) | Asset transfer method and device based on block chain and hardware equipment | |
CN106656955A (en) | Communication method and system and user terminal | |
CN113706150B (en) | Block confirmation method and device | |
CN103455914A (en) | Safety authentication method and remote controller and television payment system using same | |
CN105471657B (en) | inter-domain communication log management method, device and system for virtual machine | |
JP2012078446A (en) | Irregularity detection method, secret computation system, computing device and computation program | |
CN117435226A (en) | Data refreshing method, device and storage medium of vehicle-mounted electronic control unit | |
CN111934862B (en) | Server access method and device, readable medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 361000 B1F-065, Zone A, Huaxun Building, Software Park, Xiamen Torch Hi-tech Zone, Huli District, Xiamen City, Fujian Province Patentee after: Ke'an (Xiamen) Technology Co.,Ltd. Address before: B1f-065, zone a, Huaxun building, software park, torch hi tech Zone, Xiamen City, Fujian Province, 361000 Patentee before: TAILIAN (XIAMEN) TECHNOLOGY Co.,Ltd. |