Wallet Provider

Wallet2 can authenticate to Issuer2 with tokens from a linked Wallet Provider. You do not call a separate obtain endpoint. During credential receipt, Wallet2 activates a wallet unit when needed, sends the WIA on the token request, and attaches a key attestation when the issuer's credential metadata requires one.

Link either a Wallet Provider or a Client Attester, not both.

Prerequisites

Before you begin, ensure you have:

  1. A Wallet2 service with a holder key in its KMS. See Setup.
  2. A Wallet Provider with composition wia_ka, a PEM leaf in x5Chain, and ka.keyStorage values your issuer accepts. See Wallet Provider setup.
  3. An Issuer2 service that trusts that certificate chain. The example below is that configuration.

CURL

Endpoint: POST /v2/{target}/wallet-service-api/dependencies/add | API Reference

Example Request

curl -X 'POST' \
  'https://{orgID}.enterprise-sandbox.waltid.dev/v2/{target}/wallet-service-api/dependencies/add' \
  -H 'accept: */*' \
  -H 'Authorization: Bearer {yourToken}' \
  -H 'Content-Type: application/json' \
  -d '{
  "dependency": "waltid.tenant1.wallet-provider1"
}'

Body

dependency is the Wallet Provider target.

Wallet2 uses the wallet target as client_id (and therefore as the WIA sub). The holder key is the instance key. The same key is attested when it is also the credential proof key.

On a later receipt, Wallet2 mints again for the existing unit. If the stored instance key is not the holder key for this receipt, Wallet2 refreshes that key first. A new proof key is added to the stored attested keys, up to ka.maxAttestedKeys (default 20), keeping the newest keys. The signed key attestation lists only that proof key, and the issuer nonce when the issuer issued one. A revoked unit fails the receipt.

When the issuer's only token authentication method is attest_jwt_client_auth and it does not allow anonymous pre-authorized access, a wallet with neither a Wallet Provider nor a Client Attester returns HTTP 400 and does not call the issuer token endpoint. A provider composed as ka cannot supply that wallet instance attestation.


How Issuer2 checks the tokens

Issuer2 treats the two tokens separately.

CheckIssuer2 fieldWhen it runs
WIA signature and x5c chainclientAuthenticationConfig → client-attestation → x509-chain or x509-trust-registryToken request, when attest_jwt_client_auth is required
WIA sub matches client_idAttestation-based client authenticationSame token request
KA signature, x5c, nonce, and attested_keyskeyAttestationConfig → x509-chain or x509-trust-registryCredential request, when key_attestations_required is set on the proof type
Chain is listedx509-trust-registry and a linked Trust RegistryEach check that uses x509-trust-registry

x509-chain accepts a chain that terminates at trustedRootCertificatesPem. x509-trust-registry asks the linked registry instead: the chain must be listed for one of its expectedEntityTypes, such as WALLET_PROVIDER, by a fresh source. Load a LoTE source whose type contains EUWalletProvidersList for wallet providers. See trust registry verification. An Issuer2 links one trust registry; a second link returns 400.

x509-chain on an issuer that links a trust registry also requires the leaf certificate to resolve as TRUSTED in that registry, for the optional expectedEntityType. This keeps issuers configured before x509-trust-registry working. The implicit check and expectedEntityType are deprecated: to require a registry listing, use x509-trust-registry.

Issuer2 example

Put the provider CA in both verification methods. Set key_attestations_required.key_storage to a value the provider's ka.keyStorage emits, such as iso_18045_high.

{
  "type": "issuer2",
  "clientAuthenticationConfig": {
    "supportedMethods": [
      {
        "type": "client-attestation",
        "config": {
          "verificationMethod": {
            "type": "x509-chain",
            "trustedRootCertificatesPem": ["-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----"]
          }
        }
      }
    ]
  },
  "keyAttestationConfig": {
    "verificationMethod": {
      "type": "x509-chain",
      "trustedRootCertificatesPem": ["-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----"]
    }
  },
  "credentialConfigurations": {
    "org.iso.23220.photoid.1": {
      "format": "mso_mdoc",
      "doctype": "org.iso.23220.photoid.1",
      "scope": "org.iso.23220.photoid.1",
      "cryptographic_binding_methods_supported": ["cose_key"],
      "credential_signing_alg_values_supported": [-7],
      "proof_types_supported": {
        "jwt": {
          "proof_signing_alg_values_supported": ["ES256"],
          "key_attestations_required": {
            "key_storage": ["iso_18045_high"]
          }
        }
      }
    }
  }
}

To trust the provider through a registry listing instead of a pinned CA, replace both verificationMethod blocks with:

{
  "type": "x509-trust-registry",
  "expectedEntityTypes": ["WALLET_PROVIDER"],
  "requireAuthenticatedSource": false
}

requireAuthenticatedSource: true also requires a trust list whose signer chains to a trusted certificate.

Create the issuer with Issuer2 setup. For x509-trust-registry, also link the registry:

curl -X 'POST' \
  'https://{orgID}.enterprise-sandbox.waltid.dev/v2/{issuerTarget}/issuer-service-api/dependencies/add' \
  -H 'Authorization: Bearer {yourToken}' \
  -H 'Content-Type: application/json' \
  -d '{ "dependency": "waltid.tenant1.trust-registry1" }'

Receive the offer with the normal Wallet2 pre-authorized or authorization-code call. Wallet2 attaches the WIA and, because key_attestations_required is set, the KA.

Next steps

Last updated on November 26, 2026