{
  "id": "2026/3160",
  "url": "https://opencryptology.org/2026/3160",
  "original_url": "https://eprint.iacr.org/2026/3160",
  "title": "Loki: Updatable Anonymous Credentials from Dynamic zkSNARKs",
  "authors": [
    "Zhongjing Wei",
    "Charalampos Papamanthou",
    "Alin Tomescu",
    "Yupeng Zhang"
  ],
  "affiliations": null,
  "abstract": "Anonymous credentials enable privacy-preserving authentication by allowing users to prove possession of valid credentials without revealing their sensitive attributes. This area has attracted growing interest in recent years, with schemes building on existing identity infrastructure such as OpenID Connect (OIDC). For example, Aptos Keyless and Sui’s zkLogin use zkSNARKs to prove that JSON Web Tokens (JWTs) are valid and satisfy authentication predicates, enabling blockchain transaction authorization without revealing users’ identities. However, in most existing schemes, updating a JWT or modifying an authorization policy requires regenerating the zkSNARK proof from scratch, imposing substantial computational overhead on users.\n\nTo address this issue, in this paper we introduce Loki, a scheme for efficiently updating anonymous credential proofs using dynamic zkSNARKs, which support sublinear update time for small witness changes. Our construction makes two technical contributions. First, we design a randomness-free JWT parsing scheme based on finite automata that preserves most witness values for unchanged or slightly modified payloads. This replaces randomized substring tests in existing schemes, whose Fiat–Shamir challenges cause widespread witness changes. Second, we accelerate the update algorithm of Dynark, a dynamic zkSNARK built on Groth16, by exploiting fixed update positions and the fact that most updates change witness values by 1.\n\n\nWe have fully implemented Loki and evaluated it in two application scenarios. For a fixed JWT, updating the proof for a new authentication policy takes only 0.8--1.3 ms, achieving a 1,273--2,041x speedup over proof generation from scratch. For a JWT reissuance with unchanged user attributes but updated issuance and expiration times and a new digital signature, updating the proof takes 205 ms. This yields a 8.2x speedup over proof generation from scratch and a 239x speedup over proof updates using Dynark's reference implementation.",
  "category": "Applications",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Loki: Updatable Anonymous Credentials from Dynamic zkSNARKs” by Zhongjing Wei, Charalampos Papamanthou, Alin Tomescu, Yupeng Zhang, Cryptology ePrint Archive, Paper 2026/3160, https://eprint.iacr.org/2026/3160. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2026-12-01T19:10:15Z",
    "updated": "2026-12-01T19:10:15Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": null,
  "upload_url": "https://opencryptology.org/2026/3160#upload",
  "api_upload_url": "https://opencryptology.org/api/upload/2026/3160",
  "missing_pdf": "No PDF here yet. A person can download it from https://eprint.iacr.org/2026/3160 and upload it at https://opencryptology.org/2026/3160#upload so everyone can get it.",
  "versions": [],
  "other_sources": [],
  "bibtex": "@misc{cryptoeprint:2026/3160,\n      author = {Zhongjing Wei and Charalampos Papamanthou and Alin Tomescu and Yupeng Zhang},\n      title = {Loki: Updatable Anonymous Credentials from Dynamic zkSNARKs},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2026/3160},\n      year = {2026},\n      url = {https://eprint.iacr.org/2026/3160}\n}"
}
