What it does
This pure decoder reads the binary account layout returned by Solana and converts it into aTinIdentityRegistry object. It performs no network request and no transaction.
How the flow works
1
Caller invokes the function
The caller supplies the raw account data bytes.
2
Validation
The decoder reads the fixed header, strings, counts, and variable-length byte fields; truncated optional data is rejected.
3
Main work
It decodes identity metadata, social identities, and sensitive-field records including proof hashes and timestamps.
4
Result
The typed registry object is returned for local inspection or presentation.
Signature
Uint8Array
required
Serialized TIN identity registry account data.
Result and errors
ReturnsTinIdentityRegistry, including version, status, tin, authority, name, socialIdentities, and sensitiveFields. It throws TIP identity registry data is truncated when optional data ends before its count field.
tins.ts:1183-1260