docs: server SDK parity (Go, Rust, Python full rewrites)#2
Open
turnkeyintern wants to merge 1 commit intomainfrom
Open
docs: server SDK parity (Go, Rust, Python full rewrites)#2turnkeyintern wants to merge 1 commit intomainfrom
turnkeyintern wants to merge 1 commit intomainfrom
Conversation
- Go SDK (golang.mdx): Full rewrite with installation, auth (P-256, secp256k1, ED25519), client setup, examples (whoami, wallet, signing, email OTP), activity polling pattern (manual - no auto-poll), HPKE encryption, Nitro attestation verification, and Ethereum integration guide - Rust SDK (rust.mdx): Full rewrite covering all four crates (client, stamper, enclave_encrypt, proofs), async client with auto-polling and exponential backoff, HPKE for wallet import/export, Nitro attestation, gas station support, and TVC CLI mention - Python SDK (python.mdx): Complete rewrite fixing critical errors (old page incorrectly said Python had no SDK). Documents all three packages, Pydantic v2 types, activity polling with blocking time.sleep() caveat, stamp-then-send pattern, and limitations (no async, no HPKE, P-256 only) - Introduction (introduction.mdx): Expanded server SDK capability table with Activity Auto-Polling, HPKE support, Nitro Attestation, Gas Station, and ED25519 API Key Signing rows. Fixed missing checkmarks for Rust/Python.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fills critical documentation gaps for the Go, Rust, and Python server SDKs, and updates the server SDK capability table in the introduction page.
Changes
1.
sdks/golang.mdx— Full RewritePrevious state: Empty page with only title and GitHub link.
New content:
client.Authenticatorpattern (documented the gotcha that it must be passed to every call)2.
sdks/rust.mdx— Full RewritePrevious state: Empty page with only title and GitHub link.
New content:
turnkey_client,turnkey_api_key_stamper,turnkey_enclave_encrypt,turnkey_proofs)#![forbid(unsafe_code)])3.
sdks/python.mdx— Full Rewrite (fixes critical errors)Previous state: WRONG — said "we do not yet offer a full SDK for Rust" (copy-paste error that should say Python). Claimed Python had no real SDK when
tkhq/python-sdkis a full SDK with 100+ typed methods.New content:
turnkey-http,turnkey-api-key-stamper,turnkey-sdk-types)time.sleep()caveat for async frameworks)4.
sdks/introduction.mdx— Server SDK Table UpdatePrevious state: Only 3 rows (Authentication, Wallet Management, Policy Management) with missing checkmarks for Rust and Python.
New content: Added 5 new rows:
* Python's polling uses blocking
time.sleep()— added footnote explaining this.Also fixed missing checkmarks for Rust and Python in Wallet Management and Policy Management rows.
Source Material
All content is based on direct analysis of the SDK repositories:
github.com/tkhq/go-sdkgithub.com/tkhq/rust-sdkgithub.com/tkhq/python-sdkDetailed learnings documented in: https://github.com/turnkeyintern/learnings
Testing