A privacy data publishing state verification and recovery method and system

By verifying and persisting the budget and maximum number of publication requests during the privacy data publication process, generating bound privacy domains and data commitments, and ensuring that sampled materials are unavailable before the license takes effect, the problem of budget release and database state inconsistency in asynchronous processing is solved, and the reliability and consistency of sampling opportunities and delivery results are achieved.

CN123179461APending Publication Date: 2026-11-27OCEAN UNIV OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611600776.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-16
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

During asynchronous processing on the provider side, the corresponding budget may be released after the sampling capability is enabled, duplicate submissions may change the original delivery results, and the old database may be restored as the current state, making it difficult to maintain account consistency.

Method used

By verifying the budget and maximum number of releases for the release request, information such as the bound privacy domain, data commitment, processing parameters, and release sequence number is generated and atomically persisted in the license effective transaction. This ensures that the sampled material is unavailable before the license takes effect. The sampled material is made available after the provider's authentication, and release termination and expiration termination are performed to avoid duplicate budgeting.

Benefits of technology

It achieves consistency between sampling opportunities, budget consumption, and delivery results during asynchronous processing, avoids duplicate commits and database state inconsistencies, and ensures the reliability and accuracy of the recovery process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179461A_ABST
    Figure CN123179461A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of data security, and discloses a state verification and recovery method and system for private data publishing. Publishing permission, budget quota occupation and publishing serial number occupation are atomically persisted, and only after successful submission, the sampling materials necessary for fixed random input are opened to the authentication providing end; successful publishing and expiration without publishing are both counted into fixed budget increment according to the same permission and the publishing serial number is terminated, and the occupation is not refunded when the change is cancelled and a receipt is changed; the budget state, the termination record and the delivery package are atomically saved when the publishing is terminated, and the original delivery package that is consistent with the verification is returned only when retrying. Restarting and backup recovery are constrained by signature event replay and independent trusted progress verification, so that the sampling opportunity, budget consumption and delivery record in asynchronous processing, repeated requests and fault recovery are kept consistent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of data security, database transaction processing, and computer system fault recovery, specifically to a method and system for verifying and recovering the status of private data releases. Background Technology

[0002] Privacy-preserving data releases typically introduce random perturbations into statistical results or data vectors and limit repeated queries through cumulative privacy budgets. Existing implementations utilize digital signatures, commitments, and zero-knowledge proofs to verify processing relationships, database transactions to maintain account consistency, and request identification and persistence to handle repeated calls to records. Publicly available research on state continuity also uses trusted execution environments and independent state custody to save budgets and results before responses are returned and to verify history upon restart, reducing the risks of replay, rollback, and forks. For processes where the provider computes results, generates proofs asynchronously, and submits them outside of the coordination service, license activation, sampling material acquisition, and result delivery occur at different times. If only successful submissions are accounted for, or if the credit is refunded due to cancellation or timeout after the provider has obtained the sampling material, undelivered sampling opportunities may be repeatedly acquired. If a delivery transaction has been submitted but the response is lost, regenerating the result may change the output of the same license. Furthermore, an older database with correct internal signatures and digest chains may still lag behind publicly confirmed history; if it is used as the current state during restart or backup recovery, the budget consumption already incurred and the results already delivered may be rolled back. Summary of the Invention

[0003] This invention provides a method and system for verifying and restoring the state of privacy data publication, aiming to solve the problems that sampling capabilities may be opened and the corresponding budget may be released during asynchronous processing of the provider, repeated submissions may change the original delivery results, and old databases may be restored as the current state, so that the material opening, budget occupancy, termination and delivery persistence of the same license follow consistent state constraints.

[0004] To address the aforementioned technical problems, this invention provides a method for verifying and restoring the status of privacy data publication performed by a publication coordination service, comprising: Verify the budget and maximum number of releases constraints of the release request, generate a release license that binds a privacy domain, data commitment, processing parameters, budget increment, release sequence number, expiration time, and sampling binding information, and atomically persist the pending license, budget quota occupation, and release sequence number occupation in the license activation transaction; the release sequence number has not been previously assigned to other activated licenses, and the sampling binding information is fixed to process random input, and at least one sampling material component necessary to form the random input is unavailable to the provider before the license activation transaction is submitted; After the license activation transaction is successfully submitted, the release license becomes effective, and the sampling material component is made available to the authentication provider specified by the release license. Repeated readings of the same release license return the same sampling material component. For pending licenses, release termination is performed on delivery packages bound to the license and verified through data processing proof before the expiration date; if the package is not released by the expiration date, expiration termination is performed. The two terminations are mutually exclusive, both atomically including the fixed budget increment of the license, incrementing the count of terminated licenses by 1, terminating the release sequence number, and removing the pending occupancy. Cancellation of the license after it takes effect, failure of proof verification, and changes in receipts will not result in a refund of the quota or number of times; if the license is still pending, the original expiration time will be retained. Upon release termination, the budget and license status, termination record, original delivery package and its summary are atomically persisted and then made available for reading. For legitimate duplicate requests, only the original delivery package or original response that has been verified for request consistency and summary is returned. If the original delivery package is missing or the summary is inconsistent, the original delivery package is rejected and is not regenerated or included in the budget again.

[0005] In one implementation, the sampled material component is a service random quantity generated and sealed by the release coordination service; before the license takes effect, the commitment of the provider's private sampled value, the receiver's random quantity, and the service random quantity are fixed; the license taking effect transaction fixes the association between the above commitments, the sealed material, and the license identifier; the material reading interface verifies the provider's identity, pending status, and original expiration time based on the submitted license; after verifying that the commitment of the sealed material and the service random quantity are consistent, the original service random quantity is opened through a confidential authentication channel; the random input is processed by the private sampled value, the service random quantity, the receiver's random quantity, and the license fixed fields; the data processing proves the constraint commitment to be enabled, the random input is exported, and the correspondence between the processing result, the budget increment, and the processing parameters; the private sampled value, the service random quantity, and the complete random input do not enter the public license, public event, or delivery plaintext.

[0006] In one implementation, dataset versions that require shared accumulation of privacy consumption are mapped to stable privacy domain identifiers. The maximum values ​​of used budget, terminated license count, and assigned release sequence numbers, along with independent occupancy records for each pending license, are stored by privacy domain. Within the license activation transaction, it is verified that the sum of used budget, all pending budget increments, and new license budget increments does not exceed the budget limit. It is also verified that the sum of terminated license count, pending license count, and 1 does not exceed the release count limit. The release sequence number of the new license is set to the maximum value plus 1, and the maximum value is updated. When terminating a pending license, the terminated license count is increased by 1 by adding the current used budget to the fixed budget increment for that pending license. The pending license and its release sequence number are registered as terminated, and the corresponding pending occupancy is removed. The current budget is not overwritten by the account snapshot at the time the license takes effect, and the termination record has a unique constraint on the license identifier.

[0007] In one implementation, the delivery package includes an encrypted processing result, a result commitment, a data processing proof, and a provider binding signature. The binding signature covers the license digest, ciphertext digest, result commitment, proof digest, and public input digest. The release termination employs a two-phase verification process: in an isolated snapshot holding a write lock, the identity, request, license, occupancy, and duration are verified, and a copy of the license, delivery package digest, and expected public input are fixed. After releasing the write lock, the proof and binding signature are verified, and then a write transaction is entered to re-verify the request cache, license, occupancy, sequence number, and delivery package digest. The trusted time obtained during the conditional state update determines that the original expiration time has not yet arrived. The state update, original delivery package, termination record, and original response are atomically committed. The request cache uses the authentication requester's identity, operation type, and request identifier as keys. For the same key and the same request digest, the original response verified by the original delivery package is returned; for the same key but different request digests, the response is rejected. If the same content has already been concurrently committed, the original result is read.

[0008] In one implementation, the state transactions of license activation, release termination, and expiration termination are simultaneously appended with a signature event. The event includes a logical service instance identifier, a consecutive event sequence number, a previous summary, an event type, a license identifier, and a state transition field. In the same isolated snapshot, the event is replayed according to preset state rules to verify license occupancy, material one-time use identifier, budget increment, mutual exclusion termination, and that the receipt does not change the budget. The replayed budget, pending licenses, material one-time use identifier, termination record, delivery summary, and request cache summary are compared with persistent records. If verification or comparison fails, state changes and material / delivery openings dependent on the persistent records are stopped. The verified progress, corresponding replayed state, storage identity, and version are cached in pairs. New events and operation dependency records are verified only when the historical prefix is ​​consecutive and the cache is valid. The cache is invalidated when the submission result is uncertain, not written by the current process, or the historical data is truncated or the prefix changes.

[0009] In one implementation, normal restarts, restarts after database replacements, and backup recovery share a common startup verification entry point. During startup, license activation, material release, delivery release, and budget status changes are paused. A certified progress, consisting of a logical service instance identifier, event sequence number, and corresponding summary, is obtained from a preset trusted progress source independent of the candidate database and its backups. The candidate history is verified to include the prefix indicated by the certified progress, and full event and joint status verification is completed. Once verified, the interface is restored. If the required progress is not obtained or verification fails, the process remains paused. When querying the trusted progress source online, a random challenge is generated, and the progress response must cover this random challenge. After the license activation and release termination transactions are submitted, persistent confirmation of the corresponding event from the trusted progress source is obtained before the corresponding materials and original delivery packages are released. Subsequent licenses in the same domain are released only after confirmation of the expiration termination event. The trusted progress source only accepts continuous extensions of the same history.

[0010] In one implementation, the backup is authenticated and decrypted to an isolated directory. After verification of the file list, instance identity, backup progress, and the authenticated progress, it is written to an empty target directory. After writing, it is re-entered through the startup verification entry point, retaining the original privacy domain, budget, sequence number, pending and finalized licenses, archived materials, original delivery packages, and request cache. Pending licenses retain the original sampling materials and original expiration time. Those that have expired are terminated upon expiration. If materials or original delivery packages are missing, the corresponding opening is stopped and no replacement content is generated. If the trusted progress source is unreachable or the confirmation is uncertain, the local submitted facts and events to be synchronized are retained, the new license activation and the opening of new materials and deliveries are suspended, and the same consecutive events are allowed to be idempotently retransmitted. After the trusted progress source is restored, the current progress and historical prefix are verified with a new challenge. After the consecutive events are completed and the prescribed confirmation is obtained, the interface is restored. When there is a progress conflict, it remains suspended.

[0011] In one implementation, multiple service nodes share a logical service instance identifier, an authoritative persistent storage with serializable submission capabilities, and a trusted progress source. A unique event sequence is formed through unique constraints such as a license identifier, a domain release sequence number, a material one-time use identifier, and a request cache key, as well as conditional updates of domain accounts and event last items. Monotonically increasing write terms and current write nodes are maintained in a control record independent of the business database backup. Status transactions verify terms and expected status versions, and materials and deliveries are executed through a common access point verified by the current term. When a node takes over, the old node is isolated first, and then startup verification and continuous event synchronization are completed. Nodes that cannot confirm their current term or authoritative status stop corresponding operations.

[0012] In one implementation, the identifiers and valid ranges of the event signing key, material sealing key, and identity authentication key are registered respectively. A recovery authorization public key and the minimum acceptable authorization version are pre-set outside the candidate database. When a key leak or valid revocation instruction is detected, the affected interface is frozen. The recovery authorization public key is used to verify the binding logic service instance, revocation key identifier, trusted historical location, and the processing record of incremental authorization versions. After verifying the history and the certified progress and completing the key update, the interface is restored. The update does not reset the privacy domain, budget, license, and release sequence number, and does not change the sample value of the effective license or the original delivery package that has been released. The frozen state is maintained when the trusted history or the scope of impact cannot be determined.

[0013] This invention also provides a privacy data publishing status verification and recovery system, including persistent storage and publishing coordination services, wherein the publishing coordination services include: The license control module is used to verify budget and release frequency limit constraints, and to bind release licenses with fixed privacy domains, data commitments, processing parameters, budget increments, non-repeated release sequence numbers, expiration times, and sampling binding information. Through license activation transactions, pending licenses, budget quota occupancy, and release sequence number occupancy are atomically persisted to the persistent storage. Only after the license activation transaction is successfully submitted will the sampling material necessary for forming fixed random input and unavailable before submission be made available to the authentication provider specified by the release license. Repeated readings of the same release license will return the same sampling material. The release submission module is used for pending licenses. Before the expiration date, it performs release termination on the delivery package bound to the pending license and verified by data processing. If the license is not released by the expiration date, it performs mutually exclusive expiration termination. Both terminations atomically include a fixed budget increment, increment the count of terminated licenses by 1, terminate the release sequence number and release the pending occupancy. Cancellation, verification failure, and changes in receipts do not refund the quota or number of times. If the license is still pending, the original expiration time is retained. The release termination transaction saves the budget and license status, termination record, original delivery package and summary. The status verification module is used to enable the reading of the original delivery package after the release and termination transaction is committed, verify the consistency between the legitimate duplicate request and the existing record and the original delivery package summary, and only return the original delivery package or the original response. If the original delivery package is missing or the summary is inconsistent, it will refuse to return and will not regenerate the delivery package or count it repeatedly in the budget. Each module is associated with the sampling materials, occupancy, termination record and original delivery package through the same license identifier.

[0014] This invention associates the sampling materials necessary for processing random input with submitted licenses. Materials are only released after the budget and release sequence number are persistently occupied, ensuring each sampling opportunity has a verifiable account record. Once a license takes effect, cancellation, proof failure, and changes in receipt do not refund the occupied space. Successful releases and expired unreleased releases are terminated using the same fixed increment, avoiding repeated acquisition of unbilled sampling opportunities due to interrupted processing. Budget updates are persisted together with the original delivery package. Repeated requests verify the business content and the original delivery package summary to retrieve the same result, ensuring that lost responses, concurrent submissions, and recovery retries do not alter existing delivery facts. Event replay simultaneously checks historical conversion rules and current records, enabling the detection of inconsistencies caused by individual account, license, or cache tampering. Independent, trusted progress constraints constrain service startup and opening conditions, allowing rejection of internally consistent but missing confirmed prefixes from older databases; when external confirmation indicates temporary unavailability, submitted occupancy is retained, and subsequent resynchronization can continue the original history, preventing communication failures from being misjudged as business cancellations. When the runtime cache is valid, already verified prefixes are reused, reducing redundant signature verification and state reconstruction; when the cache expires, complete verification is restored. The above measures together maintain the correspondence between sampling opportunities, budget consumption, and original deliverables, and provide clear conditions for continued execution and rejection for anomaly recovery. Attached Figure Description

[0015] Figure 1 A schematic diagram illustrating the composition and interaction relationships of a status verification and recovery system for privacy data release.

[0016] Figure 2 This is a state transition diagram for request confirmation, permission taking effect, mutual exclusion termination, and re-retrieval of the original delivery package.

[0017] Figure 3 A schematic diagram illustrating the two-stage verification process for submission and the re-retrieval of the original delivery package.

[0018] Figure 4 This is a schematic diagram of independent verification and recovery processing, in which ( For client verification and paired record saving, This is for service startup and recovery verification.

[0019] Figure 5 A diagram illustrating multi-node coordination and access control for shared logical service instances.

[0020] Figure 6 This diagram illustrates the freezing and recovery process in case of independent trusted progress source failure or key anomaly.

[0021] Figure 7 A schematic diagram illustrating the budget allocation structure for both license activation and two termination processes.

[0022] Figure 8 This diagram illustrates the timing principle of transaction persistence and open boundaries for materials and delivery under a continuous independent confirmation approach.

[0023] Figure 9 This diagram demonstrates the principle of determining the termination competition when the expiration time has elapsed.

[0024] Figure 10 A schematic diagram illustrating the principle of verifying the consistency between independent and reliable progress and candidate history prefixes.

[0025] Figure 11 This is a schematic diagram illustrating the principle of pairwise saving constraints between client progress and corresponding replay states.

[0026] Figure 12 This diagram illustrates the budget changes when multiple pending licenses within the same privacy domain are terminated out of order.

[0027] Figure 13 The time consumption record for prototype state verification is shown in the graph, where ( The time taken for full and sequential verification of the same 477 event history items on the client side. () represents the time taken for a single complete state verification command under different historical scales. Detailed Implementation

[0028] The specific implementation method is described below with reference to the accompanying drawings. The time settings in the budget examples and drawings are used to illustrate the execution process under the given rules and are not actual performance results; the prototype testing section lists the test environment, statistical methods, and measurement values ​​separately. In this implementation method, the trusted procedure for publishing the coordination service, transaction storage, identity authentication, and material access control are executed according to this method, and the specified independent trust basis remains valid; the provider may interrupt, retry, or submit inconsistent objects, and attackers may replace the service's persistent data; independent progress and authentication configurations do not roll back with the candidate database. Material opening and delivery reading both go through a controlled interface, and related opening is stopped when a state conflict or invalid trust basis is detected.

[0029] like Figure 1 As shown, provider 100 stores protected data and generates processing results and data processing certificates; publishing coordination service 200 manages licenses, budgets, and delivery persistence; and client 300, as the receiving end, independently verifies and receives deliveries. Publishing coordination service 200 includes a status verification module 210, a license control module 220, and a publishing submission module 230, and is configured with persistent storage 250. It may also include a startup and recovery verification module 240, a multi-node coordination module 260, and a key status control module 270. Startup and recovery verification module 240 accesses an independent trusted progress source 500; multi-node coordination module 260 and key status control module 270 are used in the multi-node and key anomaly implementations described later. Each module can be implemented by different program parts of the same process. The connections in the diagram represent the interaction relationships of requests, materials, events, or confirmations, and are not limited to physical distribution.

[0030] Logical service instance identifiers are generated during initialization. and signature key pair, for privacy domain Register budget cap and the maximum number of times it can be published . Identifies a continuously running service history, shared by multiple physical nodes. Restarting, migrating, and key rotation do not regenerate. Versions of datasets belonging to the same data subject or requiring joint computation of privacy costs are mapped to a stable dataset. Dataset renaming and version updates do not automatically create new budgets. Mapping and parameter changes must be recorded according to certified rules to prevent the loss of existing usage or already accounted for consumption; data that cannot be proven to be separable and combinable continues to accumulate in the original domain.

[0031] The joint state is denoted as .in, Indicates privacy domain The state of union, For the budget accumulated from terminated permits, This represents the total number of terminated licenses, including those terminated upon release and those terminated upon expiration. The maximum value of the allocated release sequence number. A summary of the finalized budget projection. For a set of pending license records, This is a set of single-use identifiers for the already used sampling materials. To terminate the set of license records, For a collection of delivery records, This is a request cache collection. During initialization... , and All values ​​are 0, and each record set is empty. Only instances, privacy domains, used budget, and termination counts are reflected; deliverables and termination types are not included in this budget projection; all federated states are still compared item by item by event replay.

[0032] License Mark Used to associate the entire licensing process with a specific instance; Serial number Used to identify a single publication opportunity within a privacy domain; material identifier Used to prevent the same sample material from being assigned to different licenses; Termination of Record Used to record whether the license has expired and the type of expiration. , , They have different meanings and can be stored in the same table using different indexes. Register when the license takes effect. Registration upon termination cannot be interpreted as the material being occupied being terminated.

[0033] Budget projection summary can be set to Calculation. Among them, For cryptographic hash functions, To standardize the encoding function, the string `budget-state` serves as a fixed marker to distinguish the purpose of an object. By this definition, release terminations and due terminations with the same budget and termination count receive the same budget projection, and their types are stored separately in the termination record. Concurrent termination uses the current... and Recalculate The projection calculated under the old account will not be reused under another license.

[0034] Budget increment A uniform non-negative integer unit is used. Addition, accumulation, and ordinal operations all check for overflow; allocation is rejected in case of an anomaly. Privacy metrics, adjacency relationships, combination rules, fixed-point precision, and mechanism parameters collectively constitute the processing parameter identifier. Incremental changes to the same account use the same composable metric; changes to the metric require explicit conversion rules and verification. Account arithmetic ensures consistency in accounting under given metrics; specific privacy limits are determined by the data processing mechanism. Its parameters are determined.

[0035] When using fixed-point accounting, the budget increment can be defined as and define the budget cap as .in, For fixed-point scaling factor, To handle the upper bound of single-instance privacy consumption determined by the parameters, This represents the upper limit of total consumption under the same metric. and These represent rounding up and rounding down, respectively. Rounding up the increment and rounding down the upper limit ensures that integer accounts do not underestimate actual privacy consumption. This example selects... If different mechanisms use different privacy metrics, they should first be converted into comparable and composable account quantities according to fixed rules before being accumulated. If the mechanism parameters exceed the allowed range or the calculation overflows, the request will be rejected according to the mechanism configuration; even when the mechanism allows zero consumption, it is still subject to the upper limit on the number of releases.

[0036] license Record , , , Provider and receiver identities, data commitments , , , and sampling binding information . It has a fixed expiration date. For The standardized encoding is used to calculate the license digest and sign it. Data commitments are fixed before the sampled material is made public; when dealing with low-entropy raw values ​​and results, a hidden commitment is used, and the relevant open values ​​are treated as a private witness to the proof.

[0037] The authentication root, including the service signature verification public key, proof verification key, normalized encoding version, state rule version, and time source, is fixed by the deployment configuration. Identifiers in the candidate database are used to select registered configurations and cannot be replaced manually. Existing licenses retain their original processing parameters and proof verification configurations; parameter updates only apply to explicitly specified new licenses. When verifying signatures, proofs, and replaying events, the service checks the object type and instance identity to prevent cross-purpose or cross-instance signature use.

[0038] In serial mode, At most one license; if there are no pending licenses New license allocation and fix the pre-budget Post-budget and summary of pre- and post-budget projections , The conditions are: and During the pending period No progress, but A serial number and a quota have been assigned to this license. With serial number It cannot be used under another license. This indicates the budget already used after the license expires. This represents the projected summary calculated using the budget and the increased final count. Figure 7 In this process, the pending portion after the license takes effect is converted into the used portion after either type of termination, and the sum of the used portion and the pending portion remains unchanged before and after termination.

[0039] In methods that allow concurrent access within the same domain, the service verifies within a single transaction kernel. and ,distribute And Updated to ,in This is the sum of the budget increments for all pending permits. Each permit has its own quota and sequence number. At termination, execution is based on the currently used budget. , Register the The corresponding application has been terminated and removed. Records; different serial numbers can be terminated in different orders. This represents the total number of terminations, which is not necessarily equal to the largest termination number at this moment.

[0040] In concurrent mode, a fixed budget increment and independent occupancy record are granted. The termination event records the actual old and new budgets. The total budget snapshot at the time of issuance is not used to overwrite subsequent account values. Data processing proofs bind the increment and processing parameters of the license, and do not require the global budget to still be equal to the snapshot at the time of issuance. The termination transaction recalculates the budget projection summary based on the current federated state. Both methods accumulate pending occupancy for upper limit verification and set a unique constraint on the license termination record. The following numerical examples with fixed budgets before and after use a serial approach.

[0041] To check whether the budget is still fully covered, define as well as .in, This is the sum of the used budget and all pending funds. The total number of terminated and pending licenses. Represents a set The summation of the fixed budget increments of each permit, where For pending permission Fixed budget increments, express Number of licenses in the license. Pre-license check. and After taking effect Increase , Add 1. Any type of termination makes Increase The amount pending is reduced in the same period and make An increase of 1 reduces the number of pending licenses by 1, therefore the number of licenses before and after termination is [not specified]. and Unchanged. Legitimate retries neither increase the number of licenses nor change these quantities. The above invariants assume that all budget changes are executed under the same transaction rules.

[0042] In this implementation, the service follows the specified open material protocol. The provider may interrupt, retry, or submit inconsistent content, and the receiver does not obtain the provider's private sampling value. A 256-bit private sampling value is generated during provider registration. And fix its commitment This commitment is tied to the provider's identity and applicable privacy domain; once the licensed materials are made public, the provider cannot change their domain. Change the random input for this permission.

[0043] During the request confirmation phase, which has not yet taken effect, the license control module assigns a license identifier. and material labeling Use a cryptographically secure random number generator to generate independent 256-bit random numbers. ,calculate Here It has anti-collision and antigenic properties. The encoding is unambiguous; the string "service-random" is a usage marker. Service-use material storage key pair. The authentication encryption is performed, and additional data including instance, license, and material identifiers are added to obtain the sealed materials. .

[0044] The service is only provided to the confirming party. And corresponding identifiers, the receiving end submits and fixes the random quantity. Provider confirmation , and processing parameters . and The decryption key is not disclosed to the provider; It also does not appear in confirmation responses, general logs, public events, debug information, or client-readable backups. Even if the provider already knows... , and all publicly available fields, upon obtaining The complete random input for this license could not be calculated previously.

[0045] The authorization, budget, and frequency constraints for verification requests related to the license's effective date are fixed. and In , , , , , and will , Occupancy records in Material identification and sealing materials Associated atomic commits. Sealed material can be pre-saved in private storage, but its provider's read permissions are determined by the already committed permission record. It does not make the license effective on its own.

[0046] The material reading interface of the license control module locates committed transactions in readings independent of the license effective transaction. Verify the signature of the service requester. The designated provider, the license is still pending, and the trusted time is less than [time period missing]. When using continuous confirmation, it also verifies that the effective event has been persistently confirmed by the source. Interface unblocking. And verify , , and Then, it is sent through a secure authentication channel to the provider. Reading is refused if the transaction is not submitted or fails to submit; data unsealed within the permitted transaction must not be sent to the network beforehand. In multi-node or key-freezing mode, reading must also meet the access conditions of the multi-node coordination module 260 and the key status control module 270.

[0047] Provider obtains Then, press Generate random input. Among them, A sequence of sampling context fields arranged in a fixed order, including sampling purpose markers, , , , , and ; Will After the fields in the text are expanded, they are compared with... , and Encoded according to the same specification. Pseudo-random expansion, sampling, fixed-point rounding, and output encoding are all handled by... The fixed processing result is recorded as follows: ,in To and Corresponding private data. For the same , , , , Both the input and processing parameters are subject to commitments or licenses, and recalculation according to the protocol after an interruption will only yield the same random input.

[0048] Data processing mechanism Indicates processing parameters Fully specify, with data and random input This is a deterministic program for input. Its configuration includes data length and value range, random expansion algorithm, perturbation sampling rules, fixed-point precision, rounding rules, result encoding, and corresponding privacy consumption calculation rules. When the program requires multiple random words, they are selected from the same random word in a fixed, configured counting order. Extended acquisition means that new, independent random sources cannot be invoked in exception handling branches. The version of the program used to prove data processing constraints must be the same as the version executed by the provider to avoid multiple considered compliant results arising from the same input due to different rounding or encoding.

[0049] Data processing proof to allow fixed fields, , , and results commitment For public input, , , The necessary commitment activation value is kept private, binding each commitment to be correctly activated. Derive from the above relationships, according to Calculate and constrain budget increments with The accounting rules are in compliance. The proof circuit and verification key identifier are included. Service usage is based on The constructed expected public input verification does not accept any input set arbitrarily replaced by the provider. Public input in the proof refers to the non-witness fields required for verification; these fields do not need to be disclosed to unrelated parties. The verification service reconstructs the input from the saved permission, compares the type, length, and value field by field, and then calls the fixed verification procedure; the fields provided in the proof cannot overwrite the values ​​constructed by the service.

[0050] When generating the proof, the provider first performs an enable calculation on the data commitment, the private sampled value commitment, and the service random quantity commitment, then derives the random input, runs the fixed mechanism, and generates the result commitment. The proof witness includes the aforementioned private value and the necessary random enable value; the proof relation simultaneously checks the data range, output range, and the budget increment corresponding to the fixed parameters. For batch-processed data, the batch length, element order, and the consumption calculation method for the entire batch are all included in the processing parameters; the same batch cannot be split into multiple submissions using a single license. Successful service verification indicates that the verified relation is valid, and its cryptographic security depends on the selected proof system and the correct verification configuration.

[0051] For high-entropy random variables This creates a binding that hides the value; for data and results that may be enumerated. and Employ a hidden commitment with a sufficiently random open value. The output of a publicly verifiable random function, if used for permission identification or secondary binding, is treated as a public value. The zero-knowledge property of the proof is used to hide the private witness, ensuring completeness. Not included in public input.

[0052] The relevant data is categorized into three types based on visibility: public access and event storage. , , , , , , , , , and the required budget field; provide a dedicated interface for sending. ; Provides private storage and preservation And witnessing and proof. Delivery may include [delivery details]. and The enable value, but does not include , , Or equivalent material sufficient to reconstruct the complete noise. The receiver can verify the promise and proof, but cannot obtain the noise seed from it.

[0053] If a license application fails to take effect, the ineffective archive record can be retained for further confirmation of the same request, or the ineffective request can be cancelled and its archive record deleted; neither is permitted. 1. Failure to register valid budget usage. 2. When the submitted result is uncertain, proceed according to the request identifier and... When querying the authoritative persistent status, do not directly release the storage upon failure. If submission is successful but the material response is lost, only release it according to... Retrieve raw materials and send the same Not changed due to network timeout , or When the license expires, an expiration termination is performed; if it has already been published, it will be converted to the original delivery package for reading; key migration is only allowed for repackaging of the same raw material.

[0054] Backups retain the original sealed materials and protected key information required for unsealing of pending licenses. This applies to cases where sealed materials are missing, authentication fails, or their commitments are invalid. In case of inconsistency, the access to the permitted materials is suspended, and no alternative random quantity is generated; the occupancy remains, and the original... Upon arrival, the process terminates according to the expiration rules. When using an independent progress custody service, material access must also meet the aforementioned external persistence verification conditions.

[0055] Figure 8 The same schematic timeline is used to represent the open boundaries under the continuous independent confirmation method. A license is submitted locally in 2 seconds, receives independent confirmation in 4 seconds, and raw materials are only eligible for access from 4 seconds onwards. A result submission is completed in 8 seconds, release termination receives independent confirmation in 10 seconds, and the original delivery package is open from 10 seconds onwards. In this example, the original expiration time is 12 seconds. The license has already terminated its release in 8 seconds, and the material access qualification is closed in 8 seconds. After 12 seconds, the original delivery package can only be retrieved again based on the already released record; no new sampling opportunities can be obtained. The dashed lines in the diagram indicate each local submission, independent confirmation, and original expiration time, while the thick solid lines in each row represent the intervals where the corresponding record already exists or the interface is open.

[0056] Figure 2 This indicates the status transition of the license. During the confirmation request period (401), the necessary sampling materials have not yet been opened; cancellation or confirmation timeout does not consume this budget or number of attempts. After the license takes effect (402), the quota, sequence number, and license record have been persisted; cancellation or proof failure does not release the occupied space. Release termination (403) and expiration termination (404) are mutually exclusive, both terminating with the same increment and sequence number; delivery retry (405) only retrieves the original delivery package again. Under the continuous confirmation method, the opening of materials and the original delivery package must also meet the corresponding independent confirmation conditions. Figure 7 The figures are plotted according to the serial example described later. The budget cap is 100, the used budget before the effect is 20, and the budget increment is 15. In the figure, diagonal lines represent pending occupancy, dots represent used budget, and blank spaces represent unused quota. The budget composition is the same for both types of finalized budgets, and only the original delivery package is preserved when the finalized budget is released.

[0057] In the serial mode, the unused budget during the license pending period is But When not empty, no other executable license will be issued for the same privacy domain. If a cancellation request is received after the license has taken effect, the license will remain pending and retain its original status. The original expiration date will not be executed early, nor will the original term be extended. The provider can still submit licensed results within the original deadline; if the license has not been published by the deadline, it will be terminated upon expiration. A frozen or pending external confirmation status is under service interface control and no new refundable budget license termination types will be added.

[0058] The provider uses a fixed input for computation. and data processing proof This generates an encrypted delivery package for the specified client. The service verifies the validity of the license, the consistency between the publicly entered information and the license, and the signature binding of the proof and the provider, in addition to the original... The publication process terminates when the submission conditions are met. The scope of the service's verification of encrypted content is explained below regarding result commitment and binding signature.

[0059] The transaction is terminated and the pending licenses and accounts are reread, requiring a serial approach. point to Matching of pre-budget and pre-budget projection summaries , It does not exist in Transaction update for , for , for Clear Write ,save The transaction summary is appended with the final event and the original response is saved. The delivery interface cannot be read before the transaction is committed. .

[0060] Reach the original If the license is still pending, execution terminates upon expiration. The transaction verifies the same pending and unterminated conditions, performs the same budget, count, and budget projection summary updates as on a successful release, and writes... Clear the corresponding It also adds an expiration termination event. This transaction does not store deliverables. The corresponding material labels will remain.

[0061] If the verification fails, the signature fails, or the submitted fields are inconsistent, the submission will be rejected and the delivery package will not be opened, nor will the existing license status be overwritten. Licenses still pending will retain their original occupancy and... Permissions that have already been concurrently terminated retain their original termination records. The provider can... Previously, using the same data commitment, parameters, and sampling materials to correct for coding or transmission errors, the correction did not generate new occupancy or new materials; achieving No further issuance of this license will be accepted.

[0062] When successful commits and expiration cleanups occur concurrently, the finality result is determined serially by the storage transactions, and is recorded as follows: The uniqueness constraint of the license identifier prevents duplicate accounting. Condition status updates are obtained from a certified service time source. Release branch requirements Expiration branch requirements , Saved with the finality event; the competition between the two finality conditions is determined by updating this condition, taking effect only after a successful transaction commit, and not after a failed commit. Proof of completion or client commit time is not replaced. The time when the storage refresh is completed after the condition update does not trigger another type of termination. If an unavailable time source is detected or a backtracking affecting the deadline cannot be ruled out, operations dependent on the deadline are paused, and processing resumes after time verification. The transaction in which the condition state update is performed holds the exclusive right to modify the permission until it is committed or rolled back. Other threads cannot terminate the transaction based on old pending records before the transaction is finalized; in the event of a write conflict, the current state and trusted time are retrieved again before deciding on the processing branch.

[0063] Posted receipts can record whether a message has been accepted, rejected, or expired. They only change the receipt confirmation attribute, not the... , Material occupation or When budget allocation is converted to final consumption, from Removing the credit limit does not constitute a refund; the same transaction has already credited that credit limit. Both expiration and publication termination are irreversible termination states.

[0064] No. One event Includes logical service instances Sequence number of consecutive events Summary of the preceding event Event type and state transition fields; current event summary The signature is signed by the registered event key, and the signature input is simultaneously bound to the object type. , and The event payload does not provide execution rules that can be rewritten by the requester; the replayer executes according to a certified, fixed version of the state rules. Signed progress logging. Identifies a historical location; whether this location has been independently persisted and confirmed is indicated separately by the source confirmation record. The initialization event uses a predefined abstract and binds to the instance identity; each subsequent event can only continue from the last item that has already been verified.

[0065] The status verification module reads events and joint states from the same isolated storage snapshot, avoiding comparisons of records from different transaction versions. Upon initial startup, during cache misses, storage identity changes, or when writes from a different process are detected, the initialization event is fully replayed; in multi-node deployments, writes from a different node can be uniformly used as cache invalidation conditions. When database replacement, historical truncation, or lost memory progress is involved, material and delivery access are paused first, then independent progress is obtained and verified. Process mutual exclusion and storage version can only serve as conditions for cache application and do not replace independent progress.

[0066] License Effective Event Record , , , , The commitment field and occupancy conversion, the replayer checks the budget and maximum number of times, the serial number is not occupied, the material identifier is not used by another license, and adds... and Further inspection using serial method. Previously empty and before and after budget and The relationship between the two is as follows: Concurrent checks are performed to determine the total pending quota and the maximum value of the allocated release sequence number. Different licenses are not required to terminate in the same order.

[0067] The release termination and expiration termination events must correspond. The same license that is already in effect, , And the sampling binding must be consistent with the license. China has no choice but to accept this. The difference in budget before and after the replay unit verification was... The count difference is 1, and the verification end time is... If the corresponding deadline is met, proceed according to the same rules. and register and clear Publish a finalized registration delivery summary and necessary cached summaries; expired deliverable packages will not be registered. Acknowledgment events must not alter the budget, license expiry status, or material identification.

[0068] When a request is cached, the event records the cache key, request summary, and response summary simultaneously. After replay is complete, the budget account, sequence number allocation record, pending permits, etc., are compared. , The delivery summary and cache summary are recorded in the same snapshot. Verification should still fail if the signature chain is valid but the budget account is reduced, pending records are deleted, or the original delivery package is replaced. The mapping of privately sealed materials is separately unsealed and verified by the service; public replay does not read confidential materials.

[0069] During normal operation, the verified progress will be... Corresponding replay state The storage identity and version are stored as the same protected memory cache unit. After confirming that the historical prefixes are consecutive and the cache is applicable, from... Verify new events to Synchronous push And the account, license, termination, material association, and package summary used in this operation will be linked to... Compare corresponding records; do not substitute verification of the last item summary for verification of dependent records. Invalidate the cache when there are writes not made in this process, historical truncation, prefix changes, or when the commit result cannot be determined. Do not skip error events and continue processing when verification of a new event fails. For progress The corresponding replay state, This is the last candidate number. For its progress, To replay to the state obtained from the last item. Records not in the cache must be retrieved from the verified storage and verified; they cannot be exempted from inspection simply because they are not in the cache.

[0070] When a service commits its own transaction, it first calculates the new last item and its corresponding state within the transaction. Upon successful commit, it updates the paired cache within the mutually exclusive scope of the same process. If the commit fails, the old cache is retained. If the commit result cannot be determined or the process is interrupted before updating the cache after commit, the cache is invalidated, and the state is re-established through a full verification. After the external verification is completed, the verified write transaction must be re-entered; a snapshot of the old account cannot be used for direct commit.

[0071] During execution, the system also verifies the memory progress and the progress of the authenticated client carried in the request. It requires that the current history length covers the sequence number of that progress, and that the digest at that sequence number is consistent. Older progress can be used as a prefix for the current history and pass the verification; if the history length is sufficient but the digest at the corresponding position is inconsistent, the verification will fail. If a conflict exists, related changes will be stopped and the conflict record will be retained. If the verification fails, the progress will be deleted or its sequence number will be lowered, and execution will continue.

[0072] In containing The event and the cache have been verified. In the normal operation snapshot, the verification process continues. One event; full verification processing from initialization onwards. The above numbers illustrate the conditions for reducing duplicate prefix processing and do not include the additional costs of account comparison, object reading, and proof verification. Service restarts will still perform the required full verification; memory caches, candidate database checkpoints, or snapshots without independent authentication cannot automatically replace startup verification.

[0073] Figure 3This describes the process of submitting a request and retrieving the original delivery package. In step S301, the status verification module 210 obtains the authenticated request, verifies the history and related persistent states within the same snapshot, calculates the normalized request digest, and checks the final record and request cache. If a license has been issued or the cache is hit, the original result reading process is initiated, verifying the requester's permissions, operation semantics, original license, and delivery digest; if they match, the original response or original delivery package is returned. Submission retry must be consistent with the existing submission request and package digest; if the content is changed, it is rejected; a separately initiated authorized package retrieval request can read the existing original delivery package and is not interpreted as a resubmission. If the original delivery package is missing or the digest does not match, the response is rejected.

[0074] In step S302, the publish / commit module 230 obtains an immutable copy of the license, a delivery package summary, and expected public inputs from the isolated snapshot holding the write lock, based on the structure, length, processing parameters, occupancy, and expiration time of the pending license verification request. Subsequently, in step S303, the write lock is released, and the data processing proof and provider binding signature are verified outside the write transaction. If any verification fails, the commit is rejected; no success record is written, the package is not opened, and the existing license state is not overwritten. If still pending, its occupancy and original expiration time are retained; if concurrently terminated, the termination record is retained.

[0075] In this embodiment, the result is guaranteed. Depend on and random opening value generate, constraint In The data processing relationships specified in the license must be satisfied. The provider will... Encryption and the license summary, , , And a public input digest signature. The signature is used to authenticate these objects submitted by the provider for service verification. With permission, The relationship between the signature and the objects covered by the signature must be consistent. The random opening value promised for the outcome. Commitment to results The ciphertext obtained by encryption, This serves as proof for data processing. This represents a delivery package consisting of ciphertext, a result commitment, proof, and a binding signature. The recipient's public key or corresponding encryption configuration is also selected by the recipient identity as defined by the license; ciphertext under the same license cannot be forwarded to other recipient identities.

[0076] The above-mentioned binding signature does not prove The decryption result is equal to In The service uses this information to verify the consistency of the submitted object with the budget, license, and delivery records, but does not use it to determine whether the plaintext in the encrypted message meets privacy mechanisms. The client checks the information after decryption. When enabled, the content will be rejected if the check fails; this check occurs after decryption, at which point the decrypted content is already visible to the client.

[0077] Therefore, this implementation provides original delivery package fixation, integrity checks, and accounting consistency for the delivery channel. Based on The privacy effect is conditional upon the result being generated according to the proof relationship, the receiving end not obtaining private sampling materials, and not obtaining the original data through other channels; if the providing end deviates from the protocol to encrypt other content, actively discloses private materials, or discloses data through additional channels, the binding signature cannot make the output a compliant output. This method prevents the reallocation of already opened sampling opportunities in a budget-insensitive manner after interruption and fixes the original delivery packages already submitted; the providing end's choice to suspend after observing the results can still affect the selection distribution of delivery samples, but each suspended permission is included in the budget at the expiration date. The data commitment opening proof fixes the data objects processed, and the authenticity of the original data source is verified by the registration and authentication process.

[0078] In step S304, after the proof and signature binding verification are passed, the verified write transaction is re-entered to reread the cache, license, and account. If concurrent requests have already submitted the same request content and the same packet digest, the process returns to reading the original result; if different submissions exist, the transaction has expired, or there are other state conflicts, the current submission is rejected. If the license is still pending, a check is performed. License summary, budget allocation, sequence number, package summary, and trusted time condition; serial mode also checks the pre-budget and The multi-node approach also checks the current write term and the expected version. Only when all conditions are met is the release termination transaction executed, and the old snapshot from the first phase is not directly used for updates.

[0079] In step S305, the release submission module 230 updates the budget and license. The original normalized bytes, delivery digest, final event, and cached original response are atomically committed; state updates are based on the aforementioned conditions and state update times. Judgment period. It can be directly stored in a database field. When using an external object store, first persist the private immutable object and verify the digest, then save the reference and digest in the transaction; the object store configuration meets the required persistence and replication requirements. The delivery interface only opens references that have been committed and meet external confirmation conditions; uncommitted objects do not have a readable address or permission for the receiving end; the cleanup of orphaned pre-stored objects must not delete materials or original delivery packages referenced by committed permissions.

[0080] The cache key consists of the authentication requester's identity, operation type, and request identifier, with the request digest covering normalized fields with business semantics. Identity credentials and client progress are verified separately at the transport layer, and updates to the progress do not alter the digest of the same business request. The same cache key conflicts with different request digests; authorized read requests that re-fetch packets based on the permission identifier also verify the original delivery packet digest and do not require regeneration of the submission proof.

[0081] If a response is lost after a transaction is committed, a retry will retrieve the original response or the same bytes. Before returning a cached response, the original delivery record it references is also checked; the integrity verification of the original delivery packet cannot be bypassed. The returned transport envelope may include the current signature progress, but it does not change the business result in the original response. Damaged original delivery packages cannot be replaced by re-encryption, resampling, or overwriting with new packages.

[0082] Figure 4 ( In step 301, client 300 reads from local authentication records. , The progress has been confirmed. To correspond to the replay state, both are independent of the service database and its backups. Initial access verification begins with an authenticated initialization record, or uses a complete checkpoint authenticated by a pre-defined trusted source, binding both progress and replay state summaries; a higher sequence number signed by the service itself is insufficient to prove a record represents the current state. Authentication protection for local records is used to detect modifications; identifying rollbacks of the entire old record also relies on external progress data that is not rolled back together, or local monotonic storage.

[0083] The client obtains new progress in step 301. and After that The consecutive events are verified to be the same in step 302. and Then, the serial number, preceding summary, signature, and preset rules are verified one by one, including that license activation, publication, and expiration are all counted as the same license. And end ,same No repeated termination or receipts will change the budget. For the deliverables to be accepted this time, their... The summary of the corresponding release termination event is compared; for other permitted release events, only the expected summary is registered, and no delivery package that is not authorized for access is required. During batch verification, each batch inherits the last item verified in the previous batch.

[0084] After all events have been verified, the final event summary is required to equal Summary. Before confirming acceptance of this delivery, the client verifies the corresponding data processing certificate and the provider's bound signature, and checks the verification after decryption. Enable; if any necessary verification fails, do not confirm acceptance of the content, and retain the confirmation record and evidence of conflict.

[0085] In step 303, the client will Serialization is performed into a single record, which is then stored with authentication and encryption. Additional data is attached, binding the client's identity, instance, and record version. Temporary files are written to the same directory and their contents are refreshed. The current record is updated via atomic replacement, and the parent directory is synchronized to meet the persistence requirements of deployment. Updates are protected by process and file mutual exclusion, old versions are re-checked, and concurrent requests are prevented from overwriting newer progress with older progress.

[0086] The verification status of this delivery is confirmed only after the record is successfully saved, and subsequent requests will include this information. If an interruption occurs before atomic replacement, the complete old record is used. If an interruption occurs during replacement and persistence confirmation, the actual retained complete old record or complete new record is verified after restarting; versions are not mixed. Delivery is not confirmed if saving fails, and the record is stopped from being used if authentication fails. If there is only a single progress point without a corresponding replay state, the state is re-established from the initialization event or trusted checkpoint, the original progress is checked, and then the records are saved in pairs.

[0087] Figure 11 The x-axis represents the saved event progress in the record, and the y-axis represents the last event item that has been overwritten by the replay state. The complete old record is located at (328, 328), and the complete new record is located at (477, 477). (477, 328) indicates that the progress has been updated but the state remains the same, and (328, 477) indicates that the state has been updated but the progress remains the same; neither of these is usable. The coordinates in the figure only represent the overwrite position. Even if two coordinates are equal, the authentication label, instance identity, and complete state content must still be verified. Old authentication records with the same progress and state but which have been rolled back as a whole must be identified based on independent monotonic criteria that have not been rolled back together.

[0088] An independent and trusted progress source (500) can be implemented using a dedicated progress management procedure or a management process that isolates records and responsibilities from business clients. The source verification verifies event signatures, continuity, and state transitions, atomically saving the progress and corresponding replay states before returning authentication confirmation. Confirmation only registers the expected delivery summary in the published event; prior acquisition is not required. Or the decryption result. The client obtains this... Subsequent delivery verification is performed separately. The persistent confirmation of the source, the submission response, and the client's business receipt are handled separately to avoid waiting for a receipt that can only be generated after reading the packet before it is opened.

[0089] Figure 4 ( In this process, the startup and recovery verification module 240 is used for startups that require rebuilding a trusted running state after the loss of existing memory progress, including normal crash restarts, restarts after database replacements, and explicit backup recovery. In step 241, the service is placed in a pending verification state, suspending license activation, sampling material access, delivery access, and budget status changes; candidate data can come from the original running directory or from isolated and decrypted backups.

[0090] The service obtains external progress from a pre-determined independent source. External progress Includes instance identifier External event sequence number and the summary of this location , This is a persistent summary of events from the source. The source can be a previously synchronized independent client or a dedicated progress storage service, and its identity and authentication configuration are not determined solely by replaceable records in the candidate database. When invoking an online source, the service regenerates a random challenge for each query and verifies the response, overwriting both the challenge and the source's current persistence progress to prevent replaying old responses; old challenges stored in the database cannot replace the current challenge.

[0091] If progress files are manually imported through an independent storage location, their signatures and instances can only be verified based on the established lower bound of the history; the signature alone cannot be used to infer that all subsequent events are included. When the external progress specified for deployment has not been obtained, the system remains in a pending verification state, providing read-only diagnostic and supplementary material access points. The progress cannot be automatically reduced, nor can the old database be reinterpreted as new instance initialization. When a new instance is created for the first time, the initialization identity and progress are registered to an independent source, and this identity is used for subsequent startups.

[0092] Step 242 involves completing the full signature, sequence number, digest chain, and rule replay in the candidate snapshot, and comparing the joint state. Let the sequence number of the last item in the candidate history be... ,Require Consistent And candidate number Item summary equals The summary is then verified, followed by the complete events and status. Progress from multiple sources must each be a prefix of the same candidate history; if they conflict, the process is halted, and the conflict is not resolved by selecting the older record.

[0093] In the continuous independent verification implementation, after the license activation transaction is committed, the start and restore verification module synchronizes the corresponding events and missing consecutive prefixes to the source. After source verification and atomic saving, it returns to the binding. The location of the event and confirmation of this challenge are required; the license control module will only be enabled after receiving confirmation of the effective event. It will only be open after the release is completed and corresponding confirmation is obtained. Subsequent licenses for the same domain are only granted after the expiration and termination confirmation. In this implementation, new state transactions for the service instance are suspended and the same event is repeatedly transmitted before the previous state transaction is confirmed, so that at most one state transaction is waiting for confirmation for the same service instance, and the original occupation is not rolled back.

[0094] The source performs serial comparisons and appends on the current persistent progress, accepting only one continuous history from the same instance; idempotent confirmations are allowed for the same location and digest, while different digests, unexplained intervals, or fork prefixes at the same location are rejected. If a confirmation is lost, the service uses a new challenge to query the current progress and verify that it indeed contains a commit event; if the confirmation is still uncertain, the corresponding materials and deliverables remain blocked from being opened. The source only saves the progress and replay state; it cannot recover the contents of the original delivery package and sealed materials. Recovery of these depends on persistent storage or its verified copies.

[0095] During explicit backup and restore, the backup is first authenticated and decrypted to the isolated directory, and the file list, allowed paths, instance identity, and backup progress are checked. The backup includes information for each privacy domain. , , , , , , , , This includes related events, as well as the sealed records and protected key materials required to restore pending materials. Progress within a candidate backup can be used to check the consistency of the backup itself, but it cannot replace progress outside of the backup. .

[0096] In step 243, after verification, the candidate recovery data is written to an empty target directory, maintaining the original... Privacy domain, budget, license, materials, and delivery identity. The system will not start if the write operation is interrupted; after the write operation is complete, it will re-verify through the same entry point and supplement any legitimate consecutive events whose sources have not yet been confirmed. When using continuous confirmation, suffixes that are ahead of external progress are only used for materials or delivery opening after confirmation. Pending licenses are then processed according to the original deadline, and services are opened after the corresponding confirmation is completed; normal restarts also execute the same process and are not skipped due to the use of the original directory.

[0097] Candidate history length less than or with In the event of a summary conflict, halt the startup process, obtain a newer backup covering the confirmed progress, or re-verify after obtaining certified missing events and their corresponding statuses, the original deliverables, and archived materials. Recovery also verifies available client progress, a list of standalone copies, and commit history, ensuring that known newer commits are not discarded. For local records that were not synchronized before continuous verification and are missing from all available copies, standalone progress alone cannot recover their content; remain paused if the completeness of required license records and raw materials cannot be confirmed. Recovery follows the original licenses covered. Regarding raw materials, it has been announced that if the original delivery package is missing, the replacement package will not be recalculated.

[0098] This implementation assumes that the coordination service complies with the protocol, the authentication root is valid, and the specified sources have not rolled back with the service. When multiple sources are involved, the deployment configuration must clearly define the set of sources to be queried or the established confirmation rules; confirmation requirements cannot be temporarily reduced in case of failure. When all sources roll back together or are isolated from each other for a long period, the hidden subsequent history cannot be determined solely by the visible old state. Intermittently exporting progress provides a lower bound on its historical coverage; continuous confirmation includes materials and necessary events before delivery openness in the external coverage. Key anomalies and source failures are handled as frozen in subsequent implementations.

[0099] The following budget examples use integer budget units; except Figure 12 The concurrent exceptions shown all use serial licensing. Let... , ,initial , , Empty. The license identifier is... In the request Verification of effective transactions and Post-fixation , and the original deadline Registration and material labeling After submission The allocatable amount is ,Budget and terminal count No changes for now. In subsequent examples, subscripts 1 and 2 will distinguish the licenses and related objects of the first and second examples, respectively.

[0100] like Published successfully, finally , , Empty The records were published and preserved. The response was lost after submission. A legitimate retry yielded the same result after verification of the request and digest. The budget will not be increased further. It was never released and expired, and ultimately both became , , Empty The record states that the term expired and there was no [expiration date]. After any path, subsequent new licenses The initial budget is only 35, and the allocated release number is 3.

[0101] The permission-enabling transaction may also fail during persistence. The initial budget conditions are the same as in the previous example, and the service has been salvaged. And made public The provider has not yet obtained If a service failure occurs after writing the permission and before committing, the uncommitted transaction will be rolled back. After restarting and undergoing the required verification, the submitted transaction cannot be found in the materials interface. And refuse Read; final , , Empty; no valid materials were used in this instance. The supply side lacks the capacity to form [materials / materials]. The necessary components cannot be used to pre-calculate compliance results based on a failed request.

[0102] Another scenario is that the license submission is successful, but the material response is lost. The validity record and usage have been persisted; the provider resends the material request. (Service is based on...) Positioning Original ,verify Then only return to the original , , And the budget remains unchanged. If a duplicate request arrives after a certain period of time... They refused to release the materials and terminated the expired license, ultimately , Even if the provider never receives the materials, the already effective occupancy will not be refunded.

[0103] Figure 10 This shows the prefix verification relationship when a normal startup encounters a complete legacy repository. Both the service and the standalone client had previously confirmed event 42 and... After service downtime, the database was replaced with the old version, with the last item (39) and identical internal signature and status. A normal startup paused the change and obtained external progress (42); startup verification found only 39 candidates, so startup was rejected, and no new licenses or materials were granted; the balance displayed in the old database did not become available runtime budget. Candidate 45, but with a different summary for item 42, was also rejected; only items containing... Only candidates whose prefix, subsequent, and joint states all pass can proceed. Figure 10The locations of general events are represented by circles, and the locations of events with different summaries in item 42 are represented by diamonds. Although the compatibility candidates in the figure extend to item 45, items 43 to 45 and their corresponding states must still be verified item by item; length alone is not sufficient.

[0104] There is also the possibility that the proof is valid but the delivered document does not match the original. When pending, provide end-to-end and Generate valid However, it encrypts another piece of content. get and to , and A valid signature is generated. Based on the aforementioned proof and signature binding relationship, the service may verify and atomically submit the delivery package through the proof and binding signature. The budget became 35, and the count became 2. The client discovered this after decryption. And the enabled value cannot be opened. The delivery content was rejected and the inconsistency was recorded; the original delivery package that had already been submitted remained unchanged. The budget will not be refunded, and resampling and coverage will not be allowed.

[0105] Figure 9 This shows the process for when the verification period expires. Service Retrieval And verify outside of the transaction The verification has ended. Even in the second phase Even if valid, new releases are rejected; transactions that expire and are terminated are counted. and make Change to 2. If another thread is already in... Previously submitted the same The second stage then proceeds to verify the original results and return them. The separate execution of state conflict rejection and original result reading proves that previous successful verification cannot be used as evidence to bypass the final state check. Figure 9 To illustrate the competition further with specific times: the original expiration time was 10 seconds. The earlier proof verification was completed in 8 seconds, and the conditional state update was executed in 8.5 seconds, satisfying the release conditions. The later verification was completed in 11 seconds, and the conditional state update attempt at 11.5 seconds was rejected. Time is measured from the same schematic starting point; the two time bands represent independent example executions, not two finalizations of the same permit. The 10-second position in the diagram only delineates the expiration condition; the final state is based on the finalization record of the successfully committed exclusive transaction.

[0106] Figure 12 This demonstrates concurrent occupancy within the same privacy domain. Let... , , in order distribute And retain ,for distribute And retain The used and pending budget is 45, and the total number of permitted uses is 3. First expiration time , Serial number 3 has ended and Still pending; Subsequently released , Both licenses 2 and 3 are terminated. During the termination process after both licenses have taken effect, Keep 3, the next license will be allocated from 4, and the termination order will not overwrite old budgets or reuse sequence numbers. In the diagram, the horizontal axis 0 represents the initial state, 1 and 2 represent 2 licenses in effect respectively, and 3 represents... Expiration date, 4 Release complete. The used budgets are 20, 20, 20, 30, and 45 respectively, and the effective budget usages are 20, 35, 45, 45, and 45 respectively. The difference between the two is the amount still pending completion for each position.

[0107] If the status or original delivery package is tampered with separately, and the budget is changed from 35 to 20 while the signature event is retained, the replay comparison will fail; if the cache is deleted while the corresponding event is retained, the cache digest comparison will fail; if the status is changed... The original digest is retained, and verification fails before returning, at which point the return process stops. If the client interrupts pairwise record updates, verification continues using either the complete old record or the complete new record, without combining the new progress with the old replay state.

[0108] For the comparison of the rules for suspending accounting entries, the same approach as in the aforementioned example is used. , , , and The rule has been changed to release all occupied data if sampling is not completed before submission. The provider first obtains the materials and performs calculations, then aborts the process three times consecutively; under this rule, and By maintaining licenses 20 and 1, the provider can continue to apply. When using this method, the three valid licenses will terminate upon expiration. The values ​​are 35, 50, and 65 in that order. The numbers are 2, 3, and 4 in sequence. The fourth new license was issued because... The application was rejected due to invalidity. The discrepancy stems from the continued occupancy of open sampling opportunities and their inclusion in the termination record; undelivered licenses are counted in the same budget and number of times as successfully issued licenses.

[0109] For comparing the order of material access, while maintaining the same license, budget, and storage transactions, the only difference in the comparison method is changing the material interface to be sent before the effective transaction is committed. If the provider receives If a subsequent transaction fails, the provider has already had a sampling opportunity, but there is no corresponding valid allocation in storage. When using this method, the material interface at the same fault location cannot find any committed data. Cannot send If a permit has been submitted but is confirmed to be lost, the possession will be retained and the raw materials will be returned.

[0110] For the comparison of historical progress verification, the same input is used for event 42 and candidate old database 39, only removing the independent progress check while retaining the complete internal signature and status verification; the internally consistent old database can pass this comparison check. When using this method, the confirmed progress of the source 42 makes the candidate cause... Rejected; different digests with the same sequence number are also rejected. If the source only holds 39, then the missing data for 40 to 42 cannot be detected by this progress. In this case, a higher actual progress must be obtained, or a continuous confirmation open rule must be adopted in advance.

[0111] For comparisons involving re-retrieval of the original delivery package, responses are lost after a successful submission of the same published license. If the recovery procedure is used to resample or re-encrypt and generate a replacement package, the return value may differ from the original delivered package and cannot be uniquely determined by a single success record. When using this method, only the original package with a consistent digest is returned. ;if If lost, the system will either restore the data copy or stop returning; it will not replace the lost data with a new packet. Retransmitting the original delivery packet is an existing idempotent processing method; this method combines it with the sampling of the license and the two termination methods.

[0112] The above comparisons respectively altered the conditions for halting accounting, the order of material release, external progress checks, and re-retrieval of original delivery packages, while maintaining the other initial states. Verifiable quantities include effective budget usage, number of effective licenses, number of final records per license, fixed delivery summary corresponding to each released license, and whether the candidate history covers the specified schedule. The comparison results are derived from the listed state rules; the prototype records described later will separately explain the actual test entry point, time consumption, and test coverage.

[0113] Figure 6In step S601, when the start and recovery verification module 240 detects a source connection timeout, unreachability, signature or challenge mismatch, or uncertain confirmation result, it records the fault type and enters a pending confirmation or frozen state, closes the affected interface, and retains the submitted license, budget occupancy, and termination facts. Step S602 retains the pending synchronization events, suspends the activation of new licenses, the opening of new materials, and the opening of new deliveries, provides read-only diagnostics, idempotent retransmission of the same event, and fault information query, and confirms that a timeout is not considered a local transaction failure.

[0114] While a running process still retains verified memory progress, if the termination of the release of a certain original delivery package has been previously confirmed by the source, and the storage identity, historical prefix, access authorization, and original delivery package digest can all be verified, then the original delivery package can be retrieved in read-only mode. This read-only exception is not used to bypass startup and security checks if the process has been restarted, the cache has expired, or a key freeze has occurred. Unconfirmed new material responses, delivery responses, or cached responses must not be opened using old confirmations.

[0115] During the period when the source is unreachable, this implementation method suspends the addition of new budget status transactions; the original due date remains valid, and the cleanup suspension will not extend the release deadline. Step S603: After the source is restored, use the new challenge to query the current progress of the source, first verifying whether the source progress and the local history have the same prefix: if the local progress is ahead, supplement the valid continuous suffix; if the external progress is ahead, restore the missing history and corresponding status; if there is a summary conflict, keep it frozen. Step S604: After confirmation and replay verification are completed, proceed as originally planned. Once the processing has reached the point of awaiting permission and is synchronously terminated, the interface will be restored.

[0116] For example, The effective event is 43, indicating that the local transaction has been committed but the source confirmation has been lost. If the query shows that the source is still 42, then the original 43 will be retransmitted; if it is now 43 and the digest is consistent, then after obtaining a new authentication confirmation, the original transaction will be opened within the original time limit. If you have already arrived If not, it will not be open. After confirmation by 43, execution will commence upon expiration of 44. The final budget will be based on the same... This counts as one instance. If the source cannot be restored, the service remains suspended and availability is not restored by removing the occupied portion, slowing down the progress, or reinitializing.

[0117] like Figure 5 As shown, the first service node 201 and the second service node 202 share a logical service instance. The system consists of 250 authoritative persistent storage nodes, 500 independent trusted progress sources, and 203 common access points, each with different node identifiers. The persistent storage provides the same authoritative transaction commit order; internally, it can use a single database or a storage cluster providing equivalent strong consistency commits, but it cannot use independently writable asynchronous replicas to simultaneously determine the same account budget.

[0118] Multi-node coordination module 260 uses unique index constraints , , Request cache key and final record The permission process activates and terminates transaction locks or condition updates for the privacy domain accounts involved, and updates the last item of the global event in a fixed order; if the expected state version or the digest of the previous item does not match, the entire transaction fails and verification is reread. This maintains a continuous history of signed events, preventing different nodes from simultaneously allocating quotas for the same old budget.

[0119] The multi-node coordination module maintains a monotonically increasing write term in a strongly consistent control record, independent of the business database backup. Current write node and authorization status. When a new node takes over, the control layer serially increments... The system registers node authorizations, storing the corresponding term and node identity; the control layer revokes the old node's write permissions and closes its material and delivery exits, then executes the startup verification and completes the pending confirmation events. All state transactions include expected... The storage layer verifies the data when conditions are updated; the common access point verifies the current data before allowing materials or packages to be read. Permissions and external verification are required. Old nodes cannot directly hold publicly accessible object addresses or material delivery channels that allow bypassing the entry point. The term values ​​after database recovery must be verified against control records and sources; old terms within backups must not be reauthorized on old nodes.

[0120] This implementation method applies to the same A single active write node is used, while other nodes can handle proof pre-verification and read-only operations that meet permissions. Intra-process mutual exclusion cannot replace storage layer tenure verification; if an old node cannot access authoritative storage, cannot confirm its current tenure, or is located in a network partition, changes and new openings are stopped. Its cache expires first, catches up with the same event history, and re-verifies before service is restored; simply starting verification does not grant a read-only node a write tenure. Cross-node proof verification results must be bound to the permission digest, request digest, package digest, and verification configuration version, and the final write node redoes the state condition verification.

[0121] For example, the first service node is Obtain a copy of the license and begin verification; subsequently, the control layer will... It was updated to 8 and taken over by the second service node. This indicates the term of service has been written. The first service node returns with... The submission attempt failed due to storage condition updates, and the common access portal also refused access to new materials and deliverables. The second service node recovered from its authoritative state. ; After verification upon publication, the original will be returned. If the decision is still pending and the deadline has passed, the original decision will be made accordingly. The process ends, and new random inputs are not assigned due to node replacement.

[0122] Figure 6 In the key anomaly branch, the key status control module 270 registers the identifier, purpose, and effective scope of the event signing key, material sealing key, and identity authentication key, respectively; the recovery authorization public key and the minimum acceptable authorization version are stored in a protected configuration outside the candidate database and associated with the source. Upon detecting signs of leakage or receiving an authentication revocation instruction, step S601 freezes the relevant material, submission, delivery, and signing interfaces, closes existing related sessions, and retains logs and the original state. If the scope of freezing cannot be determined, the entire process is frozen. It can independently authorize recovery without relying on suspected leaked keys.

[0123] The maintenance and repair record in step S602 is signed by a pre-set recovery authorization key and bound to... The process includes: revoking the key identifier, verifying the trusted progress, the scope of affected entities, the new key identifier, and the incremental authorized version. The source and service jointly verify that the authorized version has not been rolled back, registering the revocation and new configuration. When an event signing key is leaked, the old signature and self-reported time alone cannot distinguish forged events; usable history is determined based on the independently preserved trusted progress, original state copy, and audit evidence before the leak. If the source has previously confirmed a suspected forged suffix, it remains frozen and all conflict facts are retained; newer confirmations cannot be erased by lower version handling records.

[0124] If the material sealing key is leaked, access to the material from the affected sealing record is prohibited. Unresolved confirmation requests may have their material identifiers invalidated, and a new confirmation process will begin after the freeze is lifted; already valid licenses will retain their original status. , Occupation and Sampling opportunities will not be reopened by replacing materials; if safe continuation is not possible, the process will terminate according to the original expiration rules after the trusted state and time limit have been restored. Normal key migration requires repackaging the original key. At that time, verify the original commitment and , , A new encapsulation is formed using the new sealing key, and the migration association is recorded without changing the sampling input.

[0125] When an authentication key is leaked, the relevant credentials and sessions are revoked. New credentials are re-bound to the original provider or client identity through a separate identity recovery process. The budget domain, old license receiving identity, and request cache ownership are not reset due to credential changes. The event history retains the old public key and its validity range for verifying legitimate old events; new events only use the newly registered configuration. When a client updates its trust configuration, it also checks the recovery authorization signature, authorization version, and original progress, and does not directly accept the new root from the database to be verified.

[0126] according to Figure 6 Steps S603 and S604 are followed, and the corresponding freeze is lifted after verification of trusted history, revocation status, material association, permissions, and external progress. The original delivery package is retrieved byte-by-byte as long as the original receiving permissions remain valid, and already effective materials continue to be bound as before. If the scope of the leak cannot be determined, trusted recovery evidence is missing, or an unexplainable conflict exists in the confirmed history, the freeze remains in effect. Changing the key cannot recover leaked plaintext, noisy materials, or decryption capabilities; existing leaks should be recorded and handled separately.

[0127] The above-mentioned additional modules do not change the two termination rules of the existing license and the rules for retrieving the original delivery package.

[0128] The client executes the aforementioned independent verification and paired storage methods, while the source performs independent progress management responsibilities; server-side state changes are not contingent on the client not having received the original delivery package before generating a receipt. Service modules can be deployed on the same device or across multiple devices connected via a secure authentication channel; a multi-node approach maintains the same authoritative history and controlled open access. Material access, event reading, and package reading each have separate permission checks, ensuring that private sampling materials are not disclosed due to service distribution.

[0129] The processor of an electronic device implements the aforementioned service method or client method by executing a program stored in memory. The non-transitory computer-readable storage medium may be flash memory, solid-state memory, or a disk, and the stored program implements the corresponding steps when executed by the processor.

[0130] Prototype verification uses SmartMix Trusted V1.2.0 to test signature event verification, client budget state reconstruction, license expiration, and delivery caching. Existing test records include measurements A05 and A10 from September 6, 2026, as well as client replay comparisons and 19 software regression tests from the same day. A05 and A10 are test record identifiers. The following data corresponds to the listed execution entry points and configurations, covering the implemented aspects under the single-instance serial licensing method.

[0131] The supplementary review utilizes a Linux x86_64 shared virtual environment with 9 visible logical processors. The running components are Python 3.12.13, SQLite 3.53.1, and cryptography 46.0.0. The service and client communicate via native Hypertext Transfer Security (HTTP) with certificate verification enabled; the database uses a synchronous persistent configuration, and the client atomically saves progress and budget projections with the same authenticated encrypted records. The proof-related use cases invoke the actual proof procedure attached to the prototype, processing 32 data items per batch.

[0132] The client replay comparison uses the same valid signature history containing 477 events. Of these, 467 are heartbeat events, and the remaining 10 cover initialization, data registration, request completion, quotation, confirmation, license activation, and expiration. The full reconstruction group reconstructs the state from the initialization event; the subsequent verification group reads paired records verified up to item 328 and then verifies 149 heartbeat events from items 329 to 477. Each group performs one warm-up and then alternates execution 30 times; warm-up records are not included in the statistics. The history is generated based on the original service operations and controlled logic time, with timing using an actual monotonic clock.

[0133] The timing interval is a complete call to the client's synchronous function, including event acquisition, signature and continuity verification, budget state replay, and local authentication record persistence; file operations used to prepare two sets of initial states are performed outside the timing interval. The results are as follows: Figure 13 ( As shown in the figure. The full reconstruction group verified 477 events per call, with an average time of 79.458ms and a median time of 78.174ms; the subsequent verification group verified 149 events per call, with an average time of 28.588ms and a median time of 27.559ms. The progress and budget projections after all 60 calls were identical after normalized coding comparison, and the results of 30 paired groups were consistent.

[0134] Based on the average time consumption of the two groups, the continuation verification reduced client synchronization time by 64.02% under this fixed history; the number of events processed this time decreased from 477 to 149, a reduction of 68.76%. The reduction in time consumption comes from reusing the verified and paired historical prefix states, while the suffix events still undergo signature, continuity, and state rule checks item by item. This metric applies to client continuation verification; full verification, backup recovery, and independent progress confirmation after service restart are performed according to their respective processes. Figure 13 ( In the diagram, hollow circles represent average time consumption, the horizontal axis represents the number of events verified in this instance, and the vertical axis represents the average synchronization time of the client.

[0135] The A10 test measures the time taken for a full state check of the Windows x64 native runtime package using the `check-state` command. For historical event lengths of 178, 228, 328, and 477 events, the command times were 280.2, 307.3, 337.2, and 424.7 ms respectively, and all four checkpoints showed a pass result. Each scale was recorded once, with timing covering the full check at command process startup, service object initialization, and subsequent explicitly executed full checks. Figure 13 ( These four recorded values ​​are presented as discrete points. This command measures and... Figure 13 ( The client synchronous calls of the two subgraphs have different runtime environments and timing intervals, so the time consumption of the two subgraphs cannot be directly compared.

[0136] The persistent state tampering test first establishes a legitimate data registration and an effective license, and confirms that full verification passes. Then, it executes the following seven modifications: increasing the budget limit by one integer unit, replacing the receiver authentication digest, modifying the minimum noise scale of the dataset, replacing the request cache response, clearing the heartbeat record, changing the effective license status to canceled, and deleting the one-time use record. Each test case retains the original signature event, which is then replayed and compared with the database records by the state verification module. All seven test cases were rejected, resulting in a detection rate of 7 / 7, indicating that comparing the signature history with the persistent state can detect inconsistencies caused by individual modifications to business records.

[0137] During runtime, the test reads five types of records: identity, dataset, request cache, heartbeat, and budget. Each test case checks two entry points: status reading and expiration cleanup. All 10 API calls across the five test cases rejected the use of tampered states, resulting in a pass rate of 5 / 5. Combined with the aforementioned seven full-scale verification test cases, the detection rate for the 12 pre-set tampering test cases is 12 / 12; the statistical unit is an independent test case, with each test case executed once.

[0138] The progress and recovery tests included three additional test cases. The first case rolled back the database to a fully consistent old snapshot while the running process still maintained a relatively recent in-memory progress; state reads were rejected due to a progress rollback error. The second case appended events with valid signatures but invalid budget progression relationships to the event chain; the client rejected the connection due to a budget chain inconsistency error. The third case restored an encrypted backup via an explicit recovery entry: a valid backup matching the progress was successfully restored; recovery was rejected if the external progress was higher than the old backup, the required progress was missing, or the password was incorrect; the old backup was not written to the target directory. All three test cases passed, with the first and third rollback tests covering the running read entry and the explicit recovery entry with external progress, respectively.

[0139] Budget finality test The accounting unit is an integer. Upon expiration of a Scale 2 license, the used budget is updated from 0 to 2977044472, and pending occupancy is cleared. After data is registered again in the same privacy domain, the pre-budget for the new license remains 2977044472. Additionally, the maximum number of publications is set to 1. After completing one expiration period, even if the remaining quota is greater than... The next license application was still rejected. Both of the above use cases passed, verifying the continued retention of expired consumption and that the number of uses constraint is not reset upon re-registration. Here, Scale 2 is the name in the prototype processing configuration, and 2977044472 is the integer budget increment recorded in this configuration; other mechanisms determine the increment according to their respective fixed and verified budget calculation rules.

[0140] The original delivery packet retrieval and true proof verification employed two complete transaction test cases. The first test injected a connection exception after the provider persisted the delivery packet but before sending the request, then retried and completed the reception; the bytes in the persisted delivery cache before and after the retry were completely consistent. The second test re-executed the processing and reception request after successful delivery, maintaining a cumulative budget consumption of 1,073,741,8240 integer units; two negative verifications—appending bytes to the transaction proof and replacing the result commitment in the public input—were rejected. Both test cases passed. Of the 19 test cases (12 tampering, 3 progress and recovery, 2 budget termination, and 2 true transaction), all 19 passed.

[0141] The A05 test recorded five complete transactions (32 items each) in a Windows x64 environment, with noise levels of 2, 3, 2, 3, and 1 respectively. All five transactions completed the application, authorization, processing, and receipt stages. Each proof was 5280 bytes long, with proof generation time ranging from 4379.0 to 4494.0 ms, averaging 4423.6 ms. Internal proof verification within the engine took 84.0 to 88.0 ms, averaging 86.8 ms. The cumulative time for the four stages (application, authorization, processing, and receipt) ranged from 26095.8 to 36554.3 ms, including command initiation and client reception verification for each stage. Each stage used independent timing fields. The proof size and time values ​​mentioned above are the recorded values ​​configured for this prototype and do not limit the performance of replaceable proof systems.

Claims

1. A method for verifying and restoring the status of privacy data publication, executed by a publication coordination service, characterized in that, include: Verify the budget and maximum number of releases constraints of the release request, generate a release license that binds a privacy domain, data commitment, processing parameters, budget increment, release sequence number, expiration time, and sampling binding information, and atomically persist the pending license, budget quota occupation, and release sequence number occupation in the license activation transaction; the release sequence number has not been previously assigned to other activated licenses, and the sampling binding information is fixed to process random input, and at least one sampling material component necessary to form the random input is unavailable to the provider before the license activation transaction is submitted; After the license activation transaction is successfully submitted, the release license becomes effective, and the sampling material component is made available to the authentication provider specified by the release license. Repeated readings of the same release license return the same sampling material component. For pending licenses, release termination is performed on delivery packages bound to the license and verified through data processing proof before the expiration date; if the package is not released by the expiration date, expiration termination is performed. The two terminations are mutually exclusive, both atomically including the fixed budget increment of the license, incrementing the count of terminated licenses by 1, terminating the release sequence number, and removing the pending occupancy. Cancellation of the license after it takes effect, failure of proof verification, and changes in receipts will not result in a refund of the quota or number of times; if the license is still pending, the original expiration time will be retained. Upon release termination, the budget and license status, termination record, original delivery package and its summary are atomically persisted and then made available for reading. For legitimate duplicate requests, only the original delivery package or original response that has been verified for request consistency and summary is returned. If the original delivery package is missing or the summary is inconsistent, the original delivery package is rejected and is not regenerated or included in the budget again.

2. The method according to claim 1, characterized in that, The sampled material component is the service random quantity generated and sealed by the release coordination service; before the license takes effect, the commitment of the provider's private sampled value, the commitment of the receiver's random quantity and the service random quantity are fixed. The license taking effect transaction fixes the above commitments, the association between the sealed material and the license identifier; the material reading interface verifies the provider's identity, pending status and original expiration time based on the submitted license, and after verifying that the commitment of the sealed material and the service random quantity are consistent, the original service random quantity is opened through the confidential authentication channel; the random input is processed by the private sampled value, the service random quantity, the receiver's random quantity and the license fixed fields, and the data processing proves the constraint commitment to be enabled, the random input is exported, the processing result and the correspondence between the budget increment and the processing parameters; the private sampled value, the service random quantity and the complete random input do not enter the public license, public event or delivery plaintext.

3. The method according to claim 1, characterized in that, Dataset versions that require shared privacy consumption are mapped to stable privacy domain identifiers. The maximum values ​​of used budget, terminated license count, and assigned release sequence numbers, along with the independent occupancy records for each pending license, are stored by privacy domain. Within the license activation transaction, it is verified that the sum of used budget, all pending budget increments, and new license budget increments does not exceed the budget limit. It is also verified that the sum of terminated license counts, pending license counts, and 1 does not exceed the release count limit. The release sequence number of the new license is set to the maximum value plus 1, and the maximum value is updated. When terminating a pending license, the terminated license count is increased by 1 by adding the current used budget to the fixed budget increment for that pending license. The pending license and its release sequence number are registered as terminated, and the corresponding pending occupancy is removed. The current budget is not overwritten by the account snapshot at the time the license takes effect. The termination record has a unique constraint on the license identifier.

4. The method according to claim 1, characterized in that, The delivery package includes an encrypted processing result, a result commitment, a data processing proof, and a provider binding signature, wherein the binding signature covers a license digest, a ciphertext digest, a result commitment, a proof digest, and a public input digest; The release termination adopts a two-phase verification. In the isolated snapshot holding the write lock, the identity, request, permission, possession and duration are verified and the permission copy, delivery package digest and expected public input are fixed. After the write lock is released, the verification and binding signature are verified. Then, the write transaction is entered to re-verify the request cache, permission, possession, sequence number and delivery package digest. The trusted time obtained when the condition state is updated is used to determine that the original expiration time has not arrived. The status update, original delivery package, finalization record, and original response are atomically committed; the request cache uses the authentication requester's identity, operation type, and request identifier as keys. If the keys are the same and the request digests are the same, the original response verified by the original delivery package is returned. If the keys are the same but the request digests are different, the response is rejected. If the same content has been submitted concurrently, the original result is read instead.

5. The method according to claim 1, characterized in that, The state transactions of license activation, release termination, and expiration termination are simultaneously appended with a signature event. The event includes a logical service instance identifier, consecutive event sequence number, previous summary, event type, license identifier, and state transition field. In the same isolated snapshot, the event is replayed according to preset state rules to verify license occupancy, material one-time use identifier, budget increment, mutual exclusion termination, and that the receipt does not change the budget. The replayed budget, pending licenses, material one-time use identifier, termination record, delivery summary, and request cache summary are compared with the persistent record. If the verification or comparison fails, the state changes and material and delivery openings that depend on the persistent record are stopped. The verified progress, corresponding replay status, storage identity and version are cached in pairs. New events and operation dependency records are only verified when the historical prefix is ​​continuous and the cache is valid. The cache is invalidated when the submission result is uncertain, not written in the current process, the history is truncated or the prefix changes.

6. The method according to claim 5, characterized in that, Normal restarts, restarts after database replacements, and backup recovery share a common startup verification entry point; during startup, license activation, material release, delivery release, and budget status changes are paused. A certified progress, consisting of a logical service instance identifier, event sequence number, and corresponding summary, is obtained from a preset trusted progress source independent of the candidate database and its backups. The candidate history is verified to include the prefix indicated by the certified progress, and full event and joint status verification is completed. The interface is restored after successful verification; if the required progress is not obtained or verification fails, the process remains paused. A random challenge is generated when querying the trusted progress source online, and the progress response must cover this random challenge. After the license activation and release termination transactions are committed, persistent confirmation of the corresponding event from the trusted progress source is obtained before the corresponding materials and original delivery packages are released. Subsequent licenses in the same domain are released only after confirmation of the expiration termination event. The trusted progress source only accepts continuous extensions of the same history.

7. The method according to claim 6, characterized in that, The backup is authenticated and decrypted to the isolation directory. After verification of the file list, instance identity, backup progress and the aforementioned authenticated progress, it is written to an empty target directory. After writing, it is again passed through the aforementioned startup verification entry, retaining the original privacy domain, budget, sequence number, pending and finalized licenses, archived materials, original delivery package and request cache. Pending permits will retain the original sampling materials and original expiration dates. Those that have already expired will be terminated upon expiration. If materials or the original delivery package are missing, the corresponding opening will be stopped and no replacement content will be generated. When the trusted progress source is unreachable or its confirmation is uncertain, the local submitted facts and events to be synchronized are retained, the new licenses are suspended and the opening of new materials and deliveries is suspended, and the same consecutive events are allowed to be retransmitted idempotently. After the trusted progress source is restored, the current progress and historical prefix are verified with a new challenge, the consecutive events are completed and the interface is restored after obtaining the required confirmation, and the progress is kept suspended when there is a progress conflict.

8. The method according to claim 6, characterized in that, Multiple service nodes share a logical service instance identifier, an authoritative persistent storage with serializable submission capabilities, and a trusted progress source. A unique event sequence is formed through unique constraints such as the license identifier, the domain release sequence number, the material one-time use identifier, and the request cache key, as well as conditional updates of the domain account and the last item of the event. Monotonically increasing write terms and the current write node are maintained in the control record, which is independent of the business database backup. The term and expected state version are verified for status transactions. Materials and deliveries are executed through a common access point that verifies the current term. When a node takes over, the old node is isolated first, and then the startup verification and continuous event synchronization are completed. Nodes whose current term or authoritative state cannot be confirmed stop corresponding operations.

9. The method according to claim 6, characterized in that, The identifiers and validity ranges of the event signing key, material sealing key, and identity authentication key are registered separately, and the recovery authorization public key and the minimum acceptable authorization version are pre-set outside the candidate database; When a key leak or valid revocation instruction is detected, the affected interface is frozen. The recovery authorization public key is used to verify the binding logical service instance, revocation key identifier, trusted historical location, and processing record of incremental authorization version. After verifying the history and certification progress and completing the key update, the interface is restored. The update does not reset the privacy domain, budget, license, and release sequence number, nor does it change the sample value of the effective license or the original delivery package that has been released. If the trusted history or scope of impact cannot be determined, the interface remains frozen.

10. A system for verifying and restoring the status of privacy data release, characterized in that, This includes persistent storage and release coordination services, wherein the release coordination services include: The license control module is used to verify budget and release frequency limit constraints, and to bind release licenses with fixed privacy domains, data commitments, processing parameters, budget increments, non-repeated release sequence numbers, expiration times, and sampling binding information. Through license activation transactions, pending licenses, budget quota occupancy, and release sequence number occupancy are atomically persisted to the persistent storage. Only after the license activation transaction is successfully submitted will the sampling material necessary for forming fixed random input and unavailable before submission be made available to the authentication provider specified by the release license. Repeated readings of the same release license will return the same sampling material. The release submission module is used for pending licenses. Before the expiration date, it performs release termination on the delivery package bound to the pending license and verified by data processing. If the license is not released by the expiration date, it performs mutually exclusive expiration termination. Both terminations atomically include a fixed budget increment, increment the count of terminated licenses by 1, terminate the release sequence number and release the pending occupancy. Cancellation, verification failure, and changes in receipts do not refund the quota or number of times. If the license is still pending, the original expiration time is retained. The release termination transaction saves the budget and license status, termination record, original delivery package and summary. The status verification module is used to enable the reading of the original delivery package after the release and termination transaction is committed, verify the consistency between the legitimate duplicate request and the existing record and the original delivery package summary, and only return the original delivery package or the original response. If the original delivery package is missing or the summary is inconsistent, it will refuse to return and will not regenerate the delivery package or count it repeatedly in the budget. Each module is associated with the sampling materials, occupancy, termination record and original delivery package through the same license identifier.