BankID
A Swift identity and KYC SDK used by five financial institutions. Sixteen-plus flows behind one small public API, more than six million authentication sessions, and about fifty thousand people using it on a normal day.
- Role
- iOS Engineer and Backend Developer (Go)
- When
- Aug 2023 to Apr 2026
- Stack
- Swift · SPM · XCFramework · Go (Echo, GORM) · PostgreSQL
- Scale
- 5 institutions · 6M+ sessions · ~50K daily users
What BankID is
BankID is the identity and KYC product inside Informatics Services Corporation (ISC). Banks use it to check that a new customer is who they say they are, using a government ID and a short liveness video, and then to log that customer in on every visit after that.
The mobile part ships as a Swift SDK. Five financial institutions put it inside their own apps, under their own brand, and each of them ran its own security review on it. I worked on it from August 2023 to April 2026 as the iOS engineer on the SDK and as a Go developer on the services behind it.
The short version of the problem: five banks wanted the same thing, none of them wanted to build it alone, and none of them would accept an SDK release that broke their own release schedule.
What we could not change
- Five security reviews, not one. Encryption, obfuscation and biometric handling had to make sense to five different compliance teams, each reading the same code with their own checklist.
- Android parity. A separate team built the Android SDK. A bank would not ship a flow on iOS until the Android version existed too.
- Someone else's app. The SDK runs inside apps whose colors, fonts and language we don't control, including right-to-left layouts.
- Old phones. Liveness capture had to work on cheap, years-old devices, not only on the iPhone on my desk.
Sixteen flows behind one door
Each flow is its own module. Partner apps only see one small public API, and everything past the device belongs to the Go services.
A new customer goes through the flows in order. Document capture reads the ID card. Liveness records a short video and encodes it on the device with our VideoCoding XCFramework. Both payloads are encrypted before they leave the phone. On the server, a Go service built with Echo and GORM checks the submission, talks to the third-party verification and liveness providers, stores the result in PostgreSQL, and returns a status that the authentication and OTP flows rely on from then on.
John Ousterhout calls this a deep module in A Philosophy of Software Design: a lot of behavior behind a small interface. The banks got about ten public methods. The sixteen-plus flows, the encoder and the transport stayed internal, which meant we could change them without asking five teams for permission.
What we chose, and what we paid for it
Many small flow modules instead of one big SDK
A bank could adopt only the flows it needed, and a change to liveness never forced anyone to re-test OTP.
Sixteen modules means sixteen places where backward compatibility can break. Every one of them needed the same care a single big SDK would have needed once.
Our own video encoding framework instead of a vendor SDK
At six million sessions, there was no per-verification license fee, and we could tune quality against file size for the exact video liveness needs.
We owned every codec bug and every strange device. A vendor would have absorbed some of that pain for us.
One binary for all five brands
Theme, language and layout direction come from configuration at startup. Every bank runs the same compiled SDK, so there is one artifact to test and review.
We had to say no to brand requests that did not fit the configuration model. Forking the SDK per bank was the thing we were trying to avoid.
Shared, versioned API contracts between the Go services and the SDKs
Clients could upgrade on their own schedule without breaking changes on the wire.
Every change to a request or response had to go through versioning, even small ones that felt safe.
Where it pushed back
Liveness rejecting real people
The most painful bug was not a crash. It was real customers failing the liveness check. I went through the rejection data, added preprocessing on the captured frames, and made the on-device video encoding consistent across devices. That cut false rejections for legitimate users by about 35%.
Explaining the same security model five times
Each bank's reviewers asked the same questions in a different order. What worked was writing the security model down once (the architecture, the threat model, the encryption design) and handing that document to every new reviewer instead of rebuilding the answer in meetings.
Right-to-left, in every flow
RTL is not one screen you fix. Every flow has to stay correct on its own while it ships on its own schedule, and there is no shared release train to catch a mirrored layout before a partner does.
Keeping up with Android
Parity with a codebase we did not own turned into a scheduling problem as much as a technical one. We learned to plan iOS releases around the Android timeline early, instead of finding the dependency in the last week.
The numbers
What I can say in public
BankID sits behind real banking credentials, so key handling, encryption parameters and the full threat model stay private. The general shape:
- Identity payloads are encrypted end to end, on top of TLS, so a broken transport layer is not enough on its own.
- The shipped binary is obfuscated.
- Face and identity data stay on the device wherever possible.
- Each bank's integration is separate. Nothing in the SDK gives one partner a view into another partner's traffic.
The SDK passed every partner bank's security review.
What I would tell myself in 2023
- Write the public API for people you will never meet. With five teams integrating, every hidden assumption about threading or timing becomes a bug in someone else's app.
- Treat the security review as a design input. Designing as if five auditors would read every line gave us a simpler and more defensible SDK than designing for one internal review.
- Teach, don't just review. I led code reviews and mentored four engineers on the platform. The reviews that helped most were the ones where I explained why a boundary existed, not only where it was.