Skip to main content

solarcoins — Python SDK for the SolarCoins ledger

Open-source client for the SOLAR/1 protocol. MIT licensed.

pip install solarcoins      # once published to PyPI
# or
pip install -e ./sdk        # local dev

Quickstart

from solarcoins import SolarClient, generate_keypair

client = SolarClient("https://solarcoins.net")

# Generate keys client-side — private key never leaves the local machine
kp = generate_keypair()

# Sign up + auto-login
client.signup("alice", "supersecret123", kp)

# Read balance
print(client.get_balance(kp.public_key))

# Send 5 SOLAR — caller manages sequence numbers
bob_pubkey = bytes.fromhex("...")
client.transfer(kp, bob_pubkey, "5.0", sequence_number=0)

Spec reference

This SDK speaks the v1.4 protocol — see SOLAR_protocol_spec_v1.4.md. The wire encoding (canonical CBOR, BLAKE2s tx_ids, Ed25519 signatures) is implemented in solarcoins.canonical and solarcoins.keys to match the server byte-for-byte.

License

MIT

Metadata

Release files for solarcoins 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for solarcoins 0.1.0
File Size Uploaded Provenance Actions
solarcoins-0.1.0.tar.gz 3.8 kB Without provenance Details for solarcoins-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for solarcoins 0.1.0
File Interpreter ABI Platform Actions
solarcoins-0.1.0-py3-none-any.whl Python 3 none any Details for solarcoins-0.1.0-py3-none-any.whl

Total release size: 8.7 kB

Release files / solarcoins-0.1.0.tar.gz

Download URL solarcoins-0.1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b97a7d944cf6a840b58e11e0f5f15736c3ea98704a5b10c7cd550e6e1c691b62
BLAKE2b-256 checksum
How to use checksums
e86b7a0dde9dd96f1f4d4930ae6e45ccb8d493998d4e502e0a5c5b98368aaff3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / solarcoins-0.1.0-py3-none-any.whl

Download URL solarcoins-0.1.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79db7554a266f76fda6005d8c26e92f61ee61639d9de0b16688d6b4fb519efeb
BLAKE2b-256 checksum
How to use checksums
9ac1a229bb8db1537738a5ccfa959c1443f10fee14761f82388013c19e0b9de1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for solarcoins 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page