# Integrating Self Hands on Smart Contract SDK Workshop I Ayman Mohammed

- Channel: [ETHGlobal](https://streameth.org/ethglobal)
- Date: 2025-10-07
- Duration: 29:34
- Topics: Self protocol, Ayman Mohammed, Sybil resistance, selective disclosure, privacy preserving KYC, passport MRZ NFC, Aadhaar support, OFAC zero-knowledge check, TEE attestation, ZK proofs, one person one nullifier, Self QR SDK, on-chain SDK Solidity, off-chain SDK TypeScript, Go SDK, verification config, scope seed, excluded countries, age over 18 proof, ProofOfHuman contract, setScope, self.xyz docs, compliant onboarding, decentralized identity, privacy first auth
- Watch: https://streameth.org/watch/yt-2g0F5dWrUKk
- YouTube: https://www.youtube.com/watch?v=2g0F5dWrUKk

## Description

Ayman Mohammed leads a hands-on workshop on Self, a privacy-preserving identity protocol for Sybil resistance and selective disclosure. Learn how Self keeps PII out of centralized databases by storing data only on the user’s device, then proves facts with ZK proofs (age ≥ 18, not in forbidden countries, OFAC checks) without revealing raw data.

The session covers the front-end QR/deeplink flow, TEEs for proof generation, on-chain SDK (Solidity) and off-chain SDK (TypeScript/Go), setting verification configs (scope, minimum age, excluded countries), deriving a scope seed, and wiring contracts (constructor with Hub, custom verification hook, setScope). Ayman also demos Aadhaar support plans, passport MRZ/NFC flows, mock documents, failure paths, and bounty tiers for on-chain and off-chain integrations.

00:11 Introduction
00:50 Why Self: no centralized PII storage
01:28 Sybil resistance via passports/IDs
02:19 Selective disclosure: attributes & ranges
03:14 Proving “over 18” & country exclusions
03:42 OFAC privacy-safe compliance checks
04:32 Adoption data & upcoming Aadhaar support
04:57 How Self works: MRZ/NFC & commitments
05:55 Aadhaar QR flow & commitments
06:21 Disclosure proofs & on-chain tree
06:47 One-person/one-nullifier model
07:28 Integrator flow: QR/deeplink to app
08:03 TEE attestation & ZK proof pipeline
08:40 SDK options: on-chain vs off-chain
09:11 Workshop repo layout (app & contracts)
10:29 Front-end QR SDK & disclosure config
12:05 Minimum age & excluded countries example
14:09 Contracts overview (ProofOfHuman)
15:00 VerificationConfig & config ID
16:41 Custom verification hook usage
18:12 Deploy script & constraints match
20:04 Scope seed derivation & setScope
21:09 Live QR scan & successful proof
24:02 US doc mock: proof blocked demo
25:21 Tools.self.xyz for scope generation
26:54 Off-chain verifier quick start
29:15 Bounties, docs, and closing

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _  

🇮🇳 *ETHGlobal New Delhi*
This workshop is specifically for ETHGlobal New Delhi, a 3-day hackathon held September 19-21 at the India International Convention & Expo Centre, bringing together the most skilled web3 developers, designers and product builders from all around the globe for a weekend-long adventure to advance the Ethereum ecosystem! Watch the full ETHGlobal New Delhi 2025 playlist here: https://www.youtube.com/playlist?list=PLXzKMXK2aHh7zCFW3hBqatZ18rQaYeEJL
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _  

✅ *Follow Self*
X: https://x.com/SelfProtocol

✅ *Follow ETHGlobal*
X: https://x.com/ETHGlobal​
Warpcast: https://warpcast.com/ethglobal
Website: https://ethglobal.com
YouTube: https://www.youtube.com/c/ETHGlobal 

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _  

_Are you interested in Ethereum development and entrepreneurship?_
👉 Sign up for the next ETHGlobal event: https://ethglobal.com/events
🎁 Get exclusive access and perks with ETHGlobal Plus! https://ethglobal.com/plus
📣 Want us to throw an event in your city? Tell us where! https://ethglobal.com/city
