WO2021189629A1 - Blockchain-based green power certificate transaction method and apparatus, and storage medium - Google Patents

Blockchain-based green power certificate transaction method and apparatus, and storage medium Download PDF

Info

Publication number
WO2021189629A1
WO2021189629A1 PCT/CN2020/091404 CN2020091404W WO2021189629A1 WO 2021189629 A1 WO2021189629 A1 WO 2021189629A1 CN 2020091404 W CN2020091404 W CN 2020091404W WO 2021189629 A1 WO2021189629 A1 WO 2021189629A1
Authority
WO
WIPO (PCT)
Prior art keywords
certificate
green power
target green
blockchain
power certificate
Prior art date
Application number
PCT/CN2020/091404
Other languages
French (fr)
Chinese (zh)
Inventor
王栋
张显
张圣楠
玄佳兴
于晓昆
梁东
李方军
张旭
Original Assignee
国网电子商务有限公司
国网区块链科技(北京)有限公司
北京电力交易中心有限公司
国网天津市电力公司
国家电网有限公司
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 国网电子商务有限公司, 国网区块链科技(北京)有限公司, 北京电力交易中心有限公司, 国网天津市电力公司, 国家电网有限公司 filed Critical 国网电子商务有限公司
Publication of WO2021189629A1 publication Critical patent/WO2021189629A1/en

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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • 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/64Protecting data integrity, e.g. using checksums, certificates or signatures

Definitions

  • This application relates to the field of power technology, and in particular to a blockchain-based green power certificate transaction method, device and storage medium.
  • Green power certificate (abbreviated as green certificate) is an electronic certificate with a unique identification code issued by the state for each MWh of non-aqueous renewable energy on-grid electricity generated by power generation companies. The only certificate.
  • green certificates can be traded to meet the different needs of enterprises.
  • the green certificate trading market has been activated, but the existing green certificate transactions are true Sex is difficult to guarantee.
  • the embodiments of this application provide a blockchain-based green power certificate transaction method, device, and storage medium, which can ensure the authenticity of green power certificate transactions by tracing the entire process of green certificate issuance and transaction.
  • the purpose and technical solutions are as follows:
  • the embodiment of the application provides a blockchain-based green power certificate transaction method, including:
  • transfer request for the target green power certificate trigger the execution of the transfer smart contract in the power transaction blockchain.
  • the execution process of the transfer smart contract is: writing the transfer record into the power transaction blockchain, The transfer record is used to record transfer information of the target green power certificate, and the target green power certificate is stored in the power transaction blockchain;
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • the issuance process of the target green power certificate includes:
  • a green power certificate In response to the first object's request for a green power certificate, a green power certificate is generated, the green power certificate includes at least description information, a unique number of the certificate, and the validity period of the certificate;
  • the embodiment of the application provides a blockchain-based green power certificate transaction device, including:
  • the trigger module is configured to respond to the transfer request of the first object for the target green power certificate and trigger the execution of the transfer smart contract in the power transaction blockchain.
  • the execution process of the transfer smart contract is: writing a transfer record into the power transaction In the blockchain, the transfer record is used to record transfer information of the target green power certificate, and the target green power certificate is stored in the power transaction blockchain;
  • the sending module is configured to obtain the target green power certificate and the address of the transfer record on the power transaction blockchain from the power transaction blockchain, and record the target green power certificate and the transfer in the power transaction blockchain.
  • the address in the power transaction blockchain is sent to the second object in the transfer request, so that the second object pays the first object.
  • the device further includes:
  • the first search module is configured to respond to the verification request for the target green power certificate, and search for the existence of the target green power certificate in the power transaction blockchain;
  • the first determining module is configured to, if the target green power certificate exists in the power transaction blockchain, use the found target green power certificate as a basis for verifying the authenticity of the target green power certificate .
  • the device further includes:
  • the second search module is configured to respond to the transfer process trace request for the target green power certificate, and search for whether there is a transfer record corresponding to the target green power certificate in the power transaction blockchain;
  • the second determining module is configured to, if there is a transfer record corresponding to the target green power certificate in the power transaction blockchain, use the found transfer record corresponding to the target green power certificate as the traceable target green The basis for the transfer process of the power certificate.
  • the device further includes:
  • the third searching module is configured to respond to the request for tracing the issuance process of the target green power certificate, and search for the existence of the target green power certificate in the power transaction blockchain;
  • the third determining module is configured to, if the target green power certificate exists in the power transaction blockchain, use the found target green power certificate as a basis for tracing the issuance process of the target green power certificate.
  • the device further includes: an issuing module configured to:
  • a green power certificate In response to the first object's request for a green power certificate, a green power certificate is generated, the green power certificate includes at least description information, a unique number of the certificate, and the validity period of the certificate;
  • the embodiment of the present application provides a storage medium that stores an executable program, and when the executable program is executed by a processor, the above-mentioned blockchain-based green power certificate transaction method is realized.
  • the target green power certificate is stored in the power transaction blockchain, which can prevent the target green power certificate from being tampered with.
  • respond to the transfer request for the target green power certificate to trigger the transfer intelligence in the power transaction blockchain Contract execution the transfer record used to record the transfer information of the target green power certificate is written into the power transaction blockchain, to ensure that the target green power certificate and its transfer process can be traced, and reduce the need for the green power certificate and its transaction process. The risk of forgery in order to improve the authenticity of green power certificate transactions.
  • Figure 1 is a schematic diagram of the structure of a blockchain system provided by this application.
  • FIG. 2 is a flowchart of Embodiment 1 of a blockchain-based green power certificate transaction method provided by this application;
  • FIG. 3 is a flowchart of Embodiment 2 of a blockchain-based green power certificate transaction method provided by this application;
  • Figure 4 is a flowchart of Embodiment 3 of a blockchain-based green power certificate transaction method provided by this application;
  • FIG. 5 is a flowchart of Embodiment 4 of a blockchain-based green power certificate transaction method provided by this application;
  • Figure 6 is a schematic diagram of the logical structure of a blockchain-based green power certificate transaction device provided by this application.
  • FIG. 7 is a schematic diagram of the hardware composition structure of a blockchain-based green power certificate transaction device provided by this application.
  • the embodiment of the application discloses a blockchain-based green power certificate transaction method, which includes: responding to a transfer request of a first object for a target green power certificate, triggering the execution of a transfer smart contract in the power transaction blockchain, the transfer
  • the execution process of the smart contract is: writing a transfer record into the power transaction blockchain, the transfer record is used to record the transfer information of the target green power certificate, and the target green power certificate is stored in the power transaction In the block chain; obtain the target green power certificate and the transfer record address on the power transaction block chain from the power transaction block chain, and record the target green power certificate and the transfer in the power transaction block chain
  • the address in the power transaction blockchain is sent to the second object in the transfer request, so that the second object pays the first object.
  • the authenticity of the green power certificate transaction is guaranteed through the above methods.
  • the blockchain system includes: the lowest level of power transaction chain, including node management, consensus mechanism, smart contract, P2P network and other modules, which provide support for upper-level applications; the middle layer is blockchain identity management and blockchain monitoring and management modules, Provide access to blockchain member management and blockchain operating status monitoring capabilities; the upper application is the blockchain green certificate trading platform, which provides the functions of green certificate issuance, transaction, verification and traceability.
  • Step S11 In response to the transfer request of the first object for the target green power certificate, trigger the execution of the transfer smart contract in the power transaction blockchain, and the execution process of the transfer smart contract is: writing a transfer record into the power transaction block In the chain, the transfer record is used to record the transfer information of the target green power certificate, and the target green power certificate is stored in the power transaction blockchain.
  • the target green power certificate can be understood as: the green power certificate applied by the first object. Among them, the issuance process of the target green power certificate can include:
  • a green power certificate is generated, and the green power certificate includes at least description information, a unique voucher number, and a period of validity of the voucher;
  • A13 Store the target green power certificate in the power transaction blockchain
  • A14 Send the target green power certificate and the storage address of the target green power certificate in the power transaction blockchain to the first object.
  • the transfer information of the target green power certificate may include at least: information of the first object, information of another object participating in the target green power certificate transaction, and index information of the target green power certificate.
  • the index information of the target green power certificate may be used to search for the target green power certificate in the power transaction blockchain.
  • the transfer information of the target green power certificate may also include the signature of the target green power certificate and its associated information (for example, the public key of the first object).
  • the process of triggering the execution of the transfer smart contract in the power transaction blockchain can include but is not limited to:
  • the key information of the transaction contract signed by the first object and the second object in the transfer request is written into the power transaction blockchain to trigger the execution of the transfer smart contract.
  • the second object in the transfer request can be understood as: an object that receives the target green power certificate transferred by the first object.
  • Step S12. Obtain the target green power certificate and the address recorded on the power transaction blockchain from the power transaction blockchain, and record the target green power certificate and the transfer in the power transaction blockchain.
  • the address in the transaction blockchain is sent to the second object in the transfer request, so that the second object pays the first object.
  • Sending the address of the transfer record in the power transaction blockchain to the second object in the transfer request can ensure that the second object can trace the transaction process of the target green power certificate according to the transfer record, and reduce the risk of the green power certificate.
  • the risk of forgery in the transaction process so as to improve the authenticity of the transaction process of the green power certificate.
  • FIG. 3 a schematic flowchart of Embodiment 2 of a blockchain-based green power certificate transaction method provided for this application.
  • This embodiment mainly describes the foregoing Embodiment 1.
  • the extended scheme of the blockchain-based green power certificate transaction method is shown in Figure 3.
  • the method can include but is not limited to the following steps:
  • Step S21 In response to the transfer request of the first object for the target green power certificate, trigger the execution of the transfer smart contract in the power transaction block chain.
  • the execution process of the transfer smart contract is: writing a transfer record into the power transaction block In the chain, the transfer record is used to record the transfer information of the target green power certificate, and the target green power certificate is stored in the power transaction blockchain.
  • Step S22 Obtain the target green power certificate and the address of the transfer record on the power transaction blockchain from the power transaction blockchain, and record the target green power certificate and the transfer in the power transaction blockchain.
  • the address in the transaction blockchain is sent to the second object in the transfer request, so that the second object pays the first object.
  • steps S21-S22 please refer to the related introduction of steps S11-S12 in Embodiment 1, which will not be repeated here.
  • Step S23 In response to the verification request for the target green power certificate, search for whether the target green power certificate exists in the power transaction blockchain.
  • step S24 is executed.
  • the credibility of the target green power certificate can be improved based on the non-tamperable characteristics of the data in the power transaction blockchain.
  • Step S24 Use the found target green power certificate as a basis for verifying the authenticity of the target green power certificate.
  • the target green power certificate with high credibility can be used as a basis for verifying the authenticity of the target green power certificate, so as to improve the reliability of the verification.
  • this application provides a schematic flow chart of Embodiment 3 of a blockchain-based green power certificate transaction method.
  • This embodiment mainly describes the foregoing Embodiment 1.
  • the extended scheme of the blockchain-based green power certificate transaction method is shown in Figure 4. The method can include but is not limited to the following steps:
  • Step S31 In response to the transfer request of the first object for the target green power certificate, trigger the execution of the transfer smart contract in the power transaction block chain.
  • the execution process of the transfer smart contract is: writing a transfer record into the power transaction block In the chain, the transfer record is used to record the transfer information of the target green power certificate, and the target green power certificate is stored in the power transaction blockchain.
  • Step S32 Obtain the target green power certificate and the address recorded on the power transaction blockchain from the power transaction blockchain, and record the target green power certificate and the transfer in the power transaction blockchain.
  • the address in the transaction blockchain is sent to the second object in the transfer request, so that the second object pays the first object.
  • steps S31-S32 please refer to the related introduction of steps S11-S12 in Embodiment 1, which will not be repeated here.
  • Step S33 In response to the request for tracing the transfer process of the target green power certificate, search for whether there is a transfer record corresponding to the target green power certificate in the power transaction blockchain.
  • step S34 is executed.
  • Step S34 Use the found transfer record corresponding to the target green power certificate as a basis for tracing the transfer process of the target green power certificate.
  • the target green power certificate may be transferred one or more times, but whether it is one transfer or multiple transfers, the transfer record of each transfer of the target green power certificate is in the power transaction blockchain. record.
  • this application provides a schematic flow chart of Embodiment 4 of a blockchain-based green power certificate transaction method.
  • This embodiment mainly describes the foregoing Embodiment 1.
  • the extended scheme of the blockchain-based green power certificate transaction method is shown in Figure 5. The method can include but is not limited to the following steps:
  • Step S41 In response to the transfer request of the first object for the target green power certificate, trigger the execution of the transfer smart contract in the power transaction block chain.
  • the execution process of the transfer smart contract is: writing a transfer record into the power transaction block In the chain, the transfer record is used to record the transfer information of the target green power certificate, and the target green power certificate is stored in the power transaction blockchain.
  • Step S42 Obtain the target green power certificate and the address recorded on the power transaction blockchain from the power transaction blockchain, and record the target green power certificate and the transfer in the power transaction blockchain.
  • the address in the transaction blockchain is sent to the second object in the transfer request, so that the second object pays the first object.
  • Step S43 Responding to the request for tracing the issuance process of the target green power certificate, search for the existence of the target green power certificate in the power transaction blockchain.
  • step S44 is executed.
  • Step S44 Use the found target green power certificate as a basis for tracing the issuance process of the target green power certificate.
  • the traceability of the issuance process of the target green power certificate can be realized.
  • the blockchain-based green power certificate transaction device introduced below and the blockchain-based green power certificate transaction method described above can correspond to each other. Reference.
  • the green power certificate transaction device based on the blockchain includes: a trigger module 11 and a sending module 12.
  • the trigger module 11 is configured to respond to the transfer request of the first object for the target green power certificate and trigger the execution of the transfer smart contract in the power transaction blockchain.
  • the execution process of the transfer smart contract is: writing a transfer record to the power In the transaction blockchain, the transfer record is used to record transfer information of the target green power certificate, and the target green power certificate is stored in the power transaction blockchain.
  • the sending module 12 is configured to obtain the target green power certificate and the address of the transfer record on the power transaction blockchain from the power transaction blockchain, and record the target green power certificate and the transfer in the The address in the power transaction blockchain is sent to the second object in the transfer request, so that the second object pays the first object.
  • the blockchain-based green power certificate transaction device may further include:
  • the first search module is configured to respond to the verification request for the target green power certificate, and search for the existence of the target green power certificate in the power transaction blockchain;
  • the first determining module is configured to, if the target green power certificate exists in the power transaction blockchain, use the found target green power certificate as a basis for verifying the authenticity of the target green power certificate .
  • the blockchain-based green power certificate transaction device may further include:
  • the second search module is configured to respond to the transfer process trace request for the target green power certificate, and search for whether there is a transfer record corresponding to the target green power certificate in the power transaction blockchain;
  • the second determining module is configured to, if there is a transfer record corresponding to the target green power certificate in the power transaction blockchain, use the found transfer record corresponding to the target green power certificate as the traceable target green The basis for the transfer process of the power certificate.
  • the blockchain-based green power certificate transaction device may further include:
  • the third searching module is configured to respond to the request for tracing the issuance process of the target green power certificate, and search for the existence of the target green power certificate in the power transaction blockchain;
  • the third determining module is configured to, if the target green power certificate exists in the power transaction blockchain, use the found target green power certificate as a basis for tracing the issuance process of the target green power certificate.
  • the blockchain-based green power certificate transaction device may further include:
  • the issuance module is configured as:
  • a green power certificate In response to the first object's request for a green power certificate, a green power certificate is generated, the green power certificate includes at least description information, a unique number of the certificate, and the validity period of the certificate;
  • each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other.
  • the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
  • An embodiment of the application also provides a blockchain-based green power certificate transaction device, including a processor and a memory for storing a computer program that can run on the processor, wherein the processor is used to run the computer program At the time, execute the steps of the above-mentioned blockchain-based green power certificate transaction method.
  • FIG. 7 is a schematic diagram of the hardware composition structure of a blockchain-based green power certificate transaction device according to an embodiment of the present application.
  • the blockchain-based green power certificate transaction device 700 includes: at least one processor 701, a memory 702, and at least one network interface 703.
  • the various components in the green power certificate transaction device 700 based on the blockchain are coupled together through the bus system 704.
  • the bus system 704 is used to implement connection and communication between these components.
  • the bus system 704 also includes a power bus, a control bus, and a status signal bus.
  • various buses are marked as the bus system 704 in FIG. 7.
  • the memory 702 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory.
  • non-volatile memory can be ROM, Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), and electrically erasable Programmable read-only memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access memory (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface memory, optical disk, or CD-ROM (CD) -ROM, Compact Disc Read-Only Memory); Magnetic surface memory can be disk storage or tape storage.
  • the volatile memory may be a random access memory (RAM, Random Access Memory), which is used as an external cache.
  • RAM random access memory
  • SRAM static random access memory
  • SSRAM synchronous static random access memory
  • Synchronous Static Random Access Memory Synchronous Static Random Access Memory
  • DRAM Dynamic Random Access Memory
  • SDRAM Synchronous Dynamic Random Access Memory
  • DDRSDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • ESDRAM Enhanced Synchronous Dynamic Random Access Memory
  • SLDRAM synchronous connection dynamic random access memory
  • DRRAM Direct Rambus Random Access Memory
  • the memory 702 described in the embodiment of the present application is intended to include, but is not limited to, these and any other suitable types of memory.
  • the memory 702 in the embodiment of the present application is used to store various types of data to support the operation of the green power certificate transaction device 700 based on the blockchain. Examples of such data include: any computer program used to operate on the blockchain-based green power certificate transaction device 700, such as the application program 7022.
  • the program for implementing the method of the embodiment of the present application may be included in the application program 7022.
  • the method disclosed in the foregoing embodiment of the present application may be applied to the processor 701 or implemented by the processor 701.
  • the processor 701 may be an integrated circuit chip with signal processing capabilities. In the implementation process, the steps of the foregoing method can be completed by an integrated logic circuit of hardware in the processor 701 or instructions in the form of software.
  • the aforementioned processor 701 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like.
  • the processor 701 may implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of the present application.
  • the general-purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a storage medium, and the storage medium is located in the memory 702.
  • the processor 701 reads the information in the memory 702 and completes the steps of the foregoing method in combination with its hardware.
  • the blockchain-based green power certificate transaction device 700 can be implemented by one or more application specific integrated circuits (ASIC, Application Specific Integrated Circuit), DSP, and Programmable Logic Device (PLD, Programmable Logic Device). , Complex Programmable Logic Device (CPLD, Complex Programmable Logic Device), FPGA, general-purpose processor, controller, MCU, MPU, or other electronic components to implement the foregoing methods.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital
  • PLD Programmable Logic Device
  • PLD Programmable Logic Device
  • FPGA Complex Programmable Logic Device
  • controller MCU
  • MPU MPU
  • the embodiment of the application also provides a storage medium for storing a computer program that enables the computer to execute the corresponding process in the blockchain-based green power certificate transaction method of the embodiment of the application. For the sake of brevity, it will not be omitted here. Go into details.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A blockchain-based green power certificate transaction method and apparatus, and a storage medium. The method comprises: in response to a transfer request of a first object for a target green power certificate, triggering the execution of a transfer smart contract in a power transaction blockchain, the execution process of the transfer smart contract being as follows: writing a transfer record into the power transaction blockchain, the transfer record being used to record transfer information of the target green power certificate, and the target green power certificate being stored in the power transaction blockchain (S11); and acquiring from the power transaction blockchain the target green power certificate and the address of the transfer record on the power transaction blockchain, and sending the target green power certificate and the address of the transfer record on the power transaction blockchain to a second object in the transfer request, such that the second object pays the first object (S12). The method can improve the authenticity of a green power certificate transaction process.

Description

一种基于区块链的绿色电力证书交易方法、装置及存储介质A blockchain-based green power certificate transaction method, device and storage medium
相关申请的交叉引用Cross-references to related applications
本申请基于申请号为202010211236.5、申请日为2020年3月24日的中国专利申请提出,并要求中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is filed based on a Chinese patent application with an application number of 202010211236.5 and an application date of March 24, 2020, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated by reference into this application.
技术领域Technical field
本申请涉及电力技术领域,特别涉及一种基于区块链的绿色电力证书交易方法、装置及存储介质。This application relates to the field of power technology, and in particular to a blockchain-based green power certificate transaction method, device and storage medium.
背景技术Background technique
绿色电力证书(简称绿证)是国家对发电企业每兆瓦时非水可再生能源上网电量颁发的具有独特标识代码的电子证书,是非水可再生能源发电量的确认和属性证明以及消费绿色电力的唯一凭证。Green power certificate (abbreviated as green certificate) is an electronic certificate with a unique identification code issued by the state for each MWh of non-aqueous renewable energy on-grid electricity generated by power generation companies. The only certificate.
其中,绿证可以进行交易,以满足企业间的不同需求。随着2019年国家发展改革委、国家能源局联合印发《关于建立健全可再生能源电力消纳保障机制的通知》的进一步落实,绿证交易市场被激活,但是,现有的绿证交易的真实性难以保证。Among them, green certificates can be traded to meet the different needs of enterprises. With the further implementation of the "Notice on Establishing and Improving the Renewable Energy Power Consumption Guarantee Mechanism" jointly issued by the National Development and Reform Commission and the National Energy Administration in 2019, the green certificate trading market has been activated, but the existing green certificate transactions are true Sex is difficult to guarantee.
发明内容Summary of the invention
为解决上述技术问题,本申请实施例提供一种基于区块链的绿色电力证书交易方法、装置及存储介质,通过对绿证发行、交易全流程进行追溯,达到保证绿色电力证书交易真实性的目的,技术方案如下:In order to solve the above technical problems, the embodiments of this application provide a blockchain-based green power certificate transaction method, device, and storage medium, which can ensure the authenticity of green power certificate transactions by tracing the entire process of green certificate issuance and transaction. The purpose and technical solutions are as follows:
本申请实施例提供一种基于区块链的绿色电力证书交易方法,包括:The embodiment of the application provides a blockchain-based green power certificate transaction method, including:
响应第一对象针对目标绿色电力证书的转移请求,触发电力交易区块链中的转移智能合约执行,所述转移智能合约的执行过程为:将转移记录写入所述 电力交易区块链中,所述转移记录用于记录所述目标绿色电力证书的转移信息,所述目标绿色电力证书存储在所述电力交易区块链中;In response to the first object’s transfer request for the target green power certificate, trigger the execution of the transfer smart contract in the power transaction blockchain. The execution process of the transfer smart contract is: writing the transfer record into the power transaction blockchain, The transfer record is used to record transfer information of the target green power certificate, and the target green power certificate is stored in the power transaction blockchain;
从电力交易区块链中获取所述目标绿色电力证书及所述转移记录在所述电力交易区块链上的地址,将所述目标绿色电力证书及所述转移记录在所述电力交易区块链中的地址发送给所述转移请求中的第二对象,以使所述第二对象向所述第一对象支付。Obtain the target green power certificate and the address recorded on the power transaction blockchain from the power transaction blockchain, and record the target green power certificate and the transfer in the power transaction block The address in the chain is sent to the second object in the transfer request, so that the second object pays the first object.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
响应针对所述目标绿色电力证书的验证请求,在所述电力交易区块链中查找是否存在所述目标绿色电力证书;In response to the verification request for the target green power certificate, search for the presence of the target green power certificate in the power transaction blockchain;
若存在,将查找到的目标绿色电力证书作为对所述目标绿色电力证书的真实有效性进行验证的依据。If it exists, use the found target green power certificate as a basis for verifying the authenticity of the target green power certificate.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
响应针对所述目标绿色电力证书的转移过程追溯请求,在所述电力交易区块链中查找是否存在所述目标绿色电力证书对应的转移记录;Responding to the request for tracing the transfer process of the target green power certificate, searching in the power transaction blockchain whether there is a transfer record corresponding to the target green power certificate;
若存在,将查找到的所述目标绿色电力证书对应的转移记录作为追溯所述目标绿色电力证书的转移过程的依据。If it exists, use the found transfer record corresponding to the target green power certificate as a basis for tracing the transfer process of the target green power certificate.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
响应针对所述目标绿色电力证书的核发过程追溯请求,在所述电力交易区块链中查找是否存在所述目标绿色电力证书;Responding to a retrospective request for the issuance process of the target green power certificate, searching for the existence of the target green power certificate in the power transaction blockchain;
若存在,将查找到的目标绿色电力证书作为追溯所述目标绿色电力证书的核发过程的依据。If it exists, use the found target green power certificate as a basis for tracing the issuance process of the target green power certificate.
在一些实施例中,所述目标绿色电力证书的核发过程,包括:In some embodiments, the issuance process of the target green power certificate includes:
响应第一对象的绿色电力证书申请请求,生成绿色电力证书,所述绿色电力证书至少包括:描述信息、凭证唯一编号及凭证有效期;In response to the first object's request for a green power certificate, a green power certificate is generated, the green power certificate includes at least description information, a unique number of the certificate, and the validity period of the certificate;
对所述绿色电力证书进行签名,并将所述签名写入所述绿色电力证书,得到目标绿色电力证书;Signing the green power certificate, and writing the signature into the green power certificate to obtain a target green power certificate;
将所述目标绿色电力证书存储到电力交易区块链中;Storing the target green power certificate in the power transaction blockchain;
将所述目标绿色电力证书及所述目标绿色电力证书在所述电力交易区块链中的存储地址发送至所述第一对象。Sending the target green power certificate and the storage address of the target green power certificate in the power transaction blockchain to the first object.
本申请实施例提供一种基于区块链的绿色电力证书交易装置,包括:The embodiment of the application provides a blockchain-based green power certificate transaction device, including:
触发模块,配置为响应第一对象针对目标绿色电力证书的转移请求,触发电力交易区块链中的转移智能合约执行,所述转移智能合约的执行过程为:将转移记录写入所述电力交易区块链中,所述转移记录用于记录所述目标绿色电力证书的转移信息,所述目标绿色电力证书存储在所述电力交易区块链中;The trigger module is configured to respond to the transfer request of the first object for the target green power certificate and trigger the execution of the transfer smart contract in the power transaction blockchain. The execution process of the transfer smart contract is: writing a transfer record into the power transaction In the blockchain, the transfer record is used to record transfer information of the target green power certificate, and the target green power certificate is stored in the power transaction blockchain;
发送模块,配置为从电力交易区块链中获取所述目标绿色电力证书及所述转移记录在所述电力交易区块链上的地址,将所述目标绿色电力证书及所述转移记录在所述电力交易区块链中的地址发送给所述转移请求中的第二对象,以使所述第二对象向所述第一对象支付。The sending module is configured to obtain the target green power certificate and the address of the transfer record on the power transaction blockchain from the power transaction blockchain, and record the target green power certificate and the transfer in the power transaction blockchain. The address in the power transaction blockchain is sent to the second object in the transfer request, so that the second object pays the first object.
在一些实施例中,所述装置还包括:In some embodiments, the device further includes:
第一查找模块,配置为响应针对所述目标绿色电力证书的验证请求,在所述电力交易区块链中查找是否存在所述目标绿色电力证书;The first search module is configured to respond to the verification request for the target green power certificate, and search for the existence of the target green power certificate in the power transaction blockchain;
第一确定模块,配置为若在所述电力交易区块链中存在所述目标绿色电力证书,则将查找到的目标绿色电力证书作为对所述目标绿色电力证书的真实有效性进行验证的依据。The first determining module is configured to, if the target green power certificate exists in the power transaction blockchain, use the found target green power certificate as a basis for verifying the authenticity of the target green power certificate .
在一些实施例中,所述装置还包括:In some embodiments, the device further includes:
第二查找模块,配置为响应针对所述目标绿色电力证书的转移过程追溯请求,在所述电力交易区块链中查找是否存在与所述目标绿色电力证书对应的转移记录;The second search module is configured to respond to the transfer process trace request for the target green power certificate, and search for whether there is a transfer record corresponding to the target green power certificate in the power transaction blockchain;
第二确定模块,配置为若在所述电力交易区块链中存在所述目标绿色电力证书对应的转移记录,则将查找到的所述目标绿色电力证书对应的转移记录作为追溯所述目标绿色电力证书的转移过程的依据。The second determining module is configured to, if there is a transfer record corresponding to the target green power certificate in the power transaction blockchain, use the found transfer record corresponding to the target green power certificate as the traceable target green The basis for the transfer process of the power certificate.
在一些实施例中,所述装置还包括:In some embodiments, the device further includes:
第三查找模块,配置为响应针对所述目标绿色电力证书的核发过程追溯请求,在所述电力交易区块链中查找是否存在所述目标绿色电力证书;The third searching module is configured to respond to the request for tracing the issuance process of the target green power certificate, and search for the existence of the target green power certificate in the power transaction blockchain;
第三确定模块,配置为若在所述电力交易区块链中存在所述目标绿色电力证书,则将查找到的目标绿色电力证书作为追溯所述目标绿色电力证书的核发过程的依据。The third determining module is configured to, if the target green power certificate exists in the power transaction blockchain, use the found target green power certificate as a basis for tracing the issuance process of the target green power certificate.
在一些实施例中,所述装置还包括:核发模块,配置为:In some embodiments, the device further includes: an issuing module configured to:
响应第一对象的绿色电力证书申请请求,生成绿色电力证书,所述绿色电力证书至少包括:描述信息、凭证唯一编号及凭证有效期;In response to the first object's request for a green power certificate, a green power certificate is generated, the green power certificate includes at least description information, a unique number of the certificate, and the validity period of the certificate;
对所述绿色电力证书进行签名,并将所述签名写入所述绿色电力证书,得到目标绿色电力证书;Signing the green power certificate, and writing the signature into the green power certificate to obtain a target green power certificate;
将所述目标绿色电力证书存储到电力交易区块链中;Storing the target green power certificate in the power transaction blockchain;
将所述目标绿色电力证书及所述目标绿色电力证书在所述电力交易区块链中的存储地址发送至所述第一对象。Sending the target green power certificate and the storage address of the target green power certificate in the power transaction blockchain to the first object.
本申请实施例提供一种存储介质,存储有可执行程序,所述可执行程序被处理器执行时,实现上述的基于区块链的绿色电力证书交易方法。The embodiment of the present application provides a storage medium that stores an executable program, and when the executable program is executed by a processor, the above-mentioned blockchain-based green power certificate transaction method is realized.
与现有技术相比,本申请的有益效果为:Compared with the prior art, the beneficial effects of this application are:
在本申请中,目标绿色电力证书存储在电力交易区块链中,可以防止目标绿色电力证书被篡改,基于此,响应针对目标绿色电力证书的转移请求,触发电力交易区块链中的转移智能合约执行,将用于记录所述目标绿色电力证书的转移信息的转移记录写入电力交易区块链中,保证目标绿色电力证书及其转移过程可追溯,降低对绿色电力证书及其交易过程进行伪造的风险,以此提高绿色电力证书交易的真实性。In this application, the target green power certificate is stored in the power transaction blockchain, which can prevent the target green power certificate from being tampered with. Based on this, respond to the transfer request for the target green power certificate to trigger the transfer intelligence in the power transaction blockchain Contract execution, the transfer record used to record the transfer information of the target green power certificate is written into the power transaction blockchain, to ensure that the target green power certificate and its transfer process can be traced, and reduce the need for the green power certificate and its transaction process. The risk of forgery in order to improve the authenticity of green power certificate transactions.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained from these drawings without creative labor.
图1是本申请提供的一种区块链系统的结构示意图;Figure 1 is a schematic diagram of the structure of a blockchain system provided by this application;
图2是本申请提供的一种基于区块链的绿色电力证书交易方法实施例1的流程图;Figure 2 is a flowchart of Embodiment 1 of a blockchain-based green power certificate transaction method provided by this application;
图3是本申请提供的一种基于区块链的绿色电力证书交易方法实施例2的流程图;Figure 3 is a flowchart of Embodiment 2 of a blockchain-based green power certificate transaction method provided by this application;
图4是本申请提供的一种基于区块链的绿色电力证书交易方法实施例3的流程图;Figure 4 is a flowchart of Embodiment 3 of a blockchain-based green power certificate transaction method provided by this application;
图5是本申请提供的一种基于区块链的绿色电力证书交易方法实施例4的流程图;Figure 5 is a flowchart of Embodiment 4 of a blockchain-based green power certificate transaction method provided by this application;
图6是本申请提供的一种基于区块链的绿色电力证书交易装置的逻辑结构示意图;Figure 6 is a schematic diagram of the logical structure of a blockchain-based green power certificate transaction device provided by this application;
图7为本申请提供的一种基于区块链的绿色电力证书交易装置的硬件组成结构示意图。FIG. 7 is a schematic diagram of the hardware composition structure of a blockchain-based green power certificate transaction device provided by this application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
本申请实施例公开了一种基于区块链的绿色电力证书交易方法,包括:响应第一对象针对目标绿色电力证书的转移请求,触发电力交易区块链中的转移智能合约执行,所述转移智能合约的执行过程为:将转移记录写入所述电力交易区块链中,所述转移记录用于记录所述目标绿色电力证书的转移信息,所述目标绿色电力证书存储在所述电力交易区块链中;从电力交易区块链中获取所述目标绿色电力证书及所述转移记录在所述电力交易区块链上的地址,将所述目标绿色电力证书及所述转移记录在所述电力交易区块链中的地址发送给所述转移请求中的第二对象,以使所述第二对象向所述第一对象支付。在本申请中,通过以上方式保证绿色电力证书交易的真实性。The embodiment of the application discloses a blockchain-based green power certificate transaction method, which includes: responding to a transfer request of a first object for a target green power certificate, triggering the execution of a transfer smart contract in the power transaction blockchain, the transfer The execution process of the smart contract is: writing a transfer record into the power transaction blockchain, the transfer record is used to record the transfer information of the target green power certificate, and the target green power certificate is stored in the power transaction In the block chain; obtain the target green power certificate and the transfer record address on the power transaction block chain from the power transaction block chain, and record the target green power certificate and the transfer in the power transaction block chain The address in the power transaction blockchain is sent to the second object in the transfer request, so that the second object pays the first object. In this application, the authenticity of the green power certificate transaction is guaranteed through the above methods.
在对本申请实施例公开的基于区块链的绿色电力证书交易方法进行介绍之前,对基于区块链的绿色电力证书交易方法所依赖的区块链系统进行介绍,如图1所示的,区块链系统包括:最底层的电力交易链,包括节点管理、共识机制、智能合约、P2P网络等模块,为上层应用提供支撑;中间层为区块链身份管理和区块链监控与管理模块,提供接入区块链成员管理和区块链运行状态监控能力;上层应用为区块链绿证交易平台,提供绿证发行、交易、验证和追溯的功能。Before introducing the blockchain-based green power certificate transaction method disclosed in the embodiments of this application, the blockchain system on which the blockchain-based green power certificate transaction method relies is introduced. As shown in Figure 1, the area The blockchain system includes: the lowest level of power transaction chain, including node management, consensus mechanism, smart contract, P2P network and other modules, which provide support for upper-level applications; the middle layer is blockchain identity management and blockchain monitoring and management modules, Provide access to blockchain member management and blockchain operating status monitoring capabilities; the upper application is the blockchain green certificate trading platform, which provides the functions of green certificate issuance, transaction, verification and traceability.
接下来对本申请实施例公开的基于区块链的绿色电力证书交易方法进行介绍,如图2所示的,为本申请提供的一种基于区块链的绿色电力证书交易方法实施例1的流程图,可以包括以下步骤:Next, the blockchain-based green power certificate transaction method disclosed in the embodiments of this application is introduced. As shown in Figure 2, the process of Embodiment 1 of the blockchain-based green power certificate transaction method provided for this application The diagram can include the following steps:
步骤S11、响应第一对象针对目标绿色电力证书的转移请求,触发电力交易区块链中的转移智能合约执行,所述转移智能合约的执行过程为:将转移记录写入所述电力交易区块链中,所述转移记录用于记录所述目标绿色电力证书的转移信息,所述目标绿色电力证书存储在所述电力交易区块链中。Step S11: In response to the transfer request of the first object for the target green power certificate, trigger the execution of the transfer smart contract in the power transaction blockchain, and the execution process of the transfer smart contract is: writing a transfer record into the power transaction block In the chain, the transfer record is used to record the transfer information of the target green power certificate, and the target green power certificate is stored in the power transaction blockchain.
目标绿色电力证书可以理解为:第一对象申请的绿色电力证书。其中,目标绿色电力证书的核发过程可以包括:The target green power certificate can be understood as: the green power certificate applied by the first object. Among them, the issuance process of the target green power certificate can include:
A11、响应第一对象的绿色电力证书申请请求,生成绿色电力证书,所述绿色电力证书至少包括:描述信息、凭证唯一编号及凭证有效期;A11. In response to the first object’s request for a green power certificate, a green power certificate is generated, and the green power certificate includes at least description information, a unique voucher number, and a period of validity of the voucher;
A12、对所述绿色电力证书进行签名,并将所述签名写入所述绿色电力证书,得到目标绿色电力证书;A12. Sign the green power certificate, and write the signature into the green power certificate to obtain a target green power certificate;
A13、将所述目标绿色电力证书存储到电力交易区块链中;A13. Store the target green power certificate in the power transaction blockchain;
A14、将所述目标绿色电力证书及所述目标绿色电力证书在所述电力交易区块链中的存储地址发送至所述第一对象。A14. Send the target green power certificate and the storage address of the target green power certificate in the power transaction blockchain to the first object.
所述目标绿色电力证书的转移信息至少可以包括:第一对象的信息、参与目标绿色电力证书交易的另一个对象的信息及目标绿色电力证书的索引信息。目标绿色电力证书的索引信息可以用于在所述电力交易区块链中查找所述目标绿色电力证书。The transfer information of the target green power certificate may include at least: information of the first object, information of another object participating in the target green power certificate transaction, and index information of the target green power certificate. The index information of the target green power certificate may be used to search for the target green power certificate in the power transaction blockchain.
当然,目标绿色电力证书的转移信息还可以包括:目标绿色电力证书及其关联信息(如,第一对象的公钥)的签名。Of course, the transfer information of the target green power certificate may also include the signature of the target green power certificate and its associated information (for example, the public key of the first object).
响应第一对象针对目标绿色电力证书的转移请求,触发电力交易区块链中的转移智能合约执行的过程,可以包括但不局限于:In response to the transfer request of the first object for the target green power certificate, the process of triggering the execution of the transfer smart contract in the power transaction blockchain can include but is not limited to:
将第一对象与转移请求中的第二对象签署的交易合同的关键信息写入电力交易区块链,触发转移智能合约执行。The key information of the transaction contract signed by the first object and the second object in the transfer request is written into the power transaction blockchain to trigger the execution of the transfer smart contract.
所述转移请求中的第二对象可以理解为:接收第一对象转移的目标绿色电力证书的对象。The second object in the transfer request can be understood as: an object that receives the target green power certificate transferred by the first object.
步骤S12、从电力交易区块链中获取所述目标绿色电力证书及所述转移记录在所述电力交易区块链上的地址,将所述目标绿色电力证书及所述转移记录在所述电力交易区块链中的地址发送给所述转移请求中的第二对象,以使所述第二对象向所述第一对象支付。Step S12. Obtain the target green power certificate and the address recorded on the power transaction blockchain from the power transaction blockchain, and record the target green power certificate and the transfer in the power transaction blockchain. The address in the transaction blockchain is sent to the second object in the transfer request, so that the second object pays the first object.
将所述转移记录在所述电力交易区块链中的地址发送给转移请求中的第二对象,可以保证第二对象可以根据转移记录追溯目标绿色电力证书的交易过程,降低对绿色电力证书的交易过程进行伪造的风险,以此提高绿色电力证书的交易过程的真实性。Sending the address of the transfer record in the power transaction blockchain to the second object in the transfer request can ensure that the second object can trace the transaction process of the target green power certificate according to the transfer record, and reduce the risk of the green power certificate. The risk of forgery in the transaction process, so as to improve the authenticity of the transaction process of the green power certificate.
作为本申请另一可选实施例,参照图3,为本申请提供的一种基于区块链的绿色电力证书交易方法实施例2的流程示意图,本实施例主要是对上述实施例1描述的基于区块链的绿色电力证书交易方法的扩展方案,如图3所示,该方法可以包括但并不局限于以下步骤:As another optional embodiment of this application, referring to FIG. 3, a schematic flowchart of Embodiment 2 of a blockchain-based green power certificate transaction method provided for this application. This embodiment mainly describes the foregoing Embodiment 1. The extended scheme of the blockchain-based green power certificate transaction method is shown in Figure 3. The method can include but is not limited to the following steps:
步骤S21、响应第一对象针对目标绿色电力证书的转移请求,触发电力交易区块链中的转移智能合约执行,所述转移智能合约的执行过程为:将转移记录写入所述电力交易区块链中,所述转移记录用于记录所述目标绿色电力证书的转移信息,所述目标绿色电力证书存储在所述电力交易区块链中。Step S21: In response to the transfer request of the first object for the target green power certificate, trigger the execution of the transfer smart contract in the power transaction block chain. The execution process of the transfer smart contract is: writing a transfer record into the power transaction block In the chain, the transfer record is used to record the transfer information of the target green power certificate, and the target green power certificate is stored in the power transaction blockchain.
步骤S22、从电力交易区块链中获取所述目标绿色电力证书及所述转移记录在所述电力交易区块链上的地址,将所述目标绿色电力证书及所述转移记录在所述电力交易区块链中的地址发送给所述转移请求中的第二对象,以 使所述第二对象向所述第一对象支付。Step S22: Obtain the target green power certificate and the address of the transfer record on the power transaction blockchain from the power transaction blockchain, and record the target green power certificate and the transfer in the power transaction blockchain. The address in the transaction blockchain is sent to the second object in the transfer request, so that the second object pays the first object.
步骤S21-S22的详细过程可以参见实施例1中步骤S11-S12的相关介绍,在此不再赘述。For the detailed process of steps S21-S22, please refer to the related introduction of steps S11-S12 in Embodiment 1, which will not be repeated here.
步骤S23、响应针对所述目标绿色电力证书的验证请求,在所述电力交易区块链中查找是否存在所述目标绿色电力证书。Step S23: In response to the verification request for the target green power certificate, search for whether the target green power certificate exists in the power transaction blockchain.
若存在,则执行步骤S24。If it exists, step S24 is executed.
若电力交易区块链中存在目标绿色电力证书,基于电力交易区块链中数据不可篡改的特性,可以提高目标绿色电力证书的可信度。If there is a target green power certificate in the power transaction blockchain, the credibility of the target green power certificate can be improved based on the non-tamperable characteristics of the data in the power transaction blockchain.
步骤S24、将查找到的目标绿色电力证书作为对所述目标绿色电力证书的真实有效性进行验证的依据。Step S24: Use the found target green power certificate as a basis for verifying the authenticity of the target green power certificate.
可以将可信度高的目标绿色电力证书,作为对所述目标绿色电力证书的真实有效性进行验证的依据,以提高验证的可靠性。The target green power certificate with high credibility can be used as a basis for verifying the authenticity of the target green power certificate, so as to improve the reliability of the verification.
作为本申请另一可选实施例,参照图4,为本申请提供的一种基于区块链的绿色电力证书交易方法实施例3的流程示意图,本实施例主要是对上述实施例1描述的基于区块链的绿色电力证书交易方法的扩展方案,如图4所示,该方法可以包括但并不局限于以下步骤:As another optional embodiment of this application, referring to FIG. 4, this application provides a schematic flow chart of Embodiment 3 of a blockchain-based green power certificate transaction method. This embodiment mainly describes the foregoing Embodiment 1. The extended scheme of the blockchain-based green power certificate transaction method is shown in Figure 4. The method can include but is not limited to the following steps:
步骤S31、响应第一对象针对目标绿色电力证书的转移请求,触发电力交易区块链中的转移智能合约执行,所述转移智能合约的执行过程为:将转移记录写入所述电力交易区块链中,所述转移记录用于记录所述目标绿色电力证书的转移信息,所述目标绿色电力证书存储在所述电力交易区块链中。Step S31: In response to the transfer request of the first object for the target green power certificate, trigger the execution of the transfer smart contract in the power transaction block chain. The execution process of the transfer smart contract is: writing a transfer record into the power transaction block In the chain, the transfer record is used to record the transfer information of the target green power certificate, and the target green power certificate is stored in the power transaction blockchain.
步骤S32、从电力交易区块链中获取所述目标绿色电力证书及所述转移记录在所述电力交易区块链上的地址,将所述目标绿色电力证书及所述转移记录在所述电力交易区块链中的地址发送给所述转移请求中的第二对象,以使所述第二对象向所述第一对象支付。Step S32. Obtain the target green power certificate and the address recorded on the power transaction blockchain from the power transaction blockchain, and record the target green power certificate and the transfer in the power transaction blockchain. The address in the transaction blockchain is sent to the second object in the transfer request, so that the second object pays the first object.
步骤S31-S32的详细过程可以参见实施例1中步骤S11-S12的相关介绍,在此不再赘述。For the detailed process of steps S31-S32, please refer to the related introduction of steps S11-S12 in Embodiment 1, which will not be repeated here.
步骤S33、响应针对所述目标绿色电力证书的转移过程追溯请求,在所 述电力交易区块链中查找是否存在与所述目标绿色电力证书对应的转移记录。Step S33: In response to the request for tracing the transfer process of the target green power certificate, search for whether there is a transfer record corresponding to the target green power certificate in the power transaction blockchain.
若存在,则执行步骤S34。If it exists, step S34 is executed.
步骤S34、将查找到的所述目标绿色电力证书对应的转移记录作为追溯所述目标绿色电力证书的转移过程的依据。Step S34: Use the found transfer record corresponding to the target green power certificate as a basis for tracing the transfer process of the target green power certificate.
需要说明的是,可能会对目标绿色电力证书进行一次或多次转移,但不管是一次转移或多次转移,每次对目标绿色电力证书进行转移的转移记录均在电力交易区块链中有记录。It should be noted that the target green power certificate may be transferred one or more times, but whether it is one transfer or multiple transfers, the transfer record of each transfer of the target green power certificate is in the power transaction blockchain. record.
因此,在对目标绿色电力证书进行一次或多次转移的情况下,均可以对目标绿色电力证书的转移过程进行追溯。Therefore, when the target green power certificate is transferred one or more times, the transfer process of the target green power certificate can be traced.
作为本申请另一可选实施例,参照图5,为本申请提供的一种基于区块链的绿色电力证书交易方法实施例4的流程示意图,本实施例主要是对上述实施例1描述的基于区块链的绿色电力证书交易方法的扩展方案,如图5所示,该方法可以包括但并不局限于以下步骤:As another optional embodiment of this application, referring to FIG. 5, this application provides a schematic flow chart of Embodiment 4 of a blockchain-based green power certificate transaction method. This embodiment mainly describes the foregoing Embodiment 1. The extended scheme of the blockchain-based green power certificate transaction method is shown in Figure 5. The method can include but is not limited to the following steps:
步骤S41、响应第一对象针对目标绿色电力证书的转移请求,触发电力交易区块链中的转移智能合约执行,所述转移智能合约的执行过程为:将转移记录写入所述电力交易区块链中,所述转移记录用于记录所述目标绿色电力证书的转移信息,所述目标绿色电力证书存储在所述电力交易区块链中。Step S41: In response to the transfer request of the first object for the target green power certificate, trigger the execution of the transfer smart contract in the power transaction block chain. The execution process of the transfer smart contract is: writing a transfer record into the power transaction block In the chain, the transfer record is used to record the transfer information of the target green power certificate, and the target green power certificate is stored in the power transaction blockchain.
步骤S42、从电力交易区块链中获取所述目标绿色电力证书及所述转移记录在所述电力交易区块链上的地址,将所述目标绿色电力证书及所述转移记录在所述电力交易区块链中的地址发送给所述转移请求中的第二对象,以使所述第二对象向所述第一对象支付。Step S42. Obtain the target green power certificate and the address recorded on the power transaction blockchain from the power transaction blockchain, and record the target green power certificate and the transfer in the power transaction blockchain. The address in the transaction blockchain is sent to the second object in the transfer request, so that the second object pays the first object.
步骤S43、响应针对所述目标绿色电力证书的核发过程追溯请求,在所述电力交易区块链中查找是否存在所述目标绿色电力证书。Step S43: Responding to the request for tracing the issuance process of the target green power certificate, search for the existence of the target green power certificate in the power transaction blockchain.
若存在,则执行步骤S44。If it exists, step S44 is executed.
步骤S44、将查找到的目标绿色电力证书作为追溯所述目标绿色电力证书的核发过程的依据。Step S44: Use the found target green power certificate as a basis for tracing the issuance process of the target green power certificate.
将查找到的目标绿色电力证书作为追溯所述目标绿色电力证书的核发过程的依据,可以实现对目标绿色电力证书的核发过程的追溯。Using the found target green power certificate as a basis for tracing the issuance process of the target green power certificate, the traceability of the issuance process of the target green power certificate can be realized.
接下来对本申请提供的基于区块链的绿色电力证书交易装置进行介绍,下文介绍的基于区块链的绿色电力证书交易装置与上文介绍的基于区块链的绿色电力证书交易方法可相互对应参照。Next, the blockchain-based green power certificate transaction device provided by this application will be introduced. The blockchain-based green power certificate transaction device introduced below and the blockchain-based green power certificate transaction method described above can correspond to each other. Reference.
请参见图6,基于区块链的绿色电力证书交易装置包括:触发模块11和发送模块12。Please refer to FIG. 6, the green power certificate transaction device based on the blockchain includes: a trigger module 11 and a sending module 12.
触发模块11,配置为响应第一对象针对目标绿色电力证书的转移请求,触发电力交易区块链中的转移智能合约执行,所述转移智能合约的执行过程为:将转移记录写入所述电力交易区块链中,所述转移记录用于记录所述目标绿色电力证书的转移信息,所述目标绿色电力证书存储在所述电力交易区块链中。The trigger module 11 is configured to respond to the transfer request of the first object for the target green power certificate and trigger the execution of the transfer smart contract in the power transaction blockchain. The execution process of the transfer smart contract is: writing a transfer record to the power In the transaction blockchain, the transfer record is used to record transfer information of the target green power certificate, and the target green power certificate is stored in the power transaction blockchain.
发送模块12,配置为从电力交易区块链中获取所述目标绿色电力证书及所述转移记录在所述电力交易区块链上的地址,将所述目标绿色电力证书及所述转移记录在所述电力交易区块链中的地址发送给所述转移请求中的第二对象,以使所述第二对象向所述第一对象支付。The sending module 12 is configured to obtain the target green power certificate and the address of the transfer record on the power transaction blockchain from the power transaction blockchain, and record the target green power certificate and the transfer in the The address in the power transaction blockchain is sent to the second object in the transfer request, so that the second object pays the first object.
本实施例中,基于区块链的绿色电力证书交易装置还可以包括:In this embodiment, the blockchain-based green power certificate transaction device may further include:
第一查找模块,配置为响应针对所述目标绿色电力证书的验证请求,在所述电力交易区块链中查找是否存在所述目标绿色电力证书;The first search module is configured to respond to the verification request for the target green power certificate, and search for the existence of the target green power certificate in the power transaction blockchain;
第一确定模块,配置为若在所述电力交易区块链中存在所述目标绿色电力证书,则将查找到的目标绿色电力证书作为对所述目标绿色电力证书的真实有效性进行验证的依据。The first determining module is configured to, if the target green power certificate exists in the power transaction blockchain, use the found target green power certificate as a basis for verifying the authenticity of the target green power certificate .
本实施例中,基于区块链的绿色电力证书交易装置还可以包括:In this embodiment, the blockchain-based green power certificate transaction device may further include:
第二查找模块,配置为响应针对所述目标绿色电力证书的转移过程追溯请求,在所述电力交易区块链中查找是否存在与所述目标绿色电力证书对应的转移记录;The second search module is configured to respond to the transfer process trace request for the target green power certificate, and search for whether there is a transfer record corresponding to the target green power certificate in the power transaction blockchain;
第二确定模块,配置为若在所述电力交易区块链中存在所述目标绿色电 力证书对应的转移记录,则将查找到的所述目标绿色电力证书对应的转移记录作为追溯所述目标绿色电力证书的转移过程的依据。The second determining module is configured to, if there is a transfer record corresponding to the target green power certificate in the power transaction blockchain, use the found transfer record corresponding to the target green power certificate as the traceable target green The basis for the transfer process of the power certificate.
本实施例中,基于区块链的绿色电力证书交易装置还可以包括:In this embodiment, the blockchain-based green power certificate transaction device may further include:
第三查找模块,配置为响应针对所述目标绿色电力证书的核发过程追溯请求,在所述电力交易区块链中查找是否存在所述目标绿色电力证书;The third searching module is configured to respond to the request for tracing the issuance process of the target green power certificate, and search for the existence of the target green power certificate in the power transaction blockchain;
第三确定模块,配置为若在所述电力交易区块链中存在所述目标绿色电力证书,则将查找到的目标绿色电力证书作为追溯所述目标绿色电力证书的核发过程的依据。The third determining module is configured to, if the target green power certificate exists in the power transaction blockchain, use the found target green power certificate as a basis for tracing the issuance process of the target green power certificate.
本实施例中,基于区块链的绿色电力证书交易装置还可以包括:In this embodiment, the blockchain-based green power certificate transaction device may further include:
核发模块,配置为:The issuance module is configured as:
响应第一对象的绿色电力证书申请请求,生成绿色电力证书,所述绿色电力证书至少包括:描述信息、凭证唯一编号及凭证有效期;In response to the first object's request for a green power certificate, a green power certificate is generated, the green power certificate includes at least description information, a unique number of the certificate, and the validity period of the certificate;
对所述绿色电力证书进行签名,并将所述签名写入所述绿色电力证书,得到目标绿色电力证书;Signing the green power certificate, and writing the signature into the green power certificate to obtain a target green power certificate;
将所述目标绿色电力证书存储到电力交易区块链中;Storing the target green power certificate in the power transaction blockchain;
将所述目标绿色电力证书及所述目标绿色电力证书在所述电力交易区块链中的存储地址发送至所述第一对象。Sending the target green power certificate and the storage address of the target green power certificate in the power transaction blockchain to the first object.
需要说明的是,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。It should be noted that each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设 备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities. Or there is any such actual relationship or sequence between operations. Moreover, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes those that are not explicitly listed Other elements of, or also include elements inherent to this process, method, article or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or equipment that includes the element.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above device, the functions are divided into various units and described separately. Of course, when implementing this application, the functions of each unit can be implemented in the same or multiple software and/or hardware.
本申请实施例还提供一种基于区块链的绿色电力证书交易装置,包括处理器和用于存储能够在处理器上运行的计算机程序的存储器,其中,所述处理器用于运行所述计算机程序时,执行上述的基于区块链的绿色电力证书交易方法的步骤。An embodiment of the application also provides a blockchain-based green power certificate transaction device, including a processor and a memory for storing a computer program that can run on the processor, wherein the processor is used to run the computer program At the time, execute the steps of the above-mentioned blockchain-based green power certificate transaction method.
图7是本申请实施例的基于区块链的绿色电力证书交易装置的硬件组成结构示意图,基于区块链的绿色电力证书交易装置700包括:至少一个处理器701、存储器702和至少一个网络接口703。基于区块链的绿色电力证书交易装置700中的各个组件通过总线系统704耦合在一起。可理解,总线系统704用于实现这些组件之间的连接通信。总线系统704除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图7中将各种总线都标为总线系统704。FIG. 7 is a schematic diagram of the hardware composition structure of a blockchain-based green power certificate transaction device according to an embodiment of the present application. The blockchain-based green power certificate transaction device 700 includes: at least one processor 701, a memory 702, and at least one network interface 703. The various components in the green power certificate transaction device 700 based on the blockchain are coupled together through the bus system 704. It can be understood that the bus system 704 is used to implement connection and communication between these components. In addition to the data bus, the bus system 704 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clear description, various buses are marked as the bus system 704 in FIG. 7.
可以理解,存储器702可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是ROM、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random Access Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机 存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本申请实施例描述的存储器702旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 702 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory. Among them, non-volatile memory can be ROM, Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), and electrically erasable Programmable read-only memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access memory (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface memory, optical disk, or CD-ROM (CD) -ROM, Compact Disc Read-Only Memory); Magnetic surface memory can be disk storage or tape storage. The volatile memory may be a random access memory (RAM, Random Access Memory), which is used as an external cache. By way of exemplary but not restrictive description, many forms of RAM are available, such as static random access memory (SRAM, Static Random Access Memory), synchronous static random access memory (SSRAM, Synchronous Static Random Access Memory), and dynamic random access memory. Memory (DRAM, Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous Dynamic Random Access Memory), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), enhanced Type synchronous dynamic random access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronous connection dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct memory bus random access memory (DRRAM, Direct Rambus Random Access Memory) ). The memory 702 described in the embodiment of the present application is intended to include, but is not limited to, these and any other suitable types of memory.
本申请实施例中的存储器702用于存储各种类型的数据以支持基于区块链的绿色电力证书交易装置700的操作。这些数据的示例包括:用于在基于区块链的绿色电力证书交易装置700上操作的任何计算机程序,如应用程序7022。实现本申请实施例方法的程序可以包含在应用程序7022中。The memory 702 in the embodiment of the present application is used to store various types of data to support the operation of the green power certificate transaction device 700 based on the blockchain. Examples of such data include: any computer program used to operate on the blockchain-based green power certificate transaction device 700, such as the application program 7022. The program for implementing the method of the embodiment of the present application may be included in the application program 7022.
上述本申请实施例揭示的方法可以应用于处理器701中,或者由处理器701实现。处理器701可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器701中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器701可以是通用处理器、数字信号处理器(DSP,Digital Signal Processor),或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器701可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器702,处理器701读取存储器702中的信息,结合其硬件完成前述方法的步骤。The method disclosed in the foregoing embodiment of the present application may be applied to the processor 701 or implemented by the processor 701. The processor 701 may be an integrated circuit chip with signal processing capabilities. In the implementation process, the steps of the foregoing method can be completed by an integrated logic circuit of hardware in the processor 701 or instructions in the form of software. The aforementioned processor 701 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like. The processor 701 may implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor or the like. Combining the steps of the method disclosed in the embodiments of the present application, it may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, and the storage medium is located in the memory 702. The processor 701 reads the information in the memory 702 and completes the steps of the foregoing method in combination with its hardware.
在示例性实施例中,基于区块链的绿色电力证书交易装置700可以被一个或多个应用专用集成电路(ASIC,Application Specific Integrated Circuit)、DSP、 可编程逻辑器件(PLD,Programmable Logic Device)、复杂可编程逻辑器件(CPLD,Complex Programmable Logic Device)、FPGA、通用处理器、控制器、MCU、MPU、或其他电子元件实现,用于执行前述方法。In an exemplary embodiment, the blockchain-based green power certificate transaction device 700 can be implemented by one or more application specific integrated circuits (ASIC, Application Specific Integrated Circuit), DSP, and Programmable Logic Device (PLD, Programmable Logic Device). , Complex Programmable Logic Device (CPLD, Complex Programmable Logic Device), FPGA, general-purpose processor, controller, MCU, MPU, or other electronic components to implement the foregoing methods.
本申请实施例还提供了一种存储介质,用于存储计算机程序,该计算机程序使得计算机执行本申请实施例基于区块链的绿色电力证书交易方法中的相应流程,为了简洁,在此不再赘述。The embodiment of the application also provides a storage medium for storing a computer program that enables the computer to execute the corresponding process in the blockchain-based green power certificate transaction method of the embodiment of the application. For the sake of brevity, it will not be omitted here. Go into details.
以上对本申请所提供的一种基于区块链的绿色电力证书交易方法及装置进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The above provides a detailed introduction to the blockchain-based green power certificate transaction method and device provided by this application. Specific examples are used in this article to illustrate the principles and implementation of this application. The description of the above embodiments is only used To help understand the methods and core ideas of this application; at the same time, for those of ordinary skill in the art, according to the ideas of this application, there will be changes in the specific implementation and scope of application. In summary, this specification The content should not be construed as a limitation on this application.

Claims (12)

  1. 一种基于区块链的绿色电力证书交易方法,包括:A blockchain-based green power certificate transaction method, including:
    响应第一对象针对目标绿色电力证书的转移请求,触发电力交易区块链中的转移智能合约执行,所述转移智能合约的执行过程为:将转移记录写入所述电力交易区块链中,所述转移记录用于记录所述目标绿色电力证书的转移信息,所述目标绿色电力证书存储在所述电力交易区块链中;In response to the transfer request of the first object for the target green power certificate, trigger the execution of the transfer smart contract in the power transaction blockchain. The execution process of the transfer smart contract is: writing the transfer record into the power transaction blockchain, The transfer record is used to record transfer information of the target green power certificate, and the target green power certificate is stored in the power transaction blockchain;
    从电力交易区块链中获取所述目标绿色电力证书及所述转移记录在所述电力交易区块链上的地址,将所述目标绿色电力证书及所述转移记录在所述电力交易区块链中的地址发送给所述转移请求中的第二对象,以使所述第二对象根据所述转移记录追溯所述目标绿色电力证书的交易过程,并向所述第一对象支付。Obtain the target green power certificate and the transfer record address on the power transaction blockchain from the power transaction blockchain, and record the target green power certificate and the transfer in the power transaction block The address in the chain is sent to the second object in the transfer request, so that the second object traces the transaction process of the target green power certificate according to the transfer record, and pays the first object.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    响应对所述目标绿色电力证书进行验证的请求,在所述电力交易区块链中查找是否存在所述目标绿色电力证书;In response to the request for verification of the target green power certificate, search for the presence of the target green power certificate in the power transaction blockchain;
    若存在,将查找到的目标绿色电力证书作为对所述目标绿色电力证书的真实有效性进行验证的依据。If it exists, use the found target green power certificate as a basis for verifying the authenticity of the target green power certificate.
  3. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    响应对所述目标绿色电力证书的进行转移过程追溯的请求,在所述电力交易区块链中查找是否存在所述目标绿色电力证书对应的转移记录;Responding to the request for tracing the transfer process of the target green power certificate, search for whether there is a transfer record corresponding to the target green power certificate in the power transaction blockchain;
    若存在,将查找到的所述目标绿色电力证书对应的转移记录作为对所述目标绿色电力证书进行转移过程追溯的依据。If it exists, use the found transfer record corresponding to the target green power certificate as the basis for tracing the transfer process of the target green power certificate.
  4. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    响应对所述目标绿色电力证书进行核发过程追溯的请求,在所述电力交易区块链中查找是否存在所述目标绿色电力证书;In response to the request for tracing the issuance process of the target green power certificate, search for the existence of the target green power certificate in the power transaction blockchain;
    若存在,将查找到的目标绿色电力证书作为对所述目标绿色电力证书进行核发过程追溯的依据。If it exists, use the found target green power certificate as a basis for tracing the issuance process of the target green power certificate.
  5. 根据权利要求4所述的方法,其中,所述核发过程,包括:The method according to claim 4, wherein the issuance process includes:
    响应第一对象的绿色电力证书申请请求,生成绿色电力证书,所述绿色电力证书至少包括:描述信息、凭证唯一编号及凭证有效期;In response to the first object's request for a green power certificate, a green power certificate is generated, the green power certificate includes at least description information, a unique number of the certificate, and the validity period of the certificate;
    对所述绿色电力证书进行签名,并将所述签名写入所述绿色电力证书,得到目标绿色电力证书;Signing the green power certificate, and writing the signature into the green power certificate to obtain a target green power certificate;
    将所述目标绿色电力证书存储到电力交易区块链中;Storing the target green power certificate in the power transaction blockchain;
    将所述目标绿色电力证书及所述目标绿色电力证书在所述电力交易区块链中的存储地址发送至所述第一对象。Sending the target green power certificate and the storage address of the target green power certificate in the power transaction blockchain to the first object.
  6. 一种基于区块链的绿色电力证书交易装置,包括:A blockchain-based green power certificate transaction device, including:
    触发模块,用于响应第一对象针对目标绿色电力证书的转移请求,触发电力交易区块链中的转移智能合约执行,所述转移智能合约的执行过程为:将转移记录写入所述电力交易区块链中,所述转移记录用于记录所述目标绿色电力证书的转移信息,所述目标绿色电力证书存储在所述电力交易区块链中;The trigger module is used to respond to the transfer request of the first object for the target green power certificate, and trigger the execution of the transfer smart contract in the power transaction blockchain. The execution process of the transfer smart contract is: writing a transfer record into the power transaction In the blockchain, the transfer record is used to record transfer information of the target green power certificate, and the target green power certificate is stored in the power transaction blockchain;
    发送模块,配置为从电力交易区块链中获取所述目标绿色电力证书及所述转移记录在所述电力交易区块链上的地址,将所述目标绿色电力证书及所述转移记录在所述电力交易区块链中的地址发送给所述转移请求中的第二对象,以使所述第二对象根据所述转移记录追溯所述目标绿色电力证书的交易过程,并向所述第一对象支付。The sending module is configured to obtain the target green power certificate and the address of the transfer record on the power transaction blockchain from the power transaction blockchain, and record the target green power certificate and the transfer in the power transaction blockchain. The address in the power transaction blockchain is sent to the second object in the transfer request, so that the second object traces the transaction process of the target green power certificate according to the transfer record, and sends it to the first Object payment.
  7. 根据权利要求6所述的装置,其中,所述装置还包括:The device according to claim 6, wherein the device further comprises:
    第一查找模块,配置为响应对所述目标绿色电力证书进行验证的请求,在所述电力交易区块链中查找是否存在所述目标绿色电力证书;The first search module is configured to respond to a request for verification of the target green power certificate, and search for whether the target green power certificate exists in the power transaction blockchain;
    第一确定模块,配置为若在所述电力交易区块链中存在所述目标绿色电力证书,则将查找到的目标绿色电力证书作为对所述目标绿色电力证书的真实有效性进行验证的依据。The first determining module is configured to, if the target green power certificate exists in the power transaction blockchain, use the found target green power certificate as a basis for verifying the authenticity of the target green power certificate .
  8. 根据权利要求6所述的装置,其中,所述装置还包括:The device according to claim 6, wherein the device further comprises:
    第二查找模块,配置为响应对所述目标绿色电力证书进行转移过程追溯的请求,在所述电力交易区块链中查找是否存在与所述目标绿色电力证书对应的 转移记录;The second searching module is configured to respond to the request for tracing the transfer process of the target green power certificate, and search for whether there is a transfer record corresponding to the target green power certificate in the power transaction blockchain;
    第二确定模块,配置为若在所述电力交易区块链中存在所述目标绿色电力证书对应的转移记录,则将查找到的所述目标绿色电力证书对应的转移记录作为追溯所述目标绿色电力证书的转移过程的依据。The second determining module is configured to, if there is a transfer record corresponding to the target green power certificate in the power transaction blockchain, use the found transfer record corresponding to the target green power certificate as the traceable target green The basis for the transfer process of the power certificate.
  9. 根据权利要求6所述的装置,其中,所述装置还包括:The device according to claim 6, wherein the device further comprises:
    第三查找模块,配置为响应对所述目标绿色电力证书进行核发过程追溯的请求,在所述电力交易区块链中查找是否存在所述目标绿色电力证书;The third searching module is configured to respond to the request for tracing the issuance process of the target green power certificate, and search for the existence of the target green power certificate in the power transaction blockchain;
    第三确定模块,配置为若在所述电力交易区块链中存在所述目标绿色电力证书,则将查找到的目标绿色电力证书作为对所述目标绿色电力证书进行核发过程追溯的依据。The third determining module is configured to, if the target green power certificate exists in the power transaction blockchain, use the found target green power certificate as a basis for tracing the issuance process of the target green power certificate.
  10. 根据权利要求6-9任意一项所述的装置,其中,所述装置还包括:核发模块,配置为:The device according to any one of claims 6-9, wherein the device further comprises: a verification and issuance module configured to:
    响应第一对象的绿色电力证书申请请求,生成绿色电力证书,所述绿色电力证书至少包括:描述信息、凭证唯一编号及凭证有效期;In response to the first object's request for a green power certificate, a green power certificate is generated, the green power certificate includes at least description information, a unique number of the certificate, and the validity period of the certificate;
    对所述绿色电力证书进行签名,并将所述签名写入所述绿色电力证书,得到目标绿色电力证书;Signing the green power certificate, and writing the signature into the green power certificate to obtain a target green power certificate;
    将所述目标绿色电力证书存储到电力交易区块链中;Storing the target green power certificate in the power transaction blockchain;
    将所述目标绿色电力证书及所述目标绿色电力证书在所述电力交易区块链中的存储地址发送至所述第一对象。Sending the target green power certificate and the storage address of the target green power certificate in the power transaction blockchain to the first object.
  11. 一种存储介质,,其特征在于,存储有可执行程序,所述可执行程序被处理器执行时,实现权利要求1至7任一项所述的基于区块链的绿色电力证书交易方法。A storage medium, characterized in that an executable program is stored, and when the executable program is executed by a processor, the blockchain-based green power certificate transaction method according to any one of claims 1 to 7 is realized.
  12. 一种基于区块链的绿色电力证书交易装置,其特征在于,包括处理器和用于存储能够在处理器上运行的计算机程序的存储器,其中,A blockchain-based green power certificate transaction device, which is characterized by comprising a processor and a memory for storing computer programs that can run on the processor, wherein:
    所述处理器用于运行所述计算机程序时,执行权利要求1至7任一项所述的基于区块链的绿色电力证书交易方法的步骤。When the processor is used to run the computer program, it executes the steps of the blockchain-based green power certificate transaction method according to any one of claims 1 to 7.
PCT/CN2020/091404 2020-03-24 2020-05-20 Blockchain-based green power certificate transaction method and apparatus, and storage medium WO2021189629A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010211236.5 2020-03-24
CN202010211236.5A CN111080421A (en) 2020-03-24 2020-03-24 Green power certificate transaction method and device based on block chain

Publications (1)

Publication Number Publication Date
WO2021189629A1 true WO2021189629A1 (en) 2021-09-30

Family

ID=70324664

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/091404 WO2021189629A1 (en) 2020-03-24 2020-05-20 Blockchain-based green power certificate transaction method and apparatus, and storage medium

Country Status (2)

Country Link
CN (1) CN111080421A (en)
WO (1) WO2021189629A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115577234A (en) * 2022-11-21 2023-01-06 中国电力科学研究院有限公司 Node power supply emission factor calculation method and system based on power flow distribution
CN115983875A (en) * 2023-03-16 2023-04-18 浙江华云信息科技有限公司 Method and device for tracing rights and interests value data in green environment
CN116993039A (en) * 2023-09-25 2023-11-03 浙江华云信息科技有限公司 Time sequence feature-based green electricity and power data processing method and system for both sender and sender

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111106940B (en) 2019-11-25 2022-11-04 广州大学 Certificate transaction verification method of resource public key infrastructure based on block chain
CN111080421A (en) * 2020-03-24 2020-04-28 国网电子商务有限公司 Green power certificate transaction method and device based on block chain
CN112418854A (en) * 2020-10-09 2021-02-26 深圳华工能源技术有限公司 Energy-saving certificate management method based on block chain technology
CN112270550B (en) * 2020-10-21 2024-04-16 北京电链科技有限公司 New energy power tracing method and system based on blockchain
CN112541736A (en) * 2020-12-15 2021-03-23 国网浙江省电力有限公司双创中心 Green power certificate issuing system and method based on block chain
CN113438084B (en) * 2021-06-23 2022-11-29 国网北京市电力公司 Green power source tracing method and system based on R-PBFT consensus algorithm and timestamp
CN113554359B (en) * 2021-09-22 2021-12-17 国网区块链科技(北京)有限公司 Green power authentication method, device and system based on block chain

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107480987A (en) * 2017-07-25 2017-12-15 浙江大学 Green electric power supply certificate core hair based on block chain technology subscribes method and system
CN109034840A (en) * 2018-07-06 2018-12-18 北京融链科技有限公司 The green card method of commerce and system generated based on clean energy resource
CN109615396A (en) * 2018-12-06 2019-04-12 广东电网有限责任公司信息中心 A kind of new energy operation system and method based on block chain technology
CN110599182A (en) * 2019-09-27 2019-12-20 腾讯科技(深圳)有限公司 Resource management method and device
CN110599345A (en) * 2019-09-24 2019-12-20 北京艾摩瑞策科技有限公司 Option transaction data processing method and device based on block chain
CN111080421A (en) * 2020-03-24 2020-04-28 国网电子商务有限公司 Green power certificate transaction method and device based on block chain

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108197944B (en) * 2017-11-22 2021-03-30 远光软件股份有限公司 Resource transaction method and device based on block chain technology
US20190205877A1 (en) * 2018-01-03 2019-07-04 Coolbitx Ltd. Method of digital asset transaction
CN110335147A (en) * 2019-05-29 2019-10-15 西安电子科技大学 A kind of digital asset Information Exchange System and method based on block chain
CN110599213B (en) * 2019-09-29 2024-03-29 腾讯科技(深圳)有限公司 Article management method and device based on blockchain network and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107480987A (en) * 2017-07-25 2017-12-15 浙江大学 Green electric power supply certificate core hair based on block chain technology subscribes method and system
CN109034840A (en) * 2018-07-06 2018-12-18 北京融链科技有限公司 The green card method of commerce and system generated based on clean energy resource
CN109615396A (en) * 2018-12-06 2019-04-12 广东电网有限责任公司信息中心 A kind of new energy operation system and method based on block chain technology
CN110599345A (en) * 2019-09-24 2019-12-20 北京艾摩瑞策科技有限公司 Option transaction data processing method and device based on block chain
CN110599182A (en) * 2019-09-27 2019-12-20 腾讯科技(深圳)有限公司 Resource management method and device
CN111080421A (en) * 2020-03-24 2020-04-28 国网电子商务有限公司 Green power certificate transaction method and device based on block chain

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115577234A (en) * 2022-11-21 2023-01-06 中国电力科学研究院有限公司 Node power supply emission factor calculation method and system based on power flow distribution
CN115983875A (en) * 2023-03-16 2023-04-18 浙江华云信息科技有限公司 Method and device for tracing rights and interests value data in green environment
CN116993039A (en) * 2023-09-25 2023-11-03 浙江华云信息科技有限公司 Time sequence feature-based green electricity and power data processing method and system for both sender and sender
CN116993039B (en) * 2023-09-25 2023-12-26 浙江华云信息科技有限公司 Time sequence feature-based green electricity and power data processing method and system for both sender and sender

Also Published As

Publication number Publication date
CN111080421A (en) 2020-04-28

Similar Documents

Publication Publication Date Title
WO2021189629A1 (en) Blockchain-based green power certificate transaction method and apparatus, and storage medium
CN109636144B (en) Block chain risk assessment supply chain financial method, device, equipment and storage medium
TWI728678B (en) Block chain-based enterprise certification and certification tracing method, device and equipment
WO2021068636A1 (en) Block chain-based creation method, apparatus, device and system for verifiable claim
US11544794B2 (en) Claim settlement method and apparatus employing blockchain technology
TWI715217B (en) Screen recording and evidence collection method, system and electronic equipment based on blockchain
WO2018103554A1 (en) Business data processing method, verification method, apparatus and system
US20210312545A1 (en) Decentralized Systems and Methods for Managing Loans and Securities
TWI764148B (en) Risk prediction and training method, device and electronic device for risk prediction model
US10812477B2 (en) Blockchain-based enterprise authentication method, apparatus, and device, and blockchain-based authentication traceability method, apparatus, and device
TW201822033A (en) Resource processing method and apparatus
US20210049715A1 (en) Blockchain-based data procesing method, apparatus, and electronic device
TW202022754A (en) Invoice creating method and device based on block chain and electronic equipment
WO2020228365A1 (en) Reconciliation method and device employing consortium chain, and electronic apparatus
TW202008235A (en) Transaction method and system based on centralized settlement and block chain storage
CN112184222A (en) Service processing method, device and equipment based on block chain
US20200175588A1 (en) Blockchain-based payment
CN108876371B (en) Consumption data storage, data verification and data source tracing method based on block chain
US20210174446A1 (en) Offtake-based asset backed securities and co2 removal models
TW201933054A (en) Contract signing method and apparatus
CN109493048A (en) Financial accounting method, apparatus, equipment and storage medium based on block chain
TWI415134B (en) Data accessing method, controller and system using the same
CN110912804B (en) Intelligent batched lawyer letter sending system and method based on block chain
CN115858424A (en) Method and apparatus for authenticating a memory module
WO2023070842A1 (en) Flash memory, flash memory erase/write counting method, electronic device, and computer storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20927209

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20927209

Country of ref document: EP

Kind code of ref document: A1