1818 * Post-trip audit: 3/3 bundles verified
1919 *
2020 * Revocation demo:
21- * Alice revokes mid-trip via revocationEndpoint
21+ * Alice revokes mid-trip via PA revocation API
2222 * checkRevocation() → { revoked: true }
2323 * Service provider refuses further payments
2424 *
2525 * Key concepts demonstrated:
2626 * • Human DID as policy authority — PolicyGrant signed by Alice's key
2727 * • allowedPurposes — agent enforces merchant category filter (hotel, flight, transport)
28- * • revocationEndpoint — Alice can cancel the travel budget mid-trip
28+ * • Revocation — Alice can cancel the travel budget via the PA
2929 * • TRIP scope — budget spans multiple days and sessions
3030 * • checkRevocation utility — in-process mock endpoint for demo
3131 *
@@ -175,7 +175,6 @@ const policyGrant = createPolicyGrant({
175175 allowedAssets : [ ASSET ] ,
176176 expiresAt : EXPIRY ,
177177 allowedPurposes : ALLOWED_PURPOSES ,
178- revocationEndpoint : REVOCATION_ENDPOINT ,
179178} ) ;
180179
181180const signedPolicyGrant = createSignedPolicyGrant ( policyGrant , {
@@ -194,7 +193,6 @@ console.log(` ✓ PolicyGrant signed by Alice's DID key`);
194193console . log ( ` grantId: ${ policyGrant . grantId } ` ) ;
195194console . log ( ` issuer: ${ ALICE_DID } ` ) ;
196195console . log ( ` allowedPurposes: ${ ALLOWED_PURPOSES . join ( ", " ) } ` ) ;
197- console . log ( ` revocationEndpoint: ${ REVOCATION_ENDPOINT } ` ) ;
198196console . log ( ` budget scope: TRIP / $${ ( Number ( TRIP_BUDGET_MINOR ) / 100 ) . toFixed ( 2 ) } ` ) ;
199197console . log ( "" ) ;
200198
0 commit comments