OCI-WALLET · reference implementation

Your documents, signed by the source, in the wallet you choose

OCI-Wallet is the verified-documents layer of OCI-OS. An issuer signs each document. A person keeps it in a wallet from a provider they choose. A document exchange carries requests between the two and keeps nothing. It follows the model India's DigiLocker proved, written as open, signed, JSON protocols any country can run. It runs today as a working demo: an exchange, two issuers and a wallet provider.

What it means for the person

Your documents come from the source

A driving licence in your wallet is the one the transport department signed. Anyone you show it to can check that signature, so nobody has to trust a photocopy, or the wallet.

You choose the wallet

A wallet is run by a provider you pick, and gives you an address such as asha@satchel. Issuers send to the address; they never need to know which provider is behind it.

You see what is sent about you

Before your wallet asks an issuer for your documents, it shows you the details it will send. Your national ID number is used only after you connect it yourself. Once it is, you can look for everything issued to you without typing a document number.

The exchange keeps nothing of yours

The document exchange passes requests between wallets and issuers. It keeps no document, no name and no number: its log says which type was asked for, by whom, and when.

You connect your national identity yourself

Connecting is a sign-in at your country's identity, where you see what will be shared and agree. The number is not part of the sign-in: your wallet fetches it afterwards, once. You can also sign in to your wallet with that identity, and arrive connected. Your wallet shows only the last four characters of the number, and you can disconnect.

Your own files sit beside them, marked as yours

A scan you upload is kept, and always shown as unverified, so it is never mistaken for an issued document.

Who takes part

IssuersWhoever a document comes from: a transport department for a driving licence, the country's identity for the ID card. An issuer signs its documents, answers for their status, and may issue only the types the country lists for it.
The document exchangePasses find, fetch, status and push between wallets and issuers. Keeps no document. A country may accredit one or several.
Wallet providersKeep each person's documents, give each person an address, and check every document before showing it as good: the issuer's signature, that the issuer may issue that type, and its status.
IdentitiesOCI-ID. A wallet provider runs its own for sign-in. The country's identity is the one a person connects, and it issues their ID card.
The trust registryLists every participant with its keys and its home exchange, and each country's document types. Every call between participants is signed and checked against it.

If you know DigiLocker

The roles and the three calls are the ones DigiLocker's published specifications define. What changes is how they are carried, and that a person can choose their wallet.

DigiLockerOCI-Wallet
Issuer, issuer repositoryAn issuer and its connector: signs documents, answers find, fetch and status for them, and can send one to a wallet address.
Document URI: issuer, type, idThe same three parts: <issuer>-<TYPE>-<id>. Permanent, not secret, and says nothing about the holder.
Five-letter document typesA list each country keeps in the trust registry: the type, its data, its search fields and who may issue it.
Pull URI, Pull Doc, Push URIFind, fetch and push: JSON, signed, through the exchange.
API keys and HMACAn OCI-Signature on every call, checked against keys in the trust registry. No shared secrets.
XML certificate with an XML signature, plus a PDFOne compact signed document (JWS) and a printable copy.
The gateway and its directoryA document exchange. A country may accredit one or several; exchanges forward to each other once.
Locker linked to AadhaarA wallet with its own sign-in, to which the person connects the national identity, with consent.

Not built yet

Sharing a document with an organisation that asks for it, with the person's consent. Connecting a wallet at an issuer. Copies only the person can decrypt. A second wallet provider and a second country. None of these is in the specifications yet, because the specifications are written from what runs.