🇨🇷 Costa Rica devs: Add Cédula de Identidad to the AI identity standard — Soulprint open source (30 min PR)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MyrinNew
    Senior Member
    • Feb 2024
    • 5175

    #1

    🇨🇷 Costa Rica devs: Add Cédula de Identidad 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


    🇨🇷 Costa Rica's Cédula de Identidad 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);







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





    🇨🇷 Costa Rica: Cédula de Identidad

    Cédula: 9 dígitos (1-XXXX-XXXX).





    The code — fill in the blanks and open a PR





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

    const CR: CountryVerifier = {
    countryCode: "CR",
    countryName: "Costa Rica",
    documentTypes: ["cedula"],

    parse(ocrText: string): DocumentResult {
    // Cédula de Identidad format: 9 digits
    const doc_number = ocrText.match(/(\d{9})/)?.[1] ?? "";
    return { valid: !!doc_number, doc_number, country: "CR" };
    },

    validate(docNumber: string): NumberValidation {
    // exactly 9 digits
    return { valid: /^\d{9}$/.test(docNumber) };
    },
    };

    export default CR;







    Then add one line in registry.ts:






    import CR from "./countries/CR";
    // add to registry map: "CR": CR,







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





    Why contribute?

    • Costa Rica 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.




    More...
Working...