Interoperability
The TypeScript and Go SDKs are two views over one wire format. A document exported by one can be parsed, validated, and unlocked by the other when the same password is supplied.
Keep cross-language tests focused on the protocol boundary:
- Export a document with one SDK.
- Parse and validate it with the other.
- Unlock it and compare the recovered public key.
- Serialize and compare canonical JSON where the fixture requires it.
The operation map calls out where the calling contracts differ: TypeScript uses Promise and unknown at its validation boundary; Go uses error and a decoded Document.