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:
- The
wallet-providerfeature enabled. See Features. - A KMS and a signing key whose public key matches the leaf certificate you will publish in
x5Chain. - When status lists allocate a new index per attestation, a Credential Status Service with
capacity.autoRolloverset.eudi_ts3also needs one status configuration forclient_statusand another forkey_storage_status.
Create the service
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 examplewaltid.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 notsigningKeyId. Wallet2 verifies key attestations with this leaf, including when it is an x509-store reference.issuerIdentifier: String — Optionalissvalue.openid4vciemits it when set.eudi_ts3does not emitiss.profile: String —openid4vcioreudi_ts3.composition: String —wia_ka,wia, orka. Includewiaexactly whenwiais present, andkaexactly whenkais present.wia.ttlSeconds: Long — WIA lifetime. Under 24 hours foreudi_ts3.wia.allowedVersions: Array of strings — Optional. Leave it empty. Wallet2 and the mobile client omitwallet_version, which an empty list accepts. A non-empty list rejects those clients.eudi_ts3requires 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. Default20. A largerattested_keysarray is rejected.activationTrust: String — Optional. The only accepted value isunverified-demo.
Response Codes
201— Service created.400— Configuration does not match the selected profile or composition.
Link the KMS
The signing key's KMS is detected from signingKeyId. You can also attach it explicitly:
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.
