CN113569287A - Safe payment method and system - Google Patents

Safe payment method and system Download PDF

Info

Publication number
CN113569287A
CN113569287A CN202110854271.3A CN202110854271A CN113569287A CN 113569287 A CN113569287 A CN 113569287A CN 202110854271 A CN202110854271 A CN 202110854271A CN 113569287 A CN113569287 A CN 113569287A
Authority
CN
China
Prior art keywords
block
information
chain
compression
cloud computing
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
CN202110854271.3A
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.)
Jingdezhihui Beijing Business Management Co ltd
Original Assignee
Jingdezhihui Beijing Business Management 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 Jingdezhihui Beijing Business Management Co ltd filed Critical Jingdezhihui Beijing Business Management Co ltd
Priority to CN202110854271.3A priority Critical patent/CN113569287A/en
Publication of CN113569287A publication Critical patent/CN113569287A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6227Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
    • 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
    • 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/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • 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

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention provides a safe payment method and a system, wherein a block chain is compressed and stored in a compression block of a compression chain in an address mode, the system efficiency is improved in the compression chain mode, the block chain is compressed and stored in the compression block of the compression chain in the address mode, leaf blocks point to the father hash of the compression block, the total payment amount in the leaf blocks is updated after each payment, the block hash in the compression block is updated, the leaf blocks directly access the information of the total payment amount paid by the leaf blocks during authentication, due to the characteristics of short length and small bytes of the compression chain, the access speed is high, the performance problem and the trust problem of low authentication speed after the data increment of the block chain are solved, and the invention realizes a decentralized transaction, payment and authentication mode, ensures that the transaction can be reliably traced, improves the calculation efficiency and reliability and saves the calculation time.

Description

Safe payment method and system
Technical Field
The invention relates to the technical field of big data application, in particular to a secure payment method and a secure payment system.
Background
The authentication, payment and transaction processes depend on a unified central database, and the possibility of information tampering exists in the links of storage, transmission, display and the like of data; the commodity tracking system is still in a manual operation state in a plurality of links, and basic information which is unfavorable for an information provider can be selectively shielded; the authentication depends on the strength of the supervision measures of a central authority, and the system has an artificial operation space and has no effective restriction on the right of a supervisor.
In the prior art, the realized blockchain technology can better solve the trust problem, but the performance problem is faced after the blockchain data increment, when payment authentication is carried out, the traditional blockchain technology judges by traversing transaction records, as the number of transactions increases, the blockchain is infinitely prolonged, the authentication speed is slower and slower, and the system efficiency is lower.
Disclosure of Invention
Based on the problems, the invention provides a secure payment method and a secure payment system, a block chain is compressed and stored in a compression block of a compression chain in an address mode, the system efficiency is improved in the compression chain mode, meanwhile, the trust problem is well solved by using a block chain technology, the calculation efficiency and the reliability are improved, and the calculation time is saved.
In order to achieve the above object, the present invention provides a secure payment method:
the method comprises the following steps: the user registration application is sent to an intelligent contract module, the intelligent contract module generates a unique hash address for identifying identity, the intelligent contract module sends registration information to a cloud computing data platform, the registration information is verified by each node of the cloud computing data platform and stored in a block chain in a transaction mode, and after the transaction information is stored, each cloud computing data platform is broadcasted to update the block chain and a compression chain, and user registration success information is returned; after a user initiates a modification request, the intelligent contract module receives the modification request and sends modification information to the cloud computing data platform, the modification information is verified by each node of the cloud computing data platform and is stored in a block chain in a transaction mode, each cloud computing data platform is broadcasted to update the block chain and the compression chain, and user modification success information is returned;
initiating a transfer transaction request, sending the request to a cloud computing data platform by an intelligent contract module after receiving the request, carrying out transaction verification by the computing module, generating a new block in a block chain after verification of each node of the cloud computing data platform, storing transaction information to the new block through encryption, storing total amount information to leaf sub-blocks in a compression chain after calculating total amount, updating the block address of the new block to a compression block, storing data to a compression chain database, broadcasting the updated block chain and the compression chain to each cloud computing data platform by the intelligent contract module after the transaction is successful, sending transaction success information to the cloud computing data platform of a transaction requester by the intelligent contract module, and updating the hash address and the currency hash address of the block chain;
initiating a charging request, sending the charging request to the cloud computing data platform by the intelligent contract module after receiving the charging request, carrying out charging verification by the computing module, generating a new block in a block chain after verification of each node of the cloud computing data platform, storing charging information into the new block through encryption, updating the block chain and a compression chain by the intelligent contract module by broadcasting the intelligent contract module to each cloud computing data platform, sending payment information to a charged account by the intelligent contract module, and updating a block chain hash address;
initiating a payment request, sending the request to a cloud computing data platform by an intelligent contract module after receiving the request, checking payment information by the computing module, generating a new block in a block chain after verification of each node of the cloud computing data platform, storing transaction information to the new block through encryption, enabling each sub-block to point to a Hash address of a parent block, connecting all blocks to each other to form a block chain data account book, storing total amount information to leaf blocks in a compression chain after calculating total amount, updating the block address of the new block to the compression block, realizing block chain compression by the compression chain through the compression block and the leaf block, updating payment information of the leaf blocks after each payment of a user, enabling the block address of the compression block to point to the block address of the new block in the block chain, storing data into a compression chain database, updating the block chain and the compression chain by the intelligent contract module, broadcasting the contract to each cloud computing data platform, and confirming payment information by each cloud computing data platform, if the cloud computing data platforms exceeding the preset threshold value proportion object against, invalidating the transaction, otherwise, validating the transaction, sending payment success information to the cloud computing data platform of the payment requester by the intelligent contract module, and updating the block chain hash address and the currency hash address.
Further, the safe payment method further comprises authentication, wherein a common user or an administrator user sends an authentication request, the intelligent contract module receives the authentication request and sends an inquiry request to the cloud computing platform according to a hash address in the authentication request, the computing module receives the inquiry request and inquires corresponding total amount information in a compression chain according to the hash address in the request, and the intelligent contract receives the authenticated total amount information and returns the information to the user.
Furthermore, the safe payment method also comprises the step of monitoring the block chain and the compression chain in real time, and ensuring that the total amount information corresponding to the leaf blocks of the compression block in the compression chain is consistent with the block chain payment account book information pointed by the compression block.
In addition, the invention also provides a safe payment system:
the system comprises: the system comprises a client, an intelligent contract module and a cloud computing data platform; the client comprises a registration modification module, a block chain bill checking module, a transaction payment module and a certification module; the registration modification module is used for registering and modifying account information of the user and dividing the user into a common user and an administrator user role authority; the block chain bill checking module is used for checking block chain bill information; the user initiates a bill auditing request, according to the role of the user, a common user can inquire the self-transaction and payment block chain account book information in the block chain, and an administrator can inquire the bill information of the user payment related block chain; the transaction payment module is used for realizing transaction and payment functions for users of all roles; the certification module is used for authenticating the payment information of the user; the intelligent contract module realizes the service function of the interaction between the client and the cloud computing data platform, and synchronizes each function algorithm through the cloud computing data platform to realize inquiry, payment and transaction; the cloud computing data platform comprises a block chain module, a compression chain module, a computing module and a communication module and is used for realizing service logic of the block chain and the compression chain.
Further, the registering and modifying module is used for registering and modifying the account information of the user, and specifically comprises: the user registration application is sent to an intelligent contract module, the intelligent contract module generates a unique hash address for identifying identity, the intelligent contract module sends registration information to a cloud computing data platform, the registration information is verified by each node of the cloud computing data platform and stored in a block chain in a transaction mode, and after the transaction information is stored, each cloud computing data platform is broadcasted to update the block chain and a compression chain, and user registration success information is returned; after a user initiates a modification request, the intelligent contract module receives the modification request and sends modification information to the cloud computing data platform, the modification information is verified by each node of the cloud computing data platform and is stored in a block chain in a transaction mode, each cloud computing data platform updates the block chain and the compression chain, and successful user modification information is returned.
Further, the transaction payment module realizes transaction and payment functions, specifically, the transaction payment module initiates a transaction request for transferring accounts with other common users and an administrator for the common users, the intelligent contract module receives the request and then sends the request to the cloud computing data platform, the computing module performs transaction verification, new blocks are generated in a block chain after verification of each node of the cloud computing data platform, transaction information is stored in the new blocks, total amount information is stored in leaf blocks in a compression chain after calculation of total amount, the block addresses of the new blocks are updated to the compression blocks, data are stored in a compression chain database, the intelligent contract module broadcasts the transaction information to each cloud computing data platform to update the block chain and the compression chain after the transaction is successful, and the intelligent contract module sends transaction success information to the cloud computing data platform of a transaction requester and updates the hash addresses and the currency hash addresses of the block chain; the method comprises the steps that a manager initiates a charging request, an intelligent contract module receives the charging request and then sends the charging request to a cloud computing data platform, a computing module conducts charging verification, a new block is generated in a block chain after verification of each node of the cloud computing data platform, charging information is stored in the new block, the intelligent contract module broadcasts the new block chain and a compression chain to each cloud computing data platform, the intelligent contract module sends payment information to a charged account, and updates a block chain hash address; the user initiates a payment request with an administrator, the intelligent contract module receives the request and then sends the request to the cloud computing data platform, the computing module checks payment information and verifies the payment information through each node of the cloud computing data platform, generating a new block in a block chain, storing transaction information into the new block, calculating the total amount, storing the total amount information into leaf blocks in a compression chain, updating the block address of the new block into the compression block, storing data into a compression chain database, the intelligent contract module is broadcasted to each cloud computing data platform to update a block chain and a compression chain, each cloud computing data platform confirms payment information, if the cloud computing data platform exceeding a preset threshold value proportion is against, the transaction is invalid, otherwise, the transaction is valid, the intelligent contract module sends payment success information to the cloud computing data platform of the payment requester, and updates a block chain hash address and a currency hash address.
Further, the service function of the intelligent contract module for realizing the interaction between the client and the cloud computing data platform specifically comprises: the intelligent contract module receives requests of registering and modifying account information of a user, generates a unique hash address for identifying an identity after receiving the registration requests, sends registration information to the cloud computing data platforms, broadcasts updating block chains and compression chains of the cloud computing data platforms after the registration is successful, and returns information of successful registration of the user; after receiving a modification request, judging whether modification is available, sending the judged modification information to the cloud computing data platforms, broadcasting update block chains and compression chains of the cloud computing data platforms after the modification is successful, and returning user modification success information; the intelligent contract module receives the block chain bill checking request information, judges whether the checking request passes or not, inquires block and compressed block information in the block chain and the compressed chain of the cloud computing data platform according to the hash address in the request, and returns user inquiry information; the intelligent contract module receives transaction and payment request information, verifies whether the request is established after receiving the request, judges whether the request type is transaction or payment, sends the request information to the cloud computing data platform according to the request type, receives transaction and payment success information, broadcasts the transaction success information to the cloud computing data platform, updates block chains and compression chains, sends the transaction success information to the cloud computing data platform in a double-sending mode, and updates block chain hash addresses and currency hash addresses of both parties; the intelligent contract module receives the authentication request, sends a query request to the cloud computing data platform according to the hash address in the request, receives the total amount information after authentication and returns the total amount information to the user;
further, the service logic for implementing the block chain and the compressed chain specifically includes: the block chain module realizes the function of a distributed accounting database, each block comprises a block height, a block Hash, a version number, a block summary, a father block Hash, a timestamp and a transaction tree, each transaction comprises a transaction ID, a transaction type, a transaction amount, account information, a pre-transaction ID and detailed information, each transaction information is encrypted and then stored in a block chain when the transaction occurs, each sub-block points to the Hash address of the father block, and all blocks are connected with one another to form a block chain data account book; the compression chain module is a compression chain storage database and is used for storing compression chain information, the compression chain realizes block chain compression through a compression block and leaf block structure, the leaf block payment information is updated after each payment of a user, and the block address of the compression block points to a new block address in the block chain; the calculating module receives the payment request information of the user, inquires the corresponding sum information in the compression chain according to the hash address in the request and returns the information to the intelligent contract module; the communication module realizes network communication between the block chain and the compression chain and between the cloud computing data platform and the intelligent contract module and is responsible for scheduling the intelligent contract module and the cloud computing data platform.
Furthermore, the calculation module monitors the block chain and the compression chain in real time, and ensures that the total amount information corresponding to the leaf blocks of the compression block in the compression chain is consistent with the block chain payment account book information pointed by the compression block.
In addition, the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a program for executing the method, and the program is executed to realize safe payment.
The invention provides a safe payment method and a system, wherein a block chain is compressed and stored in a compression block of a compression chain in an address mode, the system efficiency is improved in the compression chain mode, the block chain is compressed and stored in the compression block of the compression chain in the address mode, leaf blocks point to the father hash of the compression block, the total payment amount in the leaf blocks is updated after each payment, the block hash in the compression block is updated, the leaf blocks directly access the information of the total payment amount paid by the leaf blocks during authentication, due to the characteristics of short length and small bytes of the compression chain, the access speed is high, the performance problem and the trust problem of low authentication speed after the data increment of the block chain are solved, and the invention realizes a decentralized transaction, payment and authentication mode, ensures that the transaction can be reliably traced, improves the calculation efficiency and reliability and saves the calculation time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a block diagram of the secure payment system of the present invention;
fig. 2 is a block chain diagram of the secure payment system of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention solves the performance problem after the increment of block chain data by providing the framework of a compression chain and the compression chain, when payment authentication is carried out, the block chain technology in the prior art judges by traversing transaction records, the block chain is infinitely extended along with the increase of transaction number, the authentication speed is slower and slower, the problem is solved by the compression chain and the compression chain, the block chain is compressed and stored in a compression block of the compression chain in an address mode, a leaf block points to a father Hash of the compression block, the total payment sum in the leaf block is updated after each payment, the block Hash in the compression block is updated, the leaf block payment sum information is directly accessed during authentication, the access speed is high due to the characteristics of short length and small bytes of the compression chain, and meanwhile, the trust problem is also solved by the compression chain pointing to the block chain.
Specifically, the invention provides a secure payment method:
the method comprises the following steps: the user registration application is sent to an intelligent contract module, the intelligent contract module generates a unique hash address for identifying identity, the intelligent contract module sends registration information to a cloud computing data platform, the registration information is verified by each node of the cloud computing data platform and stored in a block chain in a transaction mode, and after the transaction information is stored, each cloud computing data platform is broadcasted to update the block chain and a compression chain, and user registration success information is returned; after a user initiates a modification request, the intelligent contract module receives the modification request and sends modification information to the cloud computing data platform, the modification information is verified by each node of the cloud computing data platform and is stored in a block chain in a transaction mode, each cloud computing data platform is broadcasted to update the block chain and the compression chain, and user modification success information is returned;
initiating a transfer transaction request, sending the request to a cloud computing data platform after the intelligent contract module receives the request, carrying out transaction verification by the computing module, verifying by each node of the cloud computing data platform, generating a new block in a block chain, storing transaction information to the new block through encryption, storing the total amount information to leaf blocks in a compression chain after calculating the total amount, updating the block address of the new block to the compression block, storing data to a compression chain database, broadcasting the total amount information to each cloud computing data platform to update the block chain and the compression chain after the transaction is successful, confirming the transaction information by each cloud computing data platform, if the cloud computing data platform exceeding a preset threshold value proportion is objected, the transaction is invalid, otherwise, the transaction is valid, sending transaction success information to a transaction requester cloud computing data platform by an intelligent contract module, and updating a block chain hash address and a currency hash address;
initiating a charging request, sending the charging request to the cloud computing data platform by the intelligent contract module after receiving the charging request, carrying out charging verification by the computing module, generating a new block in a block chain after verification of each node of the cloud computing data platform, storing charging information into the new block through encryption, updating the block chain and a compression chain by the intelligent contract module by broadcasting the intelligent contract module to each cloud computing data platform, sending payment information to a charged account by the intelligent contract module, and updating a block chain hash address;
initiating a payment request, sending the request to a cloud computing data platform by an intelligent contract module after receiving the request, checking payment information by the computing module, generating a new block in a block chain after verification of each node of the cloud computing data platform, storing transaction information to the new block through encryption, enabling each sub-block to point to a Hash address of a parent block, connecting all blocks to each other to form a block chain data account book, storing total amount information to leaf blocks in a compression chain after calculating total amount, updating the block address of the new block to the compression block, realizing block chain compression by the compression chain through the compression block and the leaf block, updating payment information of the leaf blocks after each payment of a user, enabling the block address of the compression block to point to the block address of the new block in the block chain, storing data into a compression chain database, updating the block chain and the compression chain by the intelligent contract module, broadcasting the contract to each cloud computing data platform, and confirming payment information by each cloud computing data platform, if the cloud computing data platforms exceeding the preset threshold value proportion object against, invalidating the transaction, otherwise, validating the transaction, sending payment success information to the cloud computing data platform of the payment requester by the intelligent contract module, and updating the block chain hash address and the currency hash address. The specific algorithm is as follows:
BlockHeight is a block height, BlockHash is a block hash, BlockSum is a block summary, BlockTimeStamp is a block timestamp, BlockVersion is a version number, northern BlockHash is a parent block hash, treetroot is a Transaction tree root, Transaction is a Transaction tree, BlockHash () is a hash generation method, ArrayList < TransactionTree > () is a Transaction tree modeling method, BaseHashMap () is a hash map generation method, CreatBlock () is a block creation method, and the block creation method is as follows:
Figure BDA0003183519110000081
after a certain cloud computing data platform transaction occurs, transaction information is broadcasted to each cloud computing data platform through contracts, the transaction information in a suitable block chain of each cloud computing data platform is sent to feedback information, an improved fault-tolerant Byzantine consensus algorithm is adopted for a block chain intelligent contract, the ith cloud computing data platform is assumed to generate the transaction, n cloud computing data platforms are provided in the block chain in total, and a message queue is the data platform
Figure BDA0003183519110000091
Wherein x is 1
Figure BDA0003183519110000092
Indicates message information, x is 2
Figure BDA0003183519110000093
Indicates the message status, x is 3
Figure BDA0003183519110000094
When x is 4, which indicates the number of failed message transmissions
Figure BDA0003183519110000095
Representing the number of times of no answer of the message, wherein each message has four states of sent send, unsent, agreement with Agree and Opposition to Opposition, the algorithm determines the number of times of the four states in the message queue in a traversal loop mode, the number of failed sending of n cloud data platform messages is Failure, the number of unanswered messages is Noresponse, the number of agreement is A, the number of Opposition is OP, and according to the improved Raltime algorithm, when the number of failed sending is Failure, the number is Failure<[(n-2)/3]And against the number OP<[(n-Failure)/2]And then, each cloud data platform approves the transaction information, the intelligent contract returns the successful transaction information, and the seed block chain and compression chain information of each cloud data platform are updated.
Figure BDA0003183519110000096
Figure BDA0003183519110000101
The safe payment method further comprises authentication, wherein an ordinary user or an administrator user sends an authentication request, the intelligent contract module receives the authentication request and sends a query request to the cloud computing platform according to a hash address in the authentication request, the computing module receives the query request and queries corresponding total information in a compression chain according to the hash address in the request, and the intelligent contract receives the authenticated total information and returns the authenticated total information to the user.
The safety payment method further comprises the step of monitoring the block chain and the compression chain in real time, and ensuring that the total amount information corresponding to the leaf blocks of the compression block in the compression chain is consistent with the block chain payment account book information pointed by the compression block.
In addition, the present invention also provides a secure payment system, the system comprising: the system comprises a client, an intelligent contract module and a cloud computing data platform; the client comprises a registration modification module, a block chain bill checking module, a transaction payment module and a certification module; the registration modification module is used for registering and modifying account information of the user and dividing the user into a common user and an administrator user role authority; the block chain bill checking module is used for checking block chain bill information; the user initiates a bill auditing request, according to the role of the user, a common user can inquire the self-transaction and payment block chain account book information in the block chain, and an administrator can inquire the bill information of the user payment related block chain; the transaction payment module is used for realizing transaction and payment functions for users of all roles; the certification module is used for authenticating the payment information of the user; the intelligent contract module realizes the service function of the interaction between the client and the cloud computing data platform, and synchronizes each function algorithm through the cloud computing data platform to realize inquiry, payment and transaction; the cloud computing data platform comprises a block chain module, a compression chain module, a computing module and a communication module and is used for realizing service logic of the block chain and the compression chain.
The system comprises a registration modification module, an intelligent contract module, a cloud computing data platform and a database, wherein the registration modification module is used for registering and modifying account information of users, the users are divided into common users, administrator users and other authorities, the user registration application is sent to the intelligent contract module, the intelligent contract module generates a unique hash address for identifying identities, the intelligent contract module sends registration information to the cloud computing data platform, the registration information is verified by each node of the cloud computing data platform and stored in a block chain in a transaction mode, after the transaction information is stored, the cloud computing data platform is broadcasted to update the block chain and a compression chain, and user registration success information is returned. After a user initiates a modification request, the intelligent contract module receives the modification request and sends modification information to the cloud computing data platform, the modification information is verified by each node of the cloud computing data platform and is stored in a block chain in a transaction mode, each cloud computing data platform updates the block chain and the compression chain, and successful user modification information is returned.
The block chain bill checking module is used for checking block chain bill information, a user initiates a bill checking request, a common user can inquire the self transaction and payment block chain account book information in the block chain according to the role of the user, and an administrator can inquire the user payment related block chain bill information.
And the transaction payment module is used for realizing transaction and payment functions for users of all roles. The method comprises the steps that a common user initiates a transaction request for transferring accounts with other common users and an administrator, an intelligent contract receives the request and then sends the request to a cloud computing data platform, a platform computing module conducts transaction verification, a new block is generated in a block chain after verification of each node of the cloud computing data platform, transaction information is stored in the new block, sum information is stored in leaf sub blocks in a compression chain after the sum is calculated, the block address of the new block is updated to the compression block, data are stored in a compression chain database, the intelligent contract is broadcast to each cloud computing data platform to update the block chain and the compression chain after the transaction is successful, the intelligent contract module sends transaction success information to a double sender, and the block chain hash address and the currency hash address of both parties are updated. The method comprises the steps that an administrator initiates a charging request, an intelligent contract receives the request and then sends the request to a cloud computing data platform, a platform computing module conducts charging verification, a new block is generated in a block chain after verification of each node of the cloud computing data platform, charging information is stored in the new block, the intelligent contract is broadcast to each cloud computing data platform to update the block chain and a compression chain, the intelligent contract sends payment information to a charged account, and a block chain hash address is updated. The general user can initiate a payment request with an administrator, the intelligent contract receives the request and then sends the request to the cloud computing data platform, the platform computing module conducts payment information verification, new blocks are generated in a block chain after verification of each node of the cloud computing data platform, transaction information is stored in the new blocks, the total amount information is stored in leaf blocks in a compression chain after calculation of the total amount, the block address of the new blocks is updated to the compression blocks, data are stored in a compression chain database, the intelligent contract is broadcast to each cloud computing data platform to update the block chain and the compression chain, the intelligent contract sends payment success information to the double parties after the transaction is successful, and the block chain hash addresses and the currency hash addresses of the two parties are updated. The specific algorithm is as follows:
BlockHeight is a block height, BlockHash is a block hash, BlockSum is a block summary, BlockTimeStamp is a block timestamp, BlockVersion is a version number, northern BlockHash is a parent block hash, treetroot is a Transaction tree root, Transaction is a Transaction tree, BlockHash () is a hash generation method, ArrayList < TransactionTree > () is a Transaction tree modeling method, BaseHashMap () is a hash map generation method, CreatBlock () is a block creation method, and the block creation method is as follows:
Figure BDA0003183519110000121
Figure BDA0003183519110000131
after a certain cloud computing data platform transaction occurs, transaction information is broadcasted to each cloud computing data platform through a contract, the transaction information in a suitable block chain of each cloud computing data platform sends feedback information, and the block chain intelligently broadcastsThe contract can adopt an improved fault-tolerant Byzantine consensus algorithm, the ith cloud computing data platform is assumed to generate a transaction, the block chain comprises n cloud computing data platforms, and the message queue is
Figure BDA0003183519110000132
Wherein x is 1
Figure BDA0003183519110000133
Indicates message information, x is 2
Figure BDA0003183519110000134
Indicates the message status, x is 3
Figure BDA0003183519110000135
When x is 4, which indicates the number of failed message transmissions
Figure BDA0003183519110000136
Representing the number of times of no answer of the message, wherein each message has four states of sent send, unsent, agreement with Agree and Opposition to Opposition, the algorithm determines the number of times of the four states in the message queue in a traversal loop mode, the number of failed sending of n cloud data platform messages is Failure, the number of unanswered messages is Noresponse, the number of agreement is A, the number of Opposition is OP, and according to the improved Raltime algorithm, when the number of failed sending is Failure, the number is Failure<[(n-2)/3]And against the number OP<[(n-Failure)/2]And then, each cloud data platform approves the transaction information, the intelligent contract returns the successful transaction information, and the seed block chain and compression chain information of each cloud data platform are updated.
Figure BDA0003183519110000137
Figure BDA0003183519110000141
Figure BDA0003183519110000151
The system comprises a certification module, an intelligent contract and a cloud computing platform, wherein the certification module is used for authenticating payment information of a user, a common user or an administrator user sends an authentication request, the intelligent contract receives the authentication request and sends an inquiry request to the cloud computing platform according to a hash address in the request, the cloud computing platform computing module receives the inquiry request and inquires corresponding total amount information in a compression chain according to the hash address in the request, and the intelligent contract receives the authenticated total amount information and returns the authenticated total amount information to the user.
The intelligent contract module realizes the service function of interaction between the client and the cloud computing data platform, synchronizes various function algorithms through the cloud computing platform, and realizes the functions of inquiry, payment, transaction and the like, and the specific functions are as follows:
the intelligent contract module receives requests of registering and modifying account information of the user, generates a unique hash address for identifying the identity after receiving the registration requests, sends registration information to the cloud computing data platforms, broadcasts updating block chains and compression chains of the cloud computing data platforms after the registration is successful, and returns information of successful registration of the user. And after receiving the modification request, judging whether modification is available or not, sending the judged modification information to the cloud computing data platform, broadcasting update block chains and compression chains of the cloud computing data platforms after the modification is successful, and returning user modification success information.
And the intelligent contract module receives the block chain bill checking request information, judges whether the checking request passes or not, inquires block and compressed block information in the block chain and the compressed chain of the cloud computing data platform according to the hash address in the request, and returns user inquiry information.
The intelligent contract module receives the transaction and payment request information, verifies whether the request is established after receiving the request, judges whether the request type is the transaction or payment, sends the request information to the cloud computing data platform according to the request type, receives the transaction and payment success information, broadcasts the transaction and payment success information to each cloud computing data platform, updates the block chain and the compression chain, sends the transaction success information to the cloud computing data platform in a double-sending mode, and updates the block chain hash addresses and the currency hash addresses of both parties.
And the intelligent contract receives the authentication request, sends a query request to the cloud computing platform according to the hash address in the request, and receives the total amount information after authentication and returns the total amount information to the user.
The cloud computing data platform is responsible for realizing the block chain and the compression chain, and specifically comprises the following steps: the block chain module realizes the function of a distributed accounting database, solves the problem that two parties which are not trusted mutually in a point-to-point network trust each other, and each block comprises block height, block hash, a version number, block summary, father block hash, a timestamp and a transaction tree. Each transaction includes a transaction ID, a transaction type, a transaction amount, account information, a pre-transaction ID, and detailed information. When a transaction occurs, each transaction message is encrypted and then stored in a block chain, each sub-block points to a parent block Hash address, and all blocks are connected with each other to form a block chain data account book.
The compression chain is a compression chain storage database and is used for storing compression chain information. The compression chain realizes the compression of the block chain through the construction of the compression blocks and the leaf blocks, the payment information of the leaf blocks is updated after the user pays for each time, and the block address of the compression block points to the block address of a new block in the block chain.
And after receiving the intelligent contract transaction and payment request, the calculation module checks the transaction and payment, calculates payment limit information according to the user information and generates a new block in the block chain. And the calculation module receives the user payment information request, inquires the corresponding sum information in the compression chain according to the hash address in the request and returns the information to the intelligent contract module. And the calculation module monitors the block chain and the compression chain in real time, and ensures that the gross amount information corresponding to the leaf blocks of the compression block in the compression chain is consistent with the block chain payment account book information pointed by the compression block.
The communication module realizes network communication between the block chain and the compression chain and between the cloud computing platform and the intelligent contract and is responsible for scheduling the intelligent contract and the cloud computing platform.
The invention provides a safe payment method and a system, wherein a block chain is compressed and stored in a compression block of a compression chain in an address mode, the system efficiency is improved in the compression chain mode, the block chain is compressed and stored in the compression block of the compression chain in the address mode, leaf blocks point to the father hash of the compression block, the total payment amount in the leaf blocks is updated after each payment, the block hash in the compression block is updated, the leaf blocks directly access the information of the total payment amount paid by the leaf blocks during authentication, due to the characteristics of short length and small bytes of the compression chain, the access speed is high, the performance problem and the trust problem of low authentication speed after the data increment of the block chain are solved, and the invention realizes a decentralized transaction, payment and authentication mode, ensures that the transaction can be reliably traced, improves the calculation efficiency and reliability and saves the calculation time.
The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. A secure payment method, the method comprising:
the user registration application is sent to the intelligent contract module;
initiating a charging request, sending the charging request to the cloud computing data platform by the intelligent contract module after receiving the charging request, carrying out charging verification by the computing module, generating a new block in a block chain after verification of each node of the cloud computing data platform, storing charging information into the new block through encryption, updating the block chain and a compression chain by the intelligent contract module by broadcasting the intelligent contract module to each cloud computing data platform, sending payment information to a charged account by the intelligent contract module, and updating a block chain hash address;
initiating a payment request, sending the request to a cloud computing data platform by an intelligent contract module after receiving the request, checking payment information by the computing module, generating a new block in a block chain after verification of each node of the cloud computing data platform, storing transaction information to the new block through encryption, enabling each sub-block to point to a Hash address of a parent block, connecting all blocks to each other to form a block chain data account book, storing total amount information to leaf blocks in a compression chain after calculating the total amount, and updating the block addresses of the new blocks to the compression block.
2. The secure payment method according to claim 1, wherein the intelligent contract module generates a unique hash address for identifying the identity, the intelligent contract module sends registration information to the cloud computing data platform, the registration information is verified by each node of the cloud computing data platform and stored in a block chain in a transaction mode, and after the transaction information is stored, each cloud computing data platform is broadcasted to update the block chain and the compression chain, and user registration success information is returned; after a user initiates a modification request, the intelligent contract module receives the modification request and sends modification information to the cloud computing data platform, the modification information is verified by each node of the cloud computing data platform and is stored in a block chain in a transaction mode, each cloud computing data platform updates the block chain and the compression chain, and successful user modification information is returned.
3. The secure payment method according to claim 1, further comprising monitoring the blockchain and the compression chain in real time, and ensuring that total amount information corresponding to leaf blocks of the compression blocks in the compression chain is consistent with blockchain payment ledger information pointed by the compression blocks.
4. A secure payment system, the system comprising: the system comprises a client, an intelligent contract module and a cloud computing data platform;
the client comprises a registration modification module, a block chain bill checking module, a transaction payment module and a certification module;
the registration modification module is used for registering and modifying account information of the user and dividing the user into a common user and an administrator user role authority;
the block chain bill checking module is used for checking block chain bill information; the user initiates a bill auditing request, according to the role of the user, a common user can inquire the self-transaction and payment block chain account book information in the block chain, and an administrator can inquire the bill information of the user payment related block chain;
the transaction payment module is used for realizing transaction and payment functions for users of all roles; the certification module is used for authenticating the payment information of the user;
the intelligent contract module realizes the service function of the interaction between the client and the cloud computing data platform, and synchronizes each function algorithm through the cloud computing data platform to realize inquiry, payment and transaction;
the cloud computing data platform comprises a block chain module, a compression chain module, a computing module and a communication module and is used for realizing service logic of the block chain and the compression chain.
5. The secure payment system of claim 4, wherein the registration modification module is configured to register and modify account information of the user by: the user registration application is sent to an intelligent contract module, the intelligent contract module generates a unique hash address for identifying identity, the intelligent contract module sends registration information to a cloud computing data platform, the registration information is verified by each node of the cloud computing data platform and stored in a block chain in a transaction mode, and after the transaction information is stored, each cloud computing data platform is broadcasted to update the block chain and a compression chain, and user registration success information is returned; after a user initiates a modification request, the intelligent contract module receives the modification request and sends modification information to the cloud computing data platform, the modification information is verified by each node of the cloud computing data platform and is stored in a block chain in a transaction mode, each cloud computing data platform updates the block chain and the compression chain, and successful user modification information is returned.
6. The secure payment system of claim 4, wherein the transaction payment module implements transaction, payment functionality, in particular, ordinary users initiating transfer transaction requests with other ordinary users, administrators.
7. The secure payment system according to claim 4, wherein the intelligent contract module implements service functions of the client interacting with the cloud computing data platform, specifically: the intelligent contract module receives requests of registering and modifying account information of the user, generates a unique hash address for identifying the identity after receiving the registration requests, sends registration information to the cloud computing data platforms, broadcasts updating block chains and compression chains of the cloud computing data platforms after the registration is successful, and returns information of successful registration of the user.
8. The secure payment system of claim 4, wherein the implementation blockchain and compressed chain business logic is specifically: when a transaction occurs, encrypting each transaction message and storing the encrypted transaction message in a block chain, wherein each sub-block points to a Hash address of a parent block, and all blocks are connected with each other to form a block chain data account book; the compressed chain module is a compressed chain storage database and is used for storing compressed chain information, the compressed chain realizes block chain compression through a compressed block and a leaf block structure, the leaf block payment information is updated after the user pays each time, and the compressed block address points to a new block address in the block chain.
9. The secure payment system of claim 4, wherein the computing module monitors the blockchain and the compression chain in real time to ensure that the total amount information corresponding to the leaf blocks of the compression block in the compression chain is consistent with the blockchain payment ledger information pointed by the compression block.
10. A computer-readable storage medium having stored thereon a program for executing the method of any one of claims 1-3, the execution of which enables secure payment.
CN202110854271.3A 2021-07-28 2021-07-28 Safe payment method and system Pending CN113569287A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110854271.3A CN113569287A (en) 2021-07-28 2021-07-28 Safe payment method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110854271.3A CN113569287A (en) 2021-07-28 2021-07-28 Safe payment method and system

Publications (1)

Publication Number Publication Date
CN113569287A true CN113569287A (en) 2021-10-29

Family

ID=78168242

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110854271.3A Pending CN113569287A (en) 2021-07-28 2021-07-28 Safe payment method and system

Country Status (1)

Country Link
CN (1) CN113569287A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116596535A (en) * 2023-07-18 2023-08-15 深圳传趣网络技术有限公司 Transaction payment method, device, equipment and storage medium based on blockchain

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116596535A (en) * 2023-07-18 2023-08-15 深圳传趣网络技术有限公司 Transaction payment method, device, equipment and storage medium based on blockchain
CN116596535B (en) * 2023-07-18 2024-04-02 深圳传趣网络技术有限公司 Transaction payment method, device, equipment and storage medium based on blockchain

Similar Documents

Publication Publication Date Title
CN109040271B (en) Network equipment integrity protection method under distributed environment
CN112132447B (en) Block chain-based algorithm for evaluating and guaranteeing trust of computing power network
CN112106336B (en) Agent and agent account book on blockchain
CN108833081B (en) Block chain-based equipment networking authentication method
CN109447648B (en) Method, accounting node and medium for recording data blocks in a blockchain network
US20210295321A1 (en) Methods for decentralized digital asset transfer and smart contract state transition
CN108055138B (en) Block chain-based application distribution recording method and system
KR101816653B1 (en) Method for providing login flow via authentication based on public key infrastructure in response to user’s login request for using service provided by service provider server in use of smart contract with blockchain database and server using the same
CN111241114B (en) Intelligent service transaction block chain credit management method and system combining transaction and consensus
CN108665372B (en) Information processing, inquiring and storing method and device based on block chain
KR101816651B1 (en) Method for providing login flow via authentication based on public key infrastructure in response to user’s login request for using service provided by service provider server in use of blockchain database with unspent transaction output based protocol and server using the same
US20200074470A1 (en) Database configuration for asset transfers
CN112000976B (en) Authentication management method, device, medium and electronic equipment for block chain system
CN112101942B (en) Transaction request processing method, system, device and equipment based on block chain
CN111767530A (en) Cross-domain data sharing auditing and tracing system, method, storage medium and program
CN113657900A (en) Cross-chain transaction verification method and system and cross-chain transaction system
CN112231741B (en) Data processing method, device, medium and electronic equipment based on block chain system
CN108768672B (en) Data processing method, device and storage medium
CN112073413B (en) Online alliance chain management method and device, computer equipment and storage medium
CN112818325A (en) Method for realizing API gateway independent authentication based on application
Abadi et al. Anylog: a grand unification of the internet of things
CN115186304B (en) Transaction data verification method and system based on block chain
CN113706313A (en) Financing method, system and computer readable storage medium based on block chain
Hong et al. A secure peer to peer multiparty transaction scheme based on blockchain
CN111915308A (en) Transaction processing method of blockchain network and blockchain network

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