CN111127016B - Offline evidence distribution method and device, computer equipment and storage medium - Google Patents

Offline evidence distribution method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111127016B
CN111127016B CN201911371415.9A CN201911371415A CN111127016B CN 111127016 B CN111127016 B CN 111127016B CN 201911371415 A CN201911371415 A CN 201911371415A CN 111127016 B CN111127016 B CN 111127016B
Authority
CN
China
Prior art keywords
evidence
offline
passing
certificate
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911371415.9A
Other languages
Chinese (zh)
Other versions
CN111127016A (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.)
Zhuo Erzhi Lian Wuhan Research Institute Co Ltd
Original Assignee
Zhuo Erzhi Lian Wuhan Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuo Erzhi Lian Wuhan Research Institute Co Ltd filed Critical Zhuo Erzhi Lian Wuhan Research Institute Co Ltd
Priority to CN201911371415.9A priority Critical patent/CN111127016B/en
Publication of CN111127016A publication Critical patent/CN111127016A/en
Application granted granted Critical
Publication of CN111127016B publication Critical patent/CN111127016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application relates to an offline evidence-passing distribution method, an offline evidence-passing distribution device, computer equipment and a storage medium, acquiring evidence-passing basic data, wherein the evidence-passing basic data comprise current time evidence-passing circulation data, current holding evidence-passing information of block chain nodes and historical evidence-passing transaction records, determining offline evidence-passing distribution data comprising the exchange proportion of offline evidence-passing and common evidence-passing and the initial amount of exchangeable offline evidence-passing when the block chain nodes meet preset offline evidence-passing exchange conditions according to the historical evidence-passing transaction records, further determining the actual amount of exchangeable offline evidence-passing of the block chain nodes, and exchanging and distributing the offline evidence-passing according to the actual amount of exchangeable offline evidence-passing. The block link nodes are allowed to carry out off-line transaction from the level of the evidence, and the amount and clearing time limit of the off-line transaction can be dynamically adjusted, so that the exchange amount and the use right of the off-line evidence can be determined even if the block link nodes are in an off-line state, the method is flexible and efficient, and the convenience is improved.

Description

Offline evidence distribution method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to an offline certification distribution method and apparatus, a computer device, and a storage medium.
Background
At the beginning of the birth of the block chain technology, the concept of Token (Token) already exists. It can be said that the blockchain and the certificate are a symbiotic relationship, because the possession of the certificate is equivalent to the possession of a claim for a certain kind of resources on the blockchain, and the certificate must exist in the blockchain item having a transaction and serves as a basic unit of the transaction. In the block chain world, the certificate is not only a symbol and a mark, but also a digital value carrier and is a right certificate. Such proofs may represent various interests including identification cards, diplomas, access keys, event tickets, cards, coupons, and the like.
Currently, offline certification refers to certification for performing offline certification transaction, and the offline certification transaction payment scheme in the blockchain system is few, and is mostly communicated through devices such as NFC (Near Field Communication) or bluetooth, and node identity and temporary storage information are verified in a side chain manner, so that convenience is not high.
Therefore, it is desirable to provide an offline credit distribution management scheme that is convenient and capable of supporting offline transaction payments.
Disclosure of Invention
Based on this, it is necessary to provide a convenient offline evidence distribution management method, apparatus, computer device and storage medium capable of supporting offline transaction payment for the problem of less convenience of the offline transaction payment scheme in the current blockchain system.
An off-line evidence distribution method comprises the following steps:
obtaining the basic data of the certificate of the user, wherein the basic data of the certificate of the user comprises current time certificate of the user, current holding certificate of the node of the block chain and historical certificate of the user;
when the block link points meet preset offline evidence-passing exchange conditions according to historical evidence-passing transaction records, determining offline evidence-passing distribution data of the block link points according to evidence-passing basic data, wherein the offline evidence-passing distribution data comprise exchange proportions of offline evidence-passing and common evidence-passing and initial amounts of exchangeable offline evidence-passing;
confirming the actual amount of the exchangeable off-line certificates of the block chain nodes according to the exchange ratio of the off-line certificates and the common certificates, the currently held certificate information and the initial amount of the exchangeable off-line certificates;
and according to the actual amount of the redeemable offline evidence, redeeming and distributing the offline evidence.
In one embodiment, the offline certification distribution data further comprises an offline certification online clearing time limit;
determining offline certification-based distribution data of the blockchain nodes according to the certification-based data comprises:
determining an initial amount of redeemable offline evidence according to the current holding evidence-passing information and the historical evidence-passing transaction record;
and determining the exchange ratio of the off-line certificate and the common certificate and the on-line clearing time limit of the off-line certificate according to the certificate passing circulation data at the current time.
In one embodiment, determining an initial amount redeemable for offline vouching based on the current holding voucher information and historical voucher transaction records comprises:
extracting the maximum number of single-use pass certificates in the historical pass certificate transaction records;
determining the maximum off-line currency exchange amount according to the maximum number of single-use currency certificates;
and determining the initial amount of the redeemable offline evidence according to the maximum redemption amount of the offline evidence and the currently held evidence information.
In one embodiment, the actual amount of redeemable offline certificates of the confirmation blockchain node comprises the following steps of according to the exchange ratio of the offline certificates and the common certificates, the currently held certificate information and the initial amount of redeemable offline certificates:
acquiring a number of common general certificates in the current held general certificate information;
judging whether the holding number of the common certificate meets the exchange requirement corresponding to the initial amount of the exchangeable off-line certificate or not according to the exchange ratio of the off-line certificate and the common certificate;
if not, confirming the exchangeable amount of the off-line certificate again according to the number of the held common certificate and the exchange proportion to obtain the actual amount of the exchangeable off-line certificate;
if so, taking the actual amount of the redeemable offline evidence transfer as the actual amount of the redeemable offline evidence transfer.
In one embodiment, when the historical evidence-based transaction record at least includes one of the following items, it is determined that the block link point does not satisfy the preset offline evidence-based exchange condition:
firstly, malignant transaction records exist in historical evidence-based transaction records;
and the second item is that offline evidence-passing transaction data which is not cleared for a long time exists in the historical evidence-passing transaction records.
In one embodiment, after the offline permit is redeemed and distributed according to the actual amount of redeemable offline permits, the method further comprises:
when detecting that the block link node carries out offline evidence-passing transaction, recording offline evidence-passing transaction data and sending an online clearing notification message to the block link node, capturing the network state of the block link node, wherein the online clearing notification message carries offline evidence-passing online clearing time limit;
and when the network state of the block link node is captured to be an online state, calculating offline evidence-passing transaction data according to the offline evidence-passing online clearing time limit.
An off-line forensic dispensing device, the device comprising:
the data acquisition module is used for acquiring the evidence-passing basic data, and the evidence-passing basic data comprises the current time evidence-passing circulation data, the current holding evidence-passing information of the block chain nodes and historical evidence-passing transaction records;
the evidence-passing distribution data determining module is used for determining offline evidence-passing distribution data of the block link nodes according to evidence-passing basic data when the block link points are judged to meet preset offline evidence-passing exchange conditions according to historical evidence-passing transaction records, wherein the offline evidence-passing distribution data comprise exchange ratios of offline evidence-passing and common evidence-passing and initial amounts of exchangeable offline evidence-passing;
the general certificate exchangeable amount confirming module is used for confirming the actual amount of the block chain nodes exchangeable off-line general certificates according to the exchange proportion of the off-line general certificates and the general certificates, the currently held general certificate information and the original amount of the exchangeable off-line general certificates;
and the offline evidence obtaining and distributing module is used for obtaining the actual amount of the redeemable offline evidence and exchanging and distributing the offline evidence.
In one embodiment, the apparatus further includes an offline calculation module, configured to record offline certified transaction data and send an online clearing notification message to the blockchain node when it is detected that the blockchain node performs offline certified transaction, capture a network state of the blockchain node, where the online clearing notification message carries an offline certified online clearing time limit, and calculate the offline certified transaction data according to the offline certified online clearing time limit when the network state of the blockchain node is captured as the online state.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
obtaining the basic data of the certificate of the user, wherein the basic data of the certificate of the user comprises current time certificate of the user, current holding certificate of the node of the block chain and historical certificate of the user;
when the block link points meet preset offline evidence-passing exchange conditions according to historical evidence-passing transaction records, determining offline evidence-passing distribution data of the block link points according to evidence-passing basic data, wherein the offline evidence-passing distribution data comprise exchange proportions of offline evidence-passing and common evidence-passing and initial amounts of exchangeable offline evidence-passing;
confirming the actual amount of the exchangeable off-line certificates of the block chain nodes according to the exchange ratio of the off-line certificates and the common certificates, the currently held certificate information and the initial amount of the exchangeable off-line certificates;
and according to the actual amount of the redeemable offline evidence, redeeming and distributing the offline evidence.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
obtaining the basic data of the certificate of the user, wherein the basic data of the certificate of the user comprises current time certificate of the user, current holding certificate of the node of the block chain and historical certificate of the user;
when the block link points meet preset offline evidence-passing exchange conditions according to historical evidence-passing transaction records, determining offline evidence-passing distribution data of the block link points according to evidence-passing basic data, wherein the offline evidence-passing distribution data comprise exchange proportions of offline evidence-passing and common evidence-passing and initial amounts of exchangeable offline evidence-passing;
confirming the actual amount of the exchangeable off-line certificates of the block chain nodes according to the exchange ratio of the off-line certificates and the common certificates, the currently held certificate information and the initial amount of the exchangeable off-line certificates;
and according to the actual amount of the redeemable offline evidence, redeeming and distributing the offline evidence.
The off-line evidence distribution method, the off-line evidence distribution device, the computer equipment and the storage medium acquire evidence basic data, wherein the evidence basic data comprise current time evidence distribution data, current holding evidence information of the block chain nodes and historical evidence distribution transaction records, when the block chain link points are judged to meet preset off-line evidence distribution conditions according to the historical evidence distribution transaction records, off-line evidence distribution data comprising the exchange proportion of the off-line evidence and the common evidence and the initial amount of exchangeable off-line evidence are determined according to the evidence basic data, the actual amount of exchangeable off-line evidence of the block chain nodes is further determined, and off-line evidence is exchanged and distributed according to the actual amount of exchangeable off-line evidence. The block chain nodes are allowed to carry out off-line transaction from the evidence-passing level, and the amount and clearing time limit of the off-line transaction can be dynamically adjusted, so that the block chain nodes can determine the exchange amount and the use right of off-line evidence passing even in an off-line state, flexibility and high efficiency are achieved, and convenience is improved.
Drawings
FIG. 1 is a diagram of an exemplary application environment for an offline credential distribution method;
FIG. 2 is a flowchart illustrating an off-line credential distribution method according to an embodiment;
FIG. 3 is a schematic flow chart illustrating an offline certification allocation method according to another embodiment;
FIG. 4 is a flowchart illustrating the initial amount determination steps that may be redeemed for offline vouchers, in one embodiment;
FIG. 5 is a block diagram of an exemplary off-line credential distribution device;
FIG. 6 is a block diagram of an offline certification authority in accordance with another embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The offline certification distributing method provided by the application can be applied to the application environment shown in fig. 1. Wherein, the blockchain node (hereinafter, referred to as node) 102 communicates with the server 104 (hereinafter, referred to as server 104) of the multi-currency/evidence-passing type blockchain system through the network. Specifically, a plurality of block link points 102 to be allocated (to be exchanged) for offline certification may exist in the block link system, when the server 104 receives an offline certification exchange application request, the server 104 responds to the request to obtain certification basic data, where the certification basic data includes current time certification circulation data, current held certification information of the block link nodes, and historical certification transaction records, and then determines whether the block link points satisfy a preset offline certification exchange condition according to the historical certification transaction records, and if so, determines offline certification allocation data of the block link nodes according to the certification basic data, where the offline certification allocation data includes a transfer ratio of offline certification to general certification and an initial amount of exchangeable offline certification, and when an initial amount of exchangeable offline certification of the block link nodes is obtained, obtains the transfer ratio of offline certification to general and the current held certification information according to the transfer ratio of offline certification to general and the initial amount of exchangeable offline certification, and confirming whether the common evidence of the block chain node is enough to exchange the offline evidence corresponding to the initial amount of the redeemable offline evidence, so as to determine the actual amount of the redeemable offline evidence, and then, redeeming and distributing the offline evidence according to the actual amount of the redeemable offline evidence. The blockchain node 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, an offline certification allocation method is provided, which is described by taking the method as an example applied to the server 104 in fig. 1, and includes the following steps:
step S200, obtaining the basic data of the certificate of pass, wherein the basic data of the certificate of pass comprises the current time certificate of pass circulation data, the current holding certificate of pass information of the block chain nodes and historical certificate of pass transaction records.
In practical application, the currently held certification information of a block chain node refers to the currently held certification related information of a block chain link point, which may be obtained when the block chain link point actively applies for offline certification, or obtained by analyzing according to the last online state information of the block chain link point stored locally. Specifically, the currently held pass information includes, but is not limited to, the currently held pass type, the pass amount, and the like. The historical certified transaction record of the blockchain node refers to historical transaction data of the blockchain node which transacts by using the certification, and the historical transaction record comprises the historical transaction record of using the offline certification and the historical transaction record of the common certification. The current time circulation data includes circulation number, circulation ratio, issue number, and the like of various types of negotiable instruments in the system at the current time.
And step S400, when the block chain link points are judged to meet the preset offline evidence-passing exchange conditions according to the historical evidence-passing transaction records, determining offline evidence-passing distribution data of the block chain nodes according to the evidence-passing basic data, wherein the offline evidence-passing distribution data comprise the exchange ratio of the offline evidence-passing and the common evidence-passing and the initial amount of exchangeable offline evidence-passing.
Due to the importance of offline evidence transfer, after the current held evidence transfer information of the block chain nodes and the historical evidence transfer transaction records of the block chain nodes are obtained, the current held evidence transfer information and the historical evidence transfer transaction records can be analyzed, and whether the current block chain nodes meet the conditions of offline evidence transfer or not is judged. Specifically, the step of judging whether the current block link point meets the criterion of offline certificate authority may be that the current block link point does not meet the preset offline certificate authority exchange condition when at least the following conditions are included, and the process is ended: the first item is that malignant transaction records exist in the historical evidence transaction records, wherein the malignant transaction records comprise that the number of times of using a node for one evidence in the transaction reaches at least 2 times, or in the transaction process, the node rewrites a block chain aiming at the block chain to replace the historical block records, and the malignant transaction records also comprise operation records of the node such as Sybil attack, DDoS attack (Distributed Denial of Service), embezzlement of other person identity information and the like in the transaction process; second, there is offline corroborative transaction data in the historical corroborative transaction record that is overdue and not cleared (i.e., transactions that have been offline corroborative transactions in the past period of time, but not online cleared in the time that online corroborative clearance is required). And if the node meets the exchange condition, determining offline evidence-passing distribution data of the block chain node according to the evidence-passing basic data, wherein the offline evidence-passing distribution data comprises the exchange ratio of the offline evidence-passing and the common evidence-passing and the initial amount of the exchangeable offline evidence-passing. The exchange ratio of the offline general certificate and the common general certificate is the exchange ratio of the offline general certificate and the common general certificate, and under a general condition, the default value of the exchange ratio of the system offline general certificate and the common general certificate is 1 offline general certificate: 1.2 common certificates, that is, 1.2 common certificates can be exchanged for one offline common certificate. In this embodiment, prior to redeeming the offline certification,
and step S600, confirming the actual amount of the exchangeable offline permit of the block chain nodes according to the exchange ratio of the offline permit and the common permit, the currently held permit information and the initial amount of the exchangeable offline permit.
In specific implementation, if a certain block link point can be exchanged with n offline certificates, according to the exchange ratio of the offline certificates and the common certificates, at least 1.2n common certificates are needed to exchange the n offline certificates, but the common certificates held by the certain block link point may be less than 1.2n common certificates, so that the initial amount convertible by the offline certificates needs to be further confirmed according to the number of the common certificates owned by the certain block link point, and if the actual amount convertible by the offline certificates is obtained, the actual amount convertible by the offline certificates is obtained.
And step S800, exchanging and distributing the offline permit according to the actual amount of the exchangeable offline permit.
In practical application, if the initial amount convertible by the offline voucher is adjusted to obtain the actual amount convertible by the offline voucher, an exchange confirmation message can be sent to the block chain node, the exchange confirmation message carries the actual amount convertible by the offline voucher to prompt a user whether to continue to exchange, if the confirmation exchange is received, corresponding exchange operation is carried out, the offline voucher with the amount equal to the actual amount convertible by the offline voucher is exchanged, and the exchanged offline voucher is distributed to the node; and if the user refuses the exchange, closing the exchange operation. If the actual amount convertible by the offline voucher still remains unchanged, locking the corresponding number of common vouchers according to the exchange proportion, converting the offline voucher with the actual amount convertible by the offline voucher and the like, and distributing the converted offline voucher to the node.
According to the offline evidence-passing distribution method, evidence-passing basic data are obtained, the evidence-passing basic data comprise current time evidence-passing circulation data, current held evidence-passing information of the block chain nodes and historical evidence-passing transaction records, when the block chain link points are judged to meet preset offline evidence-passing exchange conditions according to the historical evidence-passing transaction records, offline evidence-passing distribution data comprising exchange ratios of offline evidence-passing and common evidence-passing and initial amounts of exchangeable offline evidence-passing are determined according to the evidence-passing basic data, then actual amounts of exchangeable offline evidence-passing of the block chain nodes are determined, and the offline evidence-passing is exchanged and distributed according to the actual amounts of exchangeable offline evidence-passing. The block chain nodes are allowed to carry out off-line transaction from the evidence-passing level, and the amount and clearing time limit of the off-line transaction can be dynamically adjusted, so that the block chain nodes can determine the exchange amount and the use right of off-line evidence passing even in an off-line state, flexibility and high efficiency are achieved, and convenience is improved.
In one embodiment, as shown in fig. 3, determining the offline certification allocation data of the blockchain node according to the certification base data includes: step S420, according to the current held certificate information and the historical certificate transaction records, determining the initial amount of the exchangeable offline certificate, and according to the certificate circulation data at the current time, determining the exchange ratio of the offline certificate and the common certificate and the online clearing time limit of the offline certificate.
In specific implementation, the offline certification distribution data further includes offline certification on-line clearing time limit, and in general, the default value of the offline certification on-line clearing time limit is 24 hours. The determining of the offline evidence passing distribution data of the block chain node comprises determining an initial amount of redeemable offline evidence passing according to current held evidence passing information and historical evidence passing transaction records, and specifically, the initial amount of redeemable offline evidence passing can be obtained according to the maximum number of single-use evidence passing of the node and the number of currently held offline evidence passing. As described in the above embodiment, the default value of the system for the exchange ratio of the offline general certificate and the offline general certificate is 1.2:1, and the default value of the online clearing time limit of the offline certificate and the offline general certificate is 24 hours, but in a special case, the exchange ratio and the clearing time limit of the offline certificate and the offline general certificate may be adjusted according to the ratio of the currently issued offline certificate to the currently issued offline certificate, for example, the ratio of the currently issued offline certificate to the currently issued offline certificate reaches 5% or more than 5%, and then, the exchange ratio of the offline certificate to the general certificate may be adjusted to 1.3: 1, that is, 1.3 general certificates can be exchanged for 1 offline certificate, it is understood that, in other embodiments, the exchange ratio between the offline certificates and the general certificates may also be other specific values, which may be determined according to actual situations, and is not limited herein. In the embodiment, the offline evidence-based online clearing time limit and the exchange proportion are dynamically adjusted by combining the current circulation data of the system, so that the adaptability can be improved.
In one embodiment, as shown in fig. 3, determining an initial amount redeemable for offline evidence based on the current held evidence-passing information and historical evidence-passing transaction records comprises: extracting the maximum single-use voucher number in the historical voucher transaction records, determining the maximum offline voucher exchange amount according to the maximum single-use voucher number, and determining the initial amount of redeemable offline voucher according to the maximum offline voucher exchange amount and the current held voucher information.
In practical application, the initial amount of redeemable offline certificates is the amount after deducting the ordinary certificates held by the node. Specifically, the maximum value of the number of certificates used in a single transaction of the node may be extracted from historical certificate-passing transactions, if the single transaction of the node deals with 5 common certificates at most, the node can only redeem 5 offline certificates at most, and then the number of the currently held offline certificates is detected, if the node itself holds 2 offline certificates, the node can only redeem 3 offline certificates at most, that is, the initial amount of the redeemable offline certificates of the node is 3. If it is a node that has never been traded, a maximum of 1 offline pass is redeemed by default. It is understood that, in other embodiments, if the node has never been traded, the default offline certification of the maximum redemption may also be 2, which may be determined according to actual situations and is not limited herein. In another embodiment, if a certain node only applies for exchanging 3 offline certificates, and the initial amount of exchangeable offline certificates calculated according to the conditions of the node is 5, the initial amount of exchangeable offline certificates may also be adjusted to 3. In this embodiment, for the specificity of the offline certificate, the convertible amount of the offline certificate can be adjusted according to the certificate information held by each node, and the incentive effect of the offline certificate in the blockchain system can be further exerted.
In one embodiment, as shown in fig. 4, the actual amount of redeemable offline certificates for confirming blockchain nodes according to the exchange ratio of the offline certificates and the common certificates, the currently held certificate information and the initial amount of redeemable offline certificates comprises:
step S622, acquiring a plurality of common permit holding numbers in the current holding permit information;
step S624, according to the exchange ratio of the off-line general certificate and the general certificate, judging whether the general certificate holding number meets the exchange requirement corresponding to the initial amount of the exchangeable off-line general certificate;
step S626, if the sum is not satisfied, confirming the exchangeable amount of the off-line certificate again according to the holding number and the exchange proportion of the common certificate to obtain the actual amount of the exchangeable off-line certificate;
in step S628, if yes, the initial amount of the redeemable offline voucher is used as the actual amount of the redeemable offline voucher.
In specific implementation, assuming that the exchange ratio of the off-line general certificate to the general certificate is 1.2:1, if the initial amount convertible by the off-line general certificate is n, 1.2n general certificates are needed to meet the conversion requirement for converting n off-line general certificates. Therefore, acquiring the number of held common certificates in the current held common certificate information, then judging whether the number of held common certificates meets the exchange requirement corresponding to the initial amount of the exchangeable off-line common certificates, namely, the number is greater than or equal to 1.2n according to the exchange ratio of the off-line common certificates to 1.2:1, if not, reconfirming the exchangeable amount of the off-line common certificates according to the number of held common certificates and the exchange ratio, for example, if the exchangeable initial amount of the off-line common certificates is 5, according to the preset exchange requirement, at least 6 common certificates are needed to exchange 5 off-line common certificates, and if the number of the currently held common certificates is only 5, according to the exchange ratio, 5 is greater than 1.2 x 4=4.8, the actual amount of the exchangeable off-line common certificates of the node is 4; if the number of the common certificates currently held by the node is 8, the initial amount of the redeemable offline certificates is used as the actual amount of the redeemable offline certificates, and 5 equal amounts of the redeemable offline certificates obtained in the preorder are maintained. In this embodiment, whether the number of the held common certificates meets the exchange requirement corresponding to the initial amount of the exchangeable offline common certificates is judged according to the exchange ratio of the offline common certificates and the common certificates, so that the problem that the number of the held common certificates is not enough to exchange the offline common certificates with the initial amount of the exchangeable offline common certificates and the like can be effectively solved.
In one embodiment, after the offline permit is redeemed and distributed according to the actual amount of redeemable offline permits, the method further comprises: step S900, when detecting that the block link node carries out off-line certification transaction, recording off-line certification transaction data and sending an on-line clearing notification message to the block link node, capturing the network state of the block link node, wherein the on-line clearing notification message carries an off-line certification on-line clearing time limit; step S920, when the network status of the blockchain node is captured as the online status, calculating offline certification transaction data according to the offline certification online clearing time limit.
Generally, without a network, a node cannot use a common certificate, and the common certificate must be connected to the network to be used. After the offline permit is exchanged and distributed to the node, the node can use the offline permit to perform offline permit transaction under the state without network, generally face-to-face use, two parties exchange address information, local nodes of the two parties (such as in mobile phone application) record offline permit transaction data, and when networking is performed, networking clearing is performed. When capturing the off-line pass of the node in the off-line state, detecting whether the transaction is in the off-line pass limit of the allowed transaction, if so, recording off-line pass transaction data on the local node, and sending an online clearing notification message carrying the off-line pass online clearing time limit to the block link node to prompt a user of the node to perform online clearing on the off-line pass transaction in the off-line pass online clearing time limit, waiting for the next online clearing of the block link node, and capturing the network state of the block link node. And when the network state of the node is captured to be the online state, calculating the offline certification transaction data according to the offline certification online clearing time limit. For example, if the node goes online (connects to the network) within the offline-credentialing online clearing time limit, the offline-credentialing transaction data is calculated. If the offline evidence-passing online clearing time limit is exceeded, a certain amount of commission charge can be calculated and deducted according to the exceeded time length. Specifically, the deduction rule of the commission fee can be according to the payment rule of the late payment of the current industry, similar to the overdue payment of the credit card, for example, several thousandths of the commission fee is collected every more than 24 hours, which is determined according to the circumstances and is not limited herein. In this embodiment, the normal operation of the blockchain system can be maintained by sending an online clearing notification message of the offline certification online clearing time limit to the blockchain point and calculating the offline certification transaction data in time.
It should be understood that although the various steps in the flow charts of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, there is provided an offline certification distributing apparatus, including: a data acquisition module 510, a voucher distribution data determination module 520, a voucher redeemable amount confirmation module 530, and an offline voucher distribution module 540, wherein:
the data obtaining module 510 is configured to obtain the basic data of the certificate of pass, where the basic data of the certificate of pass includes the current time certificate of pass circulation data, the current holding certificate of pass information of the block link node, and the historical certificate of pass transaction record.
And a voucher distribution data determining module 520, configured to determine offline voucher distribution data of the block link nodes according to the voucher basic data when the block link points are judged to meet the preset offline voucher exchange conditions according to the historical voucher transaction records, where the offline voucher distribution data includes exchange ratios of offline vouchers and common vouchers and initial amounts of exchangeable offline vouchers.
And a voucher redeemable amount confirmation module 530, configured to confirm an actual amount of the block chain node that the offline voucher can be redeemed, according to a transfer ratio of the offline voucher to the general voucher, the currently held voucher information, and the initial amount of the redeemable offline voucher.
And the offline evidence obtaining and distributing module 540 is used for redeeming and distributing the offline evidence obtaining according to the actual amount of the redeemable offline evidence obtaining.
In one embodiment, the voucher distribution data determining module 520 is further configured to determine an initial amount of exchangeable offline vouchers according to the currently held voucher information and historical voucher transaction records, and determine a transfer ratio of the offline vouchers to the ordinary vouchers and an offline voucher online clearing time limit according to the current time voucher circulation data.
In one embodiment, the voucher distribution data determining module 520 is further configured to extract a maximum number of single-use vouchers in the historical voucher transaction records, determine a maximum offline voucher exchange amount according to the maximum number of single-use vouchers, and determine an initial amount that can be exchanged for offline vouchers according to the maximum offline voucher exchange amount and current held voucher information.
In one embodiment, the voucher redeemable amount confirmation module 530 is further configured to obtain a number of held common vouchers in the currently held voucher information, determine whether the number of held common vouchers meets a redemption requirement corresponding to an initial amount of the redeemable offline voucher according to a redemption ratio of the offline voucher and the common voucher, if not, reconfirm the redeemable amount of the offline voucher according to the number of held common vouchers and the redemption ratio to obtain an actual amount of the redeemable offline voucher, and if yes, take the actual amount of the redeemable offline voucher as the actual amount of the redeemable offline voucher.
In one embodiment, as shown in fig. 6, the apparatus further includes an offline calculation module 550, configured to record offline authenticated transaction data and send an online clearing notification message to the blockchain node when it is detected that the blockchain node performs offline authenticated transaction, capture a network state of the blockchain node, where the online clearing notification message carries an offline authenticated online clearing time limit, and calculate the offline authenticated transaction data according to the offline authenticated online clearing time limit when the network state of the blockchain node is captured as an online state.
For specific limitations of the offline certification distributing apparatus, reference may be made to the above limitations of the offline certification distributing method, which is not described herein again. All or part of each module in the off-line evidence distribution device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used for storing data such as the current holding certification information of the blockchain nodes, historical certification transaction records of the blockchain nodes, current time certification circulation data and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an offline credential distribution method.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the offline evidence-obtaining distribution method when executing the computer program.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned offline credential distribution method.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An off-line credential distribution method, the method comprising:
obtaining the basic data of the certificate of pass, wherein the basic data of the certificate of pass comprises the current time certificate of pass circulation data, the current holding certificate of pass information of the block chain nodes and historical certificate of pass transaction records;
when the block chain link points are judged to meet preset offline evidence passing and exchanging conditions according to the historical evidence passing and transaction records, determining offline evidence passing and distributing data of the block chain link points according to the evidence passing basic data, wherein the offline evidence passing and distributing data comprise the exchange ratio of offline evidence passing and common evidence passing and the initial amount of exchangeable offline evidence passing;
confirming the actual amount of the exchangeable offline permit of the block chain node according to the exchange ratio of the offline permit and the common permit, the currently held permit information and the initial amount of the exchangeable offline permit;
according to the actual amount of the redeemable offline permit, redeeming and distributing the offline permit;
when detecting that the block link node carries out offline evidence-passing transaction, recording offline evidence-passing transaction data, sending an online clearing notification message to the block link node, and capturing the network state of the block link node, wherein the online clearing notification message carries the offline evidence-passing online clearing time limit;
when the network state of the block link node is captured to be an online state, calculating the offline evidence-passing transaction data according to the offline evidence-passing online clearing time limit;
the preset offline certificate exchange condition at least comprises the following sub-conditions:
a first sub-condition that no malignant transaction record exists in the historical evidence-based transaction records;
and a second sub-condition that offline evidence-passing transaction data which are not cleared for overdue do not exist in the historical evidence-passing transaction records.
2. The offline certification distribution method according to claim 1, wherein the offline certification distribution data further includes an offline certification on-line clearing time limit;
the determining the offline certification distributing data of the block chain node according to the certification basic data comprises:
determining an initial amount of the redeemable offline evidence according to the current holding evidence passing information and the historical evidence passing transaction record;
and determining the exchange ratio of the off-line certificate and the common certificate and the on-line clearing time limit of the off-line certificate according to the certificate passing circulation data at the current time.
3. The offline forensic distribution method according to claim 2 wherein said determining an initial amount of said redeemable offline forensic, based on said current held forensic information and said historical forensic transaction record, comprises:
extracting the maximum number of single-use pass certificates in the historical pass certificate transaction record;
determining the maximum offline currency exchange amount according to the maximum single-use currency exchange number;
and determining the initial amount of the redeemable offline evidence according to the maximum redemption amount of the offline evidence and the current held evidence passing information.
4. The offline evidence distribution method of claim 1, wherein the determining the actual amount of the redeemable offline evidence of the blockchain node according to the exchange ratio of the offline evidence to the common evidence, the currently held evidence information and the initial amount of the redeemable offline evidence comprises:
acquiring a number of common general certificate holding numbers in the current holding general certificate information;
judging whether the holding number of the common certificate meets the exchange requirement corresponding to the initial amount of the exchangeable off-line certificate or not according to the exchange ratio of the off-line certificate and the common certificate;
if not, re-confirming the exchangeable amount of the off-line certificate according to the holding number of the common certificate and the exchange ratio to obtain the actual amount of the exchangeable off-line certificate;
and if so, taking the actual amount of the redeemable offline evidence transfer as the actual amount of the redeemable offline evidence transfer.
5. An off-line credential distribution device, the device comprising:
the data acquisition module is used for acquiring the basic data of the certificate of pass, wherein the basic data of the certificate of pass comprises the current time certificate of pass circulation data, the current holding certificate of pass information of the block chain nodes and historical certificate of pass transaction records;
the evidence-passing distribution data determining module is used for determining offline evidence-passing distribution data of the block link nodes according to the evidence-passing basic data when the block link nodes are judged to meet preset offline evidence-passing exchange conditions according to the historical evidence-passing transaction records, wherein the offline evidence-passing distribution data comprise exchange ratios of offline evidence-passing and common evidence-passing and initial amounts of exchangeable offline evidence-passing;
the voucher redeemable amount confirmation module is used for confirming the actual amount of the redeemable offline voucher of the block chain node according to the exchange proportion of the offline voucher and the common voucher, the currently held voucher information and the initial amount of the redeemable offline voucher;
the offline evidence obtaining module is used for obtaining the actual amount of the redeemable offline evidence obtaining module, and obtaining the actual amount of the redeemable offline evidence obtaining module;
the offline calculation module is used for recording offline certification transaction data and sending an online clearing notification message to the blockchain node when the blockchain node is detected to perform offline certification transaction, capturing the network state of the blockchain node, wherein the online clearing notification message carries the offline certification online clearing time limit, and when the network state of the blockchain node is captured to be the online state, calculating the offline certification transaction data according to the offline certification online clearing time limit;
the preset offline certificate exchange condition at least comprises the following sub-conditions:
a first sub-condition that no malignant transaction record exists in the historical evidence-based transaction records;
and a second sub-condition that offline evidence-passing transaction data which are not cleared for overdue do not exist in the historical evidence-passing transaction records.
6. The off-line evidence distribution device of claim 5, wherein the evidence distribution data determination module is further configured to determine an initial amount of the redeemable off-line evidence according to the current held evidence information and the historical evidence transaction record, and determine a transfer ratio of the off-line evidence and the common evidence and an off-line evidence online clearing time limit according to the current time evidence distribution data.
7. The offline evidence passing distribution device of claim 5, wherein the evidence passing distribution data determination module is further configured to extract a maximum single-use evidence passing number in the historical evidence passing transaction record, determine an offline evidence passing maximum redemption amount according to the maximum single-use evidence passing number, and determine the initial amount of redeemable offline evidence passing according to the offline evidence passing maximum redemption amount and the current holding evidence passing information.
8. The off-line voucher dispensing device of claim 5, wherein the voucher redeemable amount confirmation module is further configured to obtain a number of common vouchers held in the currently held voucher information, determine whether the number of common vouchers held satisfies a redemption requirement corresponding to an initial amount of the redeemable off-line voucher, if not, confirm the redeemable amount of the off-line voucher again according to the number of common vouchers held and the redemption ratio, and if so, obtain the actual amount of the redeemable off-line voucher.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN201911371415.9A 2019-12-26 2019-12-26 Offline evidence distribution method and device, computer equipment and storage medium Active CN111127016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911371415.9A CN111127016B (en) 2019-12-26 2019-12-26 Offline evidence distribution method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911371415.9A CN111127016B (en) 2019-12-26 2019-12-26 Offline evidence distribution method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111127016A CN111127016A (en) 2020-05-08
CN111127016B true CN111127016B (en) 2022-08-02

Family

ID=70503493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911371415.9A Active CN111127016B (en) 2019-12-26 2019-12-26 Offline evidence distribution method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111127016B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116720203A (en) * 2023-05-30 2023-09-08 哈尔滨道简科技发展有限公司 Data security control system and method based on block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160090556A (en) * 2015-01-22 2016-08-01 국방과학연구소 On-line/off-line electronic signature system for security of off-line token and its method
CN108470278A (en) * 2018-03-13 2018-08-31 成都零光量子科技有限公司 A kind of block chain Token is across chain and on-line off-line method of commerce
WO2019020824A1 (en) * 2017-07-27 2019-01-31 Sofitto Nv Method for authenticating a financial transaction in a blockchain-based cryptocurrency, smart card, and blockchain authentication infrastructure
CN109871263A (en) * 2019-02-25 2019-06-11 百度在线网络技术(北京)有限公司 The operation method of block catenary system, device, equipment and storage medium under line
CN110221919A (en) * 2019-05-31 2019-09-10 阿里巴巴集团控股有限公司 Virtual resource allocation method and apparatus based on block chain

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160125403A1 (en) * 2014-04-28 2016-05-05 Chin-hao Hu Offline virtual currency transaction
US10810581B2 (en) * 2017-09-26 2020-10-20 Paypal, Inc. Secure offline transaction system using digital tokens and a secure ledger database

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160090556A (en) * 2015-01-22 2016-08-01 국방과학연구소 On-line/off-line electronic signature system for security of off-line token and its method
WO2019020824A1 (en) * 2017-07-27 2019-01-31 Sofitto Nv Method for authenticating a financial transaction in a blockchain-based cryptocurrency, smart card, and blockchain authentication infrastructure
CN108470278A (en) * 2018-03-13 2018-08-31 成都零光量子科技有限公司 A kind of block chain Token is across chain and on-line off-line method of commerce
CN109871263A (en) * 2019-02-25 2019-06-11 百度在线网络技术(北京)有限公司 The operation method of block catenary system, device, equipment and storage medium under line
CN110221919A (en) * 2019-05-31 2019-09-10 阿里巴巴集团控股有限公司 Virtual resource allocation method and apparatus based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
TOKEN BASED OFFLINE TRANSACTION SYSTEM;Bazeem Ismaeil Khan 等;《OAIJSE》;20181031;第3卷(第10期);第10-13页 *

Also Published As

Publication number Publication date
CN111127016A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
US20220156738A1 (en) Methods and systems of using a cryptocurrency system to manage payments and payment alternatives
CN110612546B (en) Method and apparatus for digital asset account management
JP6239399B2 (en) System and method for mobile payment using alias
KR20180014534A (en) Verification system and method for transaction based block chain
RU2595885C2 (en) Method and system using universal identifier and biometric data
CN108764868A (en) Block chain node-agent account checking method and block reconciliation agent node
KR20160081850A (en) System and method for integratedly accumulating and approving bonus points in oneline-commerce
CN110633963A (en) Electronic bill processing method, electronic bill processing device, computer-readable storage medium and equipment
CN107527222B (en) Information processing method, device and system
CN101636949A (en) Generation systems and methods for transaction identifiers having biometric keys associated therewith
CN107784580A (en) A kind of non-stop layer digital cash method of commerce derived from based on public private key pair
WO2021203739A1 (en) Blockchain rollback insuring method, device, and storage medium
CN101271564A (en) System and method for processing client protocol capital pool data based on network
US20220067717A1 (en) Blockchain system that includes bank nodes each having separate ledgers for identity, digital currency and other functions, and operation method thereof
CN111667273A (en) Digital currency using method and device based on region and main body and electronic equipment
CN111127016B (en) Offline evidence distribution method and device, computer equipment and storage medium
CN103065241A (en) Cloud credit card transaction system and transaction method thereof
CN111047323A (en) Credit transaction method and device based on block chain and hardware equipment
CN112184460B (en) House maintenance fund management method, apparatus and storage medium
JP2001351073A (en) Area management system of multi-application ic card and ic card application system
CN110852731A (en) Fund transaction method and related device
WO2021158169A1 (en) Methods, systems, and devices of managing digital asset, including digital asset deposits, digital asset term deposits, digital asset withdrawals, and early withdrawals of digital asset term deposits
CN103346881A (en) Cloud computing system of bank payment passwords and application method thereof
CN110956551B (en) Revenue distribution method and related equipment
CN115375464B (en) Financing authorization method, system, computer device and readable storage medium

Legal Events

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