A privacy protection payment authorization method and system for adaptive intelligent agent workflow

The privacy-preserving payment authorization system based on adaptive intelligent agent workflow solves the problems of intelligent agent payment credential adaptability and cross-merchant identifier linking, and realizes secure and effective payment authorization in a distributed environment, preventing replay and duplicate consumption, and ensuring that expenditures are controlled within the scope of user authorization.

CN123160159APending Publication Date: 2026-11-24HARBIN INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611311854.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-27
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing technologies, pre-bound payment credentials for intelligent agents are difficult to adapt to the unavailability of merchants during runtime and dynamic task decomposition. The reuse of stable payment identifiers across merchants leads to the linkability of external records. There is a lack of anti-splitting consistency binding between the minimum disclosure service proof and payment proof. In a distributed concurrent reconciliation environment, there are risks of replay, modification retry, and duplicate consumption of the same expenditure slot.

Method used

The privacy-preserving payment authorization system adopts an adaptive intelligent agent workflow, including user terminals, intelligent agent terminals, issuing wallets, merchant servers, verification wallets, and payment networks. The planning module generates task plans, the adaptive execution module selects merchants and generates service views and expenditure views, uses fresh random numbers to construct local public anchors for calls, independently generates zero-knowledge proofs, and the verification wallet verifies the consistency binding of each call to prevent replay and duplicate consumption.

Benefits of technology

This enables intelligent agents to select merchants based on service requests during dynamic tasks, reducing task interruptions caused by failures of a single pre-bound merchant, mitigating the risk of cross-merchant stable identifier linking, preventing the concatenation of service proofs and expenditure proofs across calls, blocking replay, modification retries, and concurrent double-spending, and ensuring that cumulative expenditures do not exceed the user-approved total budget.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160159A_ABST
    Figure CN123160159A_ABST
Patent Text Reader

Abstract

This invention discloses a privacy-preserving payment authorization method and system for adaptive intelligent agent workflows, belonging to the field of electronic payment technology. It addresses the problem that existing merchant pre-bound payment vouchers are ill-suited to runtime merchant unavailability and dynamic task decomposition. The intelligent agent terminal of this invention is connected to a user terminal, an issuing wallet, one or more merchant servers, a verification wallet, and a payment network or settlement interface. The verification wallet is connected to the payment network or settlement interface. The intelligent agent terminal includes a planning module, a delegated compilation module, an adaptive execution module, and a view generation module. The planning module is connected to both the delegated compilation module and the adaptive execution module, and the adaptive execution module is connected to the view generation module. The planning module is connected to the user terminal, the delegated compilation module is connected to the issuing wallet, the view generation module is connected to the issuing wallet, one or more merchant servers, and the verification wallet, and the adaptive execution module is connected to the verification wallet.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of electronic payment technology, specifically relating to a privacy-preserving payment authorization method and system for an adaptive intelligent agent workflow. Background Technology

[0002] With the development of large language model agents and tool invocation protocols, agents can autonomously plan and invoke online services such as search, data analysis, code scanning, logistics, and booking based on the natural language tasks provided by users. Some online services require payment authorization before or during the invocation process. To avoid requiring users to confirm online for each paid invocation, existing technologies typically pre-issue payment vouchers to the agent containing merchant identity, maximum amount, or product information.

[0003] When a task spans multiple service categories and subsequent calls depend on the results of preceding calls, the final merchant and call order are often unpredictable before the task begins. If each payment credential is pre-assigned to a specific merchant, the agent must re-request user authorization if the associated merchant becomes unavailable, exceeds budget, or returns an unsatisfactory result, or the task may fail entirely. Pre-authorizing a large number of candidate merchants to reduce the failure rate increases the user's confirmation burden, the number of credentials, and the authorization exposure surface.

[0004] On the other hand, if the same holder's public key identifier, credential identifier, account handle, or other stable fields are reused in payment records across different merchants, it becomes possible to observe that participants in multiple payment records can use these stable fields to connect originally independent payment calls and infer the user's high-level task objectives. Furthermore, directly disclosing the complete task delegation to each merchant also allows individual merchants to know other service categories, the full budget, or workflow structure not required to complete the current service.

[0005] Paid invocations cannot be completely devoid of invocation identifiers or consistency constraints. If the payment authorization is not cryptographically bound to the current service request, real-time quote, runtime merchant, payee, and one-time expenditure evidence, an attacker can splice the authorization evidence of one invocation into another request or quote, or replay the same authorization to generate a second expenditure. Therefore, a computer-implemented payment authorization mechanism is needed that can still verify the consistency of requests and payments, limit cumulative expenditures, and prevent replay and double-spending without introducing cross-merchant stable identifiers into external payment records. Summary of the Invention

[0006] The problems this invention aims to solve are: first, existing merchant pre-bound payment credentials are difficult to adapt to merchant unavailability and dynamic task decomposition during runtime; second, the reuse of stable payment identifiers across merchants leads to the linkability of external records; third, there is a lack of consistency binding to prevent splicing between the minimum disclosure service proof and payment proof; and fourth, there are risks of replay, modification retry, and duplicate consumption of the same expenditure slot in a distributed concurrent reconciliation environment. The invention proposes a privacy-preserving payment authorization method and system for adaptive intelligent agent workflows.

[0007] To achieve the above objectives, the present invention provides the following technical solution:

[0008] A privacy-preserving payment authorization system with an adaptive intelligent agent workflow includes a user terminal, an intelligent agent terminal, an issuing wallet, one or more merchant servers, a verification wallet, and a payment network or settlement interface;

[0009] The intelligent agent terminal is connected to the user terminal, the issuing wallet, one or more merchant servers, the verification wallet, and the payment network or settlement interface, respectively. The verification wallet is connected to the payment network or settlement interface.

[0010] The intelligent agent terminal includes a planning module, a delegated compilation module, an adaptive execution module, and a view generation module; the planning module is connected to the delegated compilation module and the adaptive execution module respectively, and the adaptive execution module is connected to the view generation module; the planning module is connected to the user terminal, the delegated compilation module is connected to the issuing wallet, the view generation module is connected to the issuing wallet, one or more merchant servers, and the verification wallet, and the adaptive execution module is connected to the verification wallet.

[0011] Furthermore, the planning module provides a scope draft to the delegated compilation module and a task plan to the adaptive execution module;

[0012] The delegate compilation module is used to send user-signed typed task delegates to the issuing wallet;

[0013] The adaptive execution module is used to select merchants and invocation schemes at runtime based on task execution status and user authorization scope, obtain the quote returned by the selected merchant for the current service request, generate a request summary of the service request, and select a one-time expenditure slot that matches the current invocation based on the unused expenditure slots within the user authorization scope. The selected merchant's identifier, quote, request summary, and one-time expenditure slot are provided to the view generation module. When the selected merchant cannot provide services, the quote exceeds the user's authorized budget, or there is no one-time expenditure slot that matches the current invocation, the merchant or invocation party is reselected based on the task execution status and the remaining user authorization scope.

[0014] The view generation module is used to send service views to the merchant server and expenditure views to the redemption wallet.

[0015] A privacy-preserving payment authorization method for adaptive intelligent agent workflows, implemented based on the aforementioned privacy-preserving payment authorization system for adaptive intelligent agent workflows, includes the following steps:

[0016] S1. The user terminal collects the user's natural language task, public tool catalog and user policy, and inputs them into the planning module of the intelligent agent terminal. The planning module generates a scope draft and task plan.

[0017] S2. The planning module provides a scope draft to the delegated compilation module, which generates a typed task delegate. The typed task delegate includes the allowed service categories, merchant selection predicates for the service categories, total budget, one or more one-time expenditure slots, and validity period.

[0018] S3. The delegated compilation module sends the typed task delegate to the issuing wallet. The issuing wallet verifies the typed task delegate, fund status, and reserved total budget obtained in step S2, and then issues the authorization certificate bound to the typed task delegate and the hidden seed vector.

[0019] S4. The adaptive execution module selects candidate merchants and obtains quotes based on the task plan, checks the service category, merchant predicate, budget, one-time expenditure slot, expenditure slot capacity and validity period, and sends the call constraint check results to the view generation module. Combined with the authorization credentials obtained in step S3, it generates service view, expenditure view and consistency binding for each call. The service view is sent to the merchant server and the expenditure view is sent to the reimbursement wallet.

[0020] S5. The merchant server verifies the service view and signs the merchant confirmation, which is then sent to the reconciliation wallet. The reconciliation wallet jointly verifies the service view, expenditure view, consistency binding for each call, merchant confirmation, and one-time expenditure evidence, generates a verification result, and sends it to the adaptive execution module.

[0021] S6. The adaptive execution module atomically marks the one-time expenditure evidence as consumed and returns the settlement authorization for those that pass the verification in the verification results; for those that are sent to the replanning module when the candidate merchant is unavailable or the verification fails, another candidate merchant that meets the merchant selection predicate is selected without changing the typed task delegation.

[0022] Furthermore, in step S2, the delegated compilation module performs type checking on the scope draft and generates a typed task delegate, the expression of which is:

[0023]

[0024] in, This represents a fully typed task delegation; Indicates the first One task scope; Indicates the total number of tasks. Indicates the task scope index; This indicates the total budget approved by the user; Indicates the validity period of the entrustment; Indicates the first Service categories within a task scope; Merchant selection predicates applied to the attributes of certified merchants; Indicates the first A set of slot indexes for each task scope; express Slot index in; Indicates the first Within the scope of the task, the first Capacity of each slot; symbol It indicates that it belongs to.

[0025] Furthermore, the typed task delegation mentioned in step S2 includes one or more task scopes. Each task scope includes a service category identifier, a merchant selection predicate consisting of fields on the certified merchant attributes, operators, normalization rules, and rejection rules, and a limited number of one-time expenditure slots belonging to that task scope. The capacity of each one-time expenditure slot is a positive minimum unit integer of payment assets, and the sum of the capacities of all one-time expenditure slots is not greater than the total budget.

[0026] Furthermore, the authorization credential in step S3 is a message vector signature credential that supports selective disclosure. The message vector includes a summary of the typed task delegation signed by the user, the task scope, the total budget, the validity period, and the hidden seed vector.

[0027] Issuing wallets for message vectors Issuance of authorization certificate ;in, This represents the message vector that has been signed. ( ) represents the hash digest of the user approval object, { } represents the set of all tasks. Indicates authorization certificate, This represents the hidden seed vector used to derive one-time serial numbers. This represents the hidden seed vector used to derive the funding labels.

[0028] Furthermore, in step S4, the service view and expenditure view each include a common anchor point generated by fresh random numbers, and the expenditure view also includes one-time expenditure evidence derived based on the hidden seed vector and the selected one-time expenditure slot; calculate the request digest of the service request, the service view digest not written to the binding field, and the expenditure view digest not written to the binding field, and generate a consistent binding for each call based on the common anchor point, request digest, service view digest, and expenditure view digest, and write the consistent binding for each call to the service view and expenditure view respectively.

[0029] Furthermore, in step S4, the service view and expenditure view each include zero-knowledge proofs independently generated from the same authorization credential; the common anchor includes a first commitment and a second commitment, the first commitment being a hidden commitment to the request summary, quotation, summary of the typed task delegation, and selected task scope, and the second commitment being a hidden commitment to the summary of the typed task delegation and the summary of the selected task scope; the one-time expenditure evidence includes a serial number and a funding tag. For a selected one-time expenditure slot, the serial number is obtained by combining the result of mapping the first hidden seed and the canonical code of the selected one-time expenditure slot to the group element, and the funding tag is obtained by combining the result of mapping the second hidden seed and the canonical code to the group element. The zero-knowledge proof in the expenditure view is used to prove that the serial number and funding tag are consistent with the authorization credential and the selected one-time expenditure slot, without disclosing the first hidden seed and the second hidden seed.

[0030] Furthermore, the specific implementation method for the merchant server to verify the service view and sign the merchant confirmation and send it to the reconciliation wallet in step S5 is as follows: the merchant server verifies the issued public key, the merchant attribute authentication record, and the service-side proof. and calling Consistent binding value When verification is successful, the merchant server uses the merchant's private key. right Signature, forming merchant confirmation ,in, Indicates the attributes of certified merchants The corresponding merchant signature private key, This represents the canonical coding of an ordered combination of the first commitment, the service request summary, and the consistent binding values. This indicates that the merchant has access to the call. The generated confirmation signature indicates that the merchant has observed and accepted the partial binding of the call, but does not indicate that the merchant is providing proof of service quality, price fairness, or reconciliation results.

[0031] The beneficial effects of this invention are:

[0032] This invention discloses a privacy-preserving payment authorization system for adaptive intelligent agent workflows. The system issues wallets that verify user signatures, delegation specifications, and fund status, reserve a total budget, and issue selectively disclosed authorization credentials based on the delegation field and a hidden seed vector held by the intelligent agent. The hidden seed vector is used to derive one-time serial numbers and fund tags according to task scope and slot. The serial number is used to verify wallet transactions and detect duplicate spending in the same slot, while the fund tag proves that the serial number originates from the authorized slot corresponding to the reserved funds.

[0033] This invention discloses a privacy-preserving payment authorization system with an adaptive intelligent agent workflow. In each payment invocation, the intelligent agent terminal constructs a local public anchor point using fresh random numbers based on the service request, quote, running merchant, and selected slot, and generates a service view and an expenditure view respectively. The service view enables the merchant to verify service category coverage and merchant access; the expenditure view enables the verification wallet to verify the amount, payee, slot capacity, and one-time expenditure evidence. Both views independently generate proofs from the same authorization credential and follow minimum disclosure per verification role.

[0034] This invention discloses a privacy-preserving payment authorization system for adaptive intelligent agent workflows. The intelligent agent terminal generates a request digest for service requests and generates view digests for service views and expenditure views that have not yet had binding fields filled in. The common anchor, request digest, and two view digests are input into a domain-separated hash function to obtain a consistent binding for each call. This binding is written to both views. After successful verification in the service view, the merchant signs the call-specific message including the binding using their private key, forming a merchant confirmation.

[0035] This invention discloses a privacy-preserving payment authorization system with an adaptive intelligent agent workflow. The verification wallet receives confirmation from two views and the merchant, recalculates the consistency binding for each call, and jointly verifies the consistency of the two sides' proofs, merchant signature, delegation validity period, slot heterogeneity, slot capacity, sequence number, and fund tag, as well as the freshness of the sequence number. When all verifications pass, the verification wallet writes the consumed sequence number set and the accepted call digest-receipt mapping table in an atomic transaction, and then returns the settlement authorization. Failure of any verification does not change the wallet state. When a candidate merchant is unavailable, the offer exceeds the authorization boundary, or verification fails, the intelligent agent records the failure reason as a structured rejection event and reselects from merchants satisfying the same merchant selection predicate within a preset number of times; this replanning process does not generate new user signatures or change already signed delegations.

[0036] The privacy-preserving payment authorization method for adaptive agent workflow described in this invention separates the final merchant identity by task scope and merchant selection predicate, enabling the agent to perform runtime merchant replacement within the authorization boundary, reducing task interruptions caused by the failure of a single pre-bound merchant; through fresh commitment random numbers, independent zero-knowledge proofs, and call local binding, external payment records received by different merchants do not contain the cross-merchant stable identifier introduced by this system, reducing the ability to connect multiple calls based on payment layer records; through role separation of service view and expenditure view, only the fields required for service access are disclosed to merchants, and only the fields required for reimbursement are disclosed to the reimbursement fund. The package discloses the fields required for write-off, reducing unnecessary exposure of the full task scope and total budget; it prevents service proofs and expenditure proofs from being spliced ​​across calls by covering request summaries, quotes, runtime merchants, payees, slots, one-time expenditure evidence, and bilateral proofs for each call to ensure consistency; it prevents replay, modification retries, concurrent double-spending, and partial writes through sequence number freshness checks, fund tag consistency proofs, and atomic state updates; and it ensures that cumulative new expenditures do not exceed the user-approved total budget by using the issuance invariant that the sum of slot capacities does not exceed the total budget, and the write-off rule that new accepted calls must consume distinct slots. Attached Figure Description

[0037] Figure 1 This is a schematic diagram of the structure of a privacy-preserving payment authorization system with an adaptive intelligent agent workflow as described in this invention;

[0038] Figure 2 This is a schematic diagram of the structure of the intelligent agent terminal of the present invention;

[0039] Figure 3 This is a flowchart of a privacy-preserving payment authorization method for an adaptive intelligent agent workflow as described in this invention. Detailed Implementation

[0040] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only for explaining the invention and are not intended to limit the invention; that is, the described specific embodiments are merely a part of the embodiments of the invention, and not all of them. The components of the specific embodiments of the invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations, and the invention may also have other embodiments.

[0041] Therefore, the following detailed description of specific embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected specific embodiments of the invention. All other specific embodiments obtained by those skilled in the art based on these specific embodiments without inventive effort are within the scope of protection of this invention.

[0042] To further understand the invention's content, features, and effects, the following specific embodiments are provided, along with accompanying drawings. Figure 1 - Appendix Figure 3 Detailed explanation is as follows:

[0043] Example 1:

[0044] A privacy-preserving payment authorization system with an adaptive intelligent agent workflow includes a user terminal, an intelligent agent terminal, an issuing wallet, one or more merchant servers, a verification wallet, and a payment network or settlement interface;

[0045] The intelligent agent terminal is connected to the user terminal, the issuing wallet, one or more merchant servers, the verification wallet, and the payment network or settlement interface, respectively. The verification wallet is connected to the payment network or settlement interface.

[0046] The intelligent agent terminal includes a planning module, a delegated compilation module, an adaptive execution module, and a view generation module; the planning module is connected to the delegated compilation module and the adaptive execution module respectively, and the adaptive execution module is connected to the view generation module; the planning module is connected to the user terminal, the delegated compilation module is connected to the issuing wallet, the view generation module is connected to the issuing wallet, one or more merchant servers, and the verification wallet, and the adaptive execution module is connected to the verification wallet.

[0047] Furthermore, the planning module provides a scope draft to the delegated compilation module and a task plan to the adaptive execution module;

[0048] The delegate compilation module is used to send user-signed typed task delegates to the issuing wallet;

[0049] The adaptive execution module is used to select merchants and invocation schemes at runtime based on task execution status and user authorization scope, obtain the quote returned by the selected merchant for the current service request, generate a request summary of the service request, and select a one-time expenditure slot that matches the current invocation based on the unused expenditure slots within the user authorization scope. The selected merchant's identifier, quote, request summary, and one-time expenditure slot are provided to the view generation module. When the selected merchant cannot provide services, the quote exceeds the user's authorized budget, or there is no one-time expenditure slot that matches the current invocation, the merchant or invocation party is reselected based on the task execution status and the remaining user authorization scope.

[0050] The view generation module is used to send service views to the merchant server and expenditure views to the redemption wallet.

[0051] Furthermore, the user terminal receives natural language tasks and user policies, displays the proposed authorization scope, and obtains the user's digital signature. The intelligent agent terminal plans tool calls, selects candidate merchants, and generates cryptographic views. The issuing wallet verifies user approval and fund readiness, and issues authorization credentials. The merchant server provides quotes, verifies service views, signs merchant confirmations, and releases service results after obtaining settlement authorization. The reconciliation wallet performs payment-side verification, provides evidence of one-time expenditures, and triggers or authorizes settlement through the payment network. The issuing and reconciliation wallets can be implemented by logically isolated components within the same wallet system or by mutually isolated services. To enhance privacy for honest but curious issuers, a blind issuance protocol can be used, or the issuing and reconciliation services can be separated from logs that can be directly linked to external calls.

[0052] Example 2:

[0053] A privacy-preserving payment authorization method for an adaptive intelligent agent workflow, implemented based on the privacy-preserving payment authorization system for an adaptive intelligent agent workflow described in Example 1, is characterized by including the following steps:

[0054] S1. The user terminal collects the user's natural language task, public tool catalog and user policy, and inputs them into the planning module of the intelligent agent terminal. The planning module generates a scope draft and task plan.

[0055] Furthermore, the planning module generates a scope draft based on the user's natural language task, public tool catalog, and user policy. The scope draft is only used to estimate the possible service categories, budget, and alternative merchants; it does not have payment authorization power, does not fix the order of calls, and does not fix the final merchant.

[0056] S2. The planning module provides a scope draft to the delegated compilation module, which generates a typed task delegate. The typed task delegate includes the allowed service categories, merchant selection predicates for the service categories, total budget, one or more one-time expenditure slots, and validity period.

[0057] Furthermore, in step S2, the delegated compilation module performs type checking on the scope draft and generates a typed task delegate, the expression of which is:

[0058]

[0059] in, This represents a fully typed task delegation; Indicates the first One task scope; Indicates the total number of tasks. Indicates the task scope index; This indicates the total budget approved by the user; Indicates the validity period of the entrustment; Indicates the first Service categories within a task scope; Merchant selection predicates applied to the attributes of certified merchants; Indicates the first A set of slot indexes for each task scope; express Slot index in; Indicates the first Within the scope of the task, the first Capacity of each slot; symbol It indicates that it belongs to.

[0060] Furthermore, the user terminal displays the aforementioned fields and their human-readable explanations. After user confirmation, the data is encoded according to the specifications. Signature, obtain user approval object ;in, Indicates the delegation of tasks Perform standardized coding. Indicates the user approval object. Indicates the digital signature generated by the user in accordance with this specification, subscript Represents the user. Merchant selection predicate. Examples include: the service category in the merchant certificate equals "patent search"; the jurisdiction belongs to the approved set; the security rating is not lower than the threshold; and the receiving account is certified by an approved payment service provider. Predicate fields, operators, string normalization, numerical ranges, and rejection rules are fixed by the protocol version to prevent the execution end from using interpretation differences to extend authorization.

[0061] Furthermore, the typed task delegation mentioned in step S2 includes one or more task scopes. Each task scope includes a service category identifier, a merchant selection predicate consisting of fields on the certified merchant attributes, operators, normalization rules, and rejection rules, and a limited number of one-time expenditure slots belonging to that task scope. The capacity of each one-time expenditure slot is a positive minimum unit integer of payment assets, and the sum of the capacities of all one-time expenditure slots is not greater than the total budget.

[0062] S3. The delegated compilation module sends the typed task delegate to the issuing wallet. The issuing wallet verifies the typed task delegate, fund status, and reserved total budget obtained in step S2, and then issues the authorization certificate bound to the typed task delegate and the hidden seed vector.

[0063] Furthermore, the issuance of authorization credentials includes the issuance of wallet receipts. The system checks for information on the source of funds, verifies user signatures, delegation structure, validity period, and fund status, and checks the following capacity invariants:

[0064]

[0065] in, Indicates summation operation; outer subscript This represents the summation over the entire task scope; inner subscript Indicates the first A set of slots for each task scope Sum all slots in the array; Indicates the capacity of the corresponding slot; Indicates the total budget; The second inequality means "not greater than"; it applies to every valid inequality. and This holds true, with 0 representing the lower bound of the capacity. Therefore, the sum of the capacities of all slots is no greater than the total budget, and the capacity of each valid slot is a positive number.

[0066] When the capacity invariance holds, the wallet issuance reserve is... The corresponding funds, and the intelligent agent terminal generates or holds a hidden seed vector. and ;in, This represents the hidden seed vector used to derive one-time sequence numbers, with the superscript indicating the seed vector. Indicates the purpose of the serial number. This represents the hidden seed vector used to derive funding labels, with the superscript indicating the seed vector. Indicates the intended use of funds.

[0067] Furthermore, the authorization credential in step S3 is a message vector signature credential that supports selective disclosure. The message vector includes a summary of the typed task delegation signed by the user, the task scope, the total budget, the validity period, and the hidden seed vector.

[0068] Issuing wallets for message vectors Issuance of authorization certificate ;in, This represents the message vector that has been signed. ( ) represents the hash digest of the user approval object, { } represents the set of all tasks. Indicates authorization certificate, This represents the hidden seed vector used to derive one-time serial numbers. This represents the hidden seed vector used to derive the fund tags. The agent terminal stores the voucher state. ,in , This represents the local secret state consisting of two hidden seed vectors.

[0069] Furthermore, the issuance process uses Message vector signature. The issuing wallet holds the issuing private key. And publish the issuing public key ;in, This indicates the issuance of the private key. Indicates the issuance of a public key, subscript Indicates the issuing party. The authorization certificate is valid. Generate, where This indicates the credential issuance algorithm. Subsequent calls will use this algorithm. Generate selective disclosure proof; where Indicates the algorithm for presenting credentials. This indicates the authorization certificate to be presented; the part before the semicolon... The statement after the semicolon indicates that it is publicly disclosed to the verifier. This indicates a testimony that is not disclosed to the verifier, allowing the verifier to confirm the publicly disclosed statement. Hidden witnesses cannot be obtained even if supported by valid signed messages. .

[0070] S4. The adaptive execution module selects candidate merchants and obtains quotes based on the task plan, checks the service category, merchant predicate, budget, one-time expenditure slot, expenditure slot capacity and validity period, and sends the call constraint check results to the view generation module. Combined with the authorization credentials obtained in step S3, it generates service view, expenditure view and consistency binding for each call. The service view is sent to the merchant server and the expenditure view is sent to the reimbursement wallet.

[0071] Furthermore, in step S4, the service view and expenditure view each include a common anchor point generated by fresh random numbers, and the expenditure view also includes one-time expenditure evidence derived based on the hidden seed vector and the selected one-time expenditure slot; calculate the request digest of the service request, the service view digest not written to the binding field, and the expenditure view digest not written to the binding field, and generate a consistent binding for each call based on the common anchor point, request digest, service view digest, and expenditure view digest, and write the consistent binding for each call to the service view and expenditure view respectively.

[0072] Furthermore, in step S4, the service view and expenditure view each include zero-knowledge proofs independently generated from the same authorization credential; the common anchor includes a first commitment and a second commitment, the first commitment being a hidden commitment to the request summary, quotation, summary of the typed task delegation, and selected task scope, and the second commitment being a hidden commitment to the summary of the typed task delegation and the summary of the selected task scope; the one-time expenditure evidence includes a serial number and a funding tag. For a selected one-time expenditure slot, the serial number is obtained by combining the result of mapping the first hidden seed and the canonical code of the selected one-time expenditure slot to the group element, and the funding tag is obtained by combining the result of mapping the second hidden seed and the canonical code to the group element. The zero-knowledge proof in the expenditure view is used to prove that the serial number and funding tag are consistent with the authorization credential and the selected one-time expenditure slot, without disclosing the first hidden seed and the second hidden seed.

[0073] Furthermore, service view Includes the protocol version, issuer identifier, and service category. Merchant identity and pricing during runtime Or its publicly accessible projections, merchant attribute authentication records, public anchors Service-side certification and the bound fields to be written; among which, Indicates a view, superscript Indicates the service side, subscript Indicates calling the index, This represents zero-knowledge proof. Indicates a call Service-side certification. Prove that the agent holds valid authorization credentials, that the request digest is correctly opened in the first commitment, and that the selected service category is delegated and covered. satisfy Expenditures View Includes the agreement version, issuing party identifier, and amount. Payment assets, payee Selected slot Corresponding serial number and fund tag, public anchor point Expenditure-side proof and the bound fields to be written; among which, Indicates a view, superscript Indicates the payment or expenditure side, subscript Indicates calling the index, Indicates a call Zero-knowledge proof on the expenditure side. This proves that the selected slot is within the authorized task scope, the amount is covered by the slot capacity, and the serial number and fund tag are correctly exported from the hidden seed in the voucher. and It can be generated by calling the same authorization certificate twice through two independent selective disclosure proofs. Merchant servers do not accept this. The verification wallet receives two views to verify their consistency, but only obtains the slot, serial number, funding tag, or complete task budget. Abstract without obtaining Plain text. This achieves minimal disclosure based on the verification role.

[0074] S5. The merchant server verifies the service view and signs the merchant confirmation, which is then sent to the reconciliation wallet. The reconciliation wallet jointly verifies the service view, expenditure view, consistency binding for each call, merchant confirmation, and one-time expenditure evidence, generates a verification result, and sends it to the adaptive execution module.

[0075] Furthermore, the specific implementation method for the merchant server to verify the service view and sign the merchant confirmation and send it to the reconciliation wallet in step S5 is as follows: the merchant server verifies the issued public key, the merchant attribute authentication record, and the service-side proof. and calling Consistent binding value When verification is successful, the merchant server uses the merchant's private key. right Signature, forming merchant confirmation ,in, Indicates the attributes of certified merchants The corresponding merchant signature private key, This represents the canonical coding of an ordered combination of the first commitment, the service request summary, and the consistent binding values. This indicates that the merchant has access to the call. The generated confirmation signature indicates that the merchant has observed and accepted the partial binding of the call, but does not indicate that the merchant is providing proof of service quality, price fairness, or reconciliation results.

[0076] Furthermore, the smart agent terminal submits to the verification wallet. The wallet verification process performs the following checks: confirms the protocol version and issuer; verifies... and Reconstruct from two views , And recalculate ; Verify the two views Same; Verification ;examine Check the distinctness and capacity of slots; check the relationship between serial number, fund tag and slot; query whether each serial number exists in the consumed set.

[0077] Furthermore, the reconciliation wallet places the aforementioned checks and state updates within transaction boundaries. Only when all verifications are successful and all sequence numbers are fresh does the reconciliation wallet atomically write the sequence numbers to the consumed set and update the accepted call digest. It is associated with the receipt for storage and generates settlement authorization; among which, Indicates abstract, subscript This indicates acceptance. This represents a unique summary indicating that the call has been accepted. It can be obtained from two views and a canonical encoded digest confirmed by the merchant. If any verification fails or a concurrent transaction has already consumed a sequence number, the current transaction is rolled back, and the wallet state remains unchanged.

[0078] For retrying on the exact same network, if The reclaim wallet returns the existing receipt without generating new expenditures, matching the call digest in the existing mapping table. If a request uses the same sequence number but modifies the quote, merchant, payee, slot, proof, or binding, the reclaim wallet rejects the request because the call digest or verification relationship has changed. This enables idempotent retries and tamper-proof retries.

[0079] set up This refers to the set of calls recently received by the wallet that has been revoked under a certain authorization credential. For calling The quoted amount. Since each newly accepted call consumes a non-overlapping issuance slot, the following conditions are met:

[0080]

[0081] In the formula, This represents the set of call indices freshly accepted by the revoked wallet under the same authorization credential, with the subscript... This indicates acceptance; Indicates that the index is being called; Indicates a call The quoted amount; Indicates a call A set of consumption slots; Indicates the slot index; Indicates a call Selected task scope Inner The capacity of each slot; Indicates the task scope index; Indicates the first A set of slots for each task scope; Indicates the total budget; To express summation; Indicates "belongs to"; This indicates "not greater than". The first summation term represents the cumulative newly accepted expenditures, the second summation term represents the total capacity of the slots consumed by these calls, and the third summation term represents the total capacity of all issued slots. Therefore, as long as the issuing wallet maintains a capacity invariant and the rescinding wallet accepts the same sequence number at most once, it can be guaranteed from the protocol state transition level that the cumulative newly accepted expenditures do not exceed the total budget. .

[0082] S6. The adaptive execution module atomically marks the one-time expenditure evidence as consumed and returns the settlement authorization for those that pass the verification in the verification results; for those that are sent to the replanning module when the candidate merchant is unavailable or the verification fails, another candidate merchant that meets the merchant selection predicate is selected without changing the typed task delegation.

[0083] Furthermore, a non-restrictive canonical message structure is given below. Practical implementations can use CBOR, deterministic JSON, Protocol Buffers deterministic serialization, or other formats that meet the unique encoding requirements, as shown in Table 1:

[0084] Table 1

[0085]

[0086] Example 3:

[0087] Based on Example 2, this embodiment details the adaptive execution and quotation check method of the adaptive execution module in step S4 as follows:

[0088] After the credential is issued, the planning module advances the task based on the task context and scope draft. Free tool calls follow the normal path. For paid calls... ,in This indicates the index of the currently paid call, and the intelligent agent terminal selects candidate merchants. And send a service request Merchants return quotes ;in, Indicates a call Selected runtime merchant, Indicates a call Request for service Indicates that the merchant is calling The returned quote. The quote must include at least the amount. Payment assets, payee Service category, merchant identity, and price quotation (random number) ;in, Indicates a call The quoted amount, Indicates a call The recipient of the payment, This represents the random number generated by the bidding party and included in the bid; the subscript... This indicates a price quote.

[0089] Intelligent agent terminal selects task scope and slot set ;in, Indicates a call Selected task scope index Indicates a call Select the set of slots to cover the quoted amount. Agent terminal check: Current time is earlier than... Merchant authentication attributes satisfy ,in Indicates a call The set of certified attributes corresponding to the merchant. Merchant selection predicate indicating the scope of the selected task; pricing service category and Consistent, among which This indicates the service category of the selected task scope; the assets must be consistent; the selected slots must be unique; the quoted amount must not exceed the sum of the capacities of the selected slots; and the selected slots must belong to the corresponding task scope. Only after all checks pass will the view generation stage begin.

[0090] If a candidate merchant is unavailable, the quoted amount exceeds the available capacity, or the merchant attributes do not meet the predicate, a structured rejection event is generated. The rejection event may include a reason code, candidate merchant, quote summary, remaining slots, and retry count. The planning module selects another compliant merchant within the maximum number of replanning attempts; if no compliant merchant exists or the maximum number of attempts is reached, the corresponding payment step is terminated via a failure-closed approach.

[0091] Example 4:

[0092] Based on Example 2, this embodiment details the steps of calling the local common anchor point and one-time expenditure evidence in step S4 as follows:

[0093] View generation module compute service request summary = ( );in, Indicates a call Service request summary, superscript Indicates a service request. Represents a cryptographic hash function. Indicates a service request The view generation module also samples independent, fresh random numbers for this call, following the standard encoding. and ;in, The random number representing the first commitment. The random number represents the second commitment. Then the first commitment is generated. Second commitment :

[0094]

[0095] In the formula, Indicates a call The first commitment; This represents a vector commitment algorithm that makes commitments to multiple ordered messages, using subscripts. Represents a vector; Indicates a summary of the service request; Indicates a price quote; ( ) indicates the user approval object The hash digest; Indicates the index of the selected task range; the part after the semicolon This indicates that the fresh random number is only used to generate the first commitment.

[0096]

[0097] In the formula, Indicates a call The second commitment; Indicates the commitment algorithm used to form local associations of calls, subscript Indicates related uses; ( This represents the hash digest of the user approval object; Indicates by index Selected task scope; ( ) represents the hash digest of the task scope; This indicates that the fresh random number is used only to generate the second commitment. Indicates a call The common anchor point, which is composed of ordered pairs ( , )constitute.

[0098] Public Anchor Point Provides a hidden association for the same call between two views, but because , Resampling is performed on each invocation, and its external representation does not form a stable handle across invocations. The first commitment covers the request summary, quote, delegate summary, and task scope; the second commitment is used to prove that the service side and the expenditure side reference the same delegate and the same task scope.

[0099] For each selected slot The view generation module generates serial numbers based on hidden seeds. and funding tags :

[0100]

[0101] In the formula, Indicates a call Selected task scope Inner A one-time serial number for each slot; Indicates the scope of the task The corresponding serial number hides the seed, superscript Indicates the purpose of the sequence number; · Indicates scalar multiplication on a cryptographic group; Represents hashing to a group function; ( , ) indicates an index for the task scope. With slot index The ordered combination is used for standardized coding.

[0102]

[0103] In the formula, Indicates a call Selected task scope Inner The funding tag for each slot, marked on top Indicate the purpose of the funds; Indicates the scope of the task The corresponding funding tag hides the seed; · represents scalar multiplication on a cryptographic group; Represents hashing to a group function; ( , ) indicates the task scope index and slot index Standardized coding.

[0104] The redemption wallet uses the serial number to detect whether a slot has been spent, and confirms through expenditure-side proof that both the serial number and the fund tag are derived from the hidden seed and the same slot index in the authorization certificate. Because different slots map to different group elements, and the hidden seed is not publicly disclosed, external participants cannot recover the hidden seed solely based on the certificate.

[0105] Example 5:

[0106] Based on Example 2, this embodiment details the consistency binding steps for each call in step S4 as follows:

[0107] When the bound fields of the two views are still empty, record them as follows: and The superscript 0 indicates that the corresponding view has not yet been written with bound values. The view generation module calculates the service view summary. = ( ) and expenditure view summary = ( );in, Indicates an abstract, superscript Indicates the service side, superscript Indicates the expenditure side, subscript This indicates that the index is being called. The following calculations are then performed:

[0108]

[0109] In the formula, Indicates a call Consistent binding values; This indicates a domain-separated hash function used for binding purposes; Indicates a call The common anchor point; Indicates a call Service request summary; Indicates a call Service view summary; Indicates a call Summary of expenditure view. Due to and Canonical coding that covers each view Indirectly covers request summary, quote, runtime merchant, payee, slot, serial number, funds tag, and two-sided verification. The view generation module will... Write and Fresh public anchors and fresh proof random numbers make Used only in this call.

[0110] Example 6:

[0111] This embodiment is based on Embodiment 2 and is illustrated with the following example:

[0112] In a product due diligence task, the user allows the agent to use two types of paid services: "patent search" and "vulnerability scanning," with a total budget of 500 minimum payment asset units. Several one-time expenditure slots are allocated for each service. The user requires, through merchant selection predicates, that the patent search merchant possess a valid industry certificate and be located in an approved region, and that the vulnerability scanning merchant's security rating be no lower than a threshold. The user does not specify the final merchant.

[0113] The intelligent agent first selects the merchant. Perform a patent search. If the merchant... If a bid exceeds the patent search slot capacity, the agent records the bid out-of-bounds event and selects a merchant that also satisfies the predicate. No user signature is required. This applies to merchants. The call generates a new common anchor point, dual views, and Merchants You can only see the patent search service category and the current quote, but not the vulnerability scanning scope or the total budget.

[0114] The agent then selects the merchant. Perform a vulnerability scan and generate a public anchor that differs from the previous call, along with proof-of-concept random numbers and... Even merchants and merchants Since the system does not reuse credential identifiers, holder public key identifiers, or other stable payment handles in the two records, it is not possible to determine that the two calls come from the same task using only the newly added fields of this system. It should be noted that environmental leaks such as network address, time, call order, merchant selection, and service input are not eliminated by the payment layer delinking mechanism of this invention.

[0115] If the attacker targets the merchant Service View and Merchants splicing together expenditure views , Alternatively, the public anchor points may be inconsistent, and the recalculated Bind cannot match simultaneously, causing merchant confirmation to fail verification. If an attacker replays a serial number that has already been consumed, the redemption wallet will find that the serial number already exists within the atomic transaction and reject the new settlement.

[0116] It should be noted that relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0117] Although this application has been described above with reference to specific embodiments, various modifications can be made and components can be replaced with equivalents without departing from the scope of this application. In particular, as long as there is no structural conflict, the features in the specific embodiments disclosed in this application can be combined with each other in any way. The lack of an exhaustive description of these combinations in this specification is merely for the sake of brevity and resource conservation. Therefore, this application is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.

Claims

1. A privacy-preserving payment authorization system for adaptive intelligent agent workflow, characterized in that, This includes user terminals, smart agent terminals, issuing wallets, one or more merchant servers, verification wallets, and payment networks or settlement interfaces; The intelligent agent terminal is connected to the user terminal, the issuing wallet, one or more merchant servers, the verification wallet, and the payment network or settlement interface, respectively. The verification wallet is connected to the payment network or settlement interface. The intelligent agent terminal includes a planning module, a delegated compilation module, an adaptive execution module, and a view generation module; the planning module is connected to the delegated compilation module and the adaptive execution module, and the adaptive execution module is connected to the view generation module. The planning module connects to the user terminal, the delegated compilation module connects to the issuing wallet, the view generation module connects to the issuing wallet, one or more merchant servers, and the verification wallet, and the adaptive execution module connects to the verification wallet.

2. The privacy-preserving payment authorization system for adaptive intelligent agent workflow according to claim 1, characterized in that, The planning module provides a scope draft to the delegated compilation module and a task plan to the adaptive execution module; The delegate compilation module is used to send user-signed typed task delegates to the issuing wallet; The adaptive execution module is used to select merchants and invocation schemes at runtime based on task execution status and user authorization scope, obtain the quote returned by the selected merchant for the current service request, generate a request summary of the service request, and select a one-time expenditure slot that matches the current invocation based on the unused expenditure slots within the user authorization scope. The selected merchant's identifier, quote, request summary, and one-time expenditure slot are provided to the view generation module. When the selected merchant cannot provide services, the quote exceeds the user's authorized budget, or there is no one-time expenditure slot that matches the current invocation, the merchant or invocation party is reselected based on the task execution status and the remaining user authorization scope. The view generation module is used to send service views to the merchant server and expenditure views to the redemption wallet.

3. A privacy-preserving payment authorization method for adaptive intelligent agent workflow, implemented based on the privacy-preserving payment authorization system for adaptive intelligent agent workflow as described in any one of claims 1-2, characterized in that, Includes the following steps: S1. The user terminal collects the user's natural language task, public tool catalog and user policy, and inputs them into the planning module of the intelligent agent terminal. The planning module generates a scope draft and task plan. S2. The planning module provides a scope draft to the delegated compilation module, which generates a typed task delegate. The typed task delegate includes the allowed service categories, merchant selection predicates for the service categories, total budget, one or more one-time expenditure slots, and validity period. S3. The delegated compilation module sends the typed task delegate to the issuing wallet. The issuing wallet verifies the typed task delegate, fund status, and reserved total budget obtained in step S2, and then issues the authorization certificate bound to the typed task delegate and the hidden seed vector. S4. The adaptive execution module selects candidate merchants and obtains quotes based on the task plan, checks the service category, merchant predicate, budget, one-time expenditure slot, expenditure slot capacity and validity period, and sends the call constraint check results to the view generation module. Combined with the authorization credentials obtained in step S3, it generates service view, expenditure view and consistency binding for each call. The service view is sent to the merchant server and the expenditure view is sent to the reimbursement wallet. S5. The merchant server verifies the service view and signs the merchant confirmation, which is then sent to the reconciliation wallet. The reconciliation wallet jointly verifies the service view, expenditure view, consistency binding for each call, merchant confirmation, and one-time expenditure evidence, generates a verification result, and sends it to the adaptive execution module. S6. The adaptive execution module atomically marks the one-time expenditure evidence as consumed and returns the settlement authorization for those that pass the verification in the verification results; for those that are sent to the replanning module when the candidate merchant is unavailable or the verification fails, another candidate merchant that meets the merchant selection predicate is selected without changing the typed task delegation.

4. The privacy-preserving payment authorization method for an adaptive intelligent agent workflow according to claim 3, characterized in that, In step S2, the delegated compilation module performs type checking on the scope draft and generates a typed task delegate, the expression of which is: in, This represents a fully typed task delegation; Indicates the first One task scope; Indicates the total number of tasks. Indicates the task scope index; This indicates the total budget approved by the user; Indicates the validity period of the entrustment; Indicates the first Service categories within a task scope; Merchant selection predicates applied to the attributes of certified merchants; Indicates the first A set of slot indexes for each task scope; express Slot index in; Indicates the first Within the scope of the task, the first Capacity of each slot; symbol It indicates that it belongs to.

5. The privacy-preserving payment authorization method for an adaptive intelligent agent workflow according to claim 4, characterized in that, The typed task delegation mentioned in step S2 includes one or more task scopes. Each task scope includes a service category identifier, a merchant selection predicate consisting of fields on the certified merchant attributes, operators, normalization rules and rejection rules, and a limited number of one-time expenditure slots belonging to the task scope. The capacity of each one-time expenditure slot is a positive minimum unit integer of payment assets, and the sum of the capacities of all one-time expenditure slots is not greater than the total budget.

6. The privacy-preserving payment authorization method for an adaptive intelligent agent workflow according to claim 5, characterized in that, The authorization credential in step S3 is a message vector signature credential that supports selective disclosure. The message vector includes a summary of the typed task delegation signed by the user, the task scope, the total budget, the validity period, and the hidden seed vector. Issuing wallets for message vectors Issuance of authorization certificate ;in, This represents the message vector that has been signed. ( ) represents the hash digest of the user approval object, { } represents the set of all tasks. Indicates authorization certificate, This represents the hidden seed vector used to derive one-time serial numbers. This represents the hidden seed vector used to derive the funding labels.

7. The privacy-preserving payment authorization method for an adaptive intelligent agent workflow according to claim 6, characterized in that, The service view and expenditure view in step S4 each include a common anchor point generated by fresh random numbers, and the expenditure view also includes one-time expenditure evidence derived based on the hidden seed vector and the selected one-time expenditure slot; Calculate the request summary of the service request, the service view summary without binding fields, and the expense view summary without binding fields. Generate a consistent binding for each call based on the common anchor, request summary, service view summary, and expense view summary, and write the consistent binding for each call to the service view and expense view respectively.

8. The privacy-preserving payment authorization method for an adaptive intelligent agent workflow according to claim 7, characterized in that, In step S4, the service view and expenditure view each include zero-knowledge proofs independently generated from the same authorization credential; the common anchor includes a first commitment and a second commitment, the first commitment being a hidden commitment to the request summary, quotation, summary of the typed task delegation, and selected task scope, and the second commitment being a hidden commitment to the summary of the typed task delegation and the summary of the selected task scope; the one-time expenditure evidence includes a serial number and a funding tag. For a selected one-time expenditure slot, the serial number is obtained by combining the result of mapping the first hidden seed and the canonical code of the selected one-time expenditure slot to the group element, and the funding tag is obtained by combining the result of mapping the second hidden seed and the canonical code to the group element. The zero-knowledge proof in the expenditure view is used to prove that the serial number and funding tag are consistent with the authorization credential and the selected one-time expenditure slot, without disclosing the first hidden seed and the second hidden seed.

9. A privacy-preserving payment authorization method for an adaptive intelligent agent workflow according to claim 8, characterized in that, The specific implementation method for the merchant server to verify the service view and sign the merchant confirmation and send it to the reconciliation wallet in step S5 is as follows: the merchant server verifies and issues the public key, the merchant attribute authentication record, and the service-side proof. and calling Consistent binding value When verification is successful, the merchant server uses the merchant's private key. right Signature, forming merchant confirmation ,in, Indicates the attributes of certified merchants The corresponding merchant signature private key, This represents the canonical coding of an ordered combination of the first commitment, the service request summary, and the consistent binding values. This indicates that the merchant has access to the call. The generated confirmation signature indicates that the merchant has observed and accepted the partial binding of the call, but does not indicate that the merchant is providing proof of service quality, price fairness, or reconciliation results.