Setup

This guide creates a Wallet Provider that Wallet2 can call during credential receipt. The signing key and the leaf certificate in x5Chain must be the same key. Wallet2 recovers the key-attestation verification key from the first PEM certificate in that chain.

Prerequisites

Before you begin, ensure you have:

  1. The wallet-provider feature enabled. See Features.
  2. A KMS and a signing key whose public key matches the leaf certificate you will publish in x5Chain.
  3. When status lists allocate a new index per attestation, a Credential Status Service with capacity.autoRollover set. eudi_ts3 also needs one status configuration for client_status and another for key_storage_status.

Create the service

CURL

Endpoint: POST /v1/{target}/resource-api/services/create | API Reference

Example Request

curl -X 'POST' \
  'https://{orgID}.enterprise-sandbox.waltid.dev/v1/{target}/resource-api/services/create' \
  -H 'accept: */*' \
  -H 'Authorization: Bearer {yourToken}' \
  -H 'Content-Type: application/json' \
  -d '{
  "type": "wallet-provider",
  "signingKeyId": "waltid.tenant1.kms1.wallet-provider-key",
  "issuerIdentifier": "https://wallet-provider.example",
  "profile": "openid4vci",
  "composition": "wia_ka",
  "x5Chain": [
    {
      "type": "pem-encoded-x509-certificate-descriptor",
      "pemEncodedCertificate": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----"
    }
  ],
  "wia": {
    "ttlSeconds": 3600,
    "walletName": "Example Wallet"
  },
  "ka": {
    "ttlSeconds": 3600,
    "keyStorage": ["iso_18045_high"]
  }
}'

Path Parameters

  • orgID — Your organization's base URL.
  • target — {organizationID}.{tenantID}.{walletProviderID}, for example waltid.tenant1.wallet-provider1.

Body Parameters

  • type: String — wallet-provider.
  • signingKeyId: resourceIdentifier — KMS key that signs both JWTs. Its public key must match the leaf certificate.
  • x5Chain: Array — Leaf-first certificates. The first entry is the leaf. Creation fails when that leaf's public key is not signingKeyId. Wallet2 verifies key attestations with this leaf, including when it is an x509-store reference.
  • issuerIdentifier: String — Optional iss value. openid4vci emits it when set. eudi_ts3 does not emit iss.
  • profile: String — openid4vci or eudi_ts3.
  • composition: String — wia_ka, wia, or ka. Include wia exactly when wia is present, and ka exactly when ka is present.
  • wia.ttlSeconds: Long — WIA lifetime. Under 24 hours for eudi_ts3.
  • wia.allowedVersions: Array of strings — Optional. Leave it empty. Wallet2 and the mobile client omit wallet_version, which an empty list accepts. A non-empty list rejects those clients. eudi_ts3 requires a non-empty list; the current clients do not support that profile.
  • ka.keyStorage: Array of strings — Assurance values copied into each key attestation. Issuer2 metadata should accept at least one of these values.
  • ka.maxAttestedKeys: Integer — Optional. How many proof keys one unit may store. Default 20. A larger attested_keys array is rejected.
  • activationTrust: String — Optional. The only accepted value is unverified-demo.

Response Codes

  • 201 — Service created.
  • 400 — Configuration does not match the selected profile or composition.

The signing key's KMS is detected from signingKeyId. You can also attach it explicitly:

CURL

Endpoint: POST /v2/{target}/wallet-provider-api/dependencies/add

Example Request

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

Body

dependency is the KMS, credential-status, or x509-store target this provider may call.

🎉 You've created a Wallet Provider. Activate a wallet unit, or let Wallet2 do that during issuance.

Last updated on November 26, 2026