Skip to main content

Rust & WebAssembly for On-Premise Didit API Proxies

Explore how Rust and WebAssembly (Wasm) revolutionize on-premise API proxies for identity verification, offering unparalleled security, performance, and portability.

Rust & WebAssembly for On-Premise Didit API Proxies

Contents

In this guide

Jump to the part you need.

Enhanced Security and IsolationRust's memory safety and Wasm's sandboxed execution environment provide a formidable defense against vulnerabilities, crucial for sensitive identity data processing.

Peak Performance at the EdgeThe compiled nature of Rust and Wasm modules delivers near-native speeds, enabling real-time identity verification decisions at the network edge with minimal latency.

Unmatched Portability and FlexibilityWebAssembly's 'write once, run anywhere' promise allows a single proxy logic to deploy across diverse hardware and operating systems, simplifying infrastructure management.

Didit's Advantage in Edge IdentityDidit's AI-native, modular platform is perfectly suited for integration with Rust/Wasm proxies, offering secure, high-performance, and compliant identity verification solutions for on-premise deployments.

The Rise of Edge Computing in Identity Verification

As organizations increasingly prioritize data privacy, compliance, and low-latency performance, edge computing has emerged as a critical architecture for handling sensitive operations like identity verification. Moving processing closer to the data source—whether that's an on-premise server or a local device—reduces network overhead, enhances security, and ensures that critical information remains within defined geographical or regulatory boundaries. For identity verification, this means that processes such as ID Verification, Passive & Active Liveness checks, and 1:1 Face Match & Face Search can be executed with greater control and efficiency, particularly in environments with strict data residency requirements.

However, implementing robust API proxies at the edge presents its own set of challenges. Traditional proxy solutions can be resource-intensive, difficult to secure, and lack the portability needed for diverse edge environments. This is where the powerful combination of Rust and WebAssembly (Wasm) steps in, offering a transformative approach to building secure, high-performance, and portable on-premise Didit API proxies.

Rust: The Foundation for Secure and Performant Proxies

Rust has rapidly gained traction as a language of choice for systems programming due to its emphasis on memory safety, performance, and concurrency. Unlike languages that rely on garbage collection, Rust achieves memory safety without a runtime, leading to predictable performance and lower resource consumption—qualities that are paramount for edge deployments. For an API proxy, this translates into a highly efficient and reliable service that can handle a large volume of requests without succumbing to common vulnerabilities like null pointer dereferences or data races.

When building an on-premise proxy for Didit's identity verification APIs, Rust provides several key advantages:

  • Memory Safety: Rust's ownership and borrowing system eliminates entire classes of bugs, making it inherently more secure for handling sensitive data exchanged during ID Verification or AML Screening.
  • Performance: Compiled to native code, Rust applications deliver near-native speeds, ensuring that API requests to Didit's services (like those for Age Estimation or Phone & Email Verification) are processed with minimal latency.
  • Concurrency: Rust's robust concurrency primitives allow proxies to efficiently manage multiple simultaneous connections, crucial for scalable identity verification workflows.
  • Developer Experience: While known for its steep learning curve, Rust's excellent tooling and strong community support enable the development of high-quality, maintainable codebases for complex proxy logic.

WebAssembly: The Universal Runtime for Edge Logic

WebAssembly (Wasm) complements Rust by providing a secure, sandboxed execution environment for compiled code. Originally designed for web browsers, Wasm's capabilities extend far beyond, making it an ideal candidate for server-side and edge computing. Imagine deploying a small, efficient Wasm module compiled from Rust that handles specific proxy logic—authentication, request transformation, or even a local pre-check before forwarding to Didit's cloud services. This approach offers unprecedented flexibility and security.

The benefits of Wasm for on-premise Didit API proxies include:

  • Sandboxed Execution: Wasm modules run in a secure sandbox, isolated from the host system. This prevents malicious code or vulnerabilities within a module from compromising the entire proxy or underlying infrastructure, a critical feature for protecting sensitive identity data.
  • Portability: Wasm is designed to be platform-agnostic. A Wasm module compiled from Rust can run on virtually any operating system and hardware, from powerful servers to embedded edge devices, without recompilation. This simplifies deployment and reduces operational overhead.
  • Fast Startup and Low Overhead: Wasm modules are compact and start extremely quickly, making them ideal for event-driven architectures and functions-as-a-service (FaaS) models at the edge.
  • Language Agnostic: While Rust is a prime choice, Wasm supports compilation from many other languages, offering flexibility for development teams.

Practical Applications for Didit Integrations

Combining Rust and Wasm allows for the creation of intelligent, lightweight, and secure API proxies at the edge that can significantly enhance how organizations integrate with Didit's identity platform. Here are some practical applications:

  • Local Data Pre-processing and Anonymization: Before sending data to Didit's cloud for ID Verification or AML Screening, a Rust/Wasm proxy can locally process and anonymize certain fields, ensuring only necessary information leaves the on-premise environment. This is vital for compliance with regulations like GDPR.
  • Custom Rate Limiting and Access Control: While Didit enforces API rate limits at a global level (e.g., 300 requests per minute per application for GET and write/delete endpoints), a local Rust/Wasm proxy can implement more granular, custom rate limiting based on specific internal business logic or user tiers, preventing abuse and ensuring fair usage of Didit's services.
  • Dynamic Request Routing: Based on local context or user attributes, the proxy can dynamically route requests to different Didit workflows. For instance, a user from a specific region might be directed to a workflow with NFC Verification, while another might only require standard ID Verification.
  • Offline Capabilities and Fallbacks: In scenarios where internet connectivity is intermittent, a Rust/Wasm proxy could cache certain Didit API responses or implement local fallback logic for less critical verification steps, improving user experience and system resilience.
  • Enhanced Security Layers: Implement additional encryption, token validation, or threat detection mechanisms directly at the edge, acting as a first line of defense before requests even reach Didit's infrastructure.

How Didit Helps

Didit's AI-native, developer-first identity platform is designed for seamless integration, making it an ideal partner for organizations leveraging Rust and WebAssembly for on-premise API proxies. Our modular architecture and clean APIs allow for flexible deployment models, whether you're using our hosted verification sessions or standalone APIs for server-to-server processing. Didit's robust suite of products, including ID Verification (OCR, MRZ, barcodes), Passive & Active Liveness, 1:1 Face Match & Face Search, and AML Screening & Monitoring, can be securely accessed and managed through your custom edge proxies.

By using Rust and Wasm, you can build a highly secure and performant conduit to Didit's services, maintaining strict control over data flow and compliance. Didit's commitment to providing Core KYC and a pay-per-successful-check model with no setup fees further reduces the barrier to entry, allowing you to focus on building innovative solutions with the confidence of a leading identity verification provider.

Ready to Get Started?

Ready to see Didit in action? Get a free demo today.

Start verifying identities for free with Didit's free tier.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Blog questions

Who writes the Didit blog?
The Didit team. Guides reviewed by Alberto Rosas, co-founder and CEO, carry his byline. The rest are published as Didit.
Which topics does the blog cover?
Eight topics: ID verification, business verification (KYB), AML, sanctions and compliance, fraud prevention, transaction monitoring and crypto, country guides, agents and developers, and product updates.
Is the blog available in my language?
Yes, in 15 languages: English, Spanish, French, German, Brazilian and European Portuguese, Catalan, Russian, Arabic, Chinese, Japanese, Hindi, Indonesian, Korean and Swahili. Not every post is translated, so each language shows the posts it has.
Where do I find product updates?
In the changelog at /changelog/ and under the Product updates topic.
Are these posts legal advice?
No. Regulation posts explain rules; your legal team decides how they apply.
How do I find posts on one topic?
Open one of the eight topics, or search the blog.
Are posts dated?
Yes. Every post shows when it was published and when it was last updated.
Do posts link to the docs?
Developer posts link to the matching page on docs.didit.me and to the API reference.
Is the blog the same as the docs?
No. The blog explains rules, markets and product changes for a general reader, while docs.didit.me holds the integration guides and the API reference. Developer posts link the matching docs page and the API reference they describe.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.