Shadow-KYC
# Prove who you are. Reveal nothing.
The problem Shadow-KYC solves
A KYC System that Preserves Users’ Privacy.
A privacy-preserving KYC (Know Your Customer) system is based on zero-knowledge proofs where users are able to verify their identity through their Aadhaar (offline) XML file, generate ZK proof of their identity and have an on-chain record associated with their wallet without divulging any raw identifiable information. Raw KYC documents (including their photographs) can be stored privately in a “DataHaven StorageHub” bucket owned by the user’s wallet, with only the cryptographic ZK proof being published on-chain.
Challenges we ran into
Integrating DataHaven StorageHub was the steepest learning curve the SDK requires a multi-step handshake (Polkadot API init → MSP connection → SIWE authentication → on-chain bucket creation → MSP indexing confirmation) before a single file can be uploaded, and any step failing silently would break the entire flow. Getting the Groth16 proof format to align between snarkjs output and the Solidity ZKProofStorage contract was another pain point: snarkjs emits 3-element arrays for pi_a and pi_c (with a trailing 1) while the contract stores only 2 elements, requiring a trimming layer on both the frontend and backend. Running snarkjs witness generation entirely in the browser without crashing on WASM memory limits required careful optimizeDeps configuration in Vite and node polyfills. Finally, Aadhaar offline XML parsing is underdocumented the schema varies between UIDAI versions, so the Python parser had to handle multiple XML structures and extract the base64 photo reliably across all of them.
Tracks Applied (2)