Block chain resource processing method and device and computer program product

By performing identity authentication, permission management, and data encryption in cross-chain transactions, the problems of low security and efficiency of cross-chain transactions caused by differences in blockchain architecture and security levels are solved, and safe and efficient cross-chain resource flow is achieved.

CN120596574APending Publication Date: 2025-09-05CHINA TOWER CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510771320.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-10
Publication Date
2025-09-05

AI Technical Summary

Technical Problem

Due to differences in the architecture and security levels of different blockchains, there are problems of low data security and low efficiency in cross-chain transactions.

Method used

By obtaining the cross-chain account of the client to be traded, receiving resource transaction requests, performing identity authentication and permission verification, performing format conversion and permission management according to the preset cross-chain mapping conditions, ensuring that cross-chain transactions are carried out in a trusted execution environment, and encrypting the data, the resource information is finally sent to the target blockchain account.

Benefits of technology

It enhances the security of cross-chain transactions, improves transaction efficiency, ensures the smooth flow and interconnection of resources between different blockchains, and reduces transaction risks and costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120596574A_ABST
    Figure CN120596574A_ABST
Patent Text Reader

Abstract

The invention discloses a block chain resource processing method and device and a computer program product. The method comprises the following steps: acquiring a cross-chain account of a client to be transacted; a resource transaction request sent by a client through the cross-chain account is received, to-be-transmitted block chain resource information of a source block chain account is extracted according to the resource transaction request, and the resource transaction request is associated with source block chain address information corresponding to the source block chain account and target block chain address information corresponding to a target block chain account; and processing the to-be-transmitted block chain resource information to obtain target block chain resource information, and sending the block chain resource information to a target block chain corresponding to a target block chain account through a cross-chain account. Through application of the method and the device, the problems of low data security and low cross-chain transaction efficiency in a cross-chain transaction process due to differences between architectures and security levels of different block chains in related technologies are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain, and more specifically, to a method, device, and computer program product for processing blockchain resources. Background Art

[0002] As a distributed ledger system, blockchain technology, due to its decentralization, high transparency, and strong security, has shown tremendous potential for application in a variety of fields, including finance, supply chain management, and data sharing. However, different types of blockchains, such as public, consortium, and private, often have independent account systems that support their own transactions and asset management, resulting in relatively closed ecosystems. To facilitate asset circulation and data sharing between different blockchains, cross-chain interaction can be achieved through sidechain technology.

[0003] Sidechain technology enables the transfer of assets between blockchains by locking assets on the mainchain and then generating equivalent resources on the sidechain. This transfer is typically based on a two-way anchoring mechanism, meaning that changes to assets on the sidechain must be confirmed on the mainchain. However, in practice, the security standards of the account systems of sidechains and mainchains differ, and the security of sidechains may be lower than that of the mainchain. This discrepancy can easily lead to security risks during cross-chain interactions, especially when resources need to generate resources of equal value on the sidechain. If the sidechain's account system is insecure, such as if its information system or smart contract contains vulnerabilities, it may be vulnerable to security threats such as information leakage and data tampering. This could prevent the correct release of locked resources on the mainchain, or prevent the generated resources from accurately reflecting the value on the mainchain, resulting in economic losses and reputational damage, seriously compromising the security of cross-chain resource circulation and system stability.

[0004] Due to differences in the architecture and security levels of different blockchains in related technologies, there are problems of low data security and low efficiency in cross-chain transactions. No effective solution has been proposed yet. Summary of the Invention

[0005] The main purpose of this application is to provide a method, device and computer program product for processing blockchain resources to solve the problems in related technologies such as low data security and low efficiency in cross-chain transactions caused by differences in the architecture and security levels of different blockchains.

[0006] To achieve the above-mentioned objectives, according to one aspect of the present application, a method for processing blockchain resources is provided. The method comprises: obtaining a cross-chain account of a client to be traded, wherein the cross-chain account is associated with M blockchain resource information, each blockchain resource information refers to resource information in a blockchain account owned by the client, and M is a positive integer; receiving a resource transaction request sent by the client through the cross-chain account, extracting the blockchain resource information to be transferred of the source blockchain account according to the resource transaction request, wherein the resource transaction request is associated with the source blockchain address information corresponding to the source blockchain account and the target blockchain address information corresponding to the target blockchain account; processing the blockchain resource information to be transferred to obtain the target blockchain resource information, and sending the blockchain resource information to the target blockchain account corresponding to the target blockchain account through the cross-chain account.

[0007] Furthermore, before obtaining the cross-chain account of the client to be traded, the method also includes: receiving a cross-chain authentication request sent by the client, and obtaining the identity information of the target user associated with the client, wherein the cross-chain authentication request refers to a request for authenticating the chain account information of M blockchain accounts associated with the target user, and the identity information includes at least one of the following: the identity identifier of the target user, the chain account information of the M blockchain accounts; authenticating the target user based on the cross-chain authentication request and the identity information, wherein the authentication method includes at least one of the following: public and private key verification of the target user's digital identity, verification of the blockchain account; if the target user identity authentication is passed, obtaining M blockchain resource information based on the identity information.

[0008] Furthermore, after obtaining the cross-chain account of the client to be traded, the method also includes: obtaining a preset cross-chain mapping condition, converting the format of M blockchain resource information according to the preset cross-chain mapping condition, and obtaining M converted blockchain resource information; obtaining the blockchain account associated with each blockchain cross-chain information and the permission information of each blockchain account; associating the M blockchain accounts with the cross-chain account to obtain M initial cross-chain certificates, and determining the cross-chain permission information of each initial cross-chain certificate based on the M permission information to obtain M cross-chain certificates, wherein each cross-chain certificate includes information for indicating the relationship between the cross-chain account and a blockchain account and signature data of the M blockchain accounts; associating the M converted blockchain resource information with the M cross-chain certificates to obtain M cross-chain information, and transmitting the M cross-chain information to the cross-chain account.

[0009] Furthermore, after receiving the resource transaction request sent by the client through the cross-chain account, the method also includes: obtaining user permissions of the target user associated with the client, and determining whether the target user is a preset authorized user based on the user permissions, wherein the preset authorized user refers to a user with cross-chain permission information in the cross-chain gateway; when the target user is a preset authorized user, executing the step of extracting the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request; when the target user is not a preset authorized user, sending cross-chain prompt information to the client, wherein the cross-chain prompt information is used to prompt the target user to adjust the cross-chain proof of the cross-chain account; after the target user adjusts the cross-chain proof of the cross-chain account according to the cross-chain prompt information, executing the step of extracting the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request.

[0010] Furthermore, before extracting the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request, the method also includes: extracting the target blockchain address information from the resource transaction request, and judging whether the cross-chain gateway where the target blockchain is located is a preset gateway according to the target blockchain address information, wherein the preset gateway refers to a gateway whose operating environment is a trusted execution environment; if the cross-chain gateway is the preset gateway, executing the step of extracting the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request; if the cross-chain gateway is not the preset gateway, stopping executing the step of extracting the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request.

[0011] Furthermore, processing the blockchain resource information to be transmitted includes: obtaining the data security factor of the target blockchain account, and comparing the data security factor with the preset protection factor; when the data security factor is lower than the preset protection factor, encrypting the blockchain resource information to be transmitted, and determining the encrypted blockchain resource information to be transmitted as the target blockchain resource information; when the data security factor is higher than the preset protection factor, determining the blockchain resource information to be transmitted as the target blockchain resource information.

[0012] Furthermore, sending the blockchain resource information to the target blockchain corresponding to the target blockchain account through the cross-chain account includes: obtaining data format conditions of the target blockchain, adjusting the format of the target blockchain resource information according to the data format conditions, and obtaining adjusted blockchain resource information; and sending the adjusted blockchain resource information to the target blockchain.

[0013] To achieve the above-mentioned purpose, according to another aspect of the present application, a blockchain resource processing device is provided. The device includes: a first acquisition unit, configured to acquire a cross-chain account of a client to be traded, wherein the cross-chain account is associated with M blockchain resource information, each blockchain resource information refers to resource information in a blockchain account owned by the client, and M is a positive integer; a first receiving unit, configured to receive a resource transaction request sent by the client through the cross-chain account, and extract the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request, wherein the resource transaction request is associated with source blockchain address information corresponding to the source blockchain account and target blockchain address information corresponding to the target blockchain account; a processing unit, configured to process the blockchain resource information to be transmitted, obtain target blockchain resource information, and send the blockchain resource information to the target blockchain account corresponding to the target blockchain account through the cross-chain account.

[0014] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute any of the above-mentioned blockchain resource processing methods.

[0015] According to another aspect of an embodiment of the present invention, an electronic device is provided, comprising one or more processors and a memory, wherein the memory stores an executable program, and the processor is configured to run the program, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement any one of the above-mentioned methods for processing blockchain resources.

[0016] According to another aspect of an embodiment of the present invention, a computer program product is further provided, comprising a computer program, wherein when the computer program is executed by a processor, any one of the above-mentioned methods for processing blockchain resources is implemented.

[0017] In an embodiment of the present application, a blockchain resource processing method is adopted, by obtaining a cross-chain account of a client to be traded, wherein the cross-chain account is associated with M blockchain resource information, each blockchain resource information refers to the resource information in a blockchain account owned by the client, and M is a positive integer; a resource transaction request sent by the client through the cross-chain account is received, and the blockchain resource information to be transmitted of the source blockchain account is extracted according to the resource transaction request, wherein the resource transaction request is associated with the source blockchain address information corresponding to the source blockchain account and the target blockchain address information corresponding to the target blockchain account; the blockchain resource information to be transmitted is processed to obtain the target blockchain resource information, and the blockchain resource information is sent to the target blockchain corresponding to the target blockchain account through the cross-chain account, thereby achieving the technical effect of enhancing the security of cross-chain transactions and improving transaction efficiency, thereby solving the problems of low data security and low cross-chain transaction efficiency in the cross-chain transaction process due to differences in the architecture and security levels of different blockchains. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, which constitute part of this application, are intended to provide a further understanding of this application. The exemplary embodiments and descriptions of this application are intended to explain this application and do not constitute an improper limitation on this application. In the accompanying drawings:

[0019] Figure 1 A hardware structure block diagram of a computer terminal (or mobile device) for implementing a method for processing blockchain resources;

[0020] Figure 2 This is a flowchart of a method for processing blockchain resources according to an embodiment of the present application;

[0021] Figure 3 This is a schematic diagram of an optional blockchain resource processing method provided in an embodiment of the present application;

[0022] Figure 4 This is a flowchart of a blockchain resource transaction method provided in accordance with an embodiment of the present application;

[0023] Figure 5 Schematic diagram of a blockchain resource processing device according to an embodiment of the present application;

[0024] Figure 6 This is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data for analysis, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set up between this system and the relevant user or organization. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain the relevant information after receiving the consent information fed back by the aforementioned user or organization.

[0028] It should be noted that the collected information used in this application is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant regions, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse use.

[0029] Example 1

[0030] According to an embodiment of the present application, an embodiment of a method for processing blockchain resources is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0031] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 It is a hardware structure diagram of a computer terminal (or mobile device) for implementing a method for processing blockchain resources, such as Figure 1 As shown, the computer terminal 10 (or mobile device) may include one or more ( Figure 1 The computer system 102 includes a processor 102 (the processor 102 may include but is not limited to a microcontroller unit (MCU) or a programmable logic device (FPGA)), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, the computer system 102 may include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS), a network interface, a keyboard, a cursor control device, a power supply, and / or a camera. It will be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown.

[0032] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuitry may be a single independent processing module, or may be incorporated in whole or in part into any of the other components of the computer terminal 10 (or mobile device). As described in the embodiments of the present application, the data processing circuitry serves as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0033] Memory 104 can be used to store software programs and modules for application software, such as the program instructions / data storage device corresponding to the blockchain resource processing method in the embodiments of this application. Processor 102 executes the software programs and modules stored in memory 104 to perform various functional applications and data processing, thereby implementing the aforementioned blockchain resource processing method. Memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 104 may further include memory remotely located relative to processor 102, and such remote memory may be connected to computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0034] The transmission device 106 is used to receive or send data via a network. A specific example of the aforementioned network may include a wireless network provided by the communications provider of the computer terminal 10. In one embodiment, the transmission device 106 includes a network interface controller (NIC) and a network interface, which can be connected to other network devices via a base station to enable communication with the Internet. In one embodiment, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0035] The display may be, for example, a touch screen liquid crystal display (LCD), which enables a user to interact with a user interface of the computer terminal 10 (or mobile device).

[0036] Under the above operating environment, this application provides Figure 2 The processing method of blockchain resources shown. Figure 2 This is a flowchart of a method for processing blockchain resources according to an embodiment of the present application. Figure 2 As shown, the method includes the following steps:

[0037] Step S201: Obtain a cross-chain account of the client to be traded, wherein the cross-chain account is associated with M blockchain resource information, each blockchain resource information refers to resource information in a blockchain account owned by the client, and M is a positive integer.

[0038] Specifically, in order to ensure the security and efficiency of cross-chain transactions, when the target user needs to conduct a cross-chain transaction, it is first necessary to obtain the cross-chain account of the client used by the user, and obtain all blockchain accounts of the target user and the resource information of each account, and integrate this information into the above-mentioned cross-chain account. Among them, the cross-chain account can be an account registered in the cross-chain service system. This account serves as a unified management entry for the client's resource information on different blockchain networks. Through the cross-chain account, the client's account information on each blockchain can be collected, thereby realizing the management of on-chain assets.

[0039] It should be noted that blockchain resource information can refer to relevant information of each blockchain account, such as address information, encryption information (such as public key, private key) and asset information. Among them, asset information refers to the quantity of various assets held on the blockchain, such as cryptocurrencies.

[0040] Step S202: Receive a resource transaction request sent by the client through a cross-chain account, and extract the blockchain resource information to be transferred of the source blockchain account according to the resource transaction request, wherein the resource transaction request is associated with the source blockchain address information corresponding to the source blockchain account and the target blockchain address information corresponding to the target blockchain account.

[0041] Specifically, after obtaining the cross-chain account of the target user, if the target user logs in on a cross-chain route and needs to perform a cross-chain resource transaction operation, he or she can first send a resource transaction request through the client and the cross-chain account, and then parse the resource transaction request to efficiently and accurately extract resource information from the source blockchain account, that is, extract the blockchain resource information to be transferred. Among them, the resource transaction request may include source blockchain address information, target blockchain address information, and the type and quantity of blockchain resources to be transferred. The source blockchain address information indicates the starting blockchain of the resource, that is, the current location of the resource; the target blockchain address information indicates the destination of the resource transfer. In addition, the resource transaction request may also include transaction conditions, time limits, priorities and other information.

[0042] It should be noted that the resources required for transactions can be tokens, or they can include smart contracts (such as contracts that define transaction conditions and rules), transaction-related data (such as transaction time, transaction fees, sending and receiving addresses, transaction hash values, etc.), etc.

[0043] Step S203: Process the blockchain resource information to be transmitted to obtain the target blockchain resource information, and send the blockchain resource information to the target blockchain corresponding to the target blockchain account through the cross-chain account.

[0044] Specifically, after extracting the blockchain resource information to be transmitted, since different blockchains may adopt different data formats and standards, before resource transmission, the resource information of the source blockchain needs to be standardized and formatted, and converted into a format that can be understood by the target blockchain. For example, Ethereum tokens based on the ERC-20 standard can be converted into digital assets, or the resource information can be adjusted to meet the smart contract requirements of the target blockchain. After completing the extraction and format conversion of resource information, resource transactions are carried out, that is, resources are transferred from the source blockchain account to the target blockchain account. At this time, the resources can be transferred from the source blockchain to the target blockchain through the cross-chain gateway. After the target blockchain resource information is transferred, it is necessary to verify the validity and integrity of the target blockchain resource information, and terminate the resource processing after verifying that the resource transfer is correct, to ensure that the transmitted cross-chain data meets expectations.

[0045] It should be noted that after the resources are successfully transferred to the target blockchain account, the resource information of the source blockchain account and the target blockchain account stored in the cross-chain account needs to be updated to ensure that the cross-chain account and all associated blockchain account information are synchronized, providing an accurate data basis for subsequent transactions and management.

[0046] The blockchain resource processing method provided in the embodiment of the present application obtains a cross-chain account of a client to be traded, wherein the cross-chain account is associated with M blockchain resource information, each blockchain resource information refers to the resource information in a blockchain account owned by the client, and M is a positive integer; receives a resource transaction request sent by the client through the cross-chain account, and extracts the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request, wherein the resource transaction request is associated with the source blockchain address information corresponding to the source blockchain account and the target blockchain address information corresponding to the target blockchain account; processes the blockchain resource information to be transmitted to obtain the target blockchain resource information, and sends the blockchain resource information to the target blockchain account corresponding to the target blockchain account through the cross-chain account. This solves the problem of low data security and low cross-chain transaction efficiency in the cross-chain transaction process caused by differences in the architecture and security level of different blockchains in the related art. By extracting the blockchain resource information to be transmitted of the source blockchain account according to the obtained resource transaction request, processing the blockchain resource information to be transmitted, and sending the blockchain resource information to the target blockchain account corresponding to the target blockchain account through the cross-chain account, the technical effect of enhancing cross-chain transaction security and improving transaction efficiency is achieved.

[0047] Optionally, in the blockchain resource processing method provided in the embodiment of the present application, before obtaining the cross-chain account of the client to be traded, the method also includes: receiving a cross-chain authentication request sent by the client, and obtaining the identity information of the target user associated with the client, wherein the cross-chain authentication request refers to a request for authentication of the chain account information of M blockchain accounts associated with the target user, and the identity information includes at least one of the following: the identity identifier of the target user, the chain account information of the M blockchain accounts; authenticating the target user based on the cross-chain authentication request and the identity information, wherein the authentication method includes at least one of the following: public and private key verification of the target user's digital identity, verification of the blockchain account; if the target user identity authentication is passed, obtaining M blockchain resource information based on the identity information.

[0048] Specifically, before obtaining the cross-chain account of the target user, the target user needs to be authenticated. At this time, the cross-chain authentication request triggered by the target user can be received through the cross-chain service system, and then the identity information of the target user can be determined based on the request. The identity information may include the user's identity identifier and the user's chain accounts in different types of blockchains and the account information of each chain account (i.e., chain account information).

[0049] Furthermore, the target user can be authenticated based on the obtained cross-chain authentication request and identity information, for example, public-private key verification, that is, by verifying the public and private key pair provided by the target user. At this time, the target user needs to use the private key to sign the transaction request and then use the public key to verify it to ensure their control over the blockchain account and the reliability of the source of the request; blockchain account verification can also be performed, that is, checking whether the account meets the preset security standards and transaction rules, for example, whether the account has participated in suspicious transactions, whether the account status is normal (such as not frozen), etc.

[0050] After the target user's identity authentication is passed, the blockchain resource information in each blockchain account can be accessed and extracted based on its identity information. For example, blockchain resource information may include asset holdings, account status, address information, encryption information (such as public key, private key), transaction records, etc.; on the contrary, if the target user's identity authentication fails, the cross-chain operation will be stopped.

[0051] This embodiment greatly enhances the security of transactions by authenticating the target user, prevents unauthorized access, speeds up the execution of cross-chain transactions, and improves user experience.

[0052] After obtaining multiple blockchain resource information and the cross-chain account of the target user, the blockchain resource information needs to be mapped. Optionally, in the blockchain resource processing method provided in the embodiment of the present application, after obtaining the cross-chain account of the client to be traded, the method also includes: obtaining a preset cross-chain mapping condition, converting the format of M blockchain resource information according to the preset cross-chain mapping condition, and obtaining M converted blockchain resource information; obtaining the blockchain account associated with each blockchain cross-chain information and the permission information of each blockchain account; associating the M blockchain accounts with the cross-chain account to obtain M initial cross-chain certificates, and determining the cross-chain permission information of each initial cross-chain certificate based on the M permission information to obtain M cross-chain certificates, wherein each cross-chain certificate includes information for indicating the relationship between the cross-chain account and a blockchain account and signature data of the M blockchain accounts; associating the M converted blockchain resource information with the M cross-chain certificates to obtain M cross-chain information, and transmitting the M cross-chain information to the cross-chain account.

[0053] Specifically, it is first necessary to obtain a preset cross-chain mapping condition including the format of multiple conversion resource information, and then use the condition to determine how to convert between different blockchain networks. The cross-chain mapping condition may include a mapping operation on the information format, or may include a screening operation on the blockchain account to be mapped. It should be noted that the screening operation may be based on historical cross-chain transaction experience, that is, based on the user's blockchain accounts in all blockchains, obtain the historical cross-chain transaction frequency of each blockchain account, and select the blockchain account with a higher frequency, and record it as the chain account that needs to be mapped and managed, and then map the account information of all chain accounts to be mapped and managed to the target information in the same information format. For example, to convert tokens from the Ethereum network into digital assets, it is necessary to comply with a specific data encapsulation and decapsulation process to ensure the consistency and validity of resources between different chains.

[0054] Furthermore, the blockchain resource information is formatted based on the preset cross-chain mapping conditions to adapt to the specific requirements of the target blockchain, thereby obtaining the corresponding converted blockchain resource information and information mapping results. It should be noted that the above-mentioned information mapping results include mapping the information in the accounts of all blockchain accounts to information in the same information format. For example, the points of all blockchain networks are mapped to the points of one of the blockchain networks, that is, a blockchain network is extracted from all blockchain networks, recorded as the target blockchain network, and the information format of the target blockchain network is used as the standard, and then the information format of the account information of the blockchain accounts of all blockchain networks is converted to the information format of the account information of the target blockchain network.

[0055] It should be noted that when associating a blockchain account with a cross-chain account, it is necessary to grant the cross-chain account permissions for different blockchain accounts so that the cross-chain account can uniformly manage the information of all blockchain accounts. At this time, each blockchain account can be associated with the cross-chain account to obtain the corresponding initial cross-chain proof, and the cross-chain permission information of each initial cross-chain proof can be determined based on the target user's permission information in each blockchain account, so as to obtain the corresponding cross-chain proof. Among them, the cross-chain permission information may include permission level, permission scope, permission restrictions, etc. For example, whether asset operations such as transfer and freezing are allowed, the daily transaction limit of the account and the maximum amount of a single transaction, whether specific smart contracts are allowed to be called, and the types of resources and data levels that can be accessed.

[0056] After the above association operation, the converted blockchain resource information and cross-chain proof can be associated to obtain the corresponding cross-chain information, and then the cross-chain information can be transmitted to the cross-chain account, ensuring the safe storage and flexible use of resources in the cross-chain account and the cross-chain mapping between resources and accounts, laying a solid foundation for subsequent cross-chain transactions. At this time, the data of each blockchain account contained in the above information mapping result and the cross-chain information can be transmitted to the cross-chain account to achieve unified management of all blockchain accounts, that is, to add all blockchain accounts to the cross-chain account, and establish a mapping relationship between cross-chain accounts and blockchain accounts through mutual signing, such as: generating UA (Universal Account) Pro of, where UAProof is synchronized between routers. When obtaining the transaction sender, the cross-chain account that sent the transaction can be obtained in combination with UAProof. The relevant logic is managed by the cross-chain service system. The mapping relationship can be a one-to-many relationship, that is, a cross-chain account can be mapped to multiple blockchain accounts. For example, there are cross-chain accounts A and cross-chain accounts B, and all blockchain accounts that can be mapped by cross-chain account A are a1, a2, ..., an, and all blockchain accounts that can be mapped by cross-chain account B are b1, b2, ..., bn. When the logged-in cross-chain account is A, the resource transaction and other management operations of blockchain accounts a1, a2, ..., an can be implemented through its corresponding mapping relationship.

[0057] This embodiment maps and associates blockchain resource information with cross-chain accounts to ensure the free flow of assets between different blockchains, promotes the interconnection and interoperability of the blockchain ecosystem, reduces transaction risks, and improves the efficiency of cross-chain transactions.

[0058] Optionally, in the blockchain resource processing method provided in an embodiment of the present application, after receiving a resource transaction request sent by the client through a cross-chain account, the method further includes: obtaining user permissions of a target user associated with the client, and determining whether the target user is a preset authorized user based on the user permissions, wherein the preset authorized user refers to a user with cross-chain permission information in the cross-chain gateway; when the target user is a preset authorized user, executing the step of extracting the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request; when the target user is not a preset authorized user, sending a cross-chain prompt message to the client, wherein the cross-chain prompt message is used to prompt the target user to adjust the cross-chain proof of the cross-chain account; after the target user adjusts the cross-chain proof of the cross-chain account according to the cross-chain prompt message, executing the step of extracting the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request.

[0059] Specifically, after receiving the resource transaction request sent by the client through the cross-chain account, in order to ensure the security and compliance of the transaction, the target user's permissions need to be verified. At this time, the user permission information of the target user can be obtained, and then based on the user permission, it can be determined whether the target user is a preset authorized user. Among them, the preset authorized user refers to the user who has cross-chain permission information in the cross-chain gateway. The user permission information may include account type, operation permission, compliance requirements, etc.

[0060] When the target user is a preset authorized user, the blockchain resource information to be transferred can be accurately obtained from the source blockchain, and the target user can be reminded that the cross-chain account can be used to initiate transaction operations to the blockchain resources in the cross-chain gateway, ensuring that subsequent resource transfer operations are based on correct data, thereby avoiding transaction errors and asset losses. The cross-chain gateway can be set with multiple cross-chain routes, and each cross-chain route can be connected to multiple blockchains. The blockchain resources can be the resources of any blockchain connected to the cross-chain route used by the user to log in, or the resources of any blockchain connected to other cross-chain routes. On the contrary, if the target user is not a preset authorized user, a cross-chain prompt message needs to be sent to the client, prompting the target user to adjust the cross-chain certificate of the cross-chain account to meet the preset authorization conditions. The adjustment method can be to execute the above-mentioned operation of establishing a cross-chain account, or to apply for higher transaction permissions or activate a blockchain account that has not yet been enabled or is restricted. After the above operation is completed, the subsequent operation of extracting the blockchain resource information to be transferred is performed. This embodiment verifies the permissions of the target user to ensure that only pre-authorized users can initiate or participate in cross-chain transactions. When the target user is not a preset authorized user, it is necessary to adjust the cross-chain proof according to the prompt information and re-verify before the corresponding blockchain resource data extraction step in the resource transaction request can be executed. This ensures the compliance and security of the transaction, effectively prevents unauthorized access and potential behaviors, and improves the flexibility and response speed of cross-chain accounts.

[0061] Optionally, in the blockchain resource processing method provided in the embodiment of the present application, before extracting the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request, the method also includes: extracting the target blockchain address information from the resource transaction request, and judging whether the cross-chain gateway where the target blockchain is located is a preset gateway based on the target blockchain address information, wherein the preset gateway refers to a gateway whose operating environment is a trusted execution environment; if the cross-chain gateway is the preset gateway, executing the step of extracting the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request; if the cross-chain gateway is not the preset gateway, stopping executing the step of extracting the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request.

[0062] Specifically, in order to ensure that the cross-chain gateway of the transaction target blockchain runs in a trusted execution environment (TEE) and thus maintain transaction security and stability, the target blockchain address information can be extracted from the resource transaction request, and the target blockchain address information can be used to determine whether the cross-chain gateway where the target blockchain is located is a preset gateway (that is, the gateway of the trusted execution environment). For example, based on this information, it can be determined whether the cross-chain gateway where the target blockchain is located belongs to the preset trusted gateway list. The trusted execution environment can provide an isolated, trusted execution area, in which code and data can be run and processed without interference from external attacks and malware.

[0063] If the cross-chain gateway to the target blockchain is within the preset gateway, that is, the operating environment of the cross-chain gateway is a trusted execution environment, the blockchain resource information to be transferred can continue to be extracted from the source blockchain account; on the contrary, if the cross-chain gateway to the target blockchain does not belong to the preset trusted list, for security reasons, it is necessary to stop executing subsequent operations and send a warning message to the client, explaining the reason for stopping the transaction and suggesting that the user review the gateway information of the target blockchain or find an alternative trusted cross-chain path.

[0064] This embodiment verifies the operating environment of the cross-chain gateway to which the target blockchain belongs, thereby achieving multiple security protections for cross-chain transactions, preventing resource information from flowing to untrusted cross-chain gateways, significantly reducing the risk of asset theft or abuse, and improving overall transaction efficiency.

[0065] Optionally, in the blockchain resource processing method provided in the embodiment of the present application, processing the blockchain resource information to be transmitted includes: obtaining the data security factor of the target blockchain account, and comparing the data security factor with a preset protection factor; when the data security factor is lower than the preset protection factor, encrypting the blockchain resource information to be transmitted, and determining the encrypted blockchain resource information to be transmitted as the target blockchain resource information; when the data security factor is higher than the preset protection factor, determining the blockchain resource information to be transmitted as the target blockchain resource information.

[0066] To ensure the security of resource information transmission, before sending the blockchain resource information to be transmitted, the data security factor of the target blockchain account can be obtained. Based on the data security factor, it can be determined whether the cross-chain data of the required transaction (i.e., the blockchain resource information to be transmitted) needs to be encrypted. The data security factor can be determined by multiple criteria, such as the sensitivity classification of the data, the access control level (e.g., the data security factor is assessed based on the users who can access and process the data), data encryption and backup status (e.g., whether the data has been encrypted, whether a backup mechanism exists), etc. When judging the data security factor, a preset protection factor can be obtained. When the data security factor is lower than the preset protection factor, it indicates that the blockchain resource information to be transmitted requires security protection. At this time, data encryption, access control, and other operations are required until the data security factor meets the preset protection factor to ensure that the resource can be securely transmitted even in an unsafe environment. The encryption process can use an encryption algorithm to encrypt the resource information and adopt digital signature technology to ensure the integrity and source verifiability of the information.

[0067] If the data security factor is higher than the preset protection factor, indicating that the environment of the target blockchain account is secure enough, there is no need to encrypt the blockchain resource information to be transmitted, and the blockchain resource information to be transmitted can be directly transmitted as the target blockchain resource information.

[0068] This embodiment dynamically adjusts the encryption strategy according to the security environment of the target blockchain account, thereby ensuring the security of the blockchain resource information to be transmitted, avoiding unnecessary encryption of the resource information in a secure environment, saving computing resources and transaction costs, and reducing economic losses caused by insufficient security factors.

[0069] In order to ensure that resource information can be exchanged smoothly between different blockchains, the data format needs to be adjusted. Optionally, in the blockchain resource processing method provided in the embodiment of the present application, sending the blockchain resource information to the target blockchain corresponding to the target blockchain account through the cross-chain account includes: obtaining the data format conditions of the target blockchain, adjusting the format of the target blockchain resource information according to the data format conditions, and obtaining the adjusted blockchain resource information; and sending the adjusted blockchain resource information to the target blockchain.

[0070] Specifically, because each blockchain has its own unique data storage method and transaction processing process, these differences lead to different data formats. Before cross-chain resource information transmission, the data format conditions of the target blockchain can be obtained. Then, based on the data format conditions, the target blockchain resource information is formatted. For example, data reorganization (reorganizing the data items in the target blockchain resource information according to the structural specifications of the target blockchain), field addition, and encoding conversion (converting the target blockchain resource information into an encoding format compatible with the target blockchain) are performed. Finally, the adjusted blockchain resource information is sent to the target blockchain to complete the cross-chain resource transaction operation.

[0071] It should be noted that after the transmission is completed, the validity and integrity of the transmitted blockchain resource information must be verified. At this time, the format, signature, hash, etc. of the blockchain resource information can be verified to ensure that the information has not been tampered with or damaged. The correctness and consistency of the data can also be verified to ensure that the transmitted cross-chain data meets expectations. This embodiment adjusts the blockchain resource information through data format conditions, improves the interoperability and compatibility of cross-chain transactions, effectively avoids transaction failures due to data format mismatches, enhances transaction reliability, and thus improves the overall efficiency of cross-chain transactions.

[0072] The present application also provides a method for processing blockchain resources. Figure 3 is a schematic diagram of an optional blockchain resource processing method provided in an embodiment of the present application, such as Figure 3 As shown, the method includes:

[0073] First, the user's identity is authenticated through the cross-chain service system. This means the cross-chain service system receives the user's identity authentication request and authenticates the user based on the authentication request, thereby obtaining the user's identity authentication information. The user's account information on each blockchain is then mapped to obtain an information mapping result. This is done based on the account information of all chain accounts and the preset cross-chain mapping conditions.

[0074] Furthermore, by obtaining the user's cross-chain account and, based on the information mapping results, establishing a mapping relationship between the cross-chain account and all chain accounts, and granting the cross-chain account permissions for different chain accounts, the cross-chain account can centrally manage the information of all chain accounts. After a user logs in on a cross-chain route, if the user needs to perform a cross-chain resource transaction operation, the user's permissions will be verified. If the verification fails, the user will be prompted to perform the operation of establishing a cross-chain account, and after the execution is completed, the subsequent cross-chain resource transaction operations will be performed. If the verification passes, the user can be prompted to use the cross-chain account to initiate a transaction with the resources of the target blockchain in the cross-chain gateway.

[0075] Furthermore, when conducting resource processing, it is also necessary to verify the cross-chain gateway to which the target blockchain belongs to determine whether the cross-chain gateway to which the cross-chain account exchange is directed is a trusted gateway. If the verification is passed, it is necessary to determine the data security factor of the target blockchain, and determine whether it is necessary to encrypt the cross-chain data of the required transaction based on the data security factor. When it is determined that the data security factor does not meet the preset protection factor, an encryption data processing operation is performed on the cross-chain data to be traded to obtain a data encryption processing result, and the cross-chain data is updated based on the data encryption processing result until the data security factor meets the preset protection factor.

[0076] Finally, the cross-chain data format can be converted and adjusted according to the data format requirements of the source blockchain and the target blockchain, and then cross-chain data transmission can be performed to complete the cross-chain resource transaction operations required by the cross-chain account. Figure 4 This is a flowchart of a blockchain resource transaction method according to an embodiment of the present application. Figure 4 As shown, by establishing a separate cross-chain account and establishing a mapping relationship between the cross-chain account and the chain account of the user under different blockchains, the cross-chain account can achieve unified management of all chain accounts. Figure 4 Blockchain 1 of account name 1) and user 2 (such as Figure 4 When the blockchain 2 of the account name 2 shown in the figure needs to conduct cross-chain data transactions, the cross-chain account 1 of the institution 1 (such as Figure 4Under the management of user 1's chain account by the account manager shown in the figure and the management of user 2's chain account by cross-chain account 2 by institution 2, cross-chain account 1 controls the data required for transactions corresponding to blockchain 1 and / or cross-chain account 2 controls the data required for transactions corresponding to blockchain 2. Cross-chain transactions are realized through cross-chain routing between the two institutions. For example, the resources of the chain account in blockchain 1 are transferred to the cross-chain account, and then the resources are directly transmitted to the chain account of blockchain 2 through the cross-chain account, without the need to generate equal-value resources in blockchain 2. In this case, institution 1 and institution 2 both refer to entities participating in the operation and management of the blockchain network, and custody refers to the user's authorization to uniformly manage the user's chain accounts in different blockchains through the user's cross-chain account. It should be noted that after the data transmission is completed, the validity and integrity of the transmitted cross-chain data can also be verified to ensure that the transmitted cross-chain data meets expectations.

[0077] This embodiment sends blockchain resource information to the chain account of the blockchain through a cross-chain account, which can achieve the technical effect of enhancing cross-chain transaction security and improving transaction efficiency.

[0078] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0079] Example 2

[0080] The present application also provides a blockchain resource processing device. It should be noted that the blockchain resource processing device of the present application embodiment can be used to execute the blockchain resource processing method provided in the present application embodiment. The following describes the blockchain resource processing device provided in the present application embodiment.

[0081] According to an embodiment of the present application, a device for implementing the above-mentioned blockchain resource processing method is also provided. Figure 5 Schematic diagram of a blockchain resource processing device according to an embodiment of the present application. Figure 5 As shown, the device includes: a first acquiring unit 50, a first receiving unit 51, and a processing unit 52.

[0082] A first acquisition unit 50 is configured to acquire a cross-chain account of a client to be traded, wherein the cross-chain account is associated with M blockchain resource information, each blockchain resource information being resource information in a blockchain account owned by the client, where M is a positive integer;

[0083] A first receiving unit 51 is configured to receive a resource transaction request sent by a client through a cross-chain account, and extract blockchain resource information to be transferred from a source blockchain account according to the resource transaction request, wherein the resource transaction request is associated with source blockchain address information corresponding to the source blockchain account and target blockchain address information corresponding to the target blockchain account;

[0084] The processing unit 52 is used to process the blockchain resource information to be transmitted, obtain the target blockchain resource information, and send the blockchain resource information to the target blockchain corresponding to the target blockchain account through the cross-chain account.

[0085] The blockchain resource processing device provided in the embodiment of the present application obtains a cross-chain account of a client to be traded through a first obtaining unit 50, wherein the cross-chain account is associated with M blockchain resource information, each blockchain resource information refers to resource information in a blockchain account owned by the client, and M is a positive integer; the first receiving unit 51 receives a resource transaction request sent by the client through the cross-chain account, and extracts the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request, wherein the resource transaction request is associated with the source blockchain address information corresponding to the source blockchain account and the target blockchain address information corresponding to the target blockchain account; the processing unit 52 processes the blockchain resource information to be transmitted to obtain the target blockchain resource information, and sends the blockchain resource information to the target blockchain account corresponding to the target blockchain account through the cross-chain account. This solves the problem of low data security and low cross-chain transaction efficiency in the cross-chain transaction process caused by differences in the architecture and security level of different blockchains in the related art. By extracting the blockchain resource information to be transmitted of the source blockchain account according to the obtained resource transaction request, processing the blockchain resource information to be transmitted, and sending the blockchain resource information to the target blockchain account corresponding to the target blockchain account through the cross-chain account, the technical effect of enhancing cross-chain transaction security and improving transaction efficiency is achieved.

[0086] Optionally, in the blockchain resource processing device provided in the embodiment of the present application, the device also includes: a second receiving unit, used to receive a cross-chain authentication request sent by the client before obtaining the cross-chain account of the client to be traded, and obtain the identity information of the target user associated with the client, wherein the cross-chain authentication request refers to a request for authentication of the chain account information of M blockchain accounts associated with the target user, and the identity information includes at least one of the following: the identity identifier of the target user, and the chain account information of the M blockchain accounts; an authentication unit, used to authenticate the target user based on the cross-chain authentication request and the identity information, wherein the authentication method includes at least one of the following: public and private key verification of the target user's digital identity, and verification of the blockchain account; a second acquisition unit, used to obtain M blockchain resource information based on the identity information when the target user identity authentication is passed.

[0087] Optionally, in the blockchain resource processing device provided in the embodiment of the present application, the device also includes: a third acquisition unit, which is used to obtain a preset cross-chain mapping condition after obtaining the cross-chain account of the client to be traded, and convert the format of M blockchain resource information according to the preset cross-chain mapping condition to obtain M converted blockchain resource information; a fourth acquisition unit, which is used to obtain the blockchain account associated with each blockchain cross-chain information and the permission information of each blockchain account; a first association unit, which is used to associate the M blockchain accounts with the cross-chain account to obtain M initial cross-chain certificates, and determine the cross-chain permission information of each initial cross-chain certificate based on the M permission information to obtain M cross-chain certificates, wherein each cross-chain certificate includes information for indicating the relationship between the cross-chain account and a blockchain account and signature data of the M blockchain accounts; a second association unit, which is used to associate the M converted blockchain resource information with the M cross-chain certificates to obtain M cross-chain information, and transmit the M cross-chain information to the cross-chain account.

[0088] Optionally, in the blockchain resource processing device provided in the embodiment of the present application, the device also includes: a fifth acquisition unit, for obtaining the user authority of the target user associated with the client after receiving the resource transaction request sent by the client through the cross-chain account, and judging whether the target user is a preset authorized user based on the user authority, wherein the preset authorized user refers to a user with cross-chain authority information in the cross-chain gateway; a first execution unit, for executing the step of extracting the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request when the target user is the preset authorized user; a sending unit, for sending cross-chain prompt information to the client when the target user is not the preset authorized user, wherein the cross-chain prompt information is used to prompt the target user to adjust the cross-chain proof of the cross-chain account; a second execution unit, for executing the step of extracting the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request after the target user adjusts the cross-chain proof of the cross-chain account according to the cross-chain prompt information.

[0089] Optionally, in the blockchain resource processing device provided in the embodiment of the present application, the device also includes: an extraction unit, used to extract the target blockchain address information from the resource transaction request before extracting the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request, and determine whether the cross-chain gateway where the target blockchain is located is a preset gateway based on the target blockchain address information, wherein the preset gateway refers to a gateway whose operating environment is a trusted execution environment; a third execution unit, used to execute the step of extracting the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request when the cross-chain gateway is the preset gateway; and a fourth execution unit, used to stop executing the step of extracting the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request when the cross-chain gateway is not the preset gateway.

[0090] Optionally, in the blockchain resource processing device provided in the embodiment of the present application, the processing unit 52 includes: a first acquisition module, used to obtain the data security factor of the target blockchain account and compare the data security factor with a preset protection factor; a processing module, used to encrypt the blockchain resource information to be transmitted when the data security factor is lower than the preset protection factor, and determine the encrypted blockchain resource information to be transmitted as the target blockchain resource information; a determination module, used to determine the blockchain resource information to be transmitted as the target blockchain resource information when the data security factor is higher than the preset protection factor.

[0091] Optionally, in the blockchain resource processing device provided in the embodiment of the present application, the processing unit 52 includes: a second acquisition module, used to obtain the data format conditions of the target blockchain, and adjust the format of the target blockchain resource information according to the data format conditions to obtain the adjusted blockchain resource information; a sending module, used to send the adjusted blockchain resource information to the target blockchain.

[0092] It should be noted that the first acquisition unit 50, the first receiving unit 51, and the processing unit 52 described above correspond to steps S201 to S203 in Example 1. The examples and application scenarios implemented by the above units and the corresponding steps are the same, but are not limited to the contents disclosed in the above Example 1. It should be noted that the above modules or units can be hardware components or software components stored in a memory (e.g., memory 104) and processed by one or more processors (e.g., processors 102a, 102b, ..., 102n). The above units can also be part of a device and can be run in the computer terminal 10 provided in Example 1.

[0093] Example 3

[0094] The embodiment of the present application may provide a computer terminal, which may be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal may also be replaced by a terminal device such as a mobile terminal or an electronic device.

[0095] Optionally, in this embodiment, the computer terminal may be located in at least one network device among a plurality of network devices of a computer network.

[0096] In this embodiment, the above-mentioned computer terminal can execute the program code of the following steps in the blockchain resource processing method: obtaining the cross-chain account of the client to be traded, wherein the cross-chain account is associated with M blockchain resource information, each blockchain resource information refers to the resource information in a blockchain account owned by the client, and M is a positive integer; receiving a resource transaction request sent by the client through the cross-chain account, and extracting the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request, wherein the resource transaction request is associated with the source blockchain address information corresponding to the source blockchain account and the target blockchain address information corresponding to the target blockchain account; processing the blockchain resource information to be transmitted to obtain the target blockchain resource information, and sending the blockchain resource information to the target blockchain account corresponding to the target blockchain account through the cross-chain account.

[0097] Optionally, the above-mentioned computer terminal can execute the program code of the following steps in the blockchain resource processing method: receiving a cross-chain authentication request sent by the client, and obtaining the identity information of the target user associated with the client, wherein the cross-chain authentication request refers to a request for authenticating the chain account information of M blockchain accounts associated with the target user, and the identity information includes at least one of the following: the identity identifier of the target user, the chain account information of the M blockchain accounts; authenticating the target user according to the cross-chain authentication request and the identity information, wherein the authentication method includes at least one of the following: public and private key verification of the target user's digital identity, verification of the blockchain account; if the target user identity authentication is passed, obtaining M blockchain resource information according to the identity information.

[0098] Optionally, the computer terminal may execute the program code of the following steps in the method for processing blockchain resources: obtaining a preset cross-chain mapping condition, converting the format of M blockchain resource information according to the preset cross-chain mapping condition, and obtaining M converted blockchain resource information; obtaining the blockchain account associated with each blockchain cross-chain information and the permission information of each blockchain account; associating the M blockchain accounts with the cross-chain account to obtain M initial cross-chain certificates, and determining the cross-chain permission information of each initial cross-chain certificate based on the M permission information to obtain M cross-chain certificates, wherein each cross-chain certificate includes information for indicating the relationship between the cross-chain account and a blockchain account and signature data of the M blockchain accounts; associating the M converted blockchain resource information with the M cross-chain certificates to obtain M cross-chain information, and transmitting the M cross-chain information to the cross-chain account.

[0099] Optionally, the above-mentioned computer terminal can execute the program code of the following steps in the blockchain resource processing method: obtaining user permissions of the target user associated with the client, and judging whether the target user is a preset authorized user based on the user permissions, wherein the preset authorized user refers to a user with cross-chain permission information in the cross-chain gateway; when the target user is a preset authorized user, executing the step of extracting the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request; when the target user is not a preset authorized user, sending cross-chain prompt information to the client, wherein the cross-chain prompt information is used to prompt the target user to adjust the cross-chain proof of the cross-chain account; after the target user adjusts the cross-chain proof of the cross-chain account according to the cross-chain prompt information, executing the step of extracting the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request.

[0100] Optionally, the above-mentioned computer terminal can execute the program code of the following steps in the blockchain resource processing method: extracting the target blockchain address information from the resource transaction request, and judging whether the cross-chain gateway where the target blockchain is located is a preset gateway based on the target blockchain address information, wherein the preset gateway refers to a gateway whose operating environment is a trusted execution environment; when the cross-chain gateway is the preset gateway, executing the step of extracting the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request; when the cross-chain gateway is not the preset gateway, stopping executing the step of extracting the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request.

[0101] Optionally, the above-mentioned computer terminal can execute the program code of the following steps in the blockchain resource processing method: obtaining the data security factor of the target blockchain account, and comparing the data security factor with the preset protection factor; when the data security factor is lower than the preset protection factor, encrypting the blockchain resource information to be transmitted, and determining the encrypted blockchain resource information to be transmitted as the target blockchain resource information; when the data security factor is higher than the preset protection factor, determining the blockchain resource information to be transmitted as the target blockchain resource information.

[0102] Optionally, the above-mentioned computer terminal can execute the program code of the following steps in the blockchain resource processing method: obtaining the data format conditions of the target blockchain, adjusting the format of the target blockchain resource information according to the data format conditions, and obtaining the adjusted blockchain resource information; and sending the adjusted blockchain resource information to the target blockchain.

[0103] Optionally, Figure 6 This is a structural block diagram of an electronic device according to an embodiment of the present application. Figure 6 As shown, the electronic device may include: one or more ( Figure 6Only one is shown) processor 602, memory 604, storage controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.

[0104] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the blockchain resource processing method and apparatus in the embodiments of this application. The processor executes the software programs and modules stored in the memory to perform various functional applications and data processing, thereby implementing the aforementioned blockchain resource processing method. The memory can include high-speed random access memory (RAM) and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located from the processor, which can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0105] The processor can call the information and application stored in the memory through the transmission device to execute the above steps in the above-mentioned blockchain resource processing method.

[0106] An embodiment of the present application provides a solution for processing blockchain resources. The solution obtains a cross-chain account of a client to be traded, wherein the cross-chain account is associated with M blockchain resource information, each blockchain resource information refers to resource information in a blockchain account owned by the client, and M is a positive integer; receives a resource transaction request sent by the client through the cross-chain account, extracts the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request, wherein the resource transaction request is associated with the source blockchain address information corresponding to the source blockchain account and the target blockchain address information corresponding to the target blockchain account; processes the blockchain resource information to be transmitted to obtain the target blockchain resource information, and sends the blockchain resource information to the target blockchain account corresponding to the target blockchain account through the cross-chain account, thereby achieving the technical effect of enhancing cross-chain transaction security and improving transaction efficiency, thereby solving the problem of low data security and low cross-chain transaction efficiency in the cross-chain transaction process due to differences in the architecture and security levels of different blockchains.

[0107] It can be understood by those skilled in the art that Figure 6 The structure shown is for illustration only, and the electronic device may also be a smart phone, a tablet computer, a PDA, a mobile internet device (MID), a PAD or other terminal device. Figure 6 It does not limit the structure of the above electronic device. For example, the electronic device may also include Figure 6 More or fewer components (such as network interfaces, display devices, etc.) shown in, or with Figure 6 Different configurations shown.

[0108] A person skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0109] Example 4

[0110] The embodiment of the present application further provides a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the blockchain resource processing method provided in the first embodiment.

[0111] Optionally, in this embodiment, the storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0112] Optionally, in this embodiment, the storage medium is configured to store program code for executing the following steps: obtaining a cross-chain account of the client to be traded, wherein the cross-chain account is associated with M blockchain resource information, each blockchain resource information refers to the resource information in a blockchain account owned by the client, and M is a positive integer; receiving a resource transaction request sent by the client through the cross-chain account, and extracting the blockchain resource information to be transmitted of the source blockchain account according to the resource transaction request, wherein the resource transaction request is associated with the source blockchain address information corresponding to the source blockchain account and the target blockchain address information corresponding to the target blockchain account; processing the blockchain resource information to be transmitted to obtain the target blockchain resource information, and sending the blockchain resource information to the target blockchain account corresponding to the target blockchain account through the cross-chain account.

[0113] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for performing the steps of the method for processing blockchain resources.

[0114] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0115] In the above embodiments of the present application, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0116] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0117] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0118] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0119] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program code.

[0120] The above is only a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for processing blockchain resources, characterized in that: include: Obtain a cross-chain account of the client to be traded, wherein the cross-chain account is associated with M blockchain resource information, each blockchain resource information refers to resource information in a blockchain account owned by the client, and M is a positive integer; Receiving a resource transaction request sent by the client through the cross-chain account, and extracting blockchain resource information to be transferred of the source blockchain account according to the resource transaction request, wherein the resource transaction request is associated with source blockchain address information corresponding to the source blockchain account and target blockchain address information corresponding to the target blockchain account; The blockchain resource information to be transmitted is processed to obtain target blockchain resource information, and the blockchain resource information is sent to the target blockchain corresponding to the target blockchain account through the cross-chain account.

2. The method according to claim 1, characterized in that Before obtaining the cross-chain account of the client to be traded, the method further includes: Receive a cross-chain authentication request sent by the client, and obtain the identity information of the target user associated with the client, wherein the cross-chain authentication request is a request to authenticate the chain account information of the M blockchain accounts associated with the target user, and the identity information includes at least one of the following: the identity identifier of the target user and the chain account information of the M blockchain accounts; Authenticating the target user according to the cross-chain authentication request and the identity information, wherein the authentication method includes at least one of the following: public and private key verification of the target user's digital identity, and verification of the blockchain account; When the identity authentication of the target user is passed, the M blockchain resource information is obtained according to the identity information.

3. The method according to claim 1, characterized in that After obtaining the cross-chain account of the client to be traded, the method further includes: Obtaining a preset cross-chain mapping condition, and converting the format of the M blockchain resource information according to the preset cross-chain mapping condition to obtain M converted blockchain resource information; Obtain the blockchain account associated with each blockchain cross-chain information and the permission information of each blockchain account; Associating M blockchain accounts with the cross-chain account to obtain M initial cross-chain proofs, and determining cross-chain permission information for each initial cross-chain proof based on the M permission information to obtain M cross-chain proofs, wherein each cross-chain proof includes information indicating a relationship between the cross-chain account and a blockchain account and signature data of the M blockchain accounts; The M converted blockchain resource information and the M cross-chain proofs are associated to obtain M cross-chain information, and the M cross-chain information is transmitted to the cross-chain account.

4. The method according to claim 1, wherein After receiving the resource transaction request sent by the client through the cross-chain account, the method further includes: Obtain the user rights of the target user associated with the client, and determine whether the target user is a preset authorized user based on the user rights, wherein the preset authorized user refers to a user with cross-chain permission information in the cross-chain gateway; When the target user is the preset authorized user, performing the step of extracting the to-be-transmitted blockchain resource information of the source blockchain account according to the resource transaction request; If the target user is not the preset authorized user, sending a cross-chain prompt message to the client, wherein the cross-chain prompt message is used to prompt the target user to adjust the cross-chain proof of the cross-chain account; After the target user adjusts the cross-chain proof of the cross-chain account according to the cross-chain prompt information, the step of extracting the to-be-transmitted blockchain resource information of the source blockchain account according to the resource transaction request is performed.

5. The method according to claim 1, wherein Before extracting the to-be-transmitted blockchain resource information of the source blockchain account according to the resource transaction request, the method further includes: Extracting the target blockchain address information from the resource transaction request, and determining whether the cross-chain gateway where the target blockchain is located is a preset gateway based on the target blockchain address information, wherein the preset gateway refers to a gateway whose operating environment is a trusted execution environment; In a case where the cross-chain gateway is the preset gateway, performing the step of extracting the to-be-transmitted blockchain resource information of the source blockchain account according to the resource transaction request; If the cross-chain gateway is not the preset gateway, stop executing the step of extracting the to-be-transmitted blockchain resource information of the source blockchain account according to the resource transaction request.

6. The method according to claim 1, wherein Processing the blockchain resource information to be transmitted includes: Obtaining a data security factor of the target blockchain account, and comparing the data security factor with a preset protection factor; When the data security factor is lower than the preset protection factor, encrypting the blockchain resource information to be transmitted, and determining the encrypted blockchain resource information to be transmitted as the target blockchain resource information; When the data security factor is higher than the preset protection factor, the blockchain resource information to be transmitted is determined as the target blockchain resource information.

7. The method according to claim 1, characterized in that Sending the blockchain resource information to the target blockchain corresponding to the target blockchain account through the cross-chain account includes: Obtaining a data format condition of the target blockchain, and adjusting the format of the target blockchain resource information according to the data format condition to obtain adjusted blockchain resource information; The adjusted blockchain resource information is sent to the target blockchain through the cross-chain account.

8. A blockchain resource processing device, characterized in that: include: A first acquisition unit is configured to acquire a cross-chain account of a client to be traded, wherein the cross-chain account is associated with M blockchain resource information, each blockchain resource information being resource information in a blockchain account owned by the client, and M being a positive integer; A first receiving unit is configured to receive a resource transaction request sent by the client through the cross-chain account, and extract blockchain resource information to be transferred of a source blockchain account according to the resource transaction request, wherein the resource transaction request is associated with source blockchain address information corresponding to the source blockchain account and target blockchain address information corresponding to the target blockchain account; The processing unit is configured to process the blockchain resource information to be transmitted, obtain target blockchain resource information, and send the blockchain resource information to the target blockchain corresponding to the target blockchain account through the cross-chain account.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a stored executable program, wherein, when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the blockchain resource processing method according to any one of claims 1 to 7.

10. An electronic device, characterized in that: include: a memory storing an executable program; A processor, configured to run the program, wherein the program, when running, executes the method for processing blockchain resources according to any one of claims 1 to 7.

11. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by the processor, the steps of the blockchain resource processing method described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • A method and system for establishing an account across block chains

    CN109460413A

  • Cross-chain transaction method and system and computer readable storage medium

    CN110033271A

  • Cross-chain transaction method and device, equipment and storage medium

    CN115549984A

  • Digital asset circulation method and device and computer readable storage medium

    CN118037443A

  • Block chain account management method and system and storage medium

    CN118051895A