DEV Community

Manuel Felipe Arias Pineda
Manuel Felipe Arias Pineda

Posted on

🇲🇳 Mongolia devs: Add Иргэний үнэмлэх (National ID) to the AI identity standard — Soulprint open source (30 min PR)

Every day, AI agents make decisions on our behalf — buying, sending emails, signing documents — and nobody verifies there's a real human behind them.

Soulprint solves this with Zero-Knowledge Proofs: 100% on-device, open source (MIT), free to run. soulprint.digital

🇲🇳 Mongolia's Иргэний үнэмлэх (National ID) is not in Soulprint yet. You can add it in ~30 minutes with one PR.


What Soulprint does

npx soulprint verify-me       # scan ID + face match — all local
# → SPT token (score 0-100)

# AI agent includes token in every call
# X-Soulprint: eyJ... (score: 84)

# API verifies in 3 lines:
import { requireSoulprint } from "soulprint-mcp";
server.tool("premium", requireSoulprint({ minScore: 80 }), handler);
Enter fullscreen mode Exit fullscreen mode

ZK proof: Circom 2.1.8 · Groth16 · 844 constraints · 564ms prove · 25ms verify.


🇲🇳 Mongolia: Иргэний үнэмлэх (National ID)

Mongolian ID: 2 Mongolian letters + 8 digits (Latin transcription). The letters encode birth year and gender.


The code — fill in the blanks and open a PR

// packages/verify-local/src/document/countries/MN.ts
import { CountryVerifier, DocumentResult, NumberValidation } from "../verifier.interface";

const MN: CountryVerifier = {
  countryCode:   "MN",
  countryName:   "Mongolia",
  documentTypes: ["national_id"],

  parse(ocrText: string): DocumentResult {
    // Иргэний үнэмлэх (National ID) format: 2 letters + 8 digits
    const doc_number = ocrText.match(/([A-ZА-я]{2}\d{8})/)?.[1] ?? "";
    return { valid: !!doc_number, doc_number, country: "MN" };
  },

  validate(docNumber: string): NumberValidation {
    // 2 letters + 8 digits
    return { valid: /^[A-Za-zА-я]{2}\d{8}$/.test(docNumber) };
  },
};

export default MN;
Enter fullscreen mode Exit fullscreen mode

Then add one line in registry.ts:

import MN from "./countries/MN";
// add to registry map: "MN": MN,
Enter fullscreen mode Exit fullscreen mode

Open a PR → your country joins the global AI identity standard. 🌍


Why contribute?

  • Mongolia joins the AI age — local developers can verify their AI agents
  • Permanent git credit — you're in the history forever
  • Decentralized identity — no Big Tech as gatekeeper
  • Fast — 30 min partial, 2-3h full with MRZ

Resources

One PR. One country. The future of AI identity is open source.

Top comments (0)