10.1.4.2.3. Wallet Unit Attestation Issuance¶
This section describes how the Wallet Provider issues a Wallet Unit Attestations.
Fig. 10.5 Sequence Diagram for Wallet Unit Attestations acquisition.¶
Step 1: The User initiates a new operation that necessitates the acquisition of a Wallet Unit Attestation.
Steps 2-3: The Wallet Instance MUST:
Verify the existence of Cryptographic Hardware Keys. If none exist, Wallet Instance re-initialization is required (WP_140a).
Generate one or batch of asymmetric credential key pair(s) to be attested in Wallet Unit Attestation (
key_pub_1,key_priv_1, ...,key_pub_n,key_priv_n).Verify the Wallet Provider's federation membership and retrieve its metadata (WP_023).
Steps 4-6 (Nonce Retrieval): The Wallet Instance requests a nonce value from the Wallet Solution Nonce Endpoint of the Wallet Provider Backend (WP_140b). The nonce is required to be unpredictable and serves as the main defense against replay attacks.
The nonce MUST ensure single-use within a predetermined time frame.
Upon a successful request, the Wallet Provider generates and returns the nonce value to the Wallet Instance.
Step 7: The Wallet Instance performs the following actions (WP_140c):
Creates
client_data, a JSON object that includes thenonceand ajwk_thumbprintsfield containing a JSON array of the JWK thumbprints corresponding to the public keys(key_pub_1,...,key_pub_n).Computes
client_data_hashby applying theSHA256algorithm to theclient_data.
Below is a non-normative example of the client_data JSON object.
{
"nonce": "i4ThI2Jhbu81i8mqyWEuDG5t",
"jwk_thumbprints": ["vbeXJksM45xphtANnCiG6mCyuU4jfGNzopGuKvogg9c"]
}
Steps 8-11: The Wallet Instance:
produces an
hardware_signaturevalue by signing theclient_data_hashwith the Wallet Hardware's private key, serving as a proof of possession for the Cryptographic Hardware Keys (WP_140d).requests the Device Integrity Service to create an
integrity_assertionvalue linked to theclient_data_hash.receives a signed
integrity_assertionvalue for Wallet Instance from the Device Integrity Service, authenticated by the OEM (WP_140e).
Note
integrity_assertion is a custom payload generated by Device Integrity Service, signed by device OEM and encoded in base64 to have uniformity between different devices.
Note
In the case of Android OS, the flow continues based on Steps 12-15, otherwise for the case of iOS, the flow continues based on Steps 16-19.
Steps 12-15: The Wallet Instance:
requests the Key Attestation API to create an
key_attestationvalue for eachclient_data_hashper eachkey_pub.receives a signed
key_attestationvalue from the Key Attestation API, authenticated by the OEM.generate
keys_to_attestvalue by signing thekey_attestationusing the private key of the initially generated credential key pair (priv_key).
Steps 16-19: The Wallet Instance:
requests the Device Integrity Service to create an
integrity_assertionvalue for eachclient_data_hashper eachkey_pub.receives a signed
integrity_assertionvalue from the Device Integrity Service, authenticated by the OEM.generate
keys_to_attestvalue by signing theintegrity_assertionthat is obtained for the Wallet Unit Attestation using the private key of the initially generated credential key pair (priv_key).
Steps 20-21 (Wallet Unit Attestation Issuance Request): The Wallet Instance:
Constructs the Wallet Unit Attestation Request in the form of a JWT. This JWT includes the
integrity_assertion,keys_to_attest,hardware_signature,nonce,hardware_key_tag,cnf,platform,wallet_solution_id,wallet_solution_versionand other configuration related parameters (see Table of the Wallet Unit Attestation Request Body) and is signed using the private key that it is public key illustrated in the request throughcnf(first element ofkeys_to_attest) (WP_140–141).Submits the Wallet Unit Attestation Request to the Wallet Unit Attestation Issuance Endpoint of the Wallet Provider Backend.
Note
keys_to_attest contains a key_attestation object in case of Android and integrity_assertion in case of iOS.
The Wallet Instance MUST send the signed Wallet Unit Attestation Request JWT as an assertion parameter in the body of an HTTP request to the Wallet Provider's Wallet Unit Attestation Issuance Endpoint (WP_142).
Steps 22-27: The Wallet Provider Backend evaluates the Wallet unit Attestation Request and MUST perform the following checks (WP_143):
The request MUST include all required HTTP header parameters as defined in Wallet Unit Attestation Issuance Request (WP_143a).
The signature of the Wallet Unit Attestation Request MUST be valid and verifiable using the provided
jwk(WP_143b).The
noncevalue MUST have been generated by the Wallet Provider and not previously used (WP_143c).A valid and currently registered Wallet Instance associated with the provided
hardware_key_tagMUST exist (WP_143d).The signature of the
keys_to_attestparameter Must be first validated using the providedjwkand its value (key_attestationin case of Android orintegrity_assertionin case of iOS) MUST be validated according to the device manufacturer's guidelines.The
client_dataMUST be reconstructed using thenonceand their respective thumbprint JWKs[key_pub_1,...,key_pub_n]. Thehardware_signatureparameter value is then validated using the registered Cryptographic Hardware Key's public key associated with the Wallet Instance (WP_143e).The
integrity_assertionMUST be validated according to the device manufacturer's guidelines. The specific checks performed by the Wallet Provider are detailed in the operating system manufacturer's documentation (WP_143f).The device in use MUST be free of known security flaws and meet the minimum security requirements defined by the Wallet Provider.
The URL in the
issparameter MUST match the Wallet Provider's URL identifier (WP_143g).
Upon successful completion of all checks, the Wallet Provider issues a Wallet Unit Attestation valid for at least one month.
Step 28 (Wallet Unit Attestation Issuance Response): Upon successful completion, the Wallet Provider MUST return a confirmation response using status code 200 and Content-Type application/json, containing the Wallet Unit Attestations signed by the Wallet Provider in the JWT format. The Wallet Instance will then perform security and integrity verification of the Wallet Unit Attestations received in addition to trust verification of its Issuer (WP_030–031).
Below is a non-normative example of the response.
HTTP/1.1 200 OK
Content-Type: application/json
{
"wallet_unit_attestation": "omppc3N1ZXJBdXRohEOhASaiBE...dElEAnFlbGVtZW50SWRl"
}