Skip to content

Add initial Python SNS derivation utilities#131

Open
sitarua wants to merge 1 commit into
SolanaNameService:mainfrom
sitarua:codex/python-derivation-slice
Open

Add initial Python SNS derivation utilities#131
sitarua wants to merge 1 commit into
SolanaNameService:mainfrom
sitarua:codex/python-derivation-slice

Conversation

@sitarua
Copy link
Copy Markdown

@sitarua sitarua commented May 15, 2026

Summary

  • Adds a minimal Python package scaffold for the in-progress Python SDK.
  • Ports deterministic SNS derivation helpers for .sol domains, subdomains, reverse lookup accounts, and V1/V2 record accounts.
  • Implements pure-Python base58 and Solana PDA helpers so the first slice has no runtime dependencies, network calls, wallets, signing, RPC, or transaction helpers.
  • Adds unit tests using fixed fixtures generated from the existing JavaScript SDK.

Tests

$env:PYTHONPATH='python/src'
python -m unittest discover -s python/tests -v

Result: 7 tests passed.

Notes

  • This is a small first slice, not a full Python SDK port.
  • It intentionally avoids RPC helpers, wallet signing, private keys, transaction creation, and write operations.
  • It does not claim assignment to any bounty or payment path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant