KYC attestation soulbound token
A hackathon prototype that turns a verified identity check into a non-transferable on-chain token. An attester signs the result off-chain, and the contract records that attestation when the token is minted.
The problem
A contract cannot call a KYC provider. It needs a compact proof, issued off-chain, that it can check by itself.
How it works
The user signs in with Fayda. The backend attests to the result and signs it. The contract owner then mints a soulbound ERC-721: the contract recovers the signer with ECDSA, stores it with the attested values, and blocks every later transfer.
What I worked on
- The attestation SBT contract, with Hardhat scripts to deploy, verify and interact with it.
- The dapp's API routes: Fayda token and user-info exchange, attestation, signature creation and verification, and mint.
A team project. This list is limited to what the public commit history shows under my name.
Security notes
- Devnet prototype, not audited.
- In the published code, minting is owner-only and the check that the recovered signer equals the trusted attester is switched off. A real version has to enforce that check before anything relies on the token.
- The sample contract keeps attested values in public state. A production version would store a commitment to them, not the values.
Where it stands
A devnet prototype of the flow from national-ID sign-in to a minted token.