CN113259128A - Block chain-based evidence extraction method and device, electronic equipment and storage medium - Google Patents

Block chain-based evidence extraction method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113259128A
CN113259128A CN202110651715.3A CN202110651715A CN113259128A CN 113259128 A CN113259128 A CN 113259128A CN 202110651715 A CN202110651715 A CN 202110651715A CN 113259128 A CN113259128 A CN 113259128A
Authority
CN
China
Prior art keywords
node
certificate
extract
item
block chain
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
Application number
CN202110651715.3A
Other languages
Chinese (zh)
Other versions
CN113259128B (en
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Longjin Science And Technology Inc
Wuhan University WHU
Original Assignee
Wuhan Longjin Science And Technology Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Longjin Science And Technology Inc filed Critical Wuhan Longjin Science And Technology Inc
Priority to CN202110651715.3A priority Critical patent/CN113259128B/en
Publication of CN113259128A publication Critical patent/CN113259128A/en
Application granted granted Critical
Publication of CN113259128B publication Critical patent/CN113259128B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/321Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority
    • H04L9/3213Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority using tickets or tokens, e.g. Kerberos
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2308Concurrency control
    • G06F16/2336Pessimistic concurrency control approaches, e.g. locking or multiple versions without time stamps
    • G06F16/2343Locking methods, e.g. distributed locking or locking implementation details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Abstract

The embodiment of the invention discloses a method and a device for extracting a pass certificate based on a block chain, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a certificate passing extraction request of a first node; the first node is any node in a block chain network; the certificate of receipt extraction request at least comprises a project number; judging whether the item corresponding to the item number is in a locked state; and determining whether the first node is allowed to extract the block link permit or not according to the judgment result.

Description

Block chain-based evidence extraction method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of internet and block chains, in particular to a method and a device for extracting a pass certificate based on a block chain, electronic equipment and a storage medium.
Background
The blockchain technology is used as a distributed network, and key technologies such as an intelligent contract and a Token (Token) technology have a plurality of application scenarios. However, there is no related technical scheme to apply the blockchain and the evidence-based technology to the processing of the innovation achievements, and further there is no reasonable reward extraction method.
Disclosure of Invention
In view of the above, the present invention provides a block chain-based method and apparatus for obtaining a voucher, an electronic device, and a storage medium, so as to provide a reasonable block chain voucher using manner for nodes in a block chain network.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a block chain-based method for extracting a pass certificate, where the method includes:
receiving a certificate passing extraction request of a first node; the first node is any node in a block chain network; the certificate of receipt extraction request at least comprises a project number;
judging whether the item corresponding to the item number is in a locked state; and determining whether the first node is allowed to extract the block link permit or not according to the judgment result.
In the foregoing aspect, the determining whether the item corresponding to the item number is in the locked state includes:
acquiring the time to be extracted in the certificate passing extraction request;
judging whether the time to be extracted is within a locking time limit or not;
when the time to be extracted is judged not to be in the locking period, judging that the item corresponding to the item number is not in a locking state;
when the time to be extracted is judged to be within the locking period, judging that the item corresponding to the item number is in the locking state;
alternatively, the determining whether the item corresponding to the item number is in the locked state includes:
judging whether the chain link certificate of the current distributable block reaches the appointed number;
under the condition that the current distributable block link certificate is judged to reach the appointed number, judging that the item corresponding to the item number is not in a locking state;
under the condition that the current distributable block link certificate is judged to not reach the appointed number, judging that the item corresponding to the item number is in the locking state;
and the current assignable block chain general evidence is that the items corresponding to the item numbers accumulate the quantity of resources from the release in the block chain network to the time to be extracted.
In the foregoing solution, the determining whether to allow the first node to extract the block link certificate according to the determination result includes:
determining to allow the first node to extract a block link permit when the judgment result indicates that the item corresponding to the item number is not in the locked state;
and determining that the first node is not allowed to extract the block chain permit under the condition that the item corresponding to the item number is in the locked state.
In the above aspect, in a case where it is determined that the item corresponding to the item number is in the locked state, the method further includes:
determining whether the first node has a particular privilege;
under the condition that the first node has a specific authority, determining that the first node is allowed to extract the block chain permit;
and under the condition that the first node does not have a specific authority, determining that the first node is not allowed to extract the block chaining permit.
In the foregoing solution, after determining that the first node is allowed to extract the block chaining pass, the method further includes: and allowing the first node to extract a first specific number of block chaining certificates according to a set unlocking rule.
In the foregoing solution, when the unlocking rule is set such that the extraction number of the blockchain general certificates cannot exceed a specified extraction threshold, the method further includes:
acquiring the quantity to be extracted in the certificate passing extraction request;
judging whether the quantity to be extracted exceeds the extraction threshold value;
under the condition that the number to be extracted is not judged to exceed the extraction threshold value, distributing the block chain general certificate of the number to be extracted to the first node;
outputting reminding information under the condition that the number to be extracted exceeds the extraction threshold value, wherein the reminding information is used for indicating the extraction number of the user modification block chain general certificate corresponding to the first node;
or, in the case that the unlocking rule is set to be that no expenses are required for extracting the block link certificate within the unlocking time limit, the method further includes:
determining whether the time to be extracted is within the unlocking time limit; and after determining that the time to be extracted is not within the unlocking time limit and a set number of blockchain general certificates need to be consumed, allowing the first node to extract a second specific number of blockchain general certificates.
In the above aspect, the method further includes:
and in the case that the first node is determined not to be allowed to extract the block chaining certificate, outputting indication information, wherein the indication information is used for indicating the reason why the first node is not allowed to extract the block chaining certificate.
In a second aspect, an embodiment of the present invention further provides a block chain-based apparatus for extracting a pass certificate, where the apparatus includes a receiving module and a determining module;
the receiving module is used for receiving a certificate passing and extracting request of the first node; the first node is any node in a block chain network; the certificate of receipt extraction request at least comprises a project number;
the judging module is used for judging whether the item corresponding to the item number is in a locking state; and determining whether the first node is allowed to extract the block link permit or not according to the judgment result.
In the above scheme, the determining module is configured to obtain time to be extracted in the pass-certificate extracting request;
judging whether the time to be extracted is within a locking time limit or not;
when the time to be extracted is judged not to be in the locking period, judging that the item corresponding to the item number is not in a locking state;
when the time to be extracted is judged to be within the locking period, judging that the item corresponding to the item number is in the locking state;
or, the judging module is used for judging whether the chain link certificate of the current distributable block reaches the appointed number;
under the condition that the current distributable block link certificate is judged to reach the appointed number, judging that the item corresponding to the item number is not in a locking state;
under the condition that the current distributable block link certificate is judged to not reach the appointed number, judging that the item corresponding to the item number is in the locking state;
and the current assignable block chain general evidence is that the items corresponding to the item numbers accumulate the quantity of resources from the release in the block chain network to the time to be extracted.
In the foregoing solution, the determining module is further configured to determine that the first node is allowed to extract the block link permit if the determination result indicates that the item corresponding to the item number is not in the locked state;
and determining that the first node is not allowed to extract the block chain permit under the condition that the item corresponding to the item number is in the locked state.
In the foregoing solution, the determining module is further configured to determine whether the first node has a specific right or not when determining that the item corresponding to the item number is in the locked state; under the condition that the first node has a specific authority, determining that the first node is allowed to extract the block chain permit; and under the condition that the first node does not have a specific authority, determining that the first node is not allowed to extract the block chaining permit.
In the foregoing solution, the determining module is further configured to allow the first node to extract a first specific number of blockchain certificates according to a set unlocking rule after determining that the first node is allowed to extract the blockchain certificates.
In the above scheme, the determining module is configured to obtain the number to be extracted in the pass certificate extraction request when the unlocking rule is set such that the extraction number of the block chain pass certificates cannot exceed a specified extraction threshold;
judging whether the quantity to be extracted exceeds the extraction threshold value;
under the condition that the number to be extracted is not judged to exceed the extraction threshold value, distributing the block chain general certificate of the number to be extracted to the first node;
outputting reminding information under the condition that the number to be extracted exceeds the extraction threshold value, wherein the reminding information is used for indicating the extraction number of the user modification block chain general certificate corresponding to the first node;
or, the judging module is configured to determine whether the time to be extracted is within an unlocking time limit under the condition that the set unlocking rule is that no cost is required for extracting the block link certificate within the unlocking time limit; and after determining that the time to be extracted is not within the unlocking time limit and a set number of blockchain general certificates need to be consumed, allowing the first node to extract a second specific number of blockchain general certificates.
In the foregoing solution, the apparatus further includes an output module, configured to, when it is determined that the first node is not allowed to extract the block chaining pass, output indication information, where the indication information is used to indicate a reason for not allowing the first node to extract the block chaining pass.
In a third aspect, the present invention further provides a readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method described above.
In a fourth aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of the method when executing the computer program.
The embodiment of the invention provides a block chain-based evidence obtaining method and device, electronic equipment and a storage medium. The method comprises the steps that a certificate passing extraction request of a first node is received; the first node is any node in a block chain network; the certificate of receipt extraction request at least comprises a project number; judging whether the item corresponding to the item number is in a locked state; and determining whether the first node is allowed to extract the block link permit or not according to the judgment result. The method determines whether the first node is allowed to extract a certain number of block chain general certificates or not by judging whether the item corresponding to the block chain general certificate extracted by the first node is in a locking state or not, and the extraction is not allowed in a locking bin, so that a reasonable use mode is provided for each party participating in a block chain network, and the reasonable use of the own general certificate of the participating node can be ensured.
Drawings
Fig. 1 is a schematic flowchart of a block chain-based evidence-based method for extracting a pass certificate according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a blockchain network according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another block chain-based evidence obtaining method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a block chain-based apparatus for extracting a pass certificate according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the following describes specific technical solutions of the present invention in further detail with reference to the accompanying drawings in the embodiments of the present invention. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
Before further detailed description of the embodiments of the present application, terms and expressions referred to in the embodiments of the present application will be described, and the terms and expressions referred to in the embodiments of the present application will be used for the following explanation.
1) A Block chain (Blockchain) is a storage structure for encrypted, chained transactions formed from blocks (blocks). The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. The block chain is essentially a decentralized database, and is used as the bottom technology of the bitcoin, and is a series of data blocks which are generated by correlation through a cryptographic method, wherein each data block contains information of a batch of bitcoin network transactions, and the information is used for verifying the validity (anti-counterfeiting) of the information and generating the next block.
For example, the header of each block may include hash values of all transactions in the block, and also include hash values of all transactions in the previous block, so as to achieve tamper resistance and forgery resistance of the transactions in the block based on the hash values; newly generated transactions, after being filled into the tiles and passing through the consensus of nodes in the blockchain network, are appended to the end of the blockchain to form a chain growth.
2) A Blockchain Network (Blockchain Network) incorporates new blocks into a set of nodes of a Blockchain in a consensus manner.
3) Smart Contracts (Smart Contracts), also known as chain codes (chainodes) or application codes, are a computer protocol intended to propagate, verify or execute Contracts in an informative manner. Smart contracts allow trusted transactions to be conducted without third parties, which transactions are traceable and irreversible.
The intelligent contract is deployed in a program in a node of the block chain network, and the node executes the intelligent contract called in the received transaction to update or inquire the key value of the state database for data.
The intelligent contract can be automatically triggered to execute when the constraint condition is met, manual intervention is not needed, and the intelligent contract can also be automatically contracted when the condition is not met, and theoretically, all terms agreed in advance can be triggered to execute. The smart contracts encapsulate the relevant processes that interact directly with the block ledger, for example being invoked by an application, performing functions including initiating transactions and querying transactions.
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a schematic flowchart of a block chain-based evidence-based method for extracting a pass certificate according to an embodiment of the present invention. As shown in fig. 1, the method is applied to a blockchain network, where the blockchain network includes a plurality of distributed nodes, and includes the specific steps of:
s101: receiving a certificate passing extraction request of a first node; the first node is any node in a block chain network; the voucher extraction request at least comprises an item number.
It should be noted that the blockchain network may be any kind of blockchain network, for example, a blockchain network built for achievement processing, which is also referred to as an achievement processing blockchain network; as another example, a network of blockchains built to handle logistics, and the like. The blockchain network includes a plurality of distributed nodes, as an alternative configuration, as shown in fig. 2. In fig. 2, a blockchain network 200 includes a node 210-1, a node 210-2, nodes 210-3, … …, and a blockchain management platform 220, wherein each participating node in the blockchain network can upload information, and after information is uploaded at a certain node, the information is broadcasted to other nodes in the blockchain network through the blockchain management platform 220, so that other nodes can perceive the information; each participated node in the blockchain network can perform information interaction with adjacent nodes, the whole blockchain network publicly transfers valuable information, and each participated node is independent. In addition, the nodes in the block chain network illustrated in fig. 2 may be functionally hierarchical, for example, some nodes have high reputation and some nodes have low reputation, and the roles of some nodes may have been determined at the beginning of building the block chain network, and these nodes have specific functions assigned to them, for example, in a building block chain-based alumni economic system, the node corresponding to the role of the alumni has an identity authentication function, that is, when all nodes join the alumni economic system based on the block chain, the node is required to perform identity authentication on the node. It should be understood that the nodes in the blockchain network also have other functions that the blockchain network should have, and thus are not described in detail herein. The blockchain management platform 220 may be used for authentication authorization when a node accesses the blockchain network 200, broadcasting information issued by the node, and the like. The execution subject of the block chain-based evidence obtaining method provided by the embodiment of the present invention may be the block chain management platform 220.
Here, the credential extraction request may be request information that is sent by the first node to the blockchain management platform 220 and includes at least an item number in order to extract a certain number of blockchain credentials. The item number may refer to a number set by the blockchain management platform to distinguish a plurality of items simultaneously published on the blockchain network. It should be understood that the form of the item number may be various, and in any case, the item number may be a pure number, or a mixture of numbers and english letters, for example, and the present invention is not limited to the specific form. It should be understood that the project may refer to any project that can operate, such as an infrastructure project of a 5G network, a production project of a 5G handset, and the like.
S102: judging whether the item corresponding to the item number is in a locked state; and determining whether the first node is allowed to extract the block link permit or not according to the judgment result.
It should be noted that, here, it may be determined that the item corresponding to the item number is not in the locked state according to the intelligent contract in the blockchain network, and then, according to this determination result, it is determined whether to allow the first node to extract the blockchain pass certificate. Wherein the locked state, as the name implies, in which the accumulated blockchain is unveiled from being used.
In some embodiments, the determining whether the item corresponding to the item number is in the locked state includes:
acquiring the time to be extracted in the certificate passing extraction request;
judging whether the time to be extracted is within a locking time limit or not;
when the time to be extracted is judged not to be in the locking period, judging that the item corresponding to the item number is not in a locking state;
when the time to be extracted is judged to be within the locking period, judging that the item corresponding to the item number is in the locking state;
alternatively, the determining whether the item corresponding to the item number is in the locked state includes:
judging whether the chain link certificate of the current distributable block reaches the appointed number;
under the condition that the current distributable block link certificate is judged to reach the appointed number, judging that the item corresponding to the item number is not in a locking state;
under the condition that the current distributable block link certificate is judged to not reach the appointed number, judging that the item corresponding to the item number is in the locking state;
and the current assignable block chain general evidence is that the items corresponding to the item numbers accumulate the quantity of resources from the release in the block chain network to the time to be extracted.
It should be noted that the accumulated blockchains may be set manually so as to be in a locked state under what condition. Here, as an example only, two determination methods are proposed: the first method comprises the following steps: judging whether the time to be extracted is within a specified locking period; and the second method comprises the following steps: by judging whether the accumulated distributable block chain general evidence reaches the appointed number. Wherein, the time to be extracted can be an accurate time point, such as 5/21/2021, 12 points; or a time period, for example, the time to be extracted may be any time in the day of 2021 year, 5 month and 21 days. The locking term may be a set period of time, for example, the locking term may be a period of time from the start of the item corresponding to the item number to the arrival at an appointed time point. The appointed time can be set manually according to the requirements of the user.
In some embodiments, the determining whether to allow the first node to extract the block chaining certificate according to the determination result includes:
determining to allow the first node to extract a block link permit when the judgment result indicates that the item corresponding to the item number is not in the locked state;
and determining that the first node is not allowed to extract the block chain permit under the condition that the item corresponding to the item number is in the locked state.
What is expressed here is: when the item corresponding to the item number is in a locked state, the first node is not allowed to extract the block link permit; and when the item corresponding to the item number is not in the locked state, allowing the first node to extract the block chain permit.
In some embodiments, in a case where it is determined that the item corresponding to the item number is in the locked state, the method further includes:
determining whether the first node has a particular privilege;
under the condition that the first node has a specific authority, determining that the first node is allowed to extract the block chain permit;
and under the condition that the first node does not have a specific authority, determining that the first node is not allowed to extract the block chaining permit.
What is expressed here is: in any case, when the item corresponding to the item number is in the locked state, the first node is not allowed to extract the block chain permit; however, the first node has a specific authority, for example, the first node is a node of an operator of the project, and the node needs to extract a certain blockchain general certificate to meet the operation requirement of the project, for example, when purchasing various materials such as software, parts and the like required by the project, the blockchain management platform may give the specific authority to the first node. When a first node has a specific right, determining that the first node is allowed to extract a block link permit; and when the first node does not have the specific right, determining that the first node is not allowed to extract the block chain permit.
In an actual application process, after the block chain certification is allowed to be extracted, that is, after the accumulated block chain certification is not prohibited to be extracted, a certain unlocking rule needs to be formulated, in some embodiments, after determining that the block chain certification is allowed to be extracted by the first node, the method further includes: and allowing the first node to extract a first specific number of block chaining certificates according to a set unlocking rule.
As an optional implementation manner, in a case that the unlocking rule is set such that the extraction number of the blockchain pass certificate cannot exceed a specified extraction threshold, the method further includes:
acquiring the quantity to be extracted in the certificate passing extraction request;
judging whether the quantity to be extracted exceeds the extraction threshold value;
under the condition that the number to be extracted is not judged to exceed the extraction threshold value, distributing the block chain general certificate of the number to be extracted to the first node;
and outputting reminding information under the condition that the number to be extracted exceeds the extraction threshold value, wherein the reminding information is used for indicating the extraction number of the user modification block chain general certificate corresponding to the first node.
As another optional embodiment, in a case that the unlocking rule is set such that no cost is required for extracting the block link certificate within the unlocking time limit, the method further includes:
determining whether the time to be extracted is within the unlocking time limit; and after determining that the time to be extracted is not within the unlocking time limit and a set number of blockchain general certificates need to be consumed, allowing the first node to extract a second specific number of blockchain general certificates.
The extraction threshold may be determined by negotiation between the participating parties at the beginning of the item corresponding to the item number. The reminding information can be any words, pictures, symbols, videos and the like which can indicate the extraction quantity of the user modification block link certificate corresponding to the first node. That is, the reminder indicates to the user the direction of the modification. The set number may be set by a node having modification authority. The first specific amount and the second specific amount may be equal or different, and are only for convenience of description and do not limit the present invention.
In some embodiments, the method further comprises:
and in the case that the first node is determined not to be allowed to extract the block chaining certificate, outputting indication information, wherein the indication information is used for indicating the reason why the first node is not allowed to extract the block chaining certificate.
It should be noted that the form of the indication information may be any form of words, pictures, symbols, etc. that may be used to indicate the reason for not allowing the first node to extract the block chaining certificate. The modification or waiting may be made depending on the reason indicated by the indication information, i.e. the indication information indicates to the user the direction of the modification.
For understanding the embodiment of the present invention, as shown in fig. 3, it illustrates a schematic flow chart of another block chain-based evidence obtaining method according to the embodiment of the present invention. In fig. 3, the main execution body of the method is a block chain management platform, and the specific steps include:
the method comprises the steps that firstly, a certificate passing extraction request sent by a first node is received; the certificate of receipt extraction request at least comprises a project number;
secondly, calling an intelligent contract in the block chain network, and judging whether the item corresponding to the item number is in a locked state;
thirdly, under the condition that the item corresponding to the item number is judged to be in a locked state, judging whether the first node has a specific authority or not;
fourthly, under the condition that the first node is judged to have no specific authority, the first node is determined not to be allowed to extract the block link permit; outputting indication information;
fifthly, determining that the first node is allowed to extract the block chain permit under the condition that the item corresponding to the item number is not in the locked state or the first node is judged to have specific authority; and allowing the first node to extract a certain number of block chain certificates according to a set unlocking rule.
It should be noted that, in the fifth step, in the case that two different types of conditions allow the first node to extract the block link pass certificate, the corresponding set unlocking rules may be the same or different, specifically according to actual items, that is: the specific number referred to herein may include the aforementioned first specific number and second specific number.
According to the method for extracting the evidence based on the block chain, provided by the embodiment of the invention, whether the first node is allowed to extract a certain number of block chain evidence is determined by judging whether the item corresponding to the block chain evidence extracted by the first node is in a locked state, and the extraction is not allowed when the cabin is locked, so that a reasonable use mode is provided for each party participating in the block chain network, and the participated node can be ensured to reasonably use the evidence of the participated node.
Based on the same inventive concept, an embodiment of the present invention further provides a block chain-based apparatus for distributing a pass certificate, as shown in fig. 4, the apparatus includes a receiving module 401 and a determining module 402, where;
the receiving module 401 is configured to receive a request for obtaining a certificate of authenticity from a first node; the first node is any node in a block chain network; the certificate of receipt extraction request at least comprises a project number;
the judging module 402 is configured to judge whether an item corresponding to the item number is in a locked state; and determining whether the first node is allowed to extract the block link permit or not according to the judgment result.
In some embodiments, the determining module 402 is configured to obtain a time to be extracted in the pass extraction request;
judging whether the time to be extracted is within a locking time limit or not;
when the time to be extracted is judged not to be in the locking period, judging that the item corresponding to the item number is not in a locking state;
when the time to be extracted is judged to be within the locking period, judging that the item corresponding to the item number is in the locking state;
or, the determining module 402 is configured to determine whether the current assignable block link pass certificate reaches the agreed number;
under the condition that the current distributable block link certificate is judged to reach the appointed number, judging that the item corresponding to the item number is not in a locking state;
under the condition that the current distributable block link certificate is judged to not reach the appointed number, judging that the item corresponding to the item number is in the locking state;
and the current assignable block chain general evidence is that the items corresponding to the item numbers accumulate the quantity of resources from the release in the block chain network to the time to be extracted.
In some embodiments, the determining module 402 is further configured to determine that the first node is allowed to extract a block chain permit if the determination result is that the item corresponding to the item number is not in the locked state;
and determining that the first node is not allowed to extract the block chain permit under the condition that the item corresponding to the item number is in the locked state.
In some embodiments, the determining module 402 is further configured to determine whether the first node has a specific right if it is determined that the item corresponding to the item number is in the locked state; under the condition that the first node has a specific authority, determining that the first node is allowed to extract the block chain permit; and under the condition that the first node does not have a specific authority, determining that the first node is not allowed to extract the block chaining permit.
In some embodiments, the determining module 402 is further configured to allow the first node to extract a first specific number of blockchain certificates according to a set unlocking rule after determining that the first node is allowed to extract blockchain certificates.
In some embodiments, the determining module 402 is configured to, when the unlocking rule is set such that the extraction number of the block chain general certificates cannot exceed a specified extraction threshold, obtain the number to be extracted in the general certificate extraction request;
judging whether the quantity to be extracted exceeds the extraction threshold value;
under the condition that the number to be extracted is not judged to exceed the extraction threshold value, distributing the block chain general certificate of the number to be extracted to the first node;
outputting reminding information under the condition that the number to be extracted exceeds the extraction threshold value, wherein the reminding information is used for indicating the extraction number of the user modification block chain general certificate corresponding to the first node;
or, the judging module is configured to determine whether the time to be extracted is within an unlocking time limit under the condition that the set unlocking rule is that no cost is required for extracting the block link certificate within the unlocking time limit; and after determining that the time to be extracted is not within the unlocking time limit and a set number of blockchain general certificates need to be consumed, allowing the first node to extract a second specific number of blockchain general certificates.
In some embodiments, the apparatus further includes an output module, configured to, in a case where it is determined that the first node is not allowed to extract the block chaining certificate, output indication information indicating a reason why the first node is not allowed to extract the block chaining certificate.
It should be noted that the evidence obtaining device provided in the embodiment of the present invention is the same as the inventive concept of the aforementioned evidence obtaining method, and thus, the terms appearing herein have been explained in detail in the discussion of the aforementioned method, and are not described again.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the foregoing method embodiments, and the foregoing storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
An embodiment of the present invention further provides an electronic device, where the electronic device includes: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor is configured to execute the steps of the above-described method embodiments stored in the memory when running the computer program.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention, where the electronic device 50 includes: at least one processor 501, a memory 502, and at least one communication interface 503, the various components of the electronic device 50 being coupled together by a bus system 504, it being understood that the bus system 504 is used to enable connected communication between these components. The bus system 504 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 504 in fig. 5.
It will be appreciated that the memory 502 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic Random access Memory (FRAM), a magnetic Random access Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced Synchronous Dynamic Random Access Memory), Synchronous linked Dynamic Random Access Memory (DRAM, Synchronous Link Dynamic Random Access Memory), Direct Memory (DRmb Random Access Memory). The memory 502 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 502 in embodiments of the present invention is used to store various types of data to support the operation of the electronic device 50. Examples of such data include: any computer program for operating on the electronic device 50, such as an implementation that determines whether an item corresponding to the item number is in a locked state, etc., may be contained in the memory 502 to implement the methods of embodiments of the present invention.
The method disclosed by the above-mentioned embodiments of the present invention may be applied to the processor 501, or implemented by the processor 501. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium having a memory and a processor reading the information in the memory and combining the hardware to perform the steps of the method.
In an exemplary embodiment, the electronic Device 50 may be implemented by one or more ApplicatioN Specific INtegrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the above-described methods.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A block chain-based evidence-based extraction method is characterized by comprising the following steps:
receiving a certificate passing extraction request of a first node; the first node is any node in a block chain network; the certificate of receipt extraction request at least comprises a project number;
judging whether the item corresponding to the item number is in a locked state; and determining whether the first node is allowed to extract the block link permit or not according to the judgment result.
2. The method of claim 1, wherein said determining whether the item corresponding to the item number is in a locked state comprises:
acquiring the time to be extracted in the certificate passing extraction request;
judging whether the time to be extracted is within a locking time limit or not;
when the time to be extracted is judged not to be in the locking period, judging that the item corresponding to the item number is not in a locking state;
when the time to be extracted is judged to be within the locking period, judging that the item corresponding to the item number is in the locking state;
alternatively, the determining whether the item corresponding to the item number is in the locked state includes:
judging whether the chain link certificate of the current distributable block reaches the appointed number;
under the condition that the current distributable block link certificate is judged to reach the appointed number, judging that the item corresponding to the item number is not in a locking state;
under the condition that the current distributable block link certificate is judged to not reach the appointed number, judging that the item corresponding to the item number is in the locking state;
and the current assignable block chain general evidence is that the items corresponding to the item numbers accumulate the quantity of resources from the release in the block chain network to the time to be extracted.
3. The method according to claim 2, wherein the determining whether to allow the first node to extract the block chaining certificate according to the determination result comprises:
determining to allow the first node to extract a block link permit when the judgment result indicates that the item corresponding to the item number is not in the locked state;
and determining that the first node is not allowed to extract the block chain permit under the condition that the item corresponding to the item number is in the locked state.
4. The method according to claim 2, wherein in a case where it is determined that the item corresponding to the item number is in the locked state, the method further comprises:
determining whether the first node has a particular privilege;
under the condition that the first node has a specific authority, determining that the first node is allowed to extract the block chain permit;
and under the condition that the first node does not have a specific authority, determining that the first node is not allowed to extract the block chaining permit.
5. The method of claim 3 or 4, wherein after determining that the first node is allowed to extract blockchain credentials, the method further comprises: and allowing the first node to extract a first specific number of block chaining certificates according to a set unlocking rule.
6. The method according to claim 5, wherein in the case that the unlocking rule is set such that the extraction number of the blockchain certificate cannot exceed a specified extraction threshold, the method further comprises:
acquiring the quantity to be extracted in the certificate passing extraction request;
judging whether the quantity to be extracted exceeds the extraction threshold value;
under the condition that the number to be extracted is not judged to exceed the extraction threshold value, distributing the block chain general certificate of the number to be extracted to the first node;
outputting reminding information under the condition that the number to be extracted exceeds the extraction threshold value, wherein the reminding information is used for indicating the extraction number of the user modification block chain general certificate corresponding to the first node;
or, in the case that the unlocking rule is set to be that no expenses are required for extracting the block link certificate within the unlocking time limit, the method further includes:
determining whether the time to be extracted is within the unlocking time limit; and after determining that the time to be extracted is not within the unlocking time limit and a set number of blockchain general certificates need to be consumed, allowing the first node to extract a second specific number of blockchain general certificates.
7. The method according to claim 3 or 4, characterized in that the method further comprises:
and in the case that the first node is determined not to be allowed to extract the block chaining certificate, outputting indication information, wherein the indication information is used for indicating the reason why the first node is not allowed to extract the block chaining certificate.
8. The device for extracting the pass evidence based on the block chain is characterized by comprising a receiving module and a judging module, wherein the receiving module is used for receiving the pass evidence;
the receiving module is used for receiving a certificate passing and extracting request of the first node; the first node is any node in a block chain network; the certificate of receipt extraction request at least comprises a project number;
the judging module is used for judging whether the item corresponding to the item number is in a locking state; and determining whether the first node is allowed to extract the block link permit or not according to the judgment result.
9. A readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
10. An electronic device, characterized in that the electronic device comprises: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of the method of any of claims 1 to 7 when the computer program is executed.
CN202110651715.3A 2021-06-11 2021-06-11 Block chain-based evidence extraction method and device, electronic equipment and storage medium Active CN113259128B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110651715.3A CN113259128B (en) 2021-06-11 2021-06-11 Block chain-based evidence extraction method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110651715.3A CN113259128B (en) 2021-06-11 2021-06-11 Block chain-based evidence extraction method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113259128A true CN113259128A (en) 2021-08-13
CN113259128B CN113259128B (en) 2021-09-24

Family

ID=77187756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110651715.3A Active CN113259128B (en) 2021-06-11 2021-06-11 Block chain-based evidence extraction method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113259128B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109074565A (en) * 2016-04-11 2018-12-21 区块链控股有限公司 Computer-implemented method and system for verifying a pass-through for blockchain based cryptocurrency
US10373129B1 (en) * 2018-03-05 2019-08-06 Winklevoss Ip, Llc System, method and program product for generating and utilizing stable value digital assets
CN110266681A (en) * 2019-06-17 2019-09-20 西安纸贵互联网科技有限公司 Data safe processing system and data safety processing method based on block chain
US20190303887A1 (en) * 2016-02-23 2019-10-03 nChain Holdings Limited Universal tokenisation system for blockchain-based cryptocurrencies
CN110738569A (en) * 2019-09-28 2020-01-31 北京瑞卓喜投科技发展有限公司 Transaction certificate processing method, device and system based on block chain
CN111159299A (en) * 2019-12-31 2020-05-15 预言机(重庆)科技有限公司 Block chain chaining method
CN112184446A (en) * 2020-09-30 2021-01-05 上海旺链信息科技有限公司 Novel organization management processing method, system and storage medium based on block chain
CN112532718A (en) * 2020-11-26 2021-03-19 中国船舶工业系统工程研究院 Block chain based offshore equipment data sharing system, method and medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190303887A1 (en) * 2016-02-23 2019-10-03 nChain Holdings Limited Universal tokenisation system for blockchain-based cryptocurrencies
CN109074565A (en) * 2016-04-11 2018-12-21 区块链控股有限公司 Computer-implemented method and system for verifying a pass-through for blockchain based cryptocurrency
US10373129B1 (en) * 2018-03-05 2019-08-06 Winklevoss Ip, Llc System, method and program product for generating and utilizing stable value digital assets
CN110266681A (en) * 2019-06-17 2019-09-20 西安纸贵互联网科技有限公司 Data safe processing system and data safety processing method based on block chain
CN110738569A (en) * 2019-09-28 2020-01-31 北京瑞卓喜投科技发展有限公司 Transaction certificate processing method, device and system based on block chain
CN111159299A (en) * 2019-12-31 2020-05-15 预言机(重庆)科技有限公司 Block chain chaining method
CN112184446A (en) * 2020-09-30 2021-01-05 上海旺链信息科技有限公司 Novel organization management processing method, system and storage medium based on block chain
CN112532718A (en) * 2020-11-26 2021-03-19 中国船舶工业系统工程研究院 Block chain based offshore equipment data sharing system, method and medium

Also Published As

Publication number Publication date
CN113259128B (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CN108898389B (en) Content verification method and device based on block chain and electronic equipment
US11405395B2 (en) Accessing an internet of things device using blockchain metadata
EP3446273B1 (en) Electronic method for the cryptographically secure transmission of a cryptocurrency amount
CN110046996B (en) Data processing method and device
CN108197944B (en) Resource transaction method and device based on block chain technology
CN109150943B (en) Information transmission method, device and system
CN110599213B (en) Article management method and device based on blockchain network and electronic equipment
IL261213A (en) Blockchain-implemented method for control and distribution of digital content
CN110489946B (en) Copyright authentication method, device, equipment and storage medium based on block chain
CN111177797B (en) Block chain-based data processing method and device and electronic equipment
WO1997050205A9 (en) Digitally signing agreements from remotely located nodes
CN110866289B (en) Block chain-based data processing method, device, server and storage medium
CN111034151B (en) Method and apparatus for managing access to accounts in a blockchain system
CN113256297B (en) Data processing method, device and equipment based on block chain and readable storage medium
CN110516417B (en) Authority verification method and device of intelligent contract
CN111292174A (en) Tax payment information processing method and device and computer readable storage medium
CN111985007A (en) Contract signing and executing method and device based on block chain
Kwame et al. V-chain: A blockchain-based car lease platform
CN113474804A (en) Transaction and account verification method, device and storage medium of digital currency
CN113256149A (en) Block chain node reputation adjusting method and device, electronic equipment and storage medium
CN113259128B (en) Block chain-based evidence extraction method and device, electronic equipment and storage medium
CN110134837B (en) Information management method and device
US11563585B1 (en) Systems and methods for smart contracts including arbitration attributes
CN113704712A (en) Identity authentication method, device and system and electronic equipment
CN115145976A (en) Data processing method and device based on block chain, computer equipment and medium

Legal Events

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

Effective date of registration: 20231206

Address after: 430014 Building 2, Guannan Industrial Park, Donghu New Technology Development Zone, Wuhan City, Hubei Province

Patentee after: WUHAN LONGJIN SCIENCE AND TECHNOLOGY Inc.

Patentee after: WUHAN University

Address before: 430014 Building 2, Guannan Industrial Park, Donghu New Technology Development Zone, Wuhan City, Hubei Province

Patentee before: WUHAN LONGJIN SCIENCE AND TECHNOLOGY Inc.