Skip to content

Commit 124010d

Browse files
naoryNAOR YUVAL
andauthored
chore: remove revocationEndpoint from examples and update docs for SECOP (#52)
Made-with: Cursor Co-authored-by: NAOR YUVAL <naoryuval@NAORs-MacBook-Air.local>
1 parent 43d9fd5 commit 124010d

4 files changed

Lines changed: 4 additions & 8 deletions

File tree

docs/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The example generates the MPCP authorization chain:
3737

3838
| File | Artifact | Description |
3939
|------|----------|-------------|
40-
| policy-grant.json | PolicyGrant | Permission envelope (allowedRails, policyHash, expiresAt) |
40+
| policy-grant.json | PolicyGrant | Permission envelope (allowedRails, allowedPurposes, policyHash, expiresAt, budgetMinor) |
4141
| budget-auth.json | BudgetAuthorization | Unsigned spending envelope |
4242
| signed-budget-auth.json | SignedBudgetAuthorization (SBA) | Signed budget for this payment (maxAmountMinor) |
4343
| settlement.json | Settlement | Executed settlement record (via Trust Gateway → XRPL) |

examples/human-agent-trip/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Human (DID) → PolicyGrant → AI Agent → SBA → Trust Gatew
2121
| Feature | Demo behavior |
2222
|---------|--------------|
2323
| `allowedPurposes` | Agent enforces category filter — dining request skipped |
24-
| `revocationEndpoint` | Alice cancels mid-trip; `checkRevocation()` returns `{ revoked: true }` |
24+
| Revocation | Alice cancels mid-trip; `checkRevocation()` returns `{ revoked: true }` |
2525
| TRIP scope | Single SBA covers all 3 days, agent tracks cumulative spend |
2626
| Budget exceeded | $300 hotel attempt rejected ($550 + $300 > $800) |
2727
| Stateless verifier | Merchant verifies chain without calling Alice's wallet |
@@ -44,7 +44,6 @@ Human (DID) → PolicyGrant → AI Agent → SBA → Trust Gatew
4444
```json
4545
{
4646
"allowedPurposes": ["travel:hotel", "travel:flight", "travel:transport"],
47-
"revocationEndpoint": "https://wallet.alice.example.com/revoke",
4847
"issuer": "did:key:z6Mk..."
4948
}
5049
```

examples/human-agent-trip/demo-human-agent-trip.mjs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
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

181180
const signedPolicyGrant = createSignedPolicyGrant(policyGrant, {
@@ -194,7 +193,6 @@ console.log(` ✓ PolicyGrant signed by Alice's DID key`);
194193
console.log(` grantId: ${policyGrant.grantId}`);
195194
console.log(` issuer: ${ALICE_DID}`);
196195
console.log(` allowedPurposes: ${ALLOWED_PURPOSES.join(", ")}`);
197-
console.log(` revocationEndpoint: ${REVOCATION_ENDPOINT}`);
198196
console.log(` budget scope: TRIP / $${(Number(TRIP_BUDGET_MINOR) / 100).toFixed(2)}`);
199197
console.log("");
200198

examples/human-agent-trip/travel-policy.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"travel:flight",
1515
"travel:transport"
1616
],
17-
"revocationEndpoint": "https://wallet.alice.example.com/revoke",
1817
"allowedRails": ["xrpl"],
1918
"allowedAssets": [
2019
{ "kind": "IOU", "currency": "RLUSD", "issuer": "rIssuer" }

0 commit comments

Comments
 (0)