Choose an SDK to see its real function names, input types, output types, and the corresponding API reference. The operation model stays shared; the contract stays honest.
TypeScript Go
Create & export Operation Function Input Output Purpose Export private key exportPrivateKeyinput: PrivateKeyExportInputPromise<string>Encrypt a private key with a password and create a complete document. Export encrypted state exportEncryptedStateinput: EncryptedStateInputstringSerialize encrypted state without decrypting the private key.
Read & validate Operation Function Input Output Purpose Parse document parseDocumentinput: string | Uint8ArrayDocumentRead JSON text or bytes and validate the resulting document. Validate document validateDocumentvalue: unknownDocumentValidate an in-memory value and return the normalized document. Serialize document serializeDocumentdocument: DocumentstringWrite a validated document as canonical JSON.
Unlock Operation Function Input Output Purpose Unlock document unlockDocumentdocument: Document, password: stringPromise<UnlockResult>Decrypt the private key and verify that it matches the document public key.
Inspect Operation Function Input Output Purpose Read summary summarydocument: DocumentDocumentSummaryRead format, version, label, and public-key metadata without secrets.
Failure handling Operation Function Input Output Purpose Handle errors isKeyHoldErrorvalue: unknownvalueHandle predictable failures through stable error codes.
Compare SDKs Keep the same capability model while showing each language’s real contract.