You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+54-3Lines changed: 54 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,12 +139,63 @@ verifyReceipt(receipt, {
139
139
140
140
```ts
141
141
verifyReceipt(receipt, {
142
-
ens: true,
143
-
rpcUrl: "https://mainnet.infura.io/v3/..."
142
+
ens: {
143
+
name: "runtime.commandlayer.eth",
144
+
rpcUrl: "https://mainnet.infura.io/v3/..."
145
+
}
146
+
});
147
+
```
148
+
149
+
ENS verification resolves signer material using this TXT record chain:
150
+
151
+
- Agent/issuer ENS name TXT `cl.receipt.signer` => signer ENS name
152
+
- Signer ENS name TXT `cl.sig.pub` and `cl.sig.kid` => Ed25519 public key metadata
153
+
154
+
To verify receipts issued by the runtime signer, set `ens.name` to the issuer/agent name that contains `cl.receipt.signer`. If using `runtime.commandlayer.eth` as the agent name, set `cl.receipt.signer` on `runtime.commandlayer.eth` to point to itself.
This resolves the signer’s public key from ENS (`cl.receipt.pubkey_*` TXT record).
182
+
### ENS Setup
183
+
184
+
For `runtime.commandlayer.eth` as the signer identity:
185
+
186
+
- Existing TXT records on `runtime.commandlayer.eth`:
187
+
-`cl.sig.kid = v1`
188
+
-`cl.sig.pub = ed25519:CEHI9g4...`
189
+
- Add one additional TXT record on `runtime.commandlayer.eth`:
190
+
-`cl.receipt.signer = runtime.commandlayer.eth`
191
+
192
+
This makes `runtime.commandlayer.eth` self-describing for ENS verification, so the SDK can resolve `cl.receipt.signer` and then fetch `cl.sig.pub`/`cl.sig.kid` from the same name.
193
+
194
+
Optional future pattern:
195
+
196
+
- If each issuer/agent ENS name (for example, `summarizeagent.eth`) should verify through its own lookup, add:
197
+
-`cl.receipt.signer = runtime.commandlayer.eth`
198
+
on each issuer/agent ENS name, while keeping signing keys only on `runtime.commandlayer.eth`.
0 commit comments