CN112132558B - Digital currency transaction method and device based on intelligent contract and electronic equipment - Google Patents

Digital currency transaction method and device based on intelligent contract and electronic equipment Download PDF

Info

Publication number
CN112132558B
CN112132558B CN202010822145.5A CN202010822145A CN112132558B CN 112132558 B CN112132558 B CN 112132558B CN 202010822145 A CN202010822145 A CN 202010822145A CN 112132558 B CN112132558 B CN 112132558B
Authority
CN
China
Prior art keywords
contract
target
digital currency
intelligent contract
digital
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
Application number
CN202010822145.5A
Other languages
Chinese (zh)
Other versions
CN112132558A (en
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.)
China Citic Bank Corp Ltd
Digital Currency Institute of the Peoples Bank of China
Original Assignee
China Citic Bank Corp Ltd
Digital Currency Institute of the Peoples Bank of China
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 China Citic Bank Corp Ltd, Digital Currency Institute of the Peoples Bank of China filed Critical China Citic Bank Corp Ltd
Priority to CN202010822145.5A priority Critical patent/CN112132558B/en
Publication of CN112132558A publication Critical patent/CN112132558A/en
Application granted granted Critical
Publication of CN112132558B publication Critical patent/CN112132558B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • 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

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a digital currency transaction method and device based on an intelligent contract and electronic equipment, which are applied to the technical field of intelligent contracts, wherein the method comprises the following steps: when the central intelligent contract receives the transmitted digital currency transaction request, the digital currency transaction request is transmitted to the CA mechanism authentication intelligent contract, the CA mechanism authentication intelligent contract is used for automatically inquiring contract conditions of the target contract, and when the contract conditions are met, the target intelligent contract is executed, so that automatic execution of the digital currency transaction is realized. In addition, the CA organization authenticates the intelligent contract to actively inquire contract condition information specified by the target intelligent contract, then the target intelligent contract is executed based on the contract condition information of the target intelligent contract obtained by inquiry, and the digital currency is delivered, so that the digital currency delivery efficiency is improved.

Description

Digital currency transaction method and device based on intelligent contract and electronic equipment
Technical Field
The application relates to the technical field of intelligent contracts, in particular to a digital currency transaction method and device based on intelligent contracts and electronic equipment.
Background
The digital money is a legal money issued by a central bank or issued by a central bank authorized to express an encrypted digital string representing a specific amount, including an amount of the digital money, an issuer identification, and an owner identification, and the digital money is stored in a central-row digital wallet. How to implement automated transactions of digital money becomes a problem.
Disclosure of Invention
The application provides a digital currency transaction method, a device and electronic equipment based on intelligent contracts, which are used for realizing automatic processing of digital currency transaction, and the technical scheme adopted by the application is as follows:
in a first aspect, there is provided a digital money transaction method based on an intelligent contract, applied to CA institution authentication of intelligent contracts, the method comprising,
receiving a digital currency transaction request sent by a central intelligent contract, wherein the digital currency transaction request comprises ID information of a target intelligent contract;
inquiring contract condition information of a target intelligent contract;
determining whether the contract condition of the target smart contract is fulfilled based on the contract condition information of the target smart contract obtained by the query, and determining whether to execute the target smart contract based on the result information of whether the contract condition is fulfilled.
Optionally, the target smart contract includes a digital currency delivery amount, a digital currency payoff party, a digital currency recipient, and executing the target smart contract includes:
when the contract condition of the target smart contract is satisfied, the owner of the digital money of the corresponding delivery amount of the digital money paying party is modified to the digital money receiving party.
Optionally, querying the contract condition information of the target smart contract includes:
and inquiring contract condition information of the target intelligent contract through a remote call module of the intelligent contract authenticated by the CA organization.
In a second aspect, there is provided a digital money transaction method based on smart contracts, applied to a central intelligent contract, comprising:
receiving a digital money transaction request, the digital money transaction request including ID information of a target smart contract;
forwarding the digital money transaction request to a CA institution-authenticated smart contract for querying contract condition information of the target smart contract, determining whether the contract condition of the target smart contract is fulfilled based on the queried contract condition information of the target smart contract, and determining whether to execute the target smart contract based on the contract condition achievement result information.
In a third aspect, there is provided a digital money transaction device based on a smart contract, the device comprising,
a first receiving module, configured to receive a digital money transaction request sent by a central intelligent contract, where the digital money transaction request includes ID information of a target intelligent contract;
the query module is used for querying contract condition information of the target intelligent contract;
and the execution module is used for determining whether the contract conditions of the target intelligent contract are met or not based on the contract condition information of the target intelligent contract obtained by inquiry, and determining whether to execute the target intelligent contract or not based on the result information of whether the contract conditions are met or not.
Optionally, the target smart contract includes a digital currency delivery amount, a digital currency payoff party, and a digital currency recipient; and the execution module is specifically used for modifying the owners of the digital currency corresponding to the delivery quantity of the digital currency payoff party into the digital currency receiving party when the contract conditions of the target intelligent contract are met.
Optionally, the query module is specifically configured to query contract condition information of the target intelligent contract through a remote call module of the intelligent contract authenticated by the CA institution.
In a fourth aspect, there is provided a digital money transaction device based on a smart contract, applied to a central smart contract, comprising:
a second receiving module for receiving a digital money transaction request including ID information of the target smart contract;
and the forwarding module is used for forwarding the digital currency transaction request to the CA mechanism authentication intelligent contract, wherein the CA mechanism authentication intelligent contract is used for inquiring contract condition information of the target intelligent contract, determining whether the contract condition of the target intelligent contract is achieved or not based on the contract condition information of the target intelligent contract obtained through inquiry, and determining whether to execute the target intelligent contract or not based on whether the contract condition is achieved or not.
In a fifth aspect, there is provided an electronic device comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: the smart contract-based digital money transaction method of the first aspect and/or the second aspect is performed.
In a sixth aspect, there is provided a computer readable storage medium storing computer instructions that, when run on a computer, cause the computer to perform the digital money transaction method of the first and/or second aspects based on smart contracts.
The application provides a digital currency transaction method, a device and electronic equipment based on intelligent contracts, wherein the digital currency transaction request is sent by an intelligent contract receiving center row intelligent contract authenticated by a CA (certificate Authority) and comprises ID (identity) information of a target intelligent contract; inquiring contract condition information of a target intelligent contract; determining whether the contract condition of the target smart contract is fulfilled based on the contract condition information of the target smart contract obtained by the query, and determining whether to execute the target smart contract based on the result information of whether the contract condition is fulfilled. Namely, when the intelligent contract authenticated by the CA organization receives the digital currency transaction request sent by the intelligent contract of the central row, automatically inquiring the contract condition of the target contract, and executing the target intelligent contract when the contract condition is satisfied, thereby realizing the automatic execution of the digital currency transaction. In addition, the related contract condition data is not required to be uploaded to the blockchain node by all parties or a third party of the contract passively, the contract condition information specified by the target intelligent contract is actively inquired through the intelligent contract, then the execution of the target intelligent contract is carried out based on the contract condition information of the target intelligent contract obtained by inquiry, and the digital currency is delivered, so that the digital currency delivery efficiency is improved. Moreover, verification and execution of the blockchain intelligent contract are both dependent on supervision and automatic execution of other party nodes in the blockchain, the intelligent contract and the blockchain are used in a binding mode, the application requirement of the blockchain intelligent contract is high, the transaction of digital currency is realized based on the non-blockchain intelligent contract, and compared with the realization of the digital currency transaction through the blockchain contract, the realization of the CA mechanism authentication intelligent contract is simpler and more convenient.
Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a flow chart of a digital money transaction method based on smart contracts according to an embodiment of the present application;
FIG. 2 is a flow chart of another smart contract-based digital money transaction method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a digital money transaction device based on smart contracts according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 5 is a schematic diagram of another smart contract-based digital money transaction device according to an embodiment of the present application;
FIG. 6 is an exemplary diagram of a digital money transaction flow based on a CA institution-authenticated smart contract in accordance with an embodiment of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for the purpose of illustrating the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Example 1
The embodiment of the application provides a digital currency transaction method based on an intelligent contract, which is applied to the authentication of the intelligent contract by a CA organization, and as shown in figure 1, the method can comprise the following steps:
step S101, a digital currency transaction request sent by a central intelligent contract is received, wherein the digital currency transaction request comprises ID information of a target intelligent contract;
step S102, inquiring contract condition information of a target intelligent contract;
step S103, determining whether the contract condition of the target intelligent contract is met based on the contract condition information of the target intelligent contract obtained by the query, and determining whether to execute the target intelligent contract based on the result information of whether the contract condition is met.
Illustratively, the central row digital currency smart contract system initiates a digital currency transaction request, wherein the digital currency transaction request includes ID information of the target smart contract; when the CA mechanism authentication intelligent contract at the bank side receives the digital currency request, determining contract execution conditions of the target intelligent contract based on ID information of the target intelligent contract, and then inquiring execution information of the contract conditions to contract parties by a callback function module of the CA mechanism authentication intelligent contract, wherein the contract condition information can be changed correspondingly according to different specific application scenes, such as whether a seller sends out goods, a buyer receives the goods, whether insurance is purchased from an insurance mechanism or not; according to contract condition information obtained by inquiry, if the seller has shipped, the seller has purchased the corresponding insurance, the payment condition of the buyer is judged to be met, the seller meets the condition of paying insurance fee of an insurance agency, then a target intelligent contract is executed, the buyer pays the corresponding amount of digital currency to the seller, and the seller pays the corresponding amount of digital currency to an insurance company.
The embodiment of the application provides a digital currency transaction method based on intelligent contracts, which is characterized in that a digital currency transaction request sent by an intelligent contract receiving central row of intelligent contracts authenticated by a CA (certificate authority) mechanism is received, and the digital currency transaction request comprises ID (identity) information of a target intelligent contract; inquiring contract condition information of a target intelligent contract; determining whether the contract condition of the target smart contract is fulfilled based on the contract condition information of the target smart contract obtained by the query, and determining whether to execute the target smart contract based on the result information of whether the contract condition is fulfilled. Namely, when the intelligent contract authenticated by the CA organization receives the digital currency transaction request sent by the intelligent contract of the central row, automatically inquiring the contract condition of the target contract, and executing the target intelligent contract when the contract condition is satisfied, thereby realizing the automatic execution of the digital currency transaction. In addition, the related contract condition data is not required to be uploaded to the blockchain node by all parties or a third party of the contract passively, the contract condition information specified by the target intelligent contract is actively inquired through the intelligent contract, then the execution of the target intelligent contract is carried out based on the contract condition information of the target intelligent contract obtained by inquiry, and the digital currency is delivered, so that the digital currency delivery efficiency is improved. Moreover, verification and execution of the blockchain intelligent contract are both dependent on supervision and automatic execution of other party nodes in the blockchain, the intelligent contract and the blockchain are used in a binding mode, the application requirement of the blockchain intelligent contract is high, the transaction of digital currency is realized based on the non-blockchain intelligent contract, and compared with the realization of the digital currency transaction through the blockchain contract, the realization of the CA mechanism authentication intelligent contract is simpler and more convenient.
Embodiments of the present application provide a possible implementation manner, specifically, the target smart contract includes a digital currency delivery amount, a digital currency expenditure party, and a digital currency receiving party, and executing the target smart contract includes:
when the contract condition of the target smart contract is satisfied, the owner of the digital money of the corresponding delivery amount of the digital money paying party is modified to the digital money receiving party.
Specifically, when the contract conditions are satisfied, the CA institution authenticates the smart contract to automatically modify the digital currency taker by the owner of the digital currency corresponding to the amount of the delivery by the digital currency payoff party.
Illustratively, in a goods buying and selling intelligent contract, if the contract execution condition is that the seller has shipped, the buyer pays a certain amount of digital money for the second party, and if the seller purchases insurance, the seller pays a certain amount of digital money for the insurance agency. If the CA organization authenticates the intelligent contract and inquires that the contract condition is met, the target intelligent contract is automatically executed, the owner of a certain amount of digital currency of the buyer is changed to the seller, and the owner of a certain amount of digital currency of the seller is changed to the insurance organization.
The embodiment of the application provides a possible implementation manner, and specifically, the query of the contract condition information of the target intelligent contract comprises the following steps:
and inquiring contract condition information of the target intelligent contract through a remote call module of the intelligent contract authenticated by the CA organization.
Specifically, a remote call module can be deployed on an intelligent contract authenticated by a CA organization, so that inquiry of contract condition information is realized. In particular, the remote invocation module may be implemented based on an RPC communication mechanism. RPC refers to remote procedure call, that is, two servers a, B, an application is deployed on server a, and is intended to call functions/methods provided by the application on server B, and because the remote procedure call cannot be directly invoked without being in a memory space, the semantics of the call need to be expressed and the data of the call need to be conveyed through a network.
Example two
The embodiment of the application provides a digital currency transaction method based on intelligent contracts, which is applied to a central intelligent contract, as shown in fig. 2, and can comprise the following steps:
receiving a digital money transaction request, the digital money transaction request including ID information of a target smart contract;
forwarding the digital money transaction request to a CA institution-authenticated smart contract for querying contract condition information of the target smart contract, determining whether the contract condition of the target smart contract is fulfilled based on the queried contract condition information of the target smart contract, and determining whether to execute the target smart contract based on the contract condition achievement result information.
Illustratively, the CA institution-authenticated smart contract-based digital money transaction process as shown in FIG. 6,
step S21, the central intelligent contract receives the digital currency transaction request of the wallet, and applies for executing the transaction intelligent contract to the transaction intelligent contract system according to the target intelligent contract ID in the digital currency transaction request of the wallet. The transaction intelligent contract system can also belong to a central intelligent contract or can be two independent contracts.
Step S22, the transaction intelligent contract system calls a callback function code executing module, and the incoming intelligent contract ID starts a remote procedure calling module.
In step S23, the remote procedure call module is configured to connect the target smart contract ID to the banking gateway in a remote call manner.
And step S24, the bank gateway calls the intelligent contract module authenticated by the CA mechanism according to the target intelligent contract ID.
In step S25, the intelligent contract module authenticated by the CA institution performs contract execution query and evidence status query (i.e. query of contract condition information) according to the target intelligent contract ID.
If the contract is completed, executing step S26;
if the contract execution is not completed, or there is an abnormality, step S27 is performed; .
And step S26, the intelligent contract module authenticated by the CA organization returns the successful contract execution result, and sequentially returns the bank gateway module, the remote procedure call module and the callback function code execution module, the digital currency intelligent contract system successfully executes, and the digital currency system pays according to the contract.
And step S27, the intelligent contract module authenticated by the CA organization returns the contract execution failure result, and sequentially returns the bank gateway module, the remote procedure call module and the callback function code execution module, so that the digital currency intelligent contract system fails to execute.
The embodiment of the application provides a digital currency transaction method based on intelligent contracts, when a central intelligent contract receives a transmitted digital currency transaction request, the digital currency transaction request is transmitted to a CA (certificate authority) authentication intelligent contract, the CA authentication intelligent contract is used for automatically inquiring contract conditions of a target contract, and when the contract conditions are met, the target intelligent contract is executed, so that automatic execution of digital currency transaction is realized. In addition, the related contract condition data is not required to be uploaded to the blockchain node by all parties or a third party of the contract passively, the contract condition information specified by the target intelligent contract is actively inquired through the intelligent contract, then the execution of the target intelligent contract is carried out based on the contract condition information of the target intelligent contract obtained by inquiry, and the digital currency is delivered, so that the digital currency delivery efficiency is improved.
Example III
Fig. 3 is a digital money transaction device based on an intelligent contract according to an embodiment of the present application, which is applied to a CA institution authentication intelligent contract 30, and includes: a receiving module 301, a querying module 302, an executing module 303, wherein,
a receiving module 301, configured to receive a digital money transaction request sent by a central intelligent contract, where the digital money transaction request includes ID information of a target intelligent contract;
a query module 302, configured to query contract condition information of a target smart contract;
an execution module 303, configured to determine whether the contract condition of the target smart contract is met based on the contract condition information of the target smart contract obtained by the query, and determine whether to execute the target smart contract based on the result information of whether the contract condition is met.
The embodiment of the application provides a digital currency transaction device based on an intelligent contract, which receives a digital currency transaction request sent by a central intelligent contract through the intelligent contract authenticated by a CA organization, wherein the digital currency transaction request comprises ID information of a target intelligent contract; inquiring contract condition information of a target intelligent contract; determining whether the contract condition of the target smart contract is fulfilled based on the contract condition information of the target smart contract obtained by the query, and determining whether to execute the target smart contract based on the result information of whether the contract condition is fulfilled. Namely, when the intelligent contract authenticated by the CA organization receives the digital currency transaction request sent by the intelligent contract of the central row, automatically inquiring the contract condition of the target contract, and executing the target intelligent contract when the contract condition is satisfied, thereby realizing the automatic execution of the digital currency transaction. In addition, the related contract condition data is not required to be uploaded to the blockchain node by all parties or a third party of the contract passively, the contract condition information specified by the target intelligent contract is actively inquired through the intelligent contract, then the execution of the target intelligent contract is carried out based on the contract condition information of the target intelligent contract obtained by inquiry, and the digital currency is delivered, so that the digital currency delivery efficiency is improved. Moreover, verification and execution of the blockchain intelligent contract are both dependent on supervision and automatic execution of other party nodes in the blockchain, the intelligent contract and the blockchain are used in a binding mode, the application requirement of the blockchain intelligent contract is high, the transaction of digital currency is realized based on the non-blockchain intelligent contract, and compared with the realization of the digital currency transaction through the blockchain contract, the realization of the CA mechanism authentication intelligent contract is simpler and more convenient.
The embodiment of the application provides a possible implementation manner, and specifically, the target intelligent contract comprises a digital currency delivery quantity, a digital currency expenditure party and a digital currency receiving party; and the execution module is specifically used for modifying the owners of the digital currency corresponding to the delivery quantity of the digital currency payoff party into the digital currency receiving party when the contract conditions of the target intelligent contract are met.
The embodiment of the application provides a possible implementation mode, namely a query module which is particularly used for querying contract condition information of a target intelligent contract through a remote call module of the intelligent contract authenticated by a CA organization.
The apparatus of the embodiment of the present application may perform the method shown in the first embodiment of the present application, and the effect achieved by the method is similar, and will not be described herein.
Example IV
Fig. 5 is a digital money transaction device based on smart contracts according to an embodiment of the present application, applied to a central smart contract, the device 50 including: a second receiving module 501, a forwarding module 502, wherein,
a second receiving module 501 for receiving a digital money transaction request, the digital money transaction request including ID information of a target smart contract;
a forwarding module 502, configured to forward the digital money transaction request to a CA institution-authenticated smart contract, where the CA institution-authenticated smart contract is configured to query contract condition information of a target smart contract, determine whether a contract condition of the target smart contract is fulfilled based on the queried contract condition information of the target smart contract, and determine whether to execute the target smart contract based on whether the contract condition is fulfilled.
The embodiment of the application provides a digital currency transaction device based on intelligent contracts, which is characterized in that when a central intelligent contract receives a transmitted digital currency transaction request, the digital currency transaction request is transmitted to a CA (certificate authority) authentication intelligent contract, the CA authentication intelligent contract is used for automatically inquiring contract conditions of a target contract, and when the contract conditions are met, the target intelligent contract is executed, so that automatic execution of digital currency transaction is realized. In addition, the related contract condition data is not required to be uploaded to the blockchain node by all parties or a third party of the contract passively, the contract condition information specified by the target intelligent contract is actively inquired through the intelligent contract, then the execution of the target intelligent contract is carried out based on the contract condition information of the target intelligent contract obtained by inquiry, and the digital currency is delivered, so that the digital currency delivery efficiency is improved.
Example five
The embodiment of the application provides an electronic device, as shown in fig. 4, an electronic device 40 shown in fig. 4 includes: a processor 401 and a memory 403. Processor 401 is connected to memory 403, such as via bus 402. Further, the electronic device 40 may also include a transceiver 404. It should be noted that, in practical applications, the transceiver 404 is not limited to one, and the structure of the electronic device 40 is not limited to the embodiment of the present application. The processor 401 is applied in the embodiment of the present application to implement the functions of the modules shown in fig. 3 or fig. 5. Transceiver 404 includes a receiver and a transmitter.
The processor 401 may be a CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware components, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. Processor 401 may also be a combination that implements computing functionality, such as a combination comprising one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 402 may include a path to transfer information between the components. Bus 402 may be a PCI bus, an EISA bus, or the like. Bus 402 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 4, but not only one bus or one type of bus.
The memory 403 may be, but is not limited to, a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, an EEPROM, a CD-ROM or other optical disk storage, optical disk storage (including compact disks, laser disks, optical disks, digital versatile disks, blu-ray disks, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 403 is used for storing application program codes for executing the present application and is controlled to be executed by the processor 401. The processor 401 is arranged to execute application code stored in the memory 403 to implement the functions of the apparatus provided by the embodiments shown in fig. 3 or fig. 5.
The embodiment of the application provides an electronic device suitable for the embodiment of the method, and specific implementation manner and technical effects are not described herein.
Example six
The present embodiment provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the digital money transaction method based on smart contracts shown in the above embodiment.
The embodiment of the present application provides a computer readable storage medium suitable for the above method embodiment, and specific implementation manner and technical effects are not described herein.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
The foregoing is only a partial embodiment of the present application and it should be noted that, for a person skilled in the art, several improvements and modifications can be made without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (8)

1. A digital money transaction method based on intelligent contracts, comprising:
the intelligent contract of the central bank receives a digital currency transaction request, wherein the digital currency transaction request comprises ID information of a target intelligent contract;
forwarding the digital currency transaction request to a CA institution authentication intelligent contract by a central office, wherein the CA institution authentication intelligent contract is used for inquiring contract condition information of the target intelligent contract, determining whether the contract condition of the target intelligent contract is met or not based on the contract condition information of the target intelligent contract obtained through inquiry, and determining whether to execute the target intelligent contract or not based on whether the contract condition is met or not;
the CA organization authenticates a digital currency transaction request sent by a smart contract receiving central row smart contract, the digital currency transaction request including ID information of a target smart contract;
inquiring contract condition information of the target intelligent contract;
determining whether the contract condition of the target intelligent contract is met based on the contract condition information of the target intelligent contract obtained by inquiry, and determining whether to execute the target intelligent contract based on the result information of whether the contract condition is met.
2. The method of claim 1, wherein the target smart contract comprises a digital currency delivery amount, a digital currency payoff party, a digital currency recipient, and wherein executing the target smart contract comprises:
and when the contract conditions of the target intelligent contract are met, modifying the owners of the digital currency corresponding to the delivery quantity of the digital currency paying party into a digital currency receiving party.
3. The method of claim 1, wherein querying the contract condition information of the target smart contract comprises:
and inquiring contract condition information of the target intelligent contract through a remote call module of the intelligent contract authenticated by the CA organization.
4. A digital money transaction device based on intelligent contracts, comprising:
a second receiving module for receiving a digital money transaction request for a central intelligent contract, the digital money transaction request including ID information of a target intelligent contract;
a forwarding module for forwarding the digital money transaction request to a CA institution-authenticated smart contract for querying contract condition information of the target smart contract, determining whether the contract condition of the target smart contract is fulfilled based on the queried contract condition information of the target smart contract, and determining whether to execute the target smart contract based on the contract condition achievement result information
A receiving module, configured to authenticate a digital currency transaction request sent by a smart contract receiving center by a CA institution, where the digital currency transaction request includes ID information of a target smart contract;
the query module is used for querying contract condition information of the target intelligent contract;
and the execution module is used for determining whether the contract conditions of the target intelligent contract are met or not based on the contract condition information of the target intelligent contract obtained by inquiry, and determining whether to execute the target intelligent contract or not based on the result information of whether the contract conditions are met or not.
5. The apparatus of claim 4, wherein the target smart contract comprises a digital currency delivery amount, a digital currency payoff party, a digital currency pick-up; the execution module is specifically configured to modify an owner of the digital currency corresponding to the delivery amount of the digital currency payoff party into a digital currency receiving party when the contract condition of the target intelligent contract is satisfied.
6. The device according to claim 4, wherein the query module is specifically configured to query contract condition information of the target smart contract through the remote invocation module of the CA institution-authenticated smart contract.
7. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: a digital money transaction method based on an intelligent contract according to any one of claims 1 to 3.
8. A computer readable storage medium for storing computer instructions which, when run on a computer, cause the computer to perform the smart contract-based digital money transaction method of any one of the preceding claims 1 to 3.
CN202010822145.5A 2020-08-16 2020-08-16 Digital currency transaction method and device based on intelligent contract and electronic equipment Active CN112132558B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010822145.5A CN112132558B (en) 2020-08-16 2020-08-16 Digital currency transaction method and device based on intelligent contract and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010822145.5A CN112132558B (en) 2020-08-16 2020-08-16 Digital currency transaction method and device based on intelligent contract and electronic equipment

Publications (2)

Publication Number Publication Date
CN112132558A CN112132558A (en) 2020-12-25
CN112132558B true CN112132558B (en) 2023-05-23

Family

ID=73850953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010822145.5A Active CN112132558B (en) 2020-08-16 2020-08-16 Digital currency transaction method and device based on intelligent contract and electronic equipment

Country Status (1)

Country Link
CN (1) CN112132558B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113537958A (en) * 2021-07-12 2021-10-22 北京极智数仓科技有限公司 Transaction method, system, medium and transaction system based on digital currency
CN115456227B (en) * 2022-09-22 2023-05-30 中航信移动科技有限公司 Digital currency system for civil aviation event
CN115249159B (en) * 2022-09-22 2022-12-13 中航信移动科技有限公司 Event processing system based on digital currency
CN115239349B (en) * 2022-09-22 2022-12-09 中航信移动科技有限公司 Civil aviation event processing system based on digital currency
CN115239348B (en) * 2022-09-22 2022-12-09 中航信移动科技有限公司 Digital currency system for processing joint association request
CN115456802B (en) * 2022-09-22 2024-01-26 中航信移动科技有限公司 Insurance event processing system based on digital currency
CN115271732B (en) * 2022-09-22 2023-01-24 中航信移动科技有限公司 Event processing system for controlling digital currency
CN115456621B (en) * 2022-09-22 2023-08-01 中航信移动科技有限公司 Digital currency processing system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107358523A (en) * 2017-06-26 2017-11-17 中国人民银行数字货币研究所 The method and apparatus that digital cash orientation uses
CN108537668A (en) * 2018-04-11 2018-09-14 北京奇虎科技有限公司 Digital cash method of commerce and device, computing device based on intelligent contract
CN109003179A (en) * 2018-07-11 2018-12-14 北京磁云唐泉金服科技有限公司 Inter-bank tune money based on digital cash synchronous settlement method, device and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018127923A1 (en) * 2017-01-08 2018-07-12 Eyal Hertzog Methods for exchanging and evaluating virtual currency
WO2018175504A1 (en) * 2017-03-20 2018-09-27 Wasserman Steven Victor Blockchain digital currency: systems and methods for use in enterprise blockchain banking

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107358523A (en) * 2017-06-26 2017-11-17 中国人民银行数字货币研究所 The method and apparatus that digital cash orientation uses
CN108537668A (en) * 2018-04-11 2018-09-14 北京奇虎科技有限公司 Digital cash method of commerce and device, computing device based on intelligent contract
CN109003179A (en) * 2018-07-11 2018-12-14 北京磁云唐泉金服科技有限公司 Inter-bank tune money based on digital cash synchronous settlement method, device and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A Survey of Research on Retail Central Bank Digital Currency;Prepared by John Kiff等;2020 International Monetary Fund *
Discussion Paper: Central Bank Digital Currency Opportunities, challenges and design;bank of england;Discussion Paper Central Bank Digital Currency Opportunities, challenges and design;第1-57页 *

Also Published As

Publication number Publication date
CN112132558A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN112132558B (en) Digital currency transaction method and device based on intelligent contract and electronic equipment
CN112132559B (en) Digital money transaction method, device, electronic equipment and readable storage medium
US20240144263A1 (en) Systems and Methods to Validate Transactions For Inclusion in Electronic Blockchains
CN108053321B (en) Method and device for realizing supply chain financing
CN112037068B (en) Resource transfer method, system, device, computer equipment and storage medium
JP5837658B2 (en) Real-time payment settlement for logistics companies
CN111475521A (en) Cargo management method and device based on block chain and electronic equipment
CN112883109B (en) Block chain-based digital commodity transaction method and device
CN111951106A (en) Data transaction system and method based on block chain intelligent contract technology
AU2018201463A1 (en) Online payment
CN112767163A (en) Block chain-based digital commodity transaction method and device
CN112215610A (en) Digital currency transaction payment platform based on block chain BaaS core technology
CN112561407B (en) Asset management method, system and device based on block chain
CN112766854B (en) Block chain-based digital commodity transaction method and device
CN111667270A (en) Region-based digital currency using method and device and electronic equipment
CN112116482A (en) Financing data processing method and device based on block chain
CN111047310A (en) Method and device for realizing distribution and transfer of digital assets and online financing
CN112287311A (en) Service implementation method and device based on block chain
CN115795552A (en) Authority management method, device, nonvolatile storage medium and electronic equipment
CN114742654A (en) Digital asset circulation method, system, electronic device and medium based on alliance chain
KR20200000595A (en) Blockchain based certificate management method and device, server and system thereof
US20240289770A1 (en) Blockchain payment method and device
CN112633953B (en) Service processing method and system based on block chain
EP3811581A1 (en) Systems and methods to validate transactions for inclusion in electronic blockchains
CN113095821A (en) Method and device for interaction of property rights

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
TA01 Transfer of patent application right

Effective date of registration: 20220113

Address after: Floor 20, block a, Jintang center, No. 18, Fengtai North Road, Fengtai District, Beijing 100071

Applicant after: THE PEOPLES BANK OF CHINA, DIGITAL CASH Research Institute

Applicant after: CHINA CITIC BANK Co.,Ltd.

Address before: 100020 20th floor, CITIC tower, building 1, 10 Guanghua Road, Chaoyang District, Beijing

Applicant before: CHINA CITIC BANK Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant