CN116433309A - Block chain-based carbon asset data processing method - Google Patents

Block chain-based carbon asset data processing method Download PDF

Info

Publication number
CN116433309A
CN116433309A CN202310434121.6A CN202310434121A CN116433309A CN 116433309 A CN116433309 A CN 116433309A CN 202310434121 A CN202310434121 A CN 202310434121A CN 116433309 A CN116433309 A CN 116433309A
Authority
CN
China
Prior art keywords
data
carbon asset
behavior
carbon
behavior data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310434121.6A
Other languages
Chinese (zh)
Inventor
李梦南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Yingtan Environmental Energy Technology Co ltd
Original Assignee
Shanghai Yingtan Environmental Energy Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Yingtan Environmental Energy Technology Co ltd filed Critical Shanghai Yingtan Environmental Energy Technology Co ltd
Priority to CN202310434121.6A priority Critical patent/CN116433309A/en
Publication of CN116433309A publication Critical patent/CN116433309A/en
Pending legal-status Critical Current

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/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/80Management or planning
    • Y02P90/84Greenhouse gas [GHG] management systems

Landscapes

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

Abstract

The invention provides a carbon asset data processing method based on block chains, which is characterized in that a behavior data set and corresponding carbon asset transaction data are respectively obtained based on carbon asset associated behavior data generated by a user, and are independently stored for different block chains, so that different data can be changed and modified later, meanwhile, a mapping relation between two block chains is constructed, the linkage modification of the data stored by the two block chains is facilitated, the whole course record is carried out on the change condition of the carbon asset data, the comprehensiveness and the reliability of the carbon asset data storage record are improved, and dynamic and safe storage service is provided for the carbon asset data.

Description

Block chain-based carbon asset data processing method
Technical Field
The invention relates to the technical field of carbon asset data management, in particular to a carbon asset data processing method based on a blockchain.
Background
Carbon assets are important intangible assets for modern enterprise operations, which have an important impact on enterprise operation policy formulation and enforcement. In the operation process, the enterprises need to adaptively adjust the actual operation state according to the carbon asset change conditions such as the carbon emission quota of the enterprises. Visible carbon assets are important assets for business operations, and are required to be stored in a secret mode. In the prior art, a static storage mode is adopted for storing the carbon asset data, namely only the final result of the carbon asset data is stored, the change condition of the carbon asset data is not recorded in the whole course, the comprehensiveness and reliability of the carbon asset data storage record are reduced, and dynamic and safe storage service cannot be provided for the carbon asset data.
Disclosure of Invention
Aiming at the defects existing in the prior art, the invention provides a carbon asset data processing method based on a blockchain, which is used for carrying out behavior feature recognition on carbon asset associated behavior data generated by a user, dividing all the carbon asset associated behavior data into a plurality of behavior data sets and storing the behavior data sets in a first blockchain; performing carbon asset characteristic analysis processing on all carbon asset associated behavior data contained in the behavior data set to obtain carbon asset transaction data corresponding to the behavior data set, and storing the carbon asset transaction data in a second blockchain; constructing a storage data mapping relation between the first block chain and the second block chain; the carbon asset transaction data corresponding to the second blockchain is modified based on the carbon asset associated behavior data change state of the behavior data set, the behavior data set and the corresponding carbon asset transaction data are respectively obtained based on the carbon asset associated behavior data generated by a user, and are independently stored in different blockchains, so that the subsequent change and modification of different data are facilitated, meanwhile, the mapping relation between the two blockchains is also constructed, the linkage modification of the data stored in the two blockchains is facilitated, the whole-course record is carried out on the change condition of the carbon asset data, the comprehensiveness and the reliability of the storage record of the carbon asset data are improved, and dynamic and safe storage service is provided for the carbon asset data.
The invention provides a carbon asset data processing method based on a blockchain, which comprises the following steps of:
step S1, acquiring activity behavior data generated by a user, and screening the activity behavior data to obtain carbon asset associated behavior data existing in the activity behavior data; dividing all the carbon asset associated behavior data into a plurality of behavior data sets based on the behavior characteristic information of the carbon asset associated behavior data, and storing all the behavior data sets in a first blockchain;
step S2, performing carbon asset characteristic analysis processing on all the carbon asset associated behavior data contained in the behavior data set to obtain carbon asset data corresponding to each carbon asset associated behavior data; obtaining carbon asset transaction data corresponding to the behavior data set based on all carbon asset data corresponding to the behavior data set, and storing the carbon asset transaction data in a second blockchain;
s3, constructing a storage data mapping relation between the first block chain and the second block chain; and modifying the carbon asset transaction data corresponding to the second blockchain based on the carbon asset associated behavioral data modification state of the behavioral data set.
Further, in the step S1, activity behavior data generated by a user is acquired, and carbon asset association behavior data existing in the activity behavior data is screened and obtained from the activity behavior data, including:
determining effective activity behavior generated from all activity behavior identification processes generated by the user contained in the historical activity behavior record of the user;
determining a time range corresponding to the effective activity behavior generated by the user in a preset activity period based on the respective occurrence time of all the effective activity behaviors;
acquiring activity behavior data generated by a user in real time within the time range corresponding to the preset activity period; and carrying out behavior content identification processing on each piece of activity behavior data generated in real time, judging whether the activity behavior data contains carbon asset transformation behaviors, and if so, determining the corresponding activity behavior data as belonging to carbon asset association behavior data.
Further, in the step S1, all the carbon asset-associated behavior data are divided into a plurality of behavior data sets based on the behavior feature information of the carbon asset-associated behavior data, including:
performing semantic recognition processing on the carbon asset associated behavior data to obtain behavior description keywords contained in the carbon asset associated behavior data; determining behavior type characteristic information of the carbon asset associated behavior data based on the behavior description keywords;
comparing the behavior type characteristic information of all the carbon asset associated behavior data, and identifying the carbon asset associated behavior data belonging to the same behavior type from the behavior type characteristic information;
dividing all the carbon asset associated behavior data belonging to the same behavior type into the same behavior data set, and marking the behavior type name of the behavior data set.
Further, in the step S1, storing all behavior data sets in a first blockchain includes:
after all the behavior data sets are respectively encrypted, a plurality of sections with matched sizes are defined in a first block chain according to the data quantity of each of all the behavior data sets, and then all the behavior data sets are respectively stored in the sections corresponding to the first block chain.
Further, in the step S2, performing carbon asset feature analysis processing on all the carbon asset-related behavior data included in the behavior data set to obtain carbon asset data corresponding to each carbon asset-related behavior data, where the carbon asset feature analysis processing includes:
performing carbon asset feature word recognition processing on all carbon asset associated behavior data contained in the behavior data set, and extracting to obtain all carbon asset associated words contained in each carbon asset associated behavior data;
and determining the number of carbon assets and carbon asset circulation data corresponding to all the carbon asset-related behavior data contained in each behavior data set based on the carbon asset-related words, and taking the number of carbon assets and the carbon asset circulation data as the carbon asset data.
Further, in the step S2, based on all the carbon asset data corresponding to the behavior data set, carbon asset transaction data corresponding to the behavior data set is obtained, and the carbon asset transaction data is stored in a second blockchain, including:
obtaining carbon asset transaction data of the whole process of the carbon asset correlation behavior corresponding to the behavior data set based on the carbon asset quantity and the carbon asset circulation data corresponding to all the carbon asset correlation behavior data contained in the behavior data set; wherein the carbon asset transaction data comprises carbon asset income and expenditure data corresponding to each carbon asset transaction action in the whole process of the carbon asset association action;
and after encrypting the carbon asset transaction data, storing the carbon asset transaction data in a section corresponding to a second blockchain.
Further, in the step S2, after encrypting the carbon asset transaction data, the carbon asset transaction data is stored in a section corresponding to a second blockchain, including:
step S201, generating encryption selection coefficients according to the carbon asset transaction data by using the following formula (1),
Figure BDA0004191381590000041
in the above formula (1), K represents an encryption selection coefficient; d (D) 16 A 16-ary form representing the carbon asset transaction data; len () represents the number of bits of the 16-ary data in brackets; %2 represents the remainder of 2;
step S202, encrypting the carbon asset transaction data according to the encryption selection coefficients using the following formula (2),
Figure BDA0004191381590000042
in the above formula (2), d 16 A 16-ary form representing encrypted carbon asset transaction data;
Figure BDA0004191381590000043
indicating a cyclic right shift; />
Figure BDA0004191381590000044
Representing a cyclic shift left;<<1 represents a left shift by 1 bit;>>1 represents a right shift by 1 bit; [] 16 Representing the conversion of the values in brackets into 16; />
Figure BDA0004191381590000045
Representing exclusive OR;
step S203, decrypting the encrypted data according to the encrypted data using the following formula (3),
Figure BDA0004191381590000046
in the above formula (3), D' 16 Representing a 16-ary form of decrypted carbon asset transaction data.
Further, in the step S3, constructing a stored data mapping relationship between the first blockchain and the second blockchain includes:
acquiring behavior type names corresponding to the behavior data sets stored in all intervals of the first blockchain and behavior type names corresponding to the carbon asset transaction data stored in all intervals of the second blockchain;
constructing a storage data mapping relation between the first block chain and the second block chain based on the corresponding behavior type names of the first block chain and the second block chain; the storage data mapping relationship comprises a corresponding relationship of each storage data of the interval of the first block chain and the block of the second block chain.
Further, in the step S3, modifying the carbon asset transaction data corresponding to the second blockchain based on the carbon asset-related behavioral data modification status of the behavioral data set includes:
determining an interval corresponding to a carbon asset-associated behavioral data modification event of the first blockchain occurrence behavioral data set based on a work log of the first blockchain;
modifying carbon asset transaction data stored in a corresponding section in the second blockchain based on the stored data mapping relationship and the section determined by the first blockchain; wherein the modification comprises a modification to a carbon asset number and/or a carbon asset circulation status of the carbon asset transaction data.
Compared with the prior art, the blockchain-based carbon asset data processing method carries out behavior feature recognition on carbon asset associated behavior data generated by a user, divides all the carbon asset associated behavior data into a plurality of behavior data sets and stores the behavior data sets in a first blockchain; performing carbon asset characteristic analysis processing on all carbon asset associated behavior data contained in the behavior data set to obtain carbon asset transaction data corresponding to the behavior data set, and storing the carbon asset transaction data in a second blockchain; constructing a storage data mapping relation between the first block chain and the second block chain; the carbon asset transaction data corresponding to the second blockchain is modified based on the carbon asset associated behavior data change state of the behavior data set, the behavior data set and the corresponding carbon asset transaction data are respectively obtained based on the carbon asset associated behavior data generated by a user, and are independently stored in different blockchains, so that the subsequent change and modification of different data are facilitated, meanwhile, the mapping relation between the two blockchains is also constructed, the linkage modification of the data stored in the two blockchains is facilitated, the whole-course record is carried out on the change condition of the carbon asset data, the comprehensiveness and the reliability of the storage record of the carbon asset data are improved, and dynamic and safe storage service is provided for the carbon asset data.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a blockchain-based carbon asset data processing method provided by the invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a flowchart of a blockchain-based carbon asset data processing method according to an embodiment of the present invention is shown. The carbon asset data processing method based on the blockchain comprises the following steps:
step S1, acquiring activity behavior data generated by a user, and screening the activity behavior data to obtain carbon asset associated behavior data existing in the activity behavior data; dividing all the carbon asset-associated behavior data into a plurality of behavior data sets based on behavior characteristic information of the carbon asset-associated behavior data, and storing all the behavior data sets in a first blockchain;
step S2, performing carbon asset characteristic analysis processing on all the carbon asset associated behavior data contained in the behavior data set to obtain carbon asset data corresponding to each carbon asset associated behavior data; obtaining carbon asset transaction data corresponding to the behavior data set based on all carbon asset data corresponding to the behavior data set, and storing the carbon asset transaction data in a second blockchain;
s3, constructing a storage data mapping relation between the first block chain and the second block chain; and modifying the carbon asset transaction data corresponding to the second blockchain based on the carbon asset-related behavioral data modification status of the behavioral data set.
The beneficial effects of the technical scheme are as follows: the carbon asset data processing method based on the blockchain carries out behavior feature recognition on carbon asset associated behavior data generated by a user, divides all the carbon asset associated behavior data into a plurality of behavior data sets and stores the behavior data sets in the first blockchain; performing carbon asset characteristic analysis processing on all carbon asset associated behavior data contained in the behavior data set to obtain carbon asset transaction data corresponding to the behavior data set, and storing the carbon asset transaction data in a second blockchain; constructing a storage data mapping relation between the first block chain and the second block chain; the carbon asset transaction data corresponding to the second blockchain is modified based on the carbon asset associated behavior data change state of the behavior data set, the behavior data set and the corresponding carbon asset transaction data are respectively obtained based on the carbon asset associated behavior data generated by a user, and are independently stored in different blockchains, so that the subsequent change and modification of different data are facilitated, meanwhile, the mapping relation between the two blockchains is also constructed, the linkage modification of the data stored in the two blockchains is facilitated, the whole-course record is carried out on the change condition of the carbon asset data, the comprehensiveness and the reliability of the storage record of the carbon asset data are improved, and dynamic and safe storage service is provided for the carbon asset data.
Preferably, in the step S1, activity behavior data generated by a user is acquired, and carbon asset association behavior data existing in the activity behavior data is screened from the activity behavior data, including:
determining effective activity behavior generated from all activity behavior identification processes generated by the user contained in the historical activity behavior record of the user;
determining a time range corresponding to the effective activity behavior generated by the user in a preset activity period based on the respective occurrence time of all the effective activity behaviors;
acquiring activity behavior data generated by a user in real time within the time range corresponding to a preset activity period; and carrying out behavior content identification processing on each piece of activity behavior data generated in real time, judging whether the activity behavior data contains carbon asset transformation behaviors, and if so, determining the corresponding activity behavior data as belonging to carbon asset association behavior data.
The beneficial effects of the technical scheme are as follows: different activity behaviors can occur to users such as enterprises in the operation process, the different activity behaviors are not initiated identically, and not all the activity behaviors can generate effects with substantial changes to the users, so that the activity behaviors with effects with substantial changes to the users can be classified as effective activity behaviors, and other activity behaviors are classified as ineffective activity behaviors. In actual work, firstly, all activity behaviors generated by a user are subjected to identification processing of activity behavior effects, so that effective activity behaviors in the activity behaviors are screened. In actual work, determining a time range of a user in a preset activity period such as one day, one week or one month by taking the starting time and the ending time of each effective activity behavior as references; and then, in the time range corresponding to the determined preset activity period, generating and monitoring the activity behavior data of the user, and carrying out behavior content identification processing on each activity behavior data generated in real time, so as to conveniently determine whether each activity behavior data contains corresponding carbon asset related content (such as carbon asset transaction or circulation content) or not, thereby determining whether the activity behavior data contains carbon asset transformation behaviors or not, and further carrying out identification and differentiation of the carbon asset related behavior data on the activity behavior data.
Preferably, in the step S1, all the carbon asset-associated behavior data are divided into a plurality of behavior data sets based on the behavior feature information of the carbon asset-associated behavior data, including:
performing semantic recognition processing on the carbon asset associated behavior data to obtain behavior description keywords contained in the carbon asset associated behavior data; determining behavior type characteristic information of the carbon asset associated behavior data based on the behavior description keywords;
comparing the behavior type characteristic information of all the carbon asset associated behavior data, and identifying the carbon asset associated behavior data belonging to the same behavior type from the behavior type characteristic information;
and dividing all the carbon asset associated behavior data belonging to the same behavior type into the same behavior data set, and marking the behavior type name of the behavior data set.
The beneficial effects of the technical scheme are as follows: by means of the method, semantic identification processing is conducted on the carbon asset associated behavior data, identification calibration is conducted on the behavior types of the carbon asset associated behavior data, centralized processing is conducted on the carbon asset associated behavior data belonging to the same behavior type to generate a behavior data set, and in addition, marking processing of behavior type names is conducted on the behavior data set, and therefore different behavior data sets are stored in a later mode in a first blockchain in an independent mode.
Preferably, in this step S1, all the behavior data sets are stored in the first blockchain, including:
after all the behavior data sets are respectively encrypted, a plurality of sections with matched sizes are defined in the first block chain according to the data quantity of each of all the behavior data sets, and then all the behavior data sets are respectively stored in the sections corresponding to the first block chain.
The beneficial effects of the technical scheme are as follows: by the method, different behavior data sets can be safely and independently stored in the first blockchain, so that a user can accurately position the required behavior data sets in the first blockchain.
Preferably, in the step S2, performing carbon asset feature analysis processing on all the carbon asset-related behavior data included in the behavior data set to obtain carbon asset data corresponding to each carbon asset-related behavior data, including:
performing carbon asset feature word recognition processing on all carbon asset associated behavior data contained in the behavior data set, and extracting to obtain all carbon asset associated words contained in each carbon asset associated behavior data;
and determining the number of carbon assets and carbon asset circulation data corresponding to all the carbon asset-related behavior data contained in each behavior data set based on the carbon asset-related words, and taking the number of carbon assets and the carbon asset circulation data as the carbon asset data.
The beneficial effects of the technical scheme are as follows: the behavior data set comprises a plurality of carbon asset association behavior data, and each time a user performs a behavior action in the process of performing the carbon asset association behavior, the corresponding carbon asset quantity and carbon asset circulation data are formed, which are embodied in carbon asset related words of the carbon asset association behavior data, so that the carbon asset association behavior data are comprehensively and accurately represented.
Preferably, in the step S2, based on all the carbon asset data corresponding to the behavior data set, obtaining carbon asset transaction data corresponding to the behavior data set, and storing the carbon asset transaction data in a second blockchain, including:
obtaining carbon asset transaction data of the whole process of the carbon asset correlation behavior corresponding to the behavior data set based on the carbon asset quantity and the carbon asset circulation data corresponding to all the carbon asset correlation behavior data contained in the behavior data set; wherein the carbon asset transaction data comprises carbon asset income and expenditure data corresponding to each carbon asset transaction action in the whole process of the carbon asset association action;
after encrypting the carbon asset transaction data, storing the carbon asset transaction data in an interval corresponding to the second blockchain.
The beneficial effects of the technical scheme are as follows: by the method, the carbon asset transaction data of the whole carbon asset association behavior process corresponding to the behavior data set can be comprehensively and finely characterized, and after the carbon asset transaction data are encrypted, the carbon asset transaction data are stored in the section corresponding to the second blockchain, so that the carbon asset transaction data are independently and safely stored.
Preferably, in the step S2, after encrypting the carbon asset transaction data, the carbon asset transaction data is stored in a section corresponding to the second blockchain, including:
step S201, using the following formula (1), generating encryption selection coefficients according to the carbon asset transaction data,
Figure BDA0004191381590000101
in the above formula (1), K represents an encryption selection coefficient; d (D) 16 A 16-ary form representing the carbon asset transaction data; len () represents the number of bits of the 16-ary data in brackets; %2 represents the remainder of 2;
step S202, encrypting the carbon asset transaction data according to the encryption selection coefficient using the following formula (2),
Figure BDA0004191381590000102
in the above formula (2), d 16 A 16-ary form representing encrypted carbon asset transaction data;
Figure BDA0004191381590000103
indicating a cyclic right shift; />
Figure BDA0004191381590000104
Representing a cyclic shift left;<<1 represents a left shift by 1 bit;>>1 represents a right shift by 1 bit; [] 16 Representing the conversion of the values in brackets into 16; />
Figure BDA0004191381590000106
Representing exclusive OR;
step S203, decrypting the encrypted data based on the encrypted data using the following formula (3),
Figure BDA0004191381590000105
in the above formula (3), D' 16 Representing a 16-ary form of decrypted carbon asset transaction data.
The beneficial effects of the technical scheme are as follows: by utilizing the formula (1), encryption selection coefficients are generated according to the carbon asset transaction data, so that different encryption modes are selected according to different states, and the reliability of system encryption is improved; then encrypting the carbon asset transaction data according to the encryption selection coefficient by utilizing the formula (2), so as to automatically encrypt according to different encryption modes, thereby reflecting the intellectualization and automation of the system; and finally, decrypting the encrypted data according to the encrypted data by utilizing the formula (3), so as to ensure that the data can be reliably encrypted and completely analyzed, and ensure the accuracy of the data.
Preferably, in the step S3, constructing a stored data mapping relationship between the first blockchain and the second blockchain includes:
acquiring behavior type names corresponding to the behavior data sets stored in all intervals of the first block chain respectively, and behavior type names corresponding to the carbon asset transaction data stored in all intervals of the second block chain respectively;
constructing a storage data mapping relationship between the first block chain and the second block chain based on the corresponding behavior type names of the first block chain and the second block chain; the storage data mapping relationship comprises a corresponding relationship between the interval of the first block chain and the storage data of each block of the second block chain.
The beneficial effects of the technical scheme are as follows: by the method, the first blockchain and the second blockchain are mapped according to the behavior type names corresponding to the behavior data sets stored in all the intervals of the first blockchain and the behavior type names corresponding to the carbon asset transaction data stored in all the intervals of the second blockchain, so that the data linkage storage of the first blockchain and the second blockchain is realized, and the synchronism of the modification of the storage data of the first blockchain and the second blockchain is improved.
Preferably, in the step S3, modifying the carbon asset transaction data corresponding to the second blockchain based on the carbon asset-related behavior data modification status of the behavior data set includes:
determining an interval corresponding to a carbon asset-associated behavioral data modification event of the first blockchain occurrence behavioral data set based on a work log of the first blockchain;
modifying carbon asset transaction data stored in a corresponding section in the second blockchain based on the stored data mapping relationship and the section determined by the first blockchain; wherein the modification includes a modification to a carbon asset number and/or a carbon asset circulation status of the carbon asset transaction data.
The beneficial effects of the technical scheme are as follows: by means of the method, when the carbon asset association behavior initiated by the user changes, corresponding carbon asset association behavior data are synchronously changed, corresponding carbon asset transaction data are called from the second blockchain red and are modified, and therefore dynamic and accurate storage of the first blockchain storage data and the second blockchain storage data is guaranteed.
As can be seen from the foregoing embodiments, the blockchain-based carbon asset data processing method performs behavior feature recognition on carbon asset-related behavior data generated by a user, divides all the carbon asset-related behavior data into a plurality of behavior data sets, and stores the behavior data sets in a first blockchain; performing carbon asset characteristic analysis processing on all carbon asset associated behavior data contained in the behavior data set to obtain carbon asset transaction data corresponding to the behavior data set, and storing the carbon asset transaction data in a second blockchain; constructing a storage data mapping relation between the first block chain and the second block chain; the carbon asset transaction data corresponding to the second blockchain is modified based on the carbon asset associated behavior data change state of the behavior data set, the behavior data set and the corresponding carbon asset transaction data are respectively obtained based on the carbon asset associated behavior data generated by a user, and are independently stored in different blockchains, so that the subsequent change and modification of different data are facilitated, meanwhile, the mapping relation between the two blockchains is also constructed, the linkage modification of the data stored in the two blockchains is facilitated, the whole-course record is carried out on the change condition of the carbon asset data, the comprehensiveness and the reliability of the storage record of the carbon asset data are improved, and dynamic and safe storage service is provided for the carbon asset data.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (9)

1. A blockchain-based carbon asset data processing method, comprising the steps of:
step S1, acquiring activity behavior data generated by a user, and screening the activity behavior data to obtain carbon asset associated behavior data existing in the activity behavior data; dividing all the carbon asset associated behavior data into a plurality of behavior data sets based on the behavior characteristic information of the carbon asset associated behavior data, and storing all the behavior data sets in a first blockchain;
step S2, performing carbon asset characteristic analysis processing on all the carbon asset associated behavior data contained in the behavior data set to obtain carbon asset data corresponding to each carbon asset associated behavior data; obtaining carbon asset transaction data corresponding to the behavior data set based on all carbon asset data corresponding to the behavior data set, and storing the carbon asset transaction data in a second blockchain;
s3, constructing a storage data mapping relation between the first block chain and the second block chain; and modifying the carbon asset transaction data corresponding to the second blockchain based on the carbon asset associated behavioral data modification state of the behavioral data set.
2. The blockchain-based carbon asset data processing method of claim 1, wherein: in the step S1, activity behavior data generated by a user is obtained, and carbon asset associated behavior data existing in the activity behavior data is screened and obtained from the activity behavior data, including:
determining effective activity behavior generated from all activity behavior identification processes generated by the user contained in the historical activity behavior record of the user;
determining a time range corresponding to the effective activity behavior generated by the user in a preset activity period based on the respective occurrence time of all the effective activity behaviors;
acquiring activity behavior data generated by a user in real time within the time range corresponding to the preset activity period; and carrying out behavior content identification processing on each piece of activity behavior data generated in real time, judging whether the activity behavior data contains carbon asset transformation behaviors, and if so, determining the corresponding activity behavior data as belonging to carbon asset association behavior data.
3. The blockchain-based carbon asset data processing method of claim 1, wherein: in the step S1, based on the behavior feature information of the carbon asset-related behavior data, all the carbon asset-related behavior data are divided into a plurality of behavior data sets, including:
performing semantic recognition processing on the carbon asset associated behavior data to obtain behavior description keywords contained in the carbon asset associated behavior data; determining behavior type characteristic information of the carbon asset associated behavior data based on the behavior description keywords;
comparing the behavior type characteristic information of all the carbon asset associated behavior data, and identifying the carbon asset associated behavior data belonging to the same behavior type from the behavior type characteristic information;
dividing all the carbon asset associated behavior data belonging to the same behavior type into the same behavior data set, and marking the behavior type name of the behavior data set.
4. The blockchain-based carbon asset data processing method of claim 1, wherein: in the step S1, storing all behavior data sets in a first blockchain includes:
after all the behavior data sets are respectively encrypted, a plurality of sections with matched sizes are defined in a first block chain according to the data quantity of each of all the behavior data sets, and then all the behavior data sets are respectively stored in the sections corresponding to the first block chain.
5. The blockchain-based carbon asset data processing method of claim 1, wherein: in the step S2, performing carbon asset feature analysis processing on all the carbon asset associated behavior data included in the behavior data set to obtain carbon asset data corresponding to each carbon asset associated behavior data, where the carbon asset feature analysis processing includes:
performing carbon asset feature word recognition processing on all carbon asset associated behavior data contained in the behavior data set, and extracting to obtain all carbon asset associated words contained in each carbon asset associated behavior data;
and determining the number of carbon assets and carbon asset circulation data corresponding to all the carbon asset-related behavior data contained in each behavior data set based on the carbon asset-related words, and taking the number of carbon assets and the carbon asset circulation data as the carbon asset data.
6. The blockchain-based carbon asset data processing method of claim 1, wherein: in the step S2, based on all the carbon asset data corresponding to the behavior data set, obtaining carbon asset transaction data corresponding to the behavior data set, and storing the carbon asset transaction data in a second blockchain, including:
obtaining carbon asset transaction data of the whole process of the carbon asset correlation behavior corresponding to the behavior data set based on the carbon asset quantity and the carbon asset circulation data corresponding to all the carbon asset correlation behavior data contained in the behavior data set; wherein the carbon asset transaction data comprises carbon asset income and expenditure data corresponding to each carbon asset transaction action in the whole process of the carbon asset association action;
and after encrypting the carbon asset transaction data, storing the carbon asset transaction data in a section corresponding to a second blockchain.
7. The blockchain-based carbon asset data processing method of claim 6, wherein: in the step S2, after encrypting the carbon asset transaction data, storing the carbon asset transaction data in a section corresponding to a second blockchain, including:
step S201, generating encryption selection coefficients according to the carbon asset transaction data by using the following formula (1),
Figure FDA0004191381560000031
in the above formula (1), K represents an encryption selection coefficient; d (D) 16 A 16-ary form representing the carbon asset transaction data; len () represents the number of bits of the 16-ary data in brackets; %2 represents the remainder of 2;
step S202, encrypting the carbon asset transaction data according to the encryption selection coefficients using the following formula (2),
Figure FDA0004191381560000041
in the above formula (2), d 16 A 16-ary form representing encrypted carbon asset transaction data;
Figure FDA0004191381560000045
indicating a cyclic right shift;
Figure FDA0004191381560000042
representing a cyclic shift left;<<1 represents a left shift by 1 bit;>>1 represents a right shift by 1 bit; [] 16 Representing the conversion of the values in brackets into 16; />
Figure FDA0004191381560000043
Representing exclusive OR;
step S203, decrypting the encrypted data according to the encrypted data using the following formula (3),
Figure FDA0004191381560000044
in the above formula (3), D' 16 Representing a 16-ary form of decrypted carbon asset transaction data.
8. The blockchain-based carbon asset data processing method of claim 1, wherein: in the step S3, constructing a storage data mapping relationship between the first blockchain and the second blockchain includes:
acquiring behavior type names corresponding to the behavior data sets stored in all intervals of the first blockchain and behavior type names corresponding to the carbon asset transaction data stored in all intervals of the second blockchain;
constructing a storage data mapping relation between the first block chain and the second block chain based on the corresponding behavior type names of the first block chain and the second block chain; the storage data mapping relationship comprises a corresponding relationship of each storage data of the interval of the first block chain and the block of the second block chain.
9. The blockchain-based carbon asset data processing method of claim 1, wherein: in the step S3, modifying the carbon asset transaction data corresponding to the second blockchain based on the carbon asset-related behavioral data modification status of the behavioral data set, including:
determining an interval corresponding to a carbon asset-associated behavioral data modification event of the first blockchain occurrence behavioral data set based on a work log of the first blockchain;
modifying carbon asset transaction data stored in a corresponding section in the second blockchain based on the stored data mapping relationship and the section determined by the first blockchain; wherein the modification comprises a modification to a carbon asset number and/or a carbon asset circulation status of the carbon asset transaction data.
CN202310434121.6A 2023-04-21 2023-04-21 Block chain-based carbon asset data processing method Pending CN116433309A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310434121.6A CN116433309A (en) 2023-04-21 2023-04-21 Block chain-based carbon asset data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310434121.6A CN116433309A (en) 2023-04-21 2023-04-21 Block chain-based carbon asset data processing method

Publications (1)

Publication Number Publication Date
CN116433309A true CN116433309A (en) 2023-07-14

Family

ID=87083938

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310434121.6A Pending CN116433309A (en) 2023-04-21 2023-04-21 Block chain-based carbon asset data processing method

Country Status (1)

Country Link
CN (1) CN116433309A (en)

Similar Documents

Publication Publication Date Title
US11841974B2 (en) System and method of filtering consumer data
US7693767B2 (en) Method for generating predictive models for a business problem via supervised learning
US20100257092A1 (en) System and method for predicting a measure of anomalousness and similarity of records in relation to a set of reference records
CN110688675B (en) Data leakage tracing device and method based on privacy protection and readable storage medium
CN104731816A (en) Method and device for processing abnormal business data
US11966402B2 (en) Context driven data profiling
CN114996755B (en) Cache data safety protection system based on cloud computing
CN115859345B (en) Data access management method and system based on block chain
CN117077158B (en) Compliance data conversion storage system
GB2544453A (en) System for secure analysis of datasets
CN116433309A (en) Block chain-based carbon asset data processing method
US8307001B2 (en) Auditing of curation information
CN109063097B (en) Data comparison and consensus method based on block chain
CN117195130B (en) Intelligent all-purpose card management system and method
CN117726435B (en) Image data management method and system
CN117194751B (en) Government electronic data screening method and system
CN117332437A (en) Protection method and device for privacy information of vehicle, computer equipment and storage medium
CN117973704B (en) Data analysis processing method and system based on big data
CN116432205A (en) Safe storage method of carbon asset data
Azaltun et al. The Impact of Enterprise Resource Planning (ERP) System on the Cost and Price of Auditing: Auditor's Perspective
CN118036080A (en) Data security treatment method and system based on big data technology
US20210133887A1 (en) Efficiently aging and modifying policy records in a test system
CN115934396A (en) Page exception handling method and device
CN116483898A (en) Big data application development platform for multi-source data
CN117034345A (en) Data desensitization method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination