What it does
This function reversesencryptTinSocialIdentity locally. It derives the same TIN-scoped key and decrypts the supplied nonce and ciphertext.
How the flow works
1
Caller invokes the function
The caller supplies the TIN, nonce, and ciphertext.
2
Validation
WebCrypto imports the derived AES-GCM key and validates the authentication tag.
3
Main work
The SDK decrypts the ciphertext using the supplied nonce.
4
Result
The plaintext string is returned to the local caller.
Signature
bigint | number | string
required
TIN used to derive the decryption key.
Uint8Array
required
Nonce returned by encryption.
Uint8Array
required
AES-GCM ciphertext.
Result and errors
Returns plaintext or propagates WebCrypto authentication/decryption failure.tins.ts:1348-1360