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
* @descriptionWallet address of the client instance that is making this request.
170
+
* @descriptionClient identification for grant requests.
171
171
*
172
172
* When sending a non-continuation request to the AS, the client instance MUST identify itself by including the client field of the request and by signing the request.
173
173
*
174
+
* Can be either:
175
+
* - A wallet address string (backwards compatible format)
176
+
* - An object with either `jwk` (for directed identity) or `walletAddress` (mutually exclusive)
177
+
*
178
+
* When using a wallet address string or the `walletAddress` property:
174
179
* A JSON Web Key Set document, including the public key that the client instance will use to protect this request and any continuation requests at the AS and any user-facing information about the client instance used in interactions, MUST be available at the wallet address + `/jwks.json` url.
175
180
*
181
+
* When using the `jwk` property (directed identity approach):
182
+
* The client instance provides its public key directly in the request, eliminating the need for the AS to fetch it from a wallet address. This approach enhances privacy by not requiring the client to expose a persistent wallet address identifier. The `jwk` property can only be used for non-interactive grant requests (i.e.: incoming payments).
183
+
*
176
184
* If sending a grant initiation request that requires RO interaction, the wallet address MUST serve necessary client display information.
177
185
*/
178
-
client: string;
186
+
client: string|{
187
+
/**
188
+
* Format: uri
189
+
* @description Wallet address of the client instance that is making this request.
190
+
*/
191
+
walletAddress: string;
192
+
}|{
193
+
jwk: components["schemas"]["json-web-key"];
194
+
};
179
195
/**
180
196
* continue
181
197
* @description If the AS determines that the request can be continued with additional requests, it responds with the continue field.
* @description A JWK representation of an Ed25519 Public Key
329
+
*/
330
+
"json-web-key": {
331
+
kid: string;
332
+
/**
333
+
* @description The cryptographic algorithm family used with the key. The only allowed value is `EdDSA`.
334
+
* @enum {string}
335
+
*/
336
+
alg: "EdDSA";
337
+
/** @enum {string} */
338
+
use?: "sig";
339
+
/** @enum {string} */
340
+
kty: "OKP";
341
+
/**
342
+
* @description The cryptographic curve used with the key. This parameter identifies the elliptic curve (for EC keys) or the Edwards curve (for OKP keys). The only allowed value is `Ed25519`.
343
+
* @enum {string}
344
+
*/
345
+
crv: "Ed25519";
346
+
/** @description The base64 url-encoded public key. */
0 commit comments