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.9.0.tar.gz (7.3 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.9.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: strledger-0.9.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for strledger-0.9.0.tar.gz
Algorithm Hash digest
SHA256 b074d61ce77bce455aa76acdd34d88d07db33465fce50f7169fbc5f87648e7fa
MD5 1167f8de4a4bedbba62403a7054771ca
BLAKE2b-256 9466162fc9c0e2aac94cfb8653491f1c4ba6caab9d37d757ff215470f7b4343a

See more details on using hashes here.

Provenance

The following attestation bundles were made for strledger-0.9.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.9.0-py3-none-any.whl.

File metadata

  • Download URL: strledger-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for strledger-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3fed6cf9625f4c9e7d17d1d26452c39809da417b8669fbcda4773d59f05f79d0
MD5 ec9708fb1dea1c6207b5d4b6e210a5ce
BLAKE2b-256 c6931d0d56810e401b7458434a76a9a68b04608e9860642ef6d94e78ea08a52b

See more details on using hashes here.

Provenance

The following attestation bundles were made for strledger-0.9.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