CN115564438B - Block chain-based digital resource processing method, device, equipment and storage medium - Google Patents

Block chain-based digital resource processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN115564438B
CN115564438B CN202211553052.2A CN202211553052A CN115564438B CN 115564438 B CN115564438 B CN 115564438B CN 202211553052 A CN202211553052 A CN 202211553052A CN 115564438 B CN115564438 B CN 115564438B
Authority
CN
China
Prior art keywords
resource
wallet
block chain
blockchain
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211553052.2A
Other languages
Chinese (zh)
Other versions
CN115564438A (en
Inventor
万春辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202211553052.2A priority Critical patent/CN115564438B/en
Publication of CN115564438A publication Critical patent/CN115564438A/en
Application granted granted Critical
Publication of CN115564438B publication Critical patent/CN115564438B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3821Electronic credentials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/36Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes
    • G06Q20/367Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes
    • G06Q20/3674Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes involving authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4014Identity check for transactions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Abstract

The disclosure provides a digital resource processing method, a device, equipment and a storage medium based on a block chain, relates to the field of computers, in particular to a block chain technology, and can be applied to a cloud platform. The method comprises the following steps: in response to an access authorization request by a scene application for a blockchain wallet, determining a wallet blockchain account of a user in the blockchain wallet; the wallet blockchain account is pre-bound with a resource blockchain account of a user in a resource production application; issuing a resource access certificate for the resource block chain account, and feeding back the resource block chain account and the corresponding resource access certificate to the scene application; responding to a resource access request of the scene application, authenticating a resource access certificate carried in the resource access request, and inquiring digital resources of a user in the corresponding resource production application from the block chain under the condition that the authentication is passed; feeding back the digital resource to the scene application. By the technical scheme, the processing efficiency of the digital resources can be improved.

Description

Block chain-based digital resource processing method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of computers, and in particular, to a block chain technique applicable to a cloud platform, and more particularly, to a method, an apparatus, a device, and a storage medium for processing digital resources based on a block chain.
Background
Web1.0 is the Internet of the personal age, and a user acquires information in one direction through a web portal by using a browser, so that the explosive increase of the information transmission speed is realized; web2.0 realizes interaction between users and the Internet, and greatly improves convenience and richness of life of the users. With the advent of blockchain technology, the era of web3.0 was opened, facilitating the transition of the internet from information databases to value warehouses.
In the web3.0 era, digital resource creation and digital resource consumption were composed of numerous scattered, decentralized applications. Therefore, how to handle the digital resources is very important.
Disclosure of Invention
The disclosure provides a block chain-based digital resource processing method, a block chain-based digital resource processing device, a block chain-based digital resource processing apparatus and a storage medium.
According to an aspect of the present disclosure, there is provided a method for processing digital resources based on a block chain, the method including:
in response to an access authorization request by a scene application for a blockchain wallet, determining a wallet blockchain account of a user in the blockchain wallet; the wallet block chain account is pre-bound with a resource block chain account of a user in a resource production application;
issuing a resource access certificate for the resource block chain account, and feeding back the resource block chain account and the corresponding resource access certificate to the scene application;
responding to a resource access request of a scene application, authenticating a resource access certificate carried in the resource access request, and inquiring digital resources of a user in a corresponding resource production application from a block chain under the condition that the authentication is passed;
applying feedback to the scene of the digital resource.
According to another aspect of the present disclosure, there is provided another method for processing digital resources based on a block chain, the method including:
determining an access authorization request of a scene application to a blockchain wallet, and sending the access authorization request to a blockchain network, wherein the access authorization request is used for instructing the blockchain network to execute the following steps: determining a wallet blockchain account of a user in a blockchain wallet; issuing a resource access certificate for a resource block chain account bound by a wallet block chain account;
generating a resource access request of a scene application according to the resource access credential, and sending the resource access request to the blockchain network, so as to instruct the blockchain network to execute the following steps: authenticating the resource access voucher carried in the resource access request, and inquiring digital resources of a user in the corresponding resource production application from the block chain under the condition that the authentication is passed;
and acquiring the digital resources fed back by the block chain network.
According to another aspect of the present disclosure, there is provided a block chain-based digital resource processing apparatus, including:
a wallet blockchain account module to determine a wallet blockchain account for the user in the blockchain wallet in response to an access authorization request for the blockchain wallet by the context application; the wallet block chain account is pre-bound with a resource block chain account of a user in a resource production application;
the resource access voucher module is used for issuing a resource access voucher to the resource block chain account and feeding back the resource block chain account and the corresponding resource access voucher to the scene application;
the resource inquiry module is used for responding to a resource access request of the scene application, authenticating a resource access certificate carried in the resource access request, and inquiring digital resources of a user in the corresponding resource production application from the block chain under the condition that the authentication is passed;
and the resource feedback module is used for feeding back the digital resources to the scene application.
According to another aspect of the present disclosure, there is provided another block chain-based digital resource processing apparatus, including:
an authorization request module, configured to determine an access authorization request of a scenario application to a blockchain wallet, and send the access authorization request to a blockchain network, configured to instruct the blockchain network to perform the following: determining a wallet blockchain account of a user in a blockchain wallet; issuing a resource access certificate for a resource block chain account bound by a wallet block chain account;
an access request module, configured to generate a resource access request of a scenario application according to the resource access credential, and send the resource access request to the blockchain network, where the access request module is configured to instruct the blockchain network to perform the following: authenticating the resource access voucher carried in the resource access request, and inquiring digital resources of a user in the corresponding resource production application from the block chain under the condition that the authentication is passed;
and the resource acquisition module is used for acquiring the digital resources fed back by the block chain network.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method for blockchain based digital resource processing according to any of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method for processing a digital resource based on a blockchain according to any embodiment of the present disclosure.
According to the technology disclosed by the invention, the processing efficiency of the digital resource can be improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1a is a flowchart of a method for processing digital resources based on a block chain according to an embodiment of the present disclosure;
fig. 1b is a schematic structural diagram of a block chain-based digital resource processing system according to an embodiment of the present disclosure;
fig. 2 is a flowchart of another block chain-based digital resource processing method provided in accordance with an embodiment of the present disclosure;
fig. 3 is a flowchart of another block chain-based digital resource processing method provided in accordance with an embodiment of the present disclosure;
fig. 4a is a flowchart of another method for processing digital resources based on a blockchain according to an embodiment of the present disclosure;
FIG. 4b is an interaction diagram of a blockchain-based digital resource processing system according to an embodiment of the present disclosure;
fig. 5 is a flowchart of another block chain-based digital resource processing method provided in accordance with an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a block chain-based digital resource processing apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of another block chain-based digital resource processing apparatus provided in accordance with an embodiment of the present disclosure;
fig. 8 is a block diagram of an electronic device for implementing a blockchain-based digital resource processing method according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1a is a flowchart of a method for processing a digital resource based on a blockchain according to an embodiment of the present disclosure. The embodiment of the disclosure is suitable for the situation that the scene application uses the digital resources in the resource production application. The method may be performed by a digital resource processing device based on a block chain, which may be implemented in Software and/or hardware, and may be configured in a block chain network or a block chain Service based on the block chain network, for example, a Software-as-a-Service (SaaS as a Service) Service based on the block chain. As shown in fig. 1a, the method for processing digital resources based on a block chain according to this embodiment may include:
s101, responding to an access authorization request of a scene application to a blockchain wallet, determining a wallet blockchain account of a user in the blockchain wallet;
the wallet block chain account is pre-bound with a resource block chain account of a user in a resource production application;
s102, issuing a resource access certificate for the resource block chain account, and feeding back the resource block chain account and the corresponding resource access certificate to the scene application;
s103, responding to a resource access request of the scene application, authenticating a resource access certificate carried in the resource access request, and inquiring digital resources of a user in the corresponding resource production application from a block chain under the condition that the authentication is passed;
and S104, feeding back the digital resources to the scene application.
Referring to fig. 1b, the web3.0 application is based on block chain deplatation, and can be roughly divided into three parts, namely a block chain network ecology, a resource generation ecology and a scene application ecology, from the perspective of production and use of digital resources. The block chain network ecology is a block chain network which is formed by a plurality of decentralized block chain nodes together, can be a alliance chain or a public chain, and is mainly responsible for providing decentralized credible cooperation capability and authority-confirming registration capability for Web3.0 application.
The resource generation ecology consists of numerous resource generation applications belonging to different corporate entities that co-cast digital resources to accomplish validation in a blockchain network. That is, the resource production application is an application for producing, holding, and changing digital resources, for example, the digital collection selling platform in the digital collection business scenario is a resource generation application. The scene ecology provides a use scene for digital resources, and is also composed of a plurality of multi-type products belonging to different company bodies. The scene application is an application which needs to use digital resources, such as an exhibition hall and a skin in a metastic application, a prop in a game, a head portrait, a skin, a background and the like in other internet products, and can provide a use scene for the digital resources with the right on the chain.
In the embodiment of the disclosure, the account system of the resource production application is upgraded from a primary structure to a secondary structure, and the account of the user in the resource production application may include a secondary structure of an internet account and a block chain account. The internet account can be obtained by registering identity attribute information such as a mobile phone number and a mailbox, and the block chain account is distributed by the block chain client and can comprise a block chain account address, a public key, a private key, a mnemonic word and the like. And the block chain account of the user in the resource production application is the resource block chain account. Digital resources held by a user in a resource production application may be saved under a resource blockchain account in a blockchain.
In the disclosed embodiments, a blockchain wallet is also built based on the blockchain network for serving as an inter-chain relay between the resource production application and the scenario application. The resource production application can bind the resource blockchain account of the resource production application to the blockchain wallet through an identity authentication mechanism, the scene application can apply access authorization to the blockchain wallet under the condition that digital resources in the resource production application need to be used, and the digital resources in the resource production application of the user can be accessed from the blockchain to the scene application after the user authorization. The identity authentication mechanism is not specifically limited in the embodiments of the present disclosure, and for example, the resource blockchain account of the user may be bound to the wallet blockchain account of the user based on OAuth (Open authentication). A user's wallet blockchain account may bind multiple resource blockchain accounts for the user.
Specifically, under the condition that digital resources need to be used, the scene application may apply access authorization to the blockchain wallet, obtain authorization information of the blockchain wallet for the scene application, and initiate an access authorization request for the blockchain wallet to the blockchain network by using the authorization information, so that the blockchain network performs the following steps: determining a wallet blockchain account of the user according to the authorization information, and acquiring a resource blockchain account bound by the wallet blockchain account; and issuing a resource access certificate (token) for the resource block chain account, and feeding back the resource block chain account and the corresponding resource access certificate to the scene application. The resource access credentials corresponding to each resource block chain account may be different.
The scene application obtains each resource blockchain account and a corresponding resource access credential from the blockchain network, and can request digital resources from the blockchain network. Specifically, the scene application may select a resource block chain account to be accessed from each resource block chain account, determine a corresponding resource access credential, generate a resource access request including the resource block chain account to be accessed and the corresponding resource access credential, and send the resource access request to the block chain network, where the following is performed by the block chain network: checking whether the resource access voucher carried in the resource access request is issued by the user, and if the resource access voucher is issued by the user, determining that the resource access voucher passes the authentication; and according to the resource block chain account to be accessed, inquiring the digital resource in the resource block chain account to be accessed from the block chain, and feeding back the inquired digital resource to the scene application. And under the condition that the authentication of the authentication access voucher fails, rejecting the resource access request. It should be noted that the scenario application only queries and uses the digital resource from the blockchain, and the digital resource still belongs to the account of the blockchain of the resource to be accessed. The scene applications and the digital resources belong to a one-to-many relationship, a plurality of scene applications can use one digital resource, and one digital resource can be used by a plurality of scene applications. But the digital resource belongs to only one resource blockchain account. Taking the example that the user a holds the digital collection 1 in the digital collection application 1, the scene application 1 and the scene application 2 can both access the digital collection 1 from the blockchain by applying for access authorization to the blockchain wallet, that is, the digital collection 1 can be applied to the scene application 1 and the scene application 2.
The embodiment of the disclosure uniformly aggregates the resource blockchain accounts of the users scattered in the resource production application into the wallet blockchain accounts of the users. On the basis, the scene application applies for access authorization to the blockchain wallet, and the blockchain network issues a resource access certificate for the resource blockchain account based on the binding relationship between the resource blockchain account and the resource blockchain account, so that the scene application accesses the digital resource in the resource blockchain account by using the resource access certificate, data communication between the scene application and the resource production application is realized, the use threshold of the scene application on the digital resource is reduced, and the processing efficiency of the digital resource is improved.
According to the technical scheme, the blockchain wallet is used as a relay of the resource production application and the scene application, the scene application requests the blockchain wallet for access authorization of the resource production application, so that a blockchain network issues a resource access certificate for a resource blockchain account, the scene application accesses the digital resources in the blockchain of the resource production application by adopting the issued resource access certificate, data communication between the scene application and the resource production application is achieved, the use threshold of the scene application on the digital resources is reduced, and the processing efficiency of the digital resources is improved.
Fig. 2 is a flowchart of another block chain-based digital resource processing method according to an embodiment of the present disclosure. The present embodiment is an alternative proposed on the basis of the above-described embodiments. Referring to fig. 2, the method for processing digital resources based on a block chain according to this embodiment may include:
s201, extracting wallet identity information of a user from an access authorization request of a scene application to a blockchain wallet;
the wallet block chain account is pre-bound with a resource block chain account of a user in a resource production application; the wallet identity information is obtained when a user logs in a blockchain wallet authorization page embedded in the scene application;
s202, determining a wallet blockchain account of the user in a blockchain wallet according to the wallet identity information of the user;
s203, issuing a resource access certificate for the resource block chain account, and feeding back the resource block chain account and the corresponding resource access certificate to the scene application;
s204, responding to a resource access request of the scene application, authenticating a resource access certificate carried in the resource access request, and inquiring digital resources of a user in the corresponding resource production application from a block chain under the condition that the authentication is passed;
s205, feeding back the digital resources to the scene application.
In the embodiment of the disclosure, the authorization page of the blockchain wallet is embedded in the scene application, after the user logs in and authorizes the authorization page, the scene application obtains wallet identity information of the user, generates an access authorization request carrying the wallet identity information, and sends the access authorization request to the blockchain network. The block chain network extracts the wallet identity information of the user from the access authorization request, and obtains a wallet block chain account of the user and a resource block chain account corresponding to the wallet block chain account according to the wallet identity information of the user. The block chain network also issues resource access certificates for the resource block chain accounts, and feeds the resource block chain accounts and the corresponding resource access certificates back to the scene application. Selecting a resource block chain account to be accessed from the scene application, initiating a resource access request to a block chain network according to the resource block chain account to be accessed and a corresponding resource access certificate, authenticating the resource access certificate in the resource access request by the block chain network, inquiring digital resources in the resource block chain account to be accessed from the block chain if the authentication is passed, and feeding back the digital resources to the scene application, so that the scene application can use the digital resources in the resource production application.
Taking the example that the user A holds digital collections in the digital collection application 1 and the digital collection application 2, under the condition that the scene application 1 applies for access authorization of the blockchain wallet, the blockchain network can issue a resource access certificate 1 for the digital collection application 1 and a resource access certificate 2 for the digital collection application 2, and feeds back the resource blockchain account 1 of the digital collection application 1 and the corresponding resource access certificate 1 to the scene application 1, and feeds back the resource blockchain account 2 of the digital collection application 2 and the corresponding resource access certificate 2 to the scene application 1. If the scene application 1 uses the digital collection application 1 as a resource production application to be accessed, a resource access request carrying a resource block chain account 1 and a resource access certificate 1 is sent to the block chain network, the block chain network authenticates the resource access certificate 1, if the authentication is passed, the block chain network inquires the digital resource in the resource block chain account 1 from the block chain, and feeds back the digital resource to the scene application, so that the scene application can use the digital resource, for example, the digital resource is used as a prop, a head portrait, a skin, a background and the like.
In the embodiment, the authorization of the blockchain wallet is obtained by embedding the blockchain wallet authorization page in the scene application, the scene application can access the digital resources in the resource production application, and a user does not need to learn blockchain knowledge, so that the method is simple and easy to implement, wide in application range and universal. The account systems of the scene application and the resource production application are mutually independent, and the block chain wallet is used as a relay, so that data intercommunication between the scene application and the resource production application is realized.
In an optional implementation manner, the wallet identity information of the user is a wallet identity ciphertext obtained by encrypting a wallet identity original text of the user by using an access key applied in a scene; determining a wallet blockchain account of the user in a blockchain wallet according to the wallet identity information of the user, comprising: decrypting the wallet identity ciphertext by using the admission key of the scene application to obtain a wallet identity original text of the user; and determining the wallet blockchain account of the user in the blockchain wallet by adopting the decrypted wallet identity identification text.
The admission key of the scene application can be a unique key which is distributed to the scene application in advance by the blockchain network, and the admission keys of the scene applications are different. Encrypting the wallet identity original text of the user by adopting the admission key of the scene application to obtain a wallet identity ciphertext, sending the wallet identity ciphertext to the blockchain network, enabling the blockchain network to decrypt the wallet identity ciphertext by adopting the admission key of the scene application, if decryption is successful, enabling the scene application to be legal, and continuing to execute subsequent operation to obtain a wallet blockchain account of the user; and if the decryption fails, the scene application is illegal, and the operation is finished. By adopting the admission key of the scene application for encryption, only the scene application authorized by the user can use the block chain wallet of the user, thereby improving the security of data resource processing. It should be noted that data communication between the scene application and the blockchain network can be performed by using the admission key of the scene application, so as to improve the security of data communication.
According to the technical scheme of the embodiment of the disclosure, the block chain wallet authorization page is embedded in the scene application, so that the wallet authorization operation is simplified, and the universality of data resource processing can be improved; the wallet identity original text of the user is encrypted by adopting the access key applied by the scene, so that the safety of data resource processing can be improved.
Fig. 3 is a flowchart of another block chain-based digital resource processing method according to an embodiment of the present disclosure. The present embodiment is an alternative proposed on the basis of the above-described embodiments. Referring to fig. 3, the method for processing digital resources based on a block chain according to this embodiment may include:
s301, in response to an access authorization request of a scene application to a blockchain wallet, determining a wallet blockchain account of a user in the blockchain wallet;
the wallet block chain account is pre-bound with a resource block chain account of a user in a resource production application;
s302, selecting resource block chain accounts with access rights of the scene applications from all the resource block chain accounts bound by the wallet block chain accounts based on access right configuration information of the scene applications;
s303, issuing the resource access certificate for the resource block chain account with the access authority;
s304, responding to a resource access request of the scene application, authenticating a resource access certificate carried in the resource access request, and inquiring digital resources of a user in the corresponding resource production application from a block chain under the condition that the authentication is passed;
s305, feeding back the digital resources to the scene application.
In the embodiment of the present disclosure, the access authority configuration information of the scenario application is access authority information of the scenario application on the resource production application. In particular, the blockchain wallet may also provide a uniform resource management portal for the user, and access rights to each resource production application may be configured for the scene application through the blockchain wallet. That is, the scene application does not have access to each resource blockchain account bound by the blockchain wallet, but only has access to a part of resource blockchain accounts authorized by the user. And the block chain network issues the resource access certificate only for the resource block chain account with the access permission of the scene application.
Still taking the example that the user a has the resource block chain account 1 and the resource block chain account 2, the user may configure the scene application to have access permission only to the resource block chain account 1 and have no access permission to the resource block chain account 2, so that the scene application may only access the digital resource in the resource production application 1 through the block chain wallet and may not leak the digital resource in the resource production application 2 to the scene application. A resource management entrance is provided through the blockchain wallet, so that a user can flexibly configure access authority of a resource blockchain account for scene application, the user can flexibly manage the disclosure range of own digital resources conveniently, and the privacy of the user and the safety of the digital resources are ensured.
In an optional implementation manner, the authenticating a resource access credential carried in a resource access request in response to a resource access request of a scenario application, and querying a digital resource of a user in a corresponding resource production application from a blockchain if the authentication is passed includes: extracting a resource block chain account to be accessed and a corresponding resource access certificate from a resource access request of a scene application; authenticating the resource access certificate, determining a digital resource list in the resource block chain account under the condition that the authentication is passed, and feeding back the digital resource list to the scene application; and responding to the scene application to select the digital resource list, and inquiring the selected digital resource from the block chain.
In the embodiment of the present disclosure, when a scene application needs to access any one resource blockchain account, the blockchain network may determine a digital resource list in the resource blockchain account, and feed back the digital resource list to the scene application, and the scene application selects a digital resource to be used from the digital resource list, and further queries the digital resource to be used from the blockchain through the blockchain network. The blockchain network can further improve the flexibility of the use of the digital resources by providing a digital resource list in the resource production application for the selection of the scene application.
In an alternative embodiment, the method further comprises: and under the condition that the digital resources in the resource block chain account are changed, synchronously updating the digital resource list to the scene application.
Under the condition that the digital resources in the resource production application to be accessed are changed, for example, the resource block chain account acquires new digital resources, or the digital resources in the resource block chain account are transferred out, the block chain network can keep the accuracy of the digital resource list displayed by the scene application by synchronously updating the digital resource list to the scene application, so that the use efficiency of the scene application on the digital resources is further improved.
It should be noted that, the scenario application may also query whether the specified digital resource exists in the resource block chain account. Specifically, the scene application may obtain a target digital resource ID to be used, and send the target digital resource ID to the blockchain network, so that the blockchain network queries whether the target digital resource belongs to the resource blockchain account, and if so, queries the target digital resource from the blockchain, and provides the target digital resource to the scene application. The blockchain network may not only provide the digital resource itself to the scene application, but also provide the attribute information of the digital resource to the scene application, for example, the digital resource may be traced through the blockchain.
According to the technical scheme, a uniform resource management entrance is provided for the user through the blockchain wallet, the access authority of the scene application to the resource production application can be flexibly configured, the scene application can use the digital resources in various ways, and the use safety and flexibility of the scene application to the data resources are further improved.
Fig. 4a is a flowchart of a method for processing a digital resource based on a blockchain according to an embodiment of the present disclosure. The embodiment of the disclosure is suitable for the situation that the scene application uses the digital resources in the resource production application. The method can be executed by a digital resource processing device based on a block chain, and the device can be realized in a software and/or hardware manner and can be configured in a scene application. As shown in fig. 4a, the method for processing digital resources based on block chains according to this embodiment may include:
s401, determining an access authorization request of a scene application to a blockchain wallet, and sending the access authorization request to a blockchain network, where the access authorization request is used to instruct the blockchain network to perform the following: determining a wallet blockchain account of a user in a blockchain wallet; issuing a resource access certificate for a resource block chain account bound by a wallet block chain account;
s402, generating a resource access request of a scene application according to the resource access credential, and sending the resource access request to the blockchain network, wherein the resource access request is used for instructing the blockchain network to execute the following steps: authenticating the resource access voucher carried in the resource access request, and inquiring digital resources of a user in the corresponding resource production application from the block chain under the condition that the authentication is passed;
and S403, acquiring the digital resources fed back by the block chain network.
Referring to fig. 4b, the resource production application ecology includes a plurality of resource production applications, and the scenario application ecology includes a plurality of scenario applications. The block chain wallet is used as an inter-chain relay between the resource production application and the scene application, the resource production application is provided with a resource block chain account, and the digital resource held in the resource production application by the user is recorded into the resource block chain account of the user.
Referring to fig. 4b, the user binds the own resource blockchain account to the wallet blockchain account of the user through the identity authorization of the resource production application, and the digital resource of the user in the resource production application is linked to the resource blockchain account. Specifically, the resource production application client may apply for authorization through an authorization web page of the blockchain wallet to obtain a user credential (code), send the user credential to the server of the resource production application, enable the server of the resource production application to request a blockchain wallet service using the user credential, determine an internet account of the blockchain wallet, request a wallet blockchain account of the user using the internet account of the blockchain wallet, and bind the resource blockchain account of the user in the resource production application to the wallet blockchain account of the user.
Referring to fig. 4b, the scene application obtains the resource block chain account bound to the wallet block chain account by applying for access authorization of the block chain wallet, and issues a resource access credential for the resource block chain account, and the scene application uses the resource access credential to access the digital resource of the application in the block chain.
Specifically, when the scene application needs to access the digital resource, an access authorization request for the blockchain wallet is determined and sent to the blockchain network, so that the blockchain network performs the following steps: and responding to the access authorization request to determine a wallet blockchain account of the user and a resource blockchain account pre-bound to the wallet blockchain account, issuing a resource access certificate to the resource blockchain account, and feeding back the resource blockchain account and the corresponding resource access certificate to the scene application.
The scene application can select a resource block chain account to be accessed from the resource block chain accounts, generate a resource access request carrying the resource block chain account to be accessed and a corresponding resource access certificate, and send the resource access request to the block chain network, and the block chain network executes the following steps: authenticating the received resource access voucher, and inquiring digital resources from the block chain according to the account of the resource block chain to be accessed if the authentication is passed; and feeding back the digital resources to the scene application for the scene application to use.
According to the technical scheme, the scene application takes the block chain wallet as an inter-chain relay, obtains the resource block chain account and the corresponding resource access certificate through the access authorization of the block chain wallet, and accordingly accesses the digital resource in the resource block chain account from the block chain. The scheme realizes data communication between the scene application and the resource production application, reduces the use threshold of the scene application on the digital resources, and improves the processing efficiency of the digital resources.
Fig. 5 is a flowchart of another block chain-based digital resource processing method according to an embodiment of the present disclosure. The present embodiment is an alternative proposed on the basis of the above-described embodiments. Referring to fig. 5, the method for processing digital resources based on a block chain according to this embodiment may include:
s501, determining wallet identity information of a user under the condition that the user logs in a block chain wallet authorization page embedded in the scene application;
s502, determining an access authorization request of the scene application to the blockchain wallet according to the wallet identity information of the user;
s503, sending the access authorization request to a blockchain network, for instructing the blockchain network to execute the following steps: determining a wallet blockchain account of a user in a blockchain wallet; issuing a resource access certificate for a resource block chain account bound by a wallet block chain account;
s504, generating a resource access request of a scene application according to the resource access credential, and sending the resource access request to the blockchain network, where the resource access request is used to instruct the blockchain network to execute the following steps: authenticating the resource access voucher carried in the resource access request, and inquiring digital resources of a user in the corresponding resource production application from the block chain under the condition that the authentication is passed;
and S505, acquiring the digital resources fed back by the block chain network.
In the embodiment of the disclosure, after obtaining the authorization of the user for the blockchain wallet, the blockchain network determines the wallet blockchain account of the user and the resource blockchain account bound to the wallet blockchain account, and also issues a resource access credential for the resource blockchain account. The scene application may initiate a resource access request using a resource blockchain account and a corresponding resource access credential obtained from the blockchain network, authenticate the resource access credential by the blockchain network, and access the digital resource in the resource blockchain account if the authentication passes.
In an optional implementation manner, the wallet identity information of the user is a wallet identity ciphertext obtained by encrypting a wallet identity original text of the user by using an access key applied to a scene.
The admission key of the scene application may be a unique key previously allocated to the scene application by the blockchain network. Data communication between the scene application and the blockchain network can be encrypted by adopting an access key of the scene application, so that only the scene application authorized by the blockchain wallet can access the blockchain network, and the safety of the data communication is improved.
According to the technical scheme of the embodiment of the disclosure, the block chain wallet authorization page is embedded in the scene application, so that the universality of data resource processing can be improved; the communication between the scene application and the blockchain network is encrypted by adopting the access key of the scene application, so that the safety of data resource processing can be improved.
In an optional implementation manner, before the acquiring the digital resource fed back by the blockchain network, the method further includes: acquiring a digital resource list in a resource block chain account fed back by a block chain network; the digital resource list is determined under the condition that the block chain network authenticates the resource access voucher corresponding to the resource block chain account; and determining the selection operation of the scene application on the digital resource list, and controlling the block chain network to inquire the selected digital resources from the block chain according to the selection operation.
In the embodiment of the present disclosure, after the scene application obtains each resource block chain account and the corresponding resource access credential, the digital resource in the resource block chain account can be accessed in multiple ways. Specifically, a digital resource list in a resource block chain account can be acquired from the block chain network, and the block chain network is controlled to query the digital resource to be accessed from the block chain network according to the selection operation of the scene application on the digital resource list. The scene application can further increase the flexibility of the use of the digital resources by flexibly selecting the digital resources to be accessed from the digital resource list.
In an alternative embodiment, the method further comprises: and under the condition that the digital resources in the resource block chain account are changed, synchronously updating the digital resource list.
Under the condition that digital resources in the resource production application to be accessed are changed, the block chain network synchronously updates the digital resource list through the application to the scene, so that the accuracy of the digital resource list displayed by the scene application can be kept, and the use efficiency of the scene application on the digital resources is further improved.
Fig. 6 is a schematic structural diagram of a block chain-based digital resource processing apparatus according to an embodiment of the present disclosure. The device is suitable for the situation that the scene application uses digital resources in the resource production application. The device can be realized in a software and/or hardware mode, and can be configured in a block chain network or a block chain service based on the block chain network. As shown in fig. 6, the apparatus 600 for processing digital resources based on block chains in this embodiment may include:
a wallet blockchain account module 610 for determining a wallet blockchain account for the user in the blockchain wallet in response to an access authorization request for the blockchain wallet by the scene application; the wallet block chain account is pre-bound with a resource block chain account of a user in a resource production application;
a resource access credential module 620, configured to issue a resource access credential for the resource block chain account, and feed back the resource block chain account and the corresponding resource access credential to the scene application;
the resource query module 630 is configured to authenticate a resource access credential carried in a resource access request in response to the resource access request of the scene application, and query a digital resource of a user in a corresponding resource production application from a blockchain when the authentication is passed;
a resource feedback module 640 configured to feed back the digital resource to the scene application.
In an alternative embodiment, the wallet block chain account module 610 includes:
the system comprises a wallet identity unit, a block chain wallet access authorization unit and a processing unit, wherein the wallet identity unit is used for extracting wallet identity information of a user from an access authorization request of a scene application to the block chain wallet; the wallet identity information is obtained when a user logs in a blockchain wallet authorization page embedded in the scene application;
and the wallet blockchain account unit is used for determining the wallet blockchain account of the user in the blockchain wallet according to the wallet identity information of the user.
In an optional implementation manner, the wallet identity information of the user is a wallet identity ciphertext obtained by encrypting a wallet identity original text of the user by using an access key applied in a scene;
the wallet blockchain account unit includes:
the identity decoding subunit is used for decrypting the wallet identity ciphertext by using the admission key of the scene application to obtain a wallet identity original text of the user;
and the wallet blockchain account subunit is used for determining the wallet blockchain account of the user in the blockchain wallet by adopting the decrypted wallet identity original text.
In an alternative embodiment, the resource access credential module 620 includes:
the resource account selection unit is used for selecting a resource block chain account with access authority of the scene application from all resource block chain accounts bound by the wallet block chain account based on the configuration information of the access authority of the scene application;
and the access certificate issuing unit is used for issuing the resource access certificate for the resource block chain account with the access authority.
In an alternative embodiment, the resource query module 630 includes:
the access request extraction unit is used for extracting a resource block chain account to be accessed and a corresponding resource access certificate from a resource access request of the scene application;
the resource list feedback unit is used for authenticating the resource access certificate, determining a digital resource list in the resource block chain account under the condition that the authentication is passed, and feeding back the digital resource list to the scene application;
and the resource query unit is used for responding to the selection operation of the scene application on the digital resource list and querying the selected digital resource from the block chain.
In an optional implementation manner, the apparatus 600 for processing digital resources based on block chains further includes:
and the list updating module is used for synchronously updating the digital resource list to the scene application under the condition that the digital resources in the resource block chain account are changed.
According to the technical scheme of the embodiment of the disclosure, all resource block chain accounts of the user dispersed in the resource production application are uniformly aggregated into the wallet block chain account. The block chain network issues a resource access certificate for a resource block chain account which needs to be accessed by the scene application, authenticates the resource access certificate of the scene application in the resource access process, inquires digital resources in a resource production account from the block chain under the condition that the authentication is passed, opens up the scene application and the resource production application, and can improve the use efficiency and the use safety of the scene application on the data resources.
Fig. 7 is a schematic structural diagram of a block chain-based digital resource processing apparatus according to an embodiment of the present disclosure. The device is suitable for the situation that the scene application uses digital resources in the resource production application. The device can be realized in a software and/or hardware mode and can be configured in scene application. As shown in fig. 7, the apparatus 700 for processing digital resources based on block chains in this embodiment may include:
an authorization request module 710, configured to determine an access authorization request of a scenario application to a blockchain wallet, and send the access authorization request to a blockchain network, configured to instruct the blockchain network to perform the following: determining a wallet blockchain account of a user in a blockchain wallet; issuing a resource access certificate for a resource block chain account bound by a wallet block chain account;
an access request module 720, configured to generate a resource access request of a scenario application according to the resource access credential, and send the resource access request to the blockchain network, where the access request is used to instruct the blockchain network to perform the following: authenticating the resource access voucher carried in the resource access request, and inquiring digital resources of a user in the corresponding resource production application from the block chain under the condition that the authentication is passed;
the resource obtaining module 730 is configured to obtain the digital resource fed back by the block chain network.
In an alternative embodiment, the authorization request module 710 includes:
the wallet identity identification unit is used for determining wallet identity identification information of the user under the condition that the user logs in a blockchain wallet authorization page embedded in the scene application;
and the authorization request unit is used for determining an access authorization request of the scene application to the blockchain wallet according to the wallet identity information of the user.
In an optional implementation manner, the wallet identity information of the user is a wallet identity ciphertext obtained by encrypting a wallet identity original text of the user by using an access key applied to a scene.
In an optional implementation manner, the above block chain-based digital resource processing apparatus 700 further includes a resource inventory module; the resource inventory module includes:
the list acquisition unit is used for acquiring a digital resource list in the resource block chain account fed back by the block chain network; the digital resource list is determined under the condition that the block chain network passes the authentication of the resource access voucher corresponding to the resource block chain account;
and the list selection unit is used for determining the selection operation of the scene application on the digital resource list and controlling the block chain network to inquire the selected digital resources from the block chain according to the selection operation.
In an optional implementation manner, the apparatus 700 for processing digital resources based on block chains further includes:
and the list updating module is used for synchronously updating the digital resource list under the condition that the digital resources in the resource block chain account are changed.
According to the technical scheme of the embodiment of the disclosure, all resource block chain accounts of the user dispersed in the resource production application are uniformly aggregated into the wallet block chain account. The scene application issues a resource access certificate for the resource blockchain account through an authorization mechanism of the blockchain wallet, and uses the resource access certificate to inquire the digital resources in the resource production account from the blockchain, so that the scene application and the resource production application are opened, and the use efficiency and the use safety of the scene application on the data resources can be improved.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, and do not violate the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
Fig. 8 is a block diagram of an electronic device for implementing a blockchain-based digital resource processing method according to an embodiment of the present disclosure. FIG. 8 illustrates a schematic block diagram of an example electronic device 800 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 8, the electronic device 800 includes a computing unit 801 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic apparatus 800 can also be stored. The calculation unit 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
A number of components in the electronic device 800 are connected to the I/O interface 805, including: an input unit 806, such as a keyboard, a mouse, or the like; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, or the like; and a communication unit 809 such as a network card, modem, wireless communication transceiver, etc. The communication unit 809 allows the electronic device 800 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
Computing unit 801 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and the like. The computing unit 801 performs the various methods and processes described above, such as a blockchain-based digital resource processing method. For example, in some embodiments, the blockchain-based digital resource processing method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program can be loaded and/or installed onto the electronic device 800 via the ROM 802 and/or the communication unit 809. When loaded into RAM 803 and executed by the computing unit 801, a computer program may perform one or more of the steps of the above-described blockchain-based digital resource processing method. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the blockchain-based digital resource processing method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program code, when executed by the processor or controller, causes the functions/acts specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
Artificial intelligence is the subject of research that makes computers simulate some human mental processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), both at the hardware level and at the software level. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing, and the like; the artificial intelligence software technology mainly comprises a computer vision technology, a voice recognition technology, a natural language processing technology, a machine learning/deep learning technology, a big data processing technology, a knowledge map technology and the like.
Cloud computing (cloud computing) refers to a technology system that accesses a flexibly extensible shared physical or virtual resource pool through a network, where resources may include servers, operating systems, networks, software, applications, storage devices, and the like, and may be deployed and managed in a self-service manner as needed. Through the cloud computing technology, high-efficiency and strong data processing capacity can be provided for technical application and model training of artificial intelligence, block chains and the like.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (24)

1. The digital resource processing method based on the block chain comprises the following steps:
in response to an access authorization request by a scene application for a blockchain wallet, determining a wallet blockchain account of a user in the blockchain wallet; the wallet block chain account is pre-bound with a resource block chain account of a user in a resource production application;
issuing a resource access certificate for the resource block chain account, and feeding back the resource block chain account and the corresponding resource access certificate to the scene application;
responding to a resource access request of a scene application, authenticating a resource access certificate carried in the resource access request, and inquiring digital resources of a user in a corresponding resource production application from a block chain under the condition that the authentication is passed;
applying feedback to the scene of the digital resource.
2. The method of claim 1, wherein determining a wallet blockchain account of the user in the blockchain wallet in response to the access authorization request by the scene application for the blockchain wallet comprises:
extracting wallet identity information of a user from an access authorization request of a scene application to a blockchain wallet; the wallet identity information is obtained when a user logs in a blockchain wallet authorization page embedded in the scene application;
and determining the wallet blockchain account of the user in the blockchain wallet according to the wallet identity information of the user.
3. The method of claim 2, wherein the wallet identity information of the user is a wallet identity ciphertext obtained by encrypting a wallet identity original text of the user by using an access key of the scene application;
determining a wallet blockchain account of the user in a blockchain wallet according to the wallet identity information of the user, comprising:
decrypting the wallet identity ciphertext by using the admission key of the scene application to obtain a wallet identity original text of the user;
and determining the wallet blockchain account of the user in the blockchain wallet by adopting the decrypted wallet identity identification text.
4. The method of claim 1, wherein the issuing resource access credentials for the resource block chaining account comprises:
based on configuration information of access authority of a scene application, selecting a resource block chain account with access authority of the scene application from all resource block chain accounts bound by the wallet block chain account;
and issuing the resource access certificate for the resource block chain account with the access authority.
5. The method of claim 1, wherein the authenticating a resource access credential carried in a resource access request in response to the resource access request of the scenario application, and querying a digital resource of a user in a corresponding resource production application from a blockchain if the authentication is passed, comprises:
extracting a resource block chain account to be accessed and a corresponding resource access certificate from a resource access request of a scene application;
authenticating the resource access certificate, determining a digital resource list in the resource block chain account under the condition that the authentication is passed, and feeding back the digital resource list to the scene application;
and responding to the scene application to select the digital resource list, and inquiring the selected digital resource from the blockchain.
6. The method of claim 5, further comprising:
and under the condition that the digital resources in the resource block chain account are changed, synchronously updating the digital resource list to the scene application.
7. The digital resource processing method based on the block chain comprises the following steps:
determining an access authorization request of a scene application to a blockchain wallet, and sending the access authorization request to a blockchain network, wherein the access authorization request is used for instructing the blockchain network to execute the following steps: determining a wallet blockchain account of a user in a blockchain wallet; issuing a resource access certificate for a resource block chain account bound by a wallet block chain account;
generating a resource access request of a scene application according to the resource access credential, and sending the resource access request to the blockchain network, so as to instruct the blockchain network to execute the following steps: authenticating the resource access voucher carried in the resource access request, and inquiring digital resources of a user in the corresponding resource production application from the block chain under the condition that the authentication is passed;
and acquiring the digital resources fed back by the block chain network.
8. The method of claim 7, wherein the determining an access authorization request for a blockchain wallet by a context application comprises:
determining wallet identity information of a user under the condition that the user logs in a blockchain wallet authorization page embedded in the scene application;
and determining an access authorization request of the scene application to the blockchain wallet according to the wallet identity information of the user.
9. The method of claim 8, wherein the wallet identifying information of the user is a wallet identifying ciphertext obtained by encrypting a wallet identifying original text of the user by using an access key of the scene application.
10. The method of claim 7, before the obtaining the digital resource fed back by the blockchain network, further comprising:
acquiring a digital resource list in a resource block chain account fed back by a block chain network; the digital resource list is determined under the condition that the block chain network passes the authentication of the resource access voucher corresponding to the resource block chain account;
and determining the selection operation of the scene application on the digital resource list, and controlling the block chain network to inquire the selected digital resources from the block chain according to the selection operation.
11. The method of claim 10, further comprising:
and under the condition that the digital resources in the resource block chain account are changed, synchronously updating the digital resource list.
12. A block chain-based digital resource processing device comprises:
a wallet blockchain account module to determine a wallet blockchain account for the user in the blockchain wallet in response to an access authorization request for the blockchain wallet by the context application; the wallet block chain account is pre-bound with a resource block chain account of a user in a resource production application;
the resource access voucher module is used for issuing a resource access voucher to the resource block chain account and feeding back the resource block chain account and the corresponding resource access voucher to the scene application;
the resource inquiry module is used for responding to a resource access request of the scene application, authenticating a resource access certificate carried in the resource access request, and inquiring digital resources of a user in the corresponding resource production application from the block chain under the condition that the authentication is passed;
and the resource feedback module is used for feeding back the digital resources to the scene application.
13. The apparatus of claim 12, wherein the wallet blockchain account module comprises:
the system comprises a wallet identity unit, a block chain wallet access authorization unit and a processing unit, wherein the wallet identity unit is used for extracting wallet identity information of a user from an access authorization request of a scene application to the block chain wallet; the wallet identity information is obtained when a user logs in a blockchain wallet authorization page embedded in the scene application;
and the wallet blockchain account unit is used for determining the wallet blockchain account of the user in the blockchain wallet according to the wallet identity information of the user.
14. The apparatus of claim 13, wherein the wallet id information of the user is a wallet id ciphertext obtained by encrypting a wallet id original text of the user with an access key of a scene application;
the wallet blockchain account unit includes:
the identity decoding subunit is used for decrypting the wallet identity ciphertext by using the admission key of the scene application to obtain a wallet identity original text of the user;
and the wallet blockchain account subunit is used for determining the wallet blockchain account of the user in the blockchain wallet by adopting the decrypted wallet identity original text.
15. The apparatus of claim 12, wherein the resource access credential module comprises:
the resource account selection unit is used for selecting a resource block chain account with access authority of the scene application from all resource block chain accounts bound by the wallet block chain account based on the configuration information of the access authority of the scene application;
and the access certificate issuing unit is used for issuing the resource access certificate for the resource block chain account with the access authority.
16. The apparatus of claim 12, wherein the resource query module comprises:
the access request extraction unit is used for extracting a resource block chain account to be accessed and a corresponding resource access certificate from a resource access request of the scene application;
the resource list feedback unit is used for authenticating the resource access certificate, determining a digital resource list in the resource block chain account under the condition that the authentication is passed, and feeding back the digital resource list to the scene application;
and the resource query unit is used for responding to the selection operation of the scene application on the digital resource list and querying the selected digital resource from the block chain.
17. The apparatus of claim 16, the apparatus further comprising:
and the list updating module is used for synchronously updating the digital resource list to the scene application under the condition that the digital resources in the resource block chain account are changed.
18. A block chain-based digital resource processing device comprises:
an authorization request module, configured to determine an access authorization request of a scenario application to a blockchain wallet, and send the access authorization request to a blockchain network, configured to instruct the blockchain network to perform the following: determining a wallet blockchain account of a user in a blockchain wallet; issuing a resource access certificate for a resource block chain account bound by a wallet block chain account;
an access request module, configured to generate a resource access request of a scenario application according to the resource access credential, and send the resource access request to the blockchain network, where the access request module is configured to instruct the blockchain network to perform the following: authenticating the resource access voucher carried in the resource access request, and inquiring digital resources of a user in the corresponding resource production application from the block chain under the condition that the authentication is passed;
and the resource acquisition module is used for acquiring the digital resources fed back by the block chain network.
19. The apparatus of claim 18, wherein the authorization request module comprises:
the wallet identity identification unit is used for determining wallet identity identification information of the user under the condition that the user logs in a blockchain wallet authorization page embedded in the scene application;
and the authorization request unit is used for determining an access authorization request of the scene application to the blockchain wallet according to the wallet identity information of the user.
20. The apparatus of claim 19, wherein the wallet identifying information of the user is a wallet identifying ciphertext obtained by encrypting a wallet identifying original text of the user with an admission key of the scene application.
21. The apparatus of claim 18, the apparatus further comprising a resource inventory module; the resource inventory module includes:
the list acquisition unit is used for acquiring a digital resource list in the resource block chain account fed back by the block chain network; the digital resource list is determined under the condition that the block chain network passes the authentication of the resource access voucher corresponding to the resource block chain account;
and the list selection unit is used for determining the selection operation of the scene application on the digital resource list and controlling the block chain network to inquire the selected digital resources from the block chain according to the selection operation.
22. The apparatus of claim 21, the apparatus further comprising:
and the list updating module is used for synchronously updating the digital resource list under the condition that the digital resources in the resource block chain account are changed.
23. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of blockchain-based digital resource processing of any of claims 1-11.
24. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the blockchain-based digital resource processing method according to any one of claims 1 to 11.
CN202211553052.2A 2022-12-06 2022-12-06 Block chain-based digital resource processing method, device, equipment and storage medium Active CN115564438B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211553052.2A CN115564438B (en) 2022-12-06 2022-12-06 Block chain-based digital resource processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211553052.2A CN115564438B (en) 2022-12-06 2022-12-06 Block chain-based digital resource processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115564438A CN115564438A (en) 2023-01-03
CN115564438B true CN115564438B (en) 2023-03-24

Family

ID=84770707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211553052.2A Active CN115564438B (en) 2022-12-06 2022-12-06 Block chain-based digital resource processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115564438B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117132399A (en) * 2023-10-25 2023-11-28 广州捷晨教育科技有限公司 Resource management system applied to meta universe

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014145708A1 (en) * 2013-03-15 2014-09-18 Visa International Service Association Snap mobile security apparatuses, methods and systems
CN111881483A (en) * 2020-08-07 2020-11-03 广州运通链达金服科技有限公司 Resource account binding method, device, equipment and medium based on block chain
CN112199714A (en) * 2020-12-04 2021-01-08 支付宝(杭州)信息技术有限公司 Privacy protection method and device based on block chain and electronic equipment
CN113723952A (en) * 2020-05-26 2021-11-30 北京三快在线科技有限公司 Resource state information processing method and device and electronic equipment
CN114255028A (en) * 2020-09-22 2022-03-29 支付宝实验室(新加坡)有限公司 Service processing platform, terminal equipment and account binding method
CN114298710A (en) * 2021-11-26 2022-04-08 浙江毫微米科技有限公司 Asset right determining method, device and system based on block chain and storage medium
CN114331421A (en) * 2021-12-13 2022-04-12 浙江毫微米科技有限公司 Asset management method, system, electronic device and storage medium based on block chain
CN115002130A (en) * 2022-05-31 2022-09-02 赵瑞 Personal digital twin DID construction application method based on block chain

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150074774A1 (en) * 2013-09-09 2015-03-12 Dhana Systems Corp. System, apparatus, and method for a unified identity wallet

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014145708A1 (en) * 2013-03-15 2014-09-18 Visa International Service Association Snap mobile security apparatuses, methods and systems
CN113723952A (en) * 2020-05-26 2021-11-30 北京三快在线科技有限公司 Resource state information processing method and device and electronic equipment
CN111881483A (en) * 2020-08-07 2020-11-03 广州运通链达金服科技有限公司 Resource account binding method, device, equipment and medium based on block chain
CN114255028A (en) * 2020-09-22 2022-03-29 支付宝实验室(新加坡)有限公司 Service processing platform, terminal equipment and account binding method
CN112199714A (en) * 2020-12-04 2021-01-08 支付宝(杭州)信息技术有限公司 Privacy protection method and device based on block chain and electronic equipment
CN114298710A (en) * 2021-11-26 2022-04-08 浙江毫微米科技有限公司 Asset right determining method, device and system based on block chain and storage medium
CN114331421A (en) * 2021-12-13 2022-04-12 浙江毫微米科技有限公司 Asset management method, system, electronic device and storage medium based on block chain
CN115002130A (en) * 2022-05-31 2022-09-02 赵瑞 Personal digital twin DID construction application method based on block chain

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Use Magic with the Ethereum blockchain;Chibuike Nwachukwu;《https://blog.logrocket.com/magic-ethereum-blockchain》;20220906;第1-18页 *
⻘⼭不遮,毕竟东流,集成Web3.0身份钱包MetaMask以太坊⼀键登录(Tornado6+Vue.js3);刘悦;《https://v3u.cn/a_id_213 》;20220531;第1-16页 *
如何实现MetaMask签名授权后DAPP⼀键登录功能?;辉哥;《https://learnblockchain.cn/article/425》;20181027;第1-36页 *

Also Published As

Publication number Publication date
CN115564438A (en) 2023-01-03

Similar Documents

Publication Publication Date Title
US10776786B2 (en) Method for creating, registering, revoking authentication information and server using the same
CN108293045B (en) Single sign-on identity management between local and remote systems
US9672336B1 (en) Security system for verification of user credentials
US9626497B2 (en) Sharing USB key by multiple virtual machines located at different hosts
US9032496B2 (en) Secure single sign-on
US20150365405A1 (en) Mobile Security Fob
CN113316783A (en) Two-factor identity authentication using a combination of active directory and one-time password token
KR102323522B1 (en) DID system that can be verified on a browser using credentials and its control method
US10701053B2 (en) Authentication and approval control system for distributed ledger platform
US10375064B2 (en) Method, apparatus, and system for remotely accessing cloud applications
CN105378768A (en) Proximity and context aware mobile workspaces in enterprise systems
CN102724221A (en) Enterprise information system using cloud computing and method for setting user authority thereof
US20140344910A1 (en) System and method for single-sign-on in virtual desktop infrastructure environment
US20130332727A1 (en) Access token event virtualization
KR102323523B1 (en) Blockchain credential-based identity authentication system and its control method
CN115564438B (en) Block chain-based digital resource processing method, device, equipment and storage medium
CN102571874A (en) On-line audit method and device in distributed system
CN112905990A (en) Access method, client, server and access system
US8904508B2 (en) System and method for real time secure image based key generation using partial polygons assembled into a master composite image
EP4149053B1 (en) Authorization processing method and apparatus, and storage medium
US11157597B2 (en) Method for providing cloud-based service
CN112256760B (en) Data prediction method and device, computer equipment and storage medium
CN110858832B (en) Password information reinforcement and data processing method, device, system and storage medium
CN103049693A (en) Method, device and system for using application program
KR101986690B1 (en) Key chain management method and key chain management system for end-to-end encryption of message

Legal Events

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