Skip to content

Commit

Permalink
Add nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
grausof committed Jul 4, 2023
1 parent 6734c69 commit ecc58e8
Showing 1 changed file with 31 additions and 30 deletions.
61 changes: 31 additions & 30 deletions docs/en/wallet-instance-attestation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -359,35 +359,35 @@ Header

Payload
^^^^^^^
+---------+---------------------------------------+
| **key** | **value** |
+---------+---------------------------------------+
|| iss || The thumbprint |
|| || of the JWK of the Wallet Instance |
|| || for which the attestation is |
|| || being requested. |
+---------+---------------------------------------+
|| sub || The public url of the Wallet |
|| || Provider |
+---------+---------------------------------------+
|| jti || Unique identifier of the request. |
|| || This parameter will be used to |
|| || avoid replay attacks. |
+---------+---------------------------------------+
|| type || String. It must be set to |
|| || ``WalletInstanceAttestationRequest`` |
+---------+---------------------------------------+
|| cnf || This parameter will contain the |
|| || configuration of the Wallet |
|| || Instance in JSON format. Among |
|| || the mandatory attributes there |
|| || will be the jwk parameter |
|| || containing the public key of the |
|| || Wallet Instance. It will also |
|| || contain all the information |
|| || useful for the Wallet Provider |
|| || to verify that the app is genuine. |
+---------+---------------------------------------+
+---------+------------------------------------------+
| **key** | **value** |
+---------+------------------------------------------+
|| iss || The thumbprint |
|| || of the JWK of the Wallet Instance |
|| || for which the attestation is |
|| || being requested. |
+---------+------------------------------------------+
|| sub || The public url of the Wallet |
|| || Provider |
+---------+------------------------------------------+
|| jti || Unique identifier of the request. |
|| || This parameter will be used to |
|| || avoid replay attacks. |
+---------+------------------------------------------+
|| type || String. It must be set to |
|| || ``WalletInstanceAttestationRequest`` |
+---------+------------------------------------------+
|| cnf || This parameter will contain the |
|| || configuration of the Wallet |
|| || Instance in JSON format. Among |
|| || the mandatory attributes there |
|| || will be the jwk parameter |
|| || containing the public key of the |
|| || Wallet Instance and nonce. It will also |
|| || contain all the information |
|| || useful for the Wallet Provider |
|| || to verify that the app is genuine. |
+---------+------------------------------------------+

Below a non-normative example of the Wallet Instance Attestation
request where the decoded JWS headers and payload are separated by a comma:
Expand All @@ -412,7 +412,8 @@ request where the decoded JWS headers and payload are separated by a comma:
"x": "4HNptI-xr2pjyRJKGMnz4WmdnQD_uJSq4R95Nj98b44",
"y": "LIZnSB39vFJhYgS3k7jXE4r3-CoGFQwZtPBIRqpNlrg",
"kid": "vbeXJksM45xphtANnCiG6mCyuU4jfGNzopGuKvogg9c"
}
},
"nonce": "....."
},
"iat": 1686645115,
"exp": 1686652315
Expand Down

0 comments on commit ecc58e8

Please sign in to comment.