CN116012155A - Method and device for processing digital resources in blockchain - Google Patents
Method and device for processing digital resources in blockchain Download PDFInfo
- Publication number
- CN116012155A CN116012155A CN202211707950.9A CN202211707950A CN116012155A CN 116012155 A CN116012155 A CN 116012155A CN 202211707950 A CN202211707950 A CN 202211707950A CN 116012155 A CN116012155 A CN 116012155A
- Authority
- CN
- China
- Prior art keywords
- account
- user
- blockchain
- transaction
- resource
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 73
- 238000012545 processing Methods 0.000 title claims abstract description 48
- 238000012546 transfer Methods 0.000 claims description 84
- 230000006870 function Effects 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 14
- 230000004044 response Effects 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 15
- 238000005516 engineering process Methods 0.000 description 13
- 230000008569 process Effects 0.000 description 10
- 230000008901 benefit Effects 0.000 description 8
- 230000006872 improvement Effects 0.000 description 8
- 230000007246 mechanism Effects 0.000 description 8
- 230000008520 organization Effects 0.000 description 8
- 230000005540 biological transmission Effects 0.000 description 6
- 238000003672 processing method Methods 0.000 description 5
- 230000002829 reductive effect Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000002452 interceptive effect Effects 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 206010010356 Congenital anomaly Diseases 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000018109 developmental process Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 241000282412 Homo Species 0.000 description 1
- 108010001267 Protein Subunits Proteins 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000007795 chemical reaction product Substances 0.000 description 1
- 230000008094 contradictory effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000010931 gold Substances 0.000 description 1
- 229910052737 gold Inorganic materials 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 239000003999 initiator Substances 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000036961 partial effect Effects 0.000 description 1
- 229920001296 polysiloxane Polymers 0.000 description 1
- 239000000047 product Substances 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000007115 recruitment Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
- 239000010979 ruby Substances 0.000 description 1
- 229910001750 ruby Inorganic materials 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
- 238000011282 treatment Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the specification provides a method and a device for processing digital resources in a blockchain. A blockchain having a first smart contract deployed therein and having stored therein metadata for a target digital resource for characterizing rights to a future period of labor for the first user, the metadata including a line weight time and a default amount, the state of the first smart contract having stored therein a resource identification corresponding to the target digital resource, the method applicable to a node of the blockchain comprising: when the first user arrives at the right of line time and does not perform to a second user currently holding the target digital resource, receiving a first transaction of the first user for reimbursement of the default to the second user, wherein the first transaction invokes a first intelligent contract and comprises the resource identifier, a first account of the first user in the blockchain and a second account of the second user in the blockchain; by executing the first transaction, digital currency for the default amount is transferred from the first account to the second account.
Description
Technical Field
The embodiment of the specification belongs to the technical field of blockchains, and particularly relates to a processing method and device of digital resources in a blockchain.
Background
Blockchain (Blockchain) is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanisms, encryption algorithms, and the like. The data blocks are combined into a chained data structure in a time sequence in a block chain in a sequential connection mode, and the data blocks are guaranteed to be non-tamperable and non-counterfeitable in a cryptography mode. Because the blockchain has the characteristics of decentralization, non-tamperability of information, autonomy and the like, the blockchain is also receiving more and more attention and application.
Digital resources can be generated in a blockchain based on Non-homogeneous token (NFT) technology, and are typically characterized by Non-replaceability, limitability, and the like.
Disclosure of Invention
The invention aims to provide a processing scheme of digital resources in a blockchain, which can cast a new digital resource in the blockchain, namely, the digital resource which takes a period of labor time in the future of a worker as a right is represented, and support transaction of the digital resource, related default processing and the like, so that targeted digital resource processing can be realized.
A first aspect of the present specification provides a method for processing a digital resource in a blockchain, the blockchain having a first smart contract deployed therein and having stored therein metadata for a target digital resource for characterizing a time of labor in the future of the first user, the metadata including a line weight time and an amount of default, the state of the first smart contract having stored therein the amount of default corresponding to a resource identification of the target digital resource, the method being applied to a node of the blockchain, comprising: receiving a first transaction by the first user to reimburse against a default fund for a second user currently holding the target digital resource when the first user arrives at the right-of-way time, the first transaction invoking the first smart contract and including the resource identification, a first account by the first user in the blockchain, and a second account by the second user in the blockchain; transferring digital currency of the default amount from the first account to the second account by performing the first transaction.
A second aspect of the present specification provides a method of processing a digital resource involving a blockchain deployed with a first smart contract and storing metadata of a target digital resource for characterizing rights to a future period of labor time of the first user, the metadata including a line right time and an amount of default, the state of the first smart contract storing the amount of default corresponding to a resource identification of the target digital resource, the method comprising: when the line weight time arrives, a first prompt message is sent to a second user currently holding the target digital resource, and the first prompt message is used for confirming whether the first user performs the function; generating a first transaction by the first user to reimburse the second user for a default amount in response to receiving the unfulfilled evidence information replied by the second user for the first prompt information within the line weight time, the first transaction invoking the first smart contract and including the resource identification, a first account by the first user in the blockchain, and a second account by the second user in the blockchain; the first transaction is sent to the blockchain such that the blockchain transfers the digital currency of the default amount from the first account to the second account by executing the first transaction.
A third aspect of the present specification provides a processing apparatus for a digital resource in a blockchain, the blockchain having a first smart contract deployed therein and having stored therein metadata for a target digital resource for characterizing a time of labor for a first user in the future, the metadata including a line weight time and an amount of default, the first smart contract having stored therein in a state the amount of default corresponding to a resource identification of the target digital resource, the apparatus being applied to a node of the blockchain, comprising: a receiving unit configured to receive a first transaction that the first user reimburses for a default to a second user currently holding the target digital resource when the first user reaches the right-of-line time, the first transaction invoking the first smart contract and including the resource identification, a first account of the first user in the blockchain, and a second account of the second user in the blockchain; a transaction execution unit configured to transfer the digital currency of the default amount from the first account to the second account by executing the first transaction.
A fourth aspect of the present specification provides a processing apparatus for a digital resource relating to a blockchain deployed with a first smart contract and storing metadata of a target digital resource for characterizing rights to a future period of labor for the first user, the metadata including a line right time and an amount of default, the state of the first smart contract storing the amount of default corresponding to a resource identification of the target digital resource, the apparatus comprising: the first sending unit is configured to send first prompt information to a second user currently holding the target digital resource when the line weight time arrives, wherein the first prompt information is used for confirming whether the first user performs or not; a transaction generation unit configured to generate a first transaction for the first user to reimburse the second user for a default agreement in response to receiving the unfulfilled evidence information replied by the second user for the first prompt information within the line weight time, the first transaction invoking the first smart contract and including the resource identification, a first account of the first user in the blockchain, and a second account of the second user in the blockchain; a second sending unit configured to send the first transaction to the blockchain to cause the blockchain to transfer the digital currency of the default amount from the first account to the second account by executing the first transaction.
A fifth aspect of the present description provides a computer-readable storage medium having stored thereon a computer program which, when executed in a computer, causes the computer to perform a method as described in any one of the implementations of the first and second aspects.
A sixth aspect of the present specification provides a computing device comprising a memory having executable code stored therein and a processor which when executing the executable code implements a method as described in any of the implementations of the first and second aspects.
A seventh aspect of the present description provides a computer program which, when executed in a computer, causes the computer to perform a method as described in any one of the implementations of the first and second aspects.
In the scheme provided by the embodiment of the specification, a new digital resource can be cast in the blockchain, namely, the digital resource which takes a period of labor time in the future of a worker as the right is characterized, the transaction of the digital resource is supported, the related default processing and the like, the right of the employer is ensured through the intelligent contract corresponding to the digital resource, and the targeted digital resource processing can be realized. In addition, the scheme can make the idle time of the laborers more economically utilized, and can increase the effective working time of the laborers, thereby increasing the economic benefits of the laborers. In addition, the employer can lock the labor time of corresponding talents by purchasing the digital resources, the uncertainty risk of talent demands of the employer is reduced, and higher employment cost is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings that are needed in the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present disclosure, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block chain architecture diagram in one embodiment;
FIG. 2 is a schematic diagram of one application scenario in which embodiments of the present description may be applied;
FIG. 3 is a flow chart of a method of processing a digital resource in an embodiment of the present description;
FIG. 4 is a flow chart of a method of processing a digital resource in an embodiment of the present description;
FIG. 5 is a flow chart of a method of processing a digital resource in an embodiment of the present description;
FIG. 6 is a flow chart of a method of processing a digital resource in an embodiment of the present description;
FIG. 7 is a schematic diagram of a processing device for digital resources in an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a processing apparatus for digital resources in the embodiment of the present specification.
Detailed Description
In order to make the technical solutions in the present specification better understood by those skilled in the art, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present disclosure.
FIG. 1 illustrates a block chain architecture diagram in one embodiment. In the blockchain architecture diagram shown in fig. 1, the blockchain 100 includes N nodes, and nodes 1-8 are schematically shown in fig. 1. The connections between nodes schematically represent P2P (Peer to Peer) connections, which may be TCP connections or the like, for example, for transmitting data between nodes. The nodes may store a full amount of ledgers, i.e., the state of all blocks and all accounts. Wherein each node in the blockchain may generate the same state in the blockchain by performing the same transaction, each node in the blockchain may store the same state database.
Transactions in the blockchain domain may refer to task units that execute in the blockchain and are recorded in the blockchain. The transaction generally includes a transmission field (From), a reception field (To), and a Data field (Data) 5. Wherein, in case that the transaction is a transfer transaction
In this case, the From field indicates an account address at which the transaction is initiated (i.e., a transfer task To another account is initiated), the To field indicates an account address at which the transaction is received (i.e., a transfer is received), and the transfer amount is included in the Data field.
The functionality of the smart contract may be provided in the blockchain. Intelligent contracts on blockchain are on blockchain systems that can be touched by transactions
Issuing the executed contract. The smart contracts may be defined in the form of codes. Invoking the smart contract in the blockchain initiates a transaction with 0 pointing to the smart contract address such that each node in the blockchain runs the smart contract code in a distributed manner.
In the scenario of deploying contracts, for example, bob sends a transaction containing information to create an intelligent contract (i.e., deploying a contract) into a blockchain as shown in fig. 1, the data field of the transaction includes the code (e.g., bytecode or machine code) of the contract to be created, and the to field of the transaction is empty to indicate that the transaction is for deploying the contract. Agreement between nodes through consensus mechanism
Then, the contract address "0x6f8ae93 …" of the contract is determined, each node adds a contract account corresponding to the contract 5 address of the smart contract to the state database, allocates a state store corresponding to the contract account, stores a contract code, and saves the hash value of the contract code in the state store of the contract, thereby successfully creating the contract.
In the scenario of invoking a contract, for example, bob sends a transaction for invoking a smart contract into the blockchain as shown in fig. 1, the from field of the transaction is the address of the account of the transaction initiator (i.e., bob), and the to field is the above
"0x6f8ae93 …", i.e., the address of the smart contract being invoked, the data field of the transaction includes the method of invoking the smart contract and the 0 parameter. After consensus the transaction in the blockchain, each node in the blockchain may execute the transaction separately, thereby dividing
The contract is executed separately, and the status database is updated based on execution of the contract.
Blockchain technology differs from one of the decentralized features of conventional technology in that accounting is performed on individual nodes, otherwise known as distributed accounting, rather than conventional centralized accounting. The blockchain system is to be a hard-to-break, public, non-public system
The decentralizing honest and reliable system of the tamperable data record needs to achieve 5 security, definition and irreversibility of the distributed data record in the shortest time possible. In different types of blockchain networks, in order to keep account books consistent among the nodes of each record account book, a consensus algorithm is generally adopted to ensure that the above-mentioned consensus mechanism is adopted. For example, a block granularity consensus mechanism may be implemented between blockchain nodes, such as after a node (e.g., a unique node) generates a block, if the generated block is approved by other nodes, the other nodes record the same block. As another example, a block chain node can be implemented between
Transaction granularity consensus mechanisms, such as after a node (e.g., a unique node) obtains a blockchain transaction, if the 0 blockchain transactions are approved by other nodes, each node approving the blockchain transaction may respectively approve the blockchain transaction
Added to the latest block maintained by itself and eventually able to ensure that each node generates the same latest block. The consensus mechanism is a mechanism that the blockchain node achieves the consensus of the whole network about the blockinformation (or blockdata), and can ensure that the latest block is accurately added to the blockchain. The consensus mechanisms of the current mainstream include: proof of Work (POW), proof of equity (POS), proof of commission (Delegated Proof of Stake, DPOS), practical bayer fault tolerance (Practical Byzantine Fault Tolerance, PBFT) algorithms, and the like. Among the various consensus algorithms, the success of consensus on a consensus proposal is determined, typically after a preset number of nodes agree on the data to be consensus (i.e., the consensus proposal). Specifically, in the PBFT algorithm, f malicious nodes can be tolerated for N.gtoreq.3f+1 consensus nodes, that is, when 2f+1 nodes in the N consensus nodes agree, success of the consensus can be determined.
As previously described, digital resources may be generated in a blockchain based on NFT technology, which are typically characterized by non-replaceability, limitedness, and the like. In the prior art, physical items (e.g., shoes, clothing, electronics, etc.) and virtual items (e.g., video, music, pictures, etc.) are typically cast as digital resources in a blockchain and support transactions for the digital resources. Wherein the physical and virtual items generally belong to human-occupiable acquired resources.
The common person can occupy the acquired resources and also has the congenital endowment of the resources, such as time and the like. The congenital resources are valuable as acquired resources and can be traded and circulated.
The inventors of the present application have found that the following conflicts currently exist:
1. whether as a natural person or a social person, each person is most scarce in terms of time, all of the creation of value by the person is due to time/labor time, and scarce, valuable labor time (including present and future labor time) is naturally tradable. One of the essential demands of humans is the desire to realize self-help (self-value maximization), i.e. the need for value maximization per time period. However, there is a lot of room for the widespread loss of business (active or passive loss of business) and the slot jump to account for the maximization of human labor time distance value, and the need for maximization of human labor time value is conflicting with the widespread loss of business.
2. For most enterprises or DAO (Decentralized Autonomous Organization ) organizations, most of the most central production data is labor time of talents, and whether talents exist is often the most critical factor for the success or failure of an organization. If the future labor time of the required relevant talents can be locked in advance, the opportunity cost and risk are certainly the least way for the organization. The demands of organizations on future talent labor time certainty and uncertainty of future talent flows are contradictory.
3. The network-propagated tailor news and reimbursement information for the tailor's work reflect the transaction costs of the organization to maximize the enterprise benefit and the talent value.
Based on the above conflict, the inventors of the present application further contemplate the following problems:
1. how does the labor time value of the worker be maximized?
2. How does it enhance the deterministic planning of talents by an organization?
3. How does the employment costs of the business decrease when the business environment is unsuitable for expansion?
Through thought and research, the inventors of the present application provided the following solutions:
1. according to the kesi theorem: as long as the property rights are clear and the transaction cost is zero or small, the end result of market balancing is efficient, achieving pareto of resource allocation is better, no matter who property rights are given to at the beginning.
2. The labor time of the laborers is digitally recycled through the block chain and NFT technology, so that the transaction cost of the labor time is smaller (compared with the traditional recruitment mode) and is close to 0.
3. The future labor time of the laborers can be digitally recycled through the NFT, and the labor time of the laborers can be changed in advance through segmentation, transaction and circulation, and the economic value can be maximized.
4. Enterprises can be used for locking the labor time of corresponding talents by purchasing digital resources for representing the authority of a period of labor time in the future of the laborers, so that the uncertainty risk of the talent demands of the enterprises is reduced.
5. When the organization can lock the labor time of the laborers and the operation environment is not suitable for expansion, the organization can choose to not run the right, and higher employment cost is avoided.
6. The method realizes the transition from the establishment/enterprise to realize the more effective bidirectional rush of the establishment/enterprise.
Based on the above-described conflicts, problems, and solutions, to enable greater economic utilization of the idle time of the laborers, increase the effective working time of the laborers, thereby increasing the economic benefits of the laborers, and to enable employers (e.g., businesses, DAO organizations, etc.) to lock the working time of the corresponding talents, reduce the risk of uncertainty in talent needs of the employers, avoid higher employment costs, and enable rights to a future working time of the laborers, such as options for a future working time of the laborers, to be cast into digital resources, and to support transactions for the digital resources, and related breach treatments, etc., based on smart contracts and NFT technology. Based on this, the embodiment of the specification provides a processing method of digital resources in a blockchain.
Reference is made to fig. 2, which is a schematic diagram of one application scenario in which embodiments of the present description may be applied. In the application scenario shown in FIG. 2, user device 21 of laborer A, user device 22 of employer B, digital resource trading platform 23, and blockchain 24 may be included. The digital resource transaction platform 23 includes a client 231 and a server 232, and the client 231 is installed on each of the user equipment 21 and the user equipment 22. The server 232 may be in communication with the user device 21, the user device 22, and the blockchain 24. The blockchain 24 includes N nodes, node 1-node 8 being shown schematically in FIG. 2. For a specific explanation of the N nodes, reference may be made to the previous relevant explanation, and the description is omitted here.
In practice, the digital resource transaction platform 23 may be embodied as a time market platform or a job hunting platform, etc., and is not particularly limited herein. Digital resource trading platform 23 may support the registration of accounts for workers and employers and may open accounts for workers and employers, respectively, in blockchain 24. Wherein balance accounts and deposit accounts may be opened for workers and balance accounts for employers in blockchain 24. The guaranteed-gold account may not support worker presentation through settings in the blockchain 24.
Specifically, both laborer A and employer B are registered users of digital resource trading platform 23. Included in blockchain 24 are a balance account and a deposit account for laborer a and a balance account for employer B. In addition, intelligent contracts C1, C3 for calls by laborer A and intelligent contract C2 for calls by employer B are also deployed in blockchain 24. In one example, the smart contracts C1, C3 are available for invocation by all of the labourers registered in the digital resource trading platform 23; the smart contract C2 may be invoked by all employer users registered with the digital resource trading platform 23. In another example, the smart contracts C1, C3 may be implemented and compiled and deployed specifically for the Programming of the worker A when the balance account and the margin account are opened for the worker A in the blockchain 24; the smart contract C2 may be specifically programmed to be implemented, compiled, and deployed for employer B when a balance account is opened for employer B in blockchain 24.
The smart contracts C1, C2, C3 may all be implemented based on NFT technology, e.g., the smart contracts C1, C2, C3 all employ the ERC (Ethereum Request for Comment) standard. Wherein, ERC can represent protocol proposal submitted by Ethernet developer, and ERC contains technical and organization notes and standards. The smart contract C1 may be used to deal with violations of the worker a, etc. The smart contract C2 may be used to transfer accounts of the employer B, etc. The smart contract C3 may be used to generate digital resources for the worker a, transfer accounts for the worker a, etc.
The balance account of the worker a, the deposit account, and the balance account of the employer B may be external accounts or contract accounts.
When the balance account of the laborer a, the deposit account and the balance account of the employer B are contract accounts, the balance account of the laborer a may be a contract account of the intelligent contract C3, the deposit account of the laborer a may be a contract account of the intelligent contract C1, and the balance account of the employment er B may be a contract account of the intelligent contract C2. Further, the ERC standard adopted by the smart contracts C1, C2 and C3 can be ERC-998 standard. ERC-998 is also known as a combinable non-homogeneous tokens (CNFT), and the structural design of the ERC-998 standard is a standardized extension that allows any one NFT to have other NFTs or FTs. When the CNFT is transferred, the whole hierarchical structure and the affiliated relationship owned by the CNFT are transferred. In short, ERC-998 may contain multiple tokens in the form of ERC-721 and ERC-20, and the use of such underlying protocol standards to generate tokens enables transfer to be effected once to package all of the different types of tokens. Since the ERC-998 standard is a well known technique, it will not be described in detail herein.
When a worker a wants to cast rights to his future labor time T into a target digital resource, a transaction Tx5 for generating the target digital resource may be transmitted to the server 232 through the user device 21, the transaction Tx5 invoking the smart contract C3 and including metadata of the target digital resource. The metadata may include identity information of the worker a, post, labor time T, reward information, work content, line time, default amount, etc. Thereafter, the server 232 may send the transaction Tx5 to the blockchain 24 to cause the blockchain 24 to allocate a unique resource identification in the blockchain 24 for the target digital resource by executing the transaction Tx5 and store a data structure of the target digital resource, the data structure including the resource identification and the metadata. It should be appreciated that the data structure may be considered a target digital resource. In particular, the data structure may be stored into the state of the balance account of laborer a. Wherein the data structure is specifically stored into the state of the smart contract C3 when the balance account of the laborer a is the contract account of the smart contract C3. In addition, the blockchain 24 may return the resource identification to the user device 21 through the server 232.
When the worker a wants to sell the target digital resource, it is possible to set a purchase amount of the target digital resource and put the target digital resource and the purchase amount on the digital resource trading platform 23. Specifically, the laborer a may send a put-on request for the target digital resource to the server 232 via the user device 21, the put-on request including at least a portion of the metadata of the target digital resource, and the purchase amount. Thereafter, the server 232 may issue sales information of the target digital resource to the outside. The sales information may include the at least partial metadata and the purchase amount. Wherein the purchase amount is generally less than the amount of the breach identified in the target digital resource.
Before, during, or after the target digital resource is put on the digital resource transaction platform 23, the worker a may deposit a certain amount of digital money into its balance account, which is equal to or greater than the default amount indicated in the target digital resource.
Employer B may access sales information for digital resources externally published by server 232 through user device 22. When employer B considers that labor a is his/her desired talent and wants to lock labor time T of labor a, transaction Tx4 for employer B to purchase the target digital resource may be sent to server 232 via user device 22, transaction Tx4 may invoke smart contract C2 and smart contract C3, and include the resource identification of the target digital resource and the user's license account for labor a. Further, transaction Tx4 may also include a balance account for each of laborer A and employer B. Thereafter, the server 232 may send the transaction Tx4 to the blockchain 24 to cause the blockchain 24 to transfer the digital currency of the purchase amount from the balance account of the employer B to the balance account of the laborer A, write metadata for the target digital resource into the status of the balance account of the employment er B, and transfer the digital currency of the default amount from the balance account of the laborer A to the deposit account of the laborer A by executing the transaction Tx 4. It should be noted that writing metadata of the target digital resource into the status of the balance account of employer B may be performed by performing the step of transferring the target digital resource from the balance account of laborer a to the balance account of employer B.
Before the right-of-way time arrives, digital resource trading platform 23 may support worker A to redeem the target digital resource and employer B to transfer the target digital resource, or to split the target digital resource to transfer the split sub-resources. Wherein the sub-resource is used to characterize the rights to a portion of the labor time T, such as to characterize the option of the subject matter taking the portion of the time as a target.
Specifically, when the laborer A wants to redeem the target digital resource before the above-mentioned line time, the transaction Tx3 for the laborer A to redeem the target digital resource may be sent to the server 232 via the user device 21, and the transaction Tx3 may invoke the smart contract C1 and include the resource identification of the target digital resource, the principal account of the laborer A, and the balance account of the employment B. The server 232 may then send the transaction Tx3 to the blockchain 24 to cause the blockchain 24 to transfer the digital currency of the default amount from the payroll account of the laborer a to the balance account of the employer B by executing the transaction Tx 3. Note that the redemption of the targeted digital resource by the laborer a may be considered an default and therefore requires the transfer of digital currency for the default amount from the payback account of the laborer a to the balance account of the employer B.
When employer B wants to transfer the entire target digital resource due to an improper expansion of the operating environment, etc., a transfer request (which may be referred to as a first transfer request) for the target digital resource may be sent to server 232 via user device 22 prior to the line time. To ensure the rights of laborer A, the transfer of employer B for the target digital resource requires consent from laborer A. Accordingly, the server 232 may transmit a prompt message for confirming whether to approve transfer of the target digital resource to the worker a after receiving the first transfer request. When labourer a agrees to transfer, server 232 may be replied with agreeing transfer information (which may be referred to as first agreeing transfer information) for the target digital resource. The server 232 may issue transfer information of the target digital resource based on the first transfer request when knowing that the worker a agrees to transfer the target digital resource based on the first transfer information. When labor a does not agree to transfer, server 232 may be replied with information that does not agree to transfer the target digital resource, after which labor a may choose to redeem the target digital resource.
When employer B is not required to work for employer B during a portion of time T1 of time T due to improper expansion of the operating environment, etc., employer B may divide the target digital resource prior to the time of ownership, thereby obtaining divided sub-resources and yielding sub-resources. In one example, smart contract C2 may also be used to generate a digital resource, employer B may send transaction Tx6, which may invoke smart contract C2, to server 232 via user device 22 to generate a child resource of the target digital resource, and include the resource identification of the target digital resource, time T1, and the balance account of employer B. Thereafter, the server 232 may send the transaction Tx6 to the blockchain 24 to cause the blockchain 24 to allocate a resource identification unique in the blockchain 24 for the sub-resource by executing the transaction Tx6 and store the data structure of the sub-resource. The data structure may include, for example, the resource identification, time T1, metadata for the target digital resource, and the like. It should be appreciated that the data structure may be considered as the child resource. In particular, the data structure may be stored into the status of the balance account of employer B. Wherein the data structure may be stored in association with a data structure of the target digital resource. In addition, the blockchain 24 may return the resource identification of the sub-resource to the user device 22 through the server 232.
Employer B may then send a transfer request (which may be referred to as a second transfer request) for the sub-resources described above to server 232 via user device 22. To ensure the rights of laborer A, the transfer of employer B for the sub-resources described above requires consent from laborer A. Accordingly, upon receiving the second transfer request, the server 232 may send prompt information to the worker a for confirming whether to agree to transfer the above-described sub-resource. When worker a agrees to transfer, agreement transfer information (which may be referred to as second agreement transfer information) for the above-described child resources may be returned to server 232. The server 232 may issue transfer information of the target digital resource to the outside based on the second transfer request when knowing that the worker a agrees to transfer the sub-resource based on the second transfer agreement information. When the labor A does not agree to transfer, information may be returned to the server 232 that the sub-resource is not agree to transfer, after which the labor A may choose to redeem the sub-resource.
Upon arrival of the line of authority time, server 232 may send a prompt to employer B currently holding the target digital resource to confirm whether or not worker A is performing. When worker A performs, such as worker A has arrived at the workplace of employer B or has signed up for employment with employer B, employer B may reply to server 232 via user device 22 with information characterizing that worker A has performed. When worker a is not performing, employer B may reply to server 232 via user device 22 with non-performance certification information indicating that worker a is not performing to the right of way time. If the server 232 receives the unreliability proof information, a transaction Tx1 may be generated that laborer a reimburses employer B for the offender, and the transaction Tx1 may invoke the smart contract C1 and include the resource identification of the target digital resource, the principal account of laborer a, and the balance account of employment B. The server 232 may then send the transaction Tx1 to the blockchain 24 to cause the blockchain 24 to transfer the digital currency of the default amount from the payroll account of the laborer A to the balance account of the employer B by executing the transaction Tx 1.
In one embodiment, employer B may also send information to server 232 via user device 22 indicating whether the right of line is available when the right of line time arrives. In one example, upon arrival of the right-of-line time, server 232 may first send a prompt to employer B to confirm whether the right-of-line is in progress. If employer B determines the inauthentic, information indicating the inauthentic may be returned to server 232. If employer B determines the right to line, then information indicating the right to line may be returned to server 232. If server 232 receives the information indicating the right of line, server 232 may then send a prompt to employer B confirming whether or not worker A is performing as previously described.
It should be noted that if employer B does not have access to the right of way time, employer B will only lose the digital money spent purchasing the target digital resources, not too much, thus avoiding higher employment costs.
In the event that worker a reaches the right of way time to agree to perform the performance, when the labor time T ends, server 232 may send a prompt to employer B to confirm whether worker a has performed the performance. If worker A performs, then employer B may reply to server 232 with performance completion information indicating that worker A has performed. Upon receiving the performance completion information, server 232 may generate a transaction Tx2 that hires employee B to pay for employee a, where transaction Tx2 invokes smart contracts C1 and C2, and includes the resource identification of the target digital resource, the balance account and the guarantee account of employee a, the balance account of hirer B. Thereafter, the server 232 may send the transaction Tx2 to the blockchain 24 to cause the blockchain 24 to determine a monetary amount corresponding to the labor time T based on the monetary amount represented in the target digital resource by executing the transaction Tx2, and transfer the monetary amount from the balance account of the employment B to the balance account of the worker A, and the monetary amount of the default amount from the deposit account of the worker A to the balance account of the worker A.
Through the digital resource processing process, a new digital resource can be cast in the blockchain, namely the digital resource which takes a period of labor time in the future of a worker as the authority is characterized, the transaction of the digital resource is supported, the related default processing and the like, the right of the employer is ensured through the intelligent contract corresponding to the digital resource, and the targeted digital resource processing can be realized. In addition, the scheme can make the idle time of the laborers more economically utilized, and can increase the effective working time of the laborers, thereby increasing the economic benefits of the laborers. In addition, the employer can lock the labor time of corresponding talents by purchasing the digital resources, the uncertainty risk of talent demands of the employer is reduced, and higher employment cost is avoided.
Next, the digital resource processing scheme provided in the embodiments of the present specification will be described with reference to specific embodiments.
Referring to fig. 3, a flow chart of a method of processing a digital resource in an embodiment of the present disclosure is shown. The system comprises a first intelligent contract, a target digital resource, a first user and a second intelligent contract, wherein the first intelligent contract is deployed in the blockchain, metadata of the target digital resource is stored in the blockchain, the target digital resource is used for representing authority of a period of labor time in the future of the first user, the metadata comprises line weight time and default amount, and the default amount corresponding to a resource identifier of the target digital resource is stored in the state of the first intelligent contract.
As shown in fig. 3, first, in step S301, when a line right time arrives, a server in the digital resource trading platform sends first prompt information to a second user currently holding a target digital resource, where the first prompt information is used to confirm whether the first user performs a performance.
In the following, a first user is taken as a laborer a, a second user is taken as a laborer B, the above-mentioned labor time is taken as a labor time T, and a first smart contract is taken as a smart contract C1 as an example.
Wherein step S301 is performed in the event that employer B successfully purchases the targeted digital resources of labor a. In step S301, when the line right time of the target digital resource arrives, the server in the digital resource trading platform may send a first prompt message to the user equipment of the employer B currently holding the target digital resource, where the first prompt message is used to confirm whether the laborer a performs the job.
Typically, employer B needs to reply to the server whether or not worker a is performing within the right of way time. Wherein the start time of the line weight time and the labor time T may be the same day. In the event that the arrival of the employee A at the line time is not underway, the employer B may perform step S303 via the user device.
In step S303, the second user transmits the non-performance verification information to the server.
Specifically, the second user may send the unfulfilled information to the server through the user device. The unreliability check information may be used to indicate that the arrival of the labor a at the line weight is unreliability.
In step S305, the server in the digital resource trading platform generates a first transaction for the first user to reimburse the second user for the default in response to receiving the unfulfilled evidence information replied by the second user for the first prompt information in the right-of-way time, the first transaction invoking the first smart contract and including the resource identification of the target digital resource, the first account of the first user in the blockchain, and the second account of the second user in the blockchain.
Wherein the first account may act as a deposit account for laborer a and the second account may act as a balance account for employer B.
In practice, there may be a worker-to-right time to perform, but the employer replies to the server that the worker did not perform. To prove that the employer lies when this occurs, in one embodiment, the transaction Tx1 (first transaction) may be caused to contain the unfulfilled evidence information returned by the employer B, such that the unfulfilled evidence information may be uplink-documented.
In step S307, the server in the digital resource trading platform sends the first trade to the blockchain.
In step S309, the blockchain transfers the digital currency of the default amount from the first account to the second account by performing the first transaction.
Specifically, during execution of transaction Tx1, smart contract C1 may be invoked to transfer digital currency of the default amount from the principal's A deposit account to the employer's B balance account. The state of the intelligent contract C1 stores the resource identification and the default amount of the target digital resource. During execution of the transaction Tx1, the default amount may be looked up from the state of the smart contract C1 based on the resource identification included in the transaction Tx1, such that digital currency for the default amount may be transferred from the credit account of the laborer a to the balance account of the employer B.
It should be noted that, the fact that the right of way time of the laborer a does not perform well is a performance behavior which is not well affected, the infraction record of the laborer a can be recorded and stored in the chain, and the infraction record can affect the credit of the laborer a. Based on this, in one embodiment, the corresponding example of fig. 3 may further include step S311.
In step S311, the blockchain generates a record of the first user' S breach relating to the target digital resource and stores the breach record to the blockchain.
The logic for generating and storing the breach record may be implemented by the smart contract C1, for example, and the breach record may be stored in the state of the smart contract C1.
After transferring the digital currency of the default amount from the principal's A deposit account to the employer's B balance account, the principal's A and employer's B are no longer provided with rights and obligations related to the target digital resource, and thus the target digital resource is destroyed. Based on this, in one embodiment, the corresponding example of fig. 3 may further include step S313.
In step S313, the block chain destroys the target digital resource.
Specifically, the target digital resource may be destroyed by transferring the target digital resource to a zero address in the blockchain. Further, when the target digital resource is stored in the status of employer B's balance account, the target digital resource may be transferred from employer B's balance account to a zero address in the blockchain.
In one embodiment, when the transaction Tx1 also includes the unfulfilled information as previously described, the unfulfilled information may be stored to the blockchain. For example, the unfulfilled information may be stored into the state of the smart contract C1.
The scheme provided by the corresponding embodiment of fig. 3 can cast a new digital resource in the blockchain, namely, the digital resource used for representing the right of a period of labor time in the future of a worker, supports the transaction of the digital resource, the related default processing and the like, and ensures the right of employment through the intelligent contract corresponding to the digital resource, thereby realizing the targeted digital resource processing. In addition, the scheme can make the idle time of the laborers more economically utilized, and can increase the effective working time of the laborers, thereby increasing the economic benefits of the laborers. In addition, the employer can lock the labor time of corresponding talents by purchasing the digital resources, the uncertainty risk of talent demands of the employer is reduced, and higher employment cost is avoided.
The resource handling process when the worker a arrives at the right-of-way time without performing is described above in connection with fig. 3. In practice, the metadata of the target digital resource may further include labor time T and compensation information, and a second smart contract (such as smart contract C2 described above) may be deployed in the blockchain, and the metadata is stored in the state of the second smart contract. Additionally, a balance account for laborer A may also be included in the blockchain. Wherein, prior to performing the resource processing procedure shown in fig. 3, the balance of the principal's a deposit account includes digital money transferred from the balance account of the principal a to the deposit account for the amount of the default. The resource handling process at the completion of worker a performance is described below in connection with fig. 4.
Referring to fig. 4, a flow chart of a method of processing a digital resource in an embodiment of the present disclosure is shown.
As shown in fig. 4, first, in step S401, when the first user agrees to perform the performance and the labor time is over, the server in the digital resource transaction platform sends second prompt information to the second user, where the second prompt information is used to confirm whether the first user performs the performance.
Specifically, when the first user agrees to perform the performance and the labor time is over, a server in the digital resource trading platform may send a second prompt to employer B to confirm whether or not the performance of worker a is complete. After receiving the second prompt, employer B may perform step S403 if it is determined that worker a has completed performing.
In step S403, the second user transmits the performance completion information to the server.
Specifically, employer B may send performance completion information to the server via the user device, indicating that worker a has completed performance.
In step S405, a server in the digital resource trading platform generates a second transaction that the second user pays to the first user, the second transaction invoking the first smart contract and the second smart contract, and includes a resource identification of the target digital resource, the first account, the second account, and the third account.
Specifically, a server in the digital resource trading platform may generate a transaction Tx2 that hires employee B to pay for employee a, where transaction Tx2 invokes smart contracts C1 and C2, and includes a resource identification of the target digital resource, a balance account of employee a, a guarantee account, and a balance account of hirer B.
In step S407, the server in the digital resource trading platform sends a second trade to the blockchain.
In step S409, the blockchain determines a monetary compensation corresponding to the labor time based on the monetary compensation information by performing a second transaction, and transferring the digital currency of the monetary compensation from the second account to the third account and transferring the digital currency of the default amount from the first account to the third account.
Specifically, during execution of the transaction Tx2, the intelligent contract C2 may be invoked, based on the resource identifier included in the transaction Tx2, the compensation information and the labor time T related to the target digital resource may be found from the state of the intelligent contract C2, and further, a compensation amount corresponding to the labor time T may be determined based on the compensation information, and digital currency of the compensation amount may be transferred from the balance account of the employment B to the balance account of the worker a. Moreover, the smart contract C1 may also be invoked to find the default amount associated with the target digital resource from the state of the smart contract C1 based on the resource identification included in the transaction Tx2, and transfer the digital currency of the default amount from the principal account of the principal a to the balance account of the principal a. In addition, the target digital resource may fail due to the end of the labor time T.
The scheme provided by the corresponding embodiment of fig. 4 can enrich the interactive functions of the blockchain and realize targeted digital resource processing. In addition, the unit labor time of the laborers is also facilitated to achieve the maximization of economic value, and the economic benefits of the laborers can be increased.
The blockchain has, in addition to the functionality described above, some processing logic prior to the arrival of the line time, such as may handle redemption transactions submitted by the labor a prior to the line time for the target digital resource, and the like. In practice, when the labor A has a better choice, or has other intent, the redemption target digital resource may be selected before the line time. Next, the redemption process of the target digital resource is described in connection with fig. 5.
Referring to fig. 5, a flow chart of a method of processing a digital resource in an embodiment of the present disclosure is shown.
As shown in fig. 5, first, at step S501, a first user sends a third transaction to a server in the digital resource trading platform before a line time, the third transaction invoking a first smart contract and including a resource identification of the target digital resource, a first account, and a second account, where the first user redeems the target digital resource.
Specifically, when the laborer A wants to redeem the target digital resource before the line time, the transaction Tx3 for the laborer A to redeem the target digital resource can be sent to a server in the digital resource transaction platform through the user equipment. For example, transaction Tx3 may be sent to the server through a client of a digital resource transaction platform installed in the user device. Transaction Tx3 invokes smart contract C1 and includes the resource identification of the target digital resource, the deposit account of worker a, and the balance account of employer B.
In step S503, the server in the digital resource trading platform sends a third trade to the blockchain.
In step S505, the blockchain transfers the digital currency of the default amount from the first account to the second account by performing a third transaction.
Specifically, during execution of transaction Tx3, smart contract C1 may be invoked to transfer digital currency of the default amount from the principal's A deposit account to the employer's B balance account. Note that, the state of the smart contract C1 stores the resource identifier and the default amount of the target digital resource. During execution of the transaction Tx3, the default amount may be looked up from the state of the smart contract C1 based on the resource identification included in the transaction Tx3, such that digital currency for the default amount may be transferred from the credit account of the laborer a to the balance account of the employer B.
After transferring the digital currency of the default amount from the principal's A deposit account to the employer's B balance account, the principal's A and employer's B do not have the rights and obligations associated with the target digital resource, and thus the target digital resource needs to be destroyed. Based on this, in one embodiment, the corresponding example of fig. 5 may further include step S507.
In step S507, the block chain destroys the target digital resource.
For the explanation of step S507, reference may be made to the related explanation of step S313, which is not repeated here.
The scheme provided by the corresponding embodiment of fig. 5 can enrich the interactive functions of the blockchain and realize targeted digital resource processing. In addition, the unit labor time of the laborers is also facilitated to achieve the maximization of economic value, and the economic benefits of the laborers can be increased.
In practice, the blockchain may have other certification functions in addition to the certification functions described above. Specifically, in one embodiment, when employer B transfers the target digital resource prior to the line time and worker a agrees to transfer, the blockchain may receive first co-transfer information for worker a for the target digital resource and store the first co-transfer information to the blockchain. In another embodiment, when employer B transfers a sub-resource of the target digital resource prior to the line right time and worker a agrees to transfer, the blockchain may receive second agreement transfer information for worker a for the sub-resource and store the second agreement transfer information to the blockchain. The sub-resource is used to characterize the rights to a part of the time of the labor time T. It should be noted that the first and second transfer agreement information may be received by the blockchain from a server in the digital resource trading platform.
In one embodiment, a third smart contract (e.g., smart contract C3 described above) may also be deployed in the blockchain. Metadata and purchase amount of the target digital resource are stored in the state of the intelligent contract C3, the deposit account of the worker a is a contract account of the intelligent contract C1, the balance account of the employer B is a contract account of the intelligent contract C2, and the balance account of the worker a is a contract account of the intelligent contract C3. Wherein the ERC standard adopted by each of the smart contracts C1, C2, C3 may be the ERC-998 standard. In this embodiment, the purchase process for the targeted digital resource by employer B may be as shown in FIG. 6.
Referring to fig. 6, a flow chart of a method of processing digital resources in an embodiment of the present disclosure is shown.
As shown in fig. 6, first, in step S601, the second user transmits a fourth transaction for purchasing a target digital resource by the second user to a server in the digital resource transaction platform, the fourth transaction calling the second smart contract and the third smart contract and including a resource identification of the target digital resource and the first account.
Specifically, when employer B wants to purchase the target digital resource from laborer a, transaction Tx4 (fourth transaction) for employer B to purchase the target digital resource may be sent to a server in the digital resource trading platform through the user device, transaction Tx4 invoking smart contract C2 and smart contract C3, and including the resource identification of the target digital resource and the license account of laborer a.
In step S603, the server in the digital resource trading platform sends a fourth trade to the blockchain.
In step S605, the blockchain transfers the digital currency of the purchase amount from the second account to the third account, writes metadata of the target digital resource into the state of the second smart contract, and transfers the digital currency of the default amount from the third account to the first account by performing a fourth transaction.
Specifically, in executing the transaction Tx4, the purchase amount, the default amount, and the metadata of the target digital resource may be read from the state of the smart contract C3 based on the resource identification included in the transaction Tx 4. Moreover, smart contract C2 may be invoked to transfer the digital currency of the purchase amount from the balance account of employer B to the balance account of laborer A; invoking the intelligent contract C3 to transfer the target digital resource from the balance account of the laborer A to the balance account of the employer B to write metadata of the target digital resource into the state of the intelligent contract C2, and transferring the digital currency of the default amount from the balance account of the laborer A to the deposit account of the laborer A.
The scheme provided by the corresponding embodiment of fig. 6 can enrich the interactive functions of the blockchain and realize targeted digital resource processing. Moreover, the idle time of the laborers can be utilized economically to a greater extent, and the effective working time of the laborers can be increased, so that the economic benefits of the laborers are increased. In addition, the employer can lock the labor time of corresponding talents by purchasing the digital resources, the uncertainty risk of talent demands of the employer is reduced, and higher employment cost is avoided.
FIG. 7 is a schematic diagram of a processing device for digital resources in a blockchain in an embodiment of the present disclosure. The blockchain is deployed with a first smart contract and stores metadata for a target digital resource that characterizes a right to a future labor time of the first user, the metadata including a line weight time and a default amount, the state of the first smart contract storing the default amount corresponding to a resource identification of the target digital resource. The apparatus may be applied to nodes of a blockchain.
As shown in fig. 7, a processing apparatus 700 for digital resources in a blockchain in an embodiment of the present disclosure may include: a receiving unit 701 and a transaction execution unit 702. Wherein the receiving unit 701 is configured to receive a first transaction that the first user pays for a default to a second user who currently holds a target digital resource when the first user reaches a right-of-line time, the first transaction invoking a first smart contract and including a resource identification of the target digital resource, a first account of the first user in the blockchain, and a second account of the second user in the blockchain; the transaction execution unit 702 is configured to transfer the digital currency of the default amount from the first account to the second account by executing the first transaction.
Further, the transaction execution unit 702 may be further configured to: a first user's breach record is generated in relation to the target digital resource and stored to the blockchain.
In some embodiments, the first transaction may further include non-performance-proving information submitted by the second user, the non-performance-proving information being used to indicate that the first user is not performing by the right-of-way time; and the transaction execution unit 702 may be further configured to: the unreliability certification information is stored to the blockchain.
In some embodiments, a third account of the first user is also included in the blockchain, the first account acting as a deposit account and the third account acting as a balance account; before the receiving unit 701 receives a first transaction in which the first user reimburses the second user for the default amount, the balance of the first account includes digital money transferred from the third account to the first account.
Further, the metadata also comprises the labor time and the compensation information, a second intelligent contract is deployed in the blockchain, and the metadata of the target digital resource is stored in the state of the second intelligent contract; and the receiving unit 701 may be further configured to: when the first user completes based on the target digital resource performance, receiving a second transaction for the second user to pay the first user, wherein the second transaction invokes the first intelligent contract and the second intelligent contract and comprises a resource identifier, a first account, a second account and a third account of the target digital resource; the transaction execution unit 702 may be further configured to: determining a compensation amount corresponding to the labor time based on the compensation information by executing a second transaction, transferring digital money of the compensation amount from the second account to a third account, and transferring digital money of the default amount from the first account to the third account.
In some embodiments, the receiving unit 701 may be further configured to: receiving a third transaction for the first user to redeem the target digital resource when the first user redeems the target digital resource before the line time, the third transaction invoking the first smart contract and including a resource identification of the target digital resource, the first account, and the second account; the transaction execution unit 702 may be further configured to: by executing the third transaction, the digital currency of the default amount is transferred from the first account to the second account.
In some embodiments, the transaction execution unit 702 may be further configured to: after transferring the digital currency of the default amount from the first account to the second account, destroying the target digital resource.
Further, the target digital resource is stored in a state of the second account; and the transaction execution unit 702 may be further configured to: the target digital resource is transferred out of the second account to a zero address in the blockchain.
In some embodiments, the receiving unit 701 may be further configured to: when the second user transfers the target digital resource before the right-of-way time and the first user agrees to transfer, first co-transfer information for the target digital resource is received by the first user and stored to the blockchain.
In some embodiments, when a second user transfers a child of a target digital resource prior to a line time and a first user agrees to transfer, second agreement transfer information for the child for the first user is received and the second agreement transfer information is stored to the blockchain, the child being used to characterize rights to a portion of the time of the labor time.
In some embodiments, a third smart contract is also deployed in the blockchain, the state of the third smart contract storing metadata of the target digital resource and the purchase amount, the first account being a contract account of the first smart contract, the second account being a contract account of the second smart contract, the third account being a contract account of the third smart contract; and the receiving unit 701 may be further configured to receive a fourth transaction of the second user purchasing the target digital resource when the second user purchases the target digital resource from the first user, the fourth transaction invoking the second smart contract and the third smart contract and including the resource identification of the target digital resource and the first account; the transaction execution unit 702 may be further configured to: by executing the fourth transaction, the digital currency of the purchase amount is transferred from the second account to the third account, the metadata is written into the state of the second smart contract, and the digital currency of the default amount is transferred from the third account to the first account.
In some embodiments, the first account does not support the first user presentation through settings in the blockchain.
Fig. 8 is a schematic diagram of the configuration of the processing apparatus of the digital resource in the embodiment of the present specification. The apparatus involves a blockchain deployed with a first smart contract and storing metadata for a target digital resource that characterizes a right to a future period of labor time for the first user, the metadata including a line weight time and a default amount, the state of the first smart contract storing the default amount corresponding to a resource identification of the target digital resource. The device can be applied to a digital resource transaction platform, such as a server in the platform.
As shown in fig. 8, a processing apparatus 800 for digital resources in the embodiment of the present specification may include: a first transmission unit 801, a transaction generation unit 802, and a second transmission unit 803. Wherein, the first sending unit 801 is configured to send, when the line weight time arrives, first prompt information to a second user currently holding the target digital resource, where the first prompt information is used to confirm whether the first user performs a performance; the transaction generation unit 802 is configured to generate, in response to receipt of the unfulfilled attestation information replied by the second user for the first hint information within the right-of-line time, a first transaction for the first user to reimburse the second user for the default agreement, the first transaction invoking the first smart contract and including a resource identification of the target digital resource, a first account of the first user in the blockchain, and a second account of the second user in the blockchain; the second sending unit 803 is configured to send the first transaction to the blockchain so that the blockchain transfers the digital money of the above-described default amount from the first account to the second account by executing the first transaction.
In the device embodiments corresponding to fig. 7 and 8, for further explanation of each unit, reference may be made to the related explanation in the related method embodiment, which is not described herein.
The present specification also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed in a computer, causes the computer to perform the processing method of digital resources described in the above method embodiments.
The embodiments of the present disclosure also provide a computing device, including a memory and a processor, where the memory stores executable code, and the processor implements the processing method of the digital resource described in the above method embodiments when executing the executable code.
The present specification also provides a computer program, wherein the computer program, when executed in a computer, causes the computer to execute the processing method of the digital resource described in the above method embodiment.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation device is a server system. Of course, the present application does not exclude that as future computer technology evolves, the computer implementing the functions of the above-described embodiments may be, for example, a personal computer, a laptop computer, a car-mounted human-computer interaction device, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Although one or more embodiments of the present description provide method operational steps as described in the embodiments or flowcharts, more or fewer operational steps may be included based on conventional or non-inventive means. The order of steps recited in the embodiments is merely one way of performing the order of steps and does not represent a unique order of execution. When implemented in an actual device or end product, the instructions may be executed sequentially or in parallel (e.g., in a parallel processor or multi-threaded processing environment, or even in a distributed data processing environment) as illustrated by the embodiments or by the figures. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, it is not excluded that additional identical or equivalent elements may be present in a process, method, article, or apparatus that comprises a described element. For example, if first, second, etc. words are used to indicate a name, but not any particular order.
For convenience of description, the above devices are described as being functionally divided into various modules, respectively. Of course, when one or more of the present description is implemented, the functions of each module may be implemented in the same piece or pieces of software and/or hardware, or a module that implements the same function may be implemented by a plurality of sub-modules or a combination of sub-units, or the like. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage, graphene storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
One skilled in the relevant art will recognize that one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Moreover, one or more embodiments of the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
One or more embodiments of the present specification may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the present description may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments. In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present specification. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
The foregoing is merely an example of one or more embodiments of the present specification and is not intended to limit the one or more embodiments of the present specification. Various modifications and alterations to one or more embodiments of this description will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, or the like, which is within the spirit and principles of the present specification, should be included in the scope of the claims.
Claims (17)
1. A method of processing a digital resource in a blockchain, the blockchain having a first smart contract deployed therein and having stored therein metadata for a target digital resource for characterizing a right to a future period of labor time for a first user, the metadata including a line weight time and a default amount, the state of the first smart contract having stored therein the default amount corresponding to a resource identification of the target digital resource, the method being applied to a node of the blockchain, comprising:
receiving a first transaction by the first user to reimburse against a default fund for a second user currently holding the target digital resource when the first user arrives at the right-of-way time, the first transaction invoking the first smart contract and including the resource identification, a first account by the first user in the blockchain, and a second account by the second user in the blockchain;
Transferring digital currency of the default amount from the first account to the second account by performing the first transaction.
2. The method of claim 1, wherein after the transferring the default amount of digital currency from the first account to the second account, further comprising:
a breach record of the first user in relation to the target digital resource is generated and stored to the blockchain.
3. The method of claim 1, wherein the first transaction further includes non-performance proving information submitted by the second user, the non-performance proving information being used to indicate that the first user did not perform at the right-of-way time; and
the method further comprises the steps of:
the unreliability certification information is stored to the blockchain.
4. The method of claim 1, wherein a third account of the first user is further included in the blockchain, the first account acting as a deposit account and the third account acting as a balance account;
the balance of the first account includes digital currency of the default amount transferred from the third account to the first account prior to receiving a first transaction by the first user to reimburse the default amount with the second user.
5. The method of claim 4, wherein the metadata further includes the labor time and rewards information, and a second smart contract is deployed in the blockchain, and the metadata is stored in a state of the second smart contract; and
the method further comprises the steps of:
receiving a second transaction from the second user to pay the first user when the first user completes based on the target digital resource performance, the second transaction invoking the first smart contract and the second smart contract and including the resource identification, the first account, the second account, and the third account;
determining a compensation amount corresponding to the labor time based on the compensation information by executing the second transaction, and transferring digital currency of the compensation amount from the second account to the third account, and transferring digital currency of the default amount from the first account to the third account.
6. The method of claim 1, further comprising:
receiving a third transaction for the first user to redeem the target digital resource when the first user redeems the target digital resource prior to the line right time, the third transaction invoking the first smart contract and including the resource identification, the first account, and the second account;
By executing the third transaction, digital currency of the default amount is transferred from the first account to the second account.
7. The method of one of claims 1-6, wherein after the transferring the default amount of digital currency from the first account to the second account, further comprising:
destroying the target digital resource.
8. The method of claim 7, wherein the target digital resource is stored in a state of the second account; and
the destroying the target digital resource includes:
the target digital resource is transferred from the second account to a zero address in the blockchain.
9. The method of claim 1, further comprising:
when the second user transfers the target digital resource before the line right time and the first user agrees to transfer, first co-transfer information of the first user for the target digital resource is received and stored to the blockchain.
10. The method of claim 1, further comprising:
when the second user transfers a sub-resource of the target digital resource before the line right time and the first user agrees to transfer, receiving second agreement transfer information of the first user for the sub-resource, and storing the second agreement transfer information to the blockchain, wherein the sub-resource is used for representing authority of part of the labor time.
11. The method of claim 5, wherein a third smart contract is also deployed in the blockchain, the metadata and purchase amount of the target digital resource being stored in a state of the third smart contract, the first account being a contract account of the first smart contract, the second account being a contract account of the second smart contract, the third account being a contract account of the third smart contract; and
the method further comprises the steps of:
receiving a fourth transaction of the second user purchasing the target digital resource when the second user purchases the target digital resource from the first user, the fourth transaction invoking the second smart contract and the third smart contract and including the resource identification and the first account;
by executing the fourth transaction, transferring digital currency of the purchase amount from the second account to the third account, writing the metadata into the state of the second smart contract, and transferring digital currency of the default amount from the third account to the first account.
12. The method of one of claims 4-5, 11, wherein the first account does not support the first user presence through settings in the blockchain.
13. A method of processing a digital resource involving a blockchain deployed with a first smart contract and storing metadata for a target digital resource for characterizing rights to a first user for a future period of labor time, the metadata including a line right time and an amount of default, the state of the first smart contract storing the amount of default corresponding to a resource identification of the target digital resource, the method comprising:
when the line weight time arrives, a first prompt message is sent to a second user currently holding the target digital resource, and the first prompt message is used for confirming whether the first user performs the function;
generating a first transaction by the first user to reimburse the second user for a default amount in response to receiving the unfulfilled evidence information replied by the second user for the first prompt information within the line weight time, the first transaction invoking the first smart contract and including the resource identification, a first account by the first user in the blockchain, and a second account by the second user in the blockchain;
the first transaction is sent to the blockchain such that the blockchain transfers the digital currency of the default amount from the first account to the second account by executing the first transaction.
14. A processing apparatus for a digital resource in a blockchain, the blockchain having a first smart contract deployed therein and having stored therein metadata for a target digital resource for characterizing a right to a future period of labor time for a first user, the metadata including a line weight time and a default amount, the state of the first smart contract having stored therein the default amount corresponding to a resource identification of the target digital resource, the apparatus being applied to a node of the blockchain, comprising:
a receiving unit configured to receive a first transaction that the first user reimburses for a default to a second user currently holding the target digital resource when the first user reaches the right-of-line time, the first transaction invoking the first smart contract and including the resource identification, a first account of the first user in the blockchain, and a second account of the second user in the blockchain;
a transaction execution unit configured to transfer the digital currency of the default amount from the first account to the second account by executing the first transaction.
15. A processing apparatus for a digital resource relating to a blockchain deployed with a first smart contract and storing metadata for a target digital resource for characterizing rights to a future period of labor time for a first user, the metadata including a line right time and an amount of default, the state of the first smart contract storing therein the amount of default corresponding to a resource identification of the target digital resource, the apparatus comprising:
the first sending unit is configured to send first prompt information to a second user currently holding the target digital resource when the line weight time arrives, wherein the first prompt information is used for confirming whether the first user performs or not;
a transaction generation unit configured to generate a first transaction for the first user to reimburse the second user for a default agreement in response to receiving the unfulfilled evidence information replied by the second user for the first prompt information within the line weight time, the first transaction invoking the first smart contract and including the resource identification, a first account of the first user in the blockchain, and a second account of the second user in the blockchain;
A second sending unit configured to send the first transaction to the blockchain to cause the blockchain to transfer the digital currency of the default amount from the first account to the second account by executing the first transaction.
16. A computer readable storage medium having stored thereon a computer program which, when executed in a computer, causes the computer to perform the method of any of claims 1-13.
17. A computing device comprising a memory having executable code stored therein and a processor, which when executing the executable code, implements the method of any of claims 1-13.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211707950.9A CN116012155B (en) | 2022-12-28 | 2022-12-28 | Method and device for processing digital resources in blockchain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211707950.9A CN116012155B (en) | 2022-12-28 | 2022-12-28 | Method and device for processing digital resources in blockchain |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116012155A true CN116012155A (en) | 2023-04-25 |
CN116012155B CN116012155B (en) | 2023-11-14 |
Family
ID=86031259
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211707950.9A Active CN116012155B (en) | 2022-12-28 | 2022-12-28 | Method and device for processing digital resources in blockchain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116012155B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110163595A (en) * | 2019-04-24 | 2019-08-23 | 吉林大学珠海学院 | Pre-payment consumption management method, system and storage medium based on block chain |
CN110706114A (en) * | 2019-09-05 | 2020-01-17 | 阿里巴巴集团控股有限公司 | Block chain-based default asset processing method and device and electronic equipment |
CN111798230A (en) * | 2020-06-18 | 2020-10-20 | 昆明大棒客科技有限公司 | Block chain based staged payment method, device and equipment |
CN112015823A (en) * | 2020-10-20 | 2020-12-01 | 支付宝(杭州)信息技术有限公司 | Block chain data deleting method and device |
CN112116475A (en) * | 2020-09-22 | 2020-12-22 | 中国科学院沈阳计算技术研究所有限公司 | Block chain-based distributed data transaction method and system |
CN113807802A (en) * | 2021-08-05 | 2021-12-17 | 国网北京市电力公司 | Block chain-based labor worker salary settlement method and related equipment |
CN115099815A (en) * | 2022-06-14 | 2022-09-23 | 蚂蚁区块链科技(上海)有限公司 | Data verification method and block link point |
-
2022
- 2022-12-28 CN CN202211707950.9A patent/CN116012155B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110163595A (en) * | 2019-04-24 | 2019-08-23 | 吉林大学珠海学院 | Pre-payment consumption management method, system and storage medium based on block chain |
CN110706114A (en) * | 2019-09-05 | 2020-01-17 | 阿里巴巴集团控股有限公司 | Block chain-based default asset processing method and device and electronic equipment |
CN111798230A (en) * | 2020-06-18 | 2020-10-20 | 昆明大棒客科技有限公司 | Block chain based staged payment method, device and equipment |
CN112116475A (en) * | 2020-09-22 | 2020-12-22 | 中国科学院沈阳计算技术研究所有限公司 | Block chain-based distributed data transaction method and system |
CN112015823A (en) * | 2020-10-20 | 2020-12-01 | 支付宝(杭州)信息技术有限公司 | Block chain data deleting method and device |
CN113807802A (en) * | 2021-08-05 | 2021-12-17 | 国网北京市电力公司 | Block chain-based labor worker salary settlement method and related equipment |
CN115099815A (en) * | 2022-06-14 | 2022-09-23 | 蚂蚁区块链科技(上海)有限公司 | Data verification method and block link point |
Non-Patent Citations (1)
Title |
---|
时书霞 等: ""区块链技术在员工招聘领域的应用"", 《企业改革与管理》, pages 1 - 3 * |
Also Published As
Publication number | Publication date |
---|---|
CN116012155B (en) | 2023-11-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021008122A1 (en) | Virtual resource allocation method and device employing blockchain, and electronic apparatus | |
US20200294165A1 (en) | Blockchain-based allocation methods and apparatuses | |
TWI736705B (en) | Business processing method and device | |
US11544794B2 (en) | Claim settlement method and apparatus employing blockchain technology | |
US11615078B2 (en) | Blockchain-based transaction methods | |
US10614454B1 (en) | Remote population and redaction of high security data | |
US11556924B2 (en) | Blockchain-based payment withholding and agreement signing method, apparatus, and electronic device | |
CN112200571B (en) | Resource distribution method and device based on block chain and electronic equipment | |
CN110458631B (en) | Bill number distribution method and device based on block chain and electronic equipment | |
US20110137805A1 (en) | Inter-cloud resource sharing within a cloud computing environment | |
US11256551B2 (en) | Blockchain-based virtual resource allocation | |
US11431503B2 (en) | Self-sovereign data access via bot-chain | |
US20220156725A1 (en) | Cross-chain settlement mechanism | |
CN112200567B (en) | Resource management method and device based on block chain and electronic equipment | |
WO2020015448A1 (en) | Method, device, and equipment for processing account of blockchain network, and storage medium | |
US10733583B2 (en) | Blockchain-based withholding operations | |
CN112200568B (en) | Block chain based account creation method and device and electronic equipment | |
CN114710507B (en) | Consensus method, blockchain node, medium and consensus node | |
CN110992040A (en) | Transaction processing method, device and equipment | |
CN112200572A (en) | Resource distribution method and device based on block chain and electronic equipment | |
US11270292B2 (en) | Key pair authentication in a label tracking system | |
CN113850577A (en) | Resource account processing method and device | |
CN112200570A (en) | Resource distribution method and device based on block chain and electronic equipment | |
CN112288565A (en) | System, method and device for executing service | |
CN116012155B (en) | Method and device for processing digital resources in blockchain |
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 |