Skip to main content

Ledger Hardware Wallet Stellar Python bindings.

Project description

strledger - Ledger Hardware Wallet Stellar Python bindings.

example

Installation

pip install -U strledger

Cli Usage

Usage: strledger [OPTIONS] COMMAND [ARGS]...

  Stellar Ledger commands.

  This project is built on the basis of ledgerwallet, you can check ledgerwallet for
  more features.

Options:
  -v, --verbose  Display exchanged APDU.
  --help         Show this message and exit.

Commands:
  app-info     Get Stellar app configuration info.
  get-address  Get Stellar public address.
  sign-auth    Sign a base64-encoded soroban authorization (HashIDPreimage).
  sign-hash    Sign a hex encoded hash.
  sign-tx      Sign a base64-encoded transaction envelope.
  version      Get strledger version info.

Library Usage

from strledger import StrLedger

client = StrLedger()
# Use the Stellar Python SDK to build a transaction, see https://github.com/StellarCN/py-stellar-base
transaction_envelope = ...
client.sign_transaction(transaction_envelope=transaction_envelope, keypair_index=0)
print(f"signed tx: {transaction_envelope.to_xdr()}")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

strledger-0.10.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

strledger-0.10.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file strledger-0.10.0.tar.gz.

File metadata

  • Download URL: strledger-0.10.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for strledger-0.10.0.tar.gz
Algorithm Hash digest
SHA256 7a90c966614a16f22f9088e828c552493e57841657e039a3a6197d53aa5674e9
MD5 8d6311555e9f56d8a15e09a0926ced87
BLAKE2b-256 5b96bdff0629213db3ed42476bcc9b8a045ccee24e2437101de1e74313cbddf2

See more details on using hashes here.

Provenance

The following attestation bundles were made for strledger-0.10.0.tar.gz:

Publisher: ci.yml on lightsail-network/strledger

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file strledger-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: strledger-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for strledger-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6947e097c3a8f30f80093c2eae15c1cf36d47c265d054fc01d9b66e639d2855
MD5 09d920847f809b8b5ea70651c362d949
BLAKE2b-256 261a69db2fe487e29d97866ae5f59567de6dcc31036ed864fc2274f0ecd8bff8

See more details on using hashes here.

Provenance

The following attestation bundles were made for strledger-0.10.0-py3-none-any.whl:

Publisher: ci.yml on lightsail-network/strledger

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page