The invention provides an
electricity-carbon collaborative transaction method and
system based on an alliance chain double-chain architecture, and the method comprises the steps: carrying out the network initialization, and guaranteeing that all participating nodes meet the operation requirements of HyperledgerFabric; secret keys and certificates are generated, and identity certificates and secret keys of all organizations in the network are generated through an
encryption tool provided by Fabric; defining a configuration and creation block, creating a configuration file to define an organization structure of a network, and reserving a channel and
chain code configuration of the network; two channels are configured, and two
independent channels are established for the
electricity market and the carbon emission permit market; submitting a user transaction, including user identity
verification, transaction proposal generation and endorsement node endorsement; transaction
verification and packaging, including transaction packaging and sorting, and block
verification and submission; and intelligent contract auditing: triggering the intelligent contract, auditing the
electricity and carbon data and
processing abnormal data. The transaction efficiency and the
data security can be improved, and the market transparency and the collaborative operation of the electricity and carbon market are promoted.