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...
  sign-hash     Sign a hex encoded hash.
  sign-message  Sign a base64-encoded message.
  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.1.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.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: strledger-0.10.1.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.1.tar.gz
Algorithm Hash digest
SHA256 2732c5b576a557fcd54ad57f381ea6931c9214ad9ffdf5909cbe825852752c52
MD5 f2ff666b18d8ec21fb69081a8124488c
BLAKE2b-256 8cd9f829318ac190cf887844d43c73b1ebefdfbb006b2f1921ebc66fe76ce13c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: strledger-0.10.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea158bb7ffa0ece6bc70ae752de28b09890f9977711860e96e0a644809905d4b
MD5 1eb4a1e3d55af7a1ccacb780addefad1
BLAKE2b-256 494f98846d3e7fac03ec63ee0155047df8d6d058a55c5ee184cbd0b216b7842b

See more details on using hashes here.

Provenance

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