diff --git a/STYLE.md b/STYLE.md index 6c5e8595..dfc55be2 100644 --- a/STYLE.md +++ b/STYLE.md @@ -176,7 +176,7 @@ implicitly version 1: ```json { - "chainId": 42431, + "chainId": 4217, "feePayer": true } ``` @@ -187,7 +187,7 @@ a `version` field starting at `2`: ```json { "version": 2, - "chainId": 42431, + "chainId": 4217, "feePayer": true } ``` diff --git a/specs/intents/draft-payment-intent-charge-00.md b/specs/intents/draft-payment-intent-charge-00.md index 16907c8b..935fd475 100644 --- a/specs/intents/draft-payment-intent-charge-00.md +++ b/specs/intents/draft-payment-intent-charge-00.md @@ -195,7 +195,7 @@ shared fields to users. "currency": "0x20c0000000000000000000000000000000000000", "recipient": "0x742d35Cc6634C0532925a3b844Bc9e7595f8fE00", "methodDetails": { - "chainId": 42431, + "chainId": 4217, "feePayer": true } } diff --git a/specs/methods/tempo/draft-tempo-charge-00.md b/specs/methods/tempo/draft-tempo-charge-00.md index a4782816..3774c0ec 100644 --- a/specs/methods/tempo/draft-tempo-charge-00.md +++ b/specs/methods/tempo/draft-tempo-charge-00.md @@ -201,7 +201,7 @@ For zero-amount charges, mode negotiation does not apply. Clients use a "currency": "0x20c0000000000000000000000000000000000000", "recipient": "0x742d35Cc6634C0532925a3b844Bc9e7595f8fE00", "methodDetails": { - "chainId": 42431, + "chainId": 4217, "feePayer": true, "supportedModes": ["pull"] } @@ -281,7 +281,7 @@ required payment effects are present regardless of call ordering. "currency": "0x20c0000000000000000000000000000000000000", "recipient": "0x742d35Cc6634C0532925a3b844Bc9e7595f8fE00", "methodDetails": { - "chainId": 42431, + "chainId": 4217, "feePayer": true, "splits": [ { @@ -333,7 +333,7 @@ JSON object per {{I-D.httpauth-payment}}. |-------|------|----------|-------------| | `challenge` | object | REQUIRED | Echo of the challenge from the server | | `payload` | object | REQUIRED | Tempo-specific payload object | -| `source` | string | OPTIONAL | Payer identifier as a DID (e.g., `did:pkh:eip155:42431:0x...`) | +| `source` | string | OPTIONAL | Payer identifier as a DID (e.g., `did:pkh:eip155:4217:0x...`) | The `source` field, if present, SHOULD use the `did:pkh` method with the chain ID applicable to the challenge and the payer's Ethereum address. @@ -369,7 +369,7 @@ present, the transaction MUST include transfers for each split entry "signature": "0x76f901...signed transaction bytes...", "type": "transaction" }, - "source": "did:pkh:eip155:42431:0x1234567890abcdef1234567890abcdef12345678" + "source": "did:pkh:eip155:4217:0x1234567890abcdef1234567890abcdef12345678" } ~~~ @@ -401,7 +401,7 @@ mode. "hash": "0x1a2b3c4d5e6f7890abcdef1234567890abcdef1234567890abcdef1234567890", "type": "hash" }, - "source": "did:pkh:eip155:42431:0x1234567890abcdef1234567890abcdef12345678" + "source": "did:pkh:eip155:4217:0x1234567890abcdef1234567890abcdef12345678" } ~~~ @@ -484,7 +484,7 @@ Upon successful verification, servers return a receipt per "signature": "0xabcdef1234567890...", "type": "proof" }, - "source": "did:pkh:eip155:42431:0x1234567890abcdef1234567890abcdef12345678" + "source": "did:pkh:eip155:4217:0x1234567890abcdef1234567890abcdef12345678" } ~~~ @@ -773,7 +773,7 @@ WWW-Authenticate: Payment id="kM9xPqWvT2nJrHsY4aDfEb", realm="api.example.com", method="tempo", intent="charge", - request="eyJhbW91bnQiOiIxMDAwMDAwIiwiY3VycmVuY3kiOiIweDIwYzAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJyZWNpcGllbnQiOiIweDc0MmQzNUNjNjYzNEMwNTMyOTI1YTNiODQ0QmM5ZTc1OTVmOGZFMDAiLCJtZXRob2REZXRhaWxzIjp7ImNoYWluSWQiOjQyNDMxLCJzdXBwb3J0ZWRNb2RlcyI6WyJwdWxsIl19fQ", + request="eyJhbW91bnQiOiIxMDAwMDAwIiwiY3VycmVuY3kiOiIweDIwYzAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJyZWNpcGllbnQiOiIweDc0MmQzNUNjNjYzNEMwNTMyOTI1YTNiODQ0QmM5ZTc1OTVmOGZFMDAiLCJtZXRob2REZXRhaWxzIjp7ImNoYWluSWQiOjQyMTcsInN1cHBvcnRlZE1vZGVzIjpbInB1bGwiXX19", expires="2025-01-06T12:00:00Z" Cache-Control: no-store ~~~ @@ -786,7 +786,7 @@ The `request` decodes to: "currency": "0x20c0000000000000000000000000000000000000", "recipient": "0x742d35Cc6634C0532925a3b844Bc9e7595f8fE00", "methodDetails": { - "chainId": 42431, + "chainId": 4217, "supportedModes": ["pull"] } } @@ -799,7 +799,7 @@ This requests a transfer of 1.00 pathUSD (1000000 base units). ~~~http GET /api/resource HTTP/1.1 Host: api.example.com -Authorization: Payment eyJjaGFsbGVuZ2UiOnsiaWQiOiJrTTl4UHFXdlQybkpySHNZNGFEZkViIn0sInBheWxvYWQiOnsic2lnbmF0dXJlIjoiMHg3NmY5MDEuLi4iLCJ0eXBlIjoidHJhbnNhY3Rpb24ifSwic291cmNlIjoiZGlkOnBraDplaXAxNTU6NDI0MzE6MHgxMjM0NTY3ODkwYWJjZGVmMTIzNDU2Nzg5MGFiY2RlZjEyMzQ1Njc4In0 +Authorization: Payment eyJjaGFsbGVuZ2UiOnsiaWQiOiJrTTl4UHFXdlQybkpySHNZNGFEZkViIn0sInBheWxvYWQiOnsic2lnbmF0dXJlIjoiMHg3NmY5MDEuLi4iLCJ0eXBlIjoidHJhbnNhY3Rpb24ifSwic291cmNlIjoiZGlkOnBraDplaXAxNTU6NDIxNzoweDEyMzQ1Njc4OTBhYmNkZWYxMjM0NTY3ODkwYWJjZGVmMTIzNDU2NzgifQ ~~~ # Split Payment Example @@ -812,7 +812,7 @@ WWW-Authenticate: Payment id="sP1itPaym3ntEx4mple", realm="marketplace.example.com", method="tempo", intent="charge", - request="eyJhbW91bnQiOiIxMDAwMDAwIiwiY3VycmVuY3kiOiIweDIwYzAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJtZXRob2REZXRhaWxzIjp7ImNoYWluSWQiOjQyNDMxLCJmZWVQYXllciI6dHJ1ZSwic3BsaXRzIjpbeyJhbW91bnQiOiI1MDAwMCIsInJlY2lwaWVudCI6IjB4QTFCMkMzRDRFNUY2QTFCMkMzRDRFNUY2QTFCMkMzRDRFNUY2QTFCMiJ9XX0sInJlY2lwaWVudCI6IjB4NzQyZDM1Q2M2NjM0QzA1MzI5MjVhM2I4NDRCYzllNzU5NWY4ZkUwMCJ9", + request="eyJhbW91bnQiOiIxMDAwMDAwIiwiY3VycmVuY3kiOiIweDIwYzAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJtZXRob2REZXRhaWxzIjp7ImNoYWluSWQiOjQyMTcsImZlZVBheWVyIjp0cnVlLCJzcGxpdHMiOlt7ImFtb3VudCI6IjUwMDAwIiwicmVjaXBpZW50IjoiMHhBMUIyQzNENEU1RjZBMUIyQzNENEU1RjZBMUIyQzNENEU1RjZBMUIyIn1dfSwicmVjaXBpZW50IjoiMHg3NDJkMzVDYzY2MzRDMDUzMjkyNWEzYjg0NEJjOWU3NTk1ZjhmRTAwIn0", expires="2025-06-01T12:00:00Z" Cache-Control: no-store ~~~ @@ -825,7 +825,7 @@ The `request` decodes to: "currency": "0x20c0000000000000000000000000000000000000", "recipient": "0x742d35Cc6634C0532925a3b844Bc9e7595f8fE00", "methodDetails": { - "chainId": 42431, + "chainId": 4217, "feePayer": true, "splits": [ { diff --git a/specs/methods/tempo/draft-tempo-session-00.md b/specs/methods/tempo/draft-tempo-session-00.md index f618c461..949be673 100644 --- a/specs/methods/tempo/draft-tempo-session-00.md +++ b/specs/methods/tempo/draft-tempo-session-00.md @@ -247,7 +247,7 @@ JSON to avoid precision loss with large numbers: |-------|----------|---------| | `cumulativeAmount` | Decimal string | `"250000"` | | `requestedAt` | Decimal string (Unix seconds) | `"1736165100"` | -| `chainId` | JSON number | `42431` | +| `chainId` | JSON number | `4217` | The `chainId` uses JSON number encoding as values are small enough to avoid precision issues. @@ -540,7 +540,7 @@ promote common fields to the core schema. | `methodDetails.channelId` | string | OPTIONAL | Channel ID if resuming an existing channel | | `methodDetails.minVoucherDelta` | string | OPTIONAL | Minimum amount increase between vouchers (server policy hint) | | `methodDetails.feePayer` | boolean | OPTIONAL | If `true`, server pays transaction fees (default: `false`) | -| `methodDetails.chainId` | number | OPTIONAL | Tempo chain ID (default: 42431) | +| `methodDetails.chainId` | number | OPTIONAL | Tempo chain ID (default: 4217) | Channel reuse is OPTIONAL. Servers MAY include `channelId` to suggest resuming an existing channel: @@ -567,7 +567,7 @@ mappings to suggest channel reuse, reducing on-chain transactions. "recipient": "0x742d35cc6634c0532925a3b844bc9e7595f8fe00", "methodDetails": { "escrowContract": "0x1234567890abcdef1234567890abcdef12345678", - "chainId": 42431 + "chainId": 4217 } } ~~~ @@ -586,7 +586,7 @@ deposit of 10.00 tokens. The client generates a random salt locally. "methodDetails": { "escrowContract": "0x1234567890abcdef1234567890abcdef12345678", "channelId": "0x6d0f4fdf1f2f6a1f6c1b0fbd6a7d5c2c0a8d3d7b1f6a9c1b3e2d4a5b6c7d8e9f", - "chainId": 42431 + "chainId": 4217 } } ~~~ @@ -943,7 +943,7 @@ The `domain` object MUST contain: |-------|------|-------| | `name` | string | `"Tempo Stream Channel"` | | `version` | string | `"1"` | -| `chainId` | number | Tempo chain ID (e.g., `42431`) | +| `chainId` | number | Tempo chain ID (e.g., `4217`) | | `verifyingContract` | string | Escrow contract address from challenge | ## Signing Procedure @@ -1646,7 +1646,7 @@ The `request` decodes to: "recipient": "0x742d35cc6634c0532925a3b844bc9e7595f8fe00", "methodDetails": { "escrowContract": "0x9d136eEa063eDE5418A6BC7bEafF009bBb6CFa70", - "chainId": 42431 + "chainId": 4217 } } ~~~