Ledger Hardware Wallet Stellar Python bindings.
Project description
strledger - Ledger Hardware Wallet Stellar Python bindings.
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
Release history Release notifications | RSS feed
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.8.1.tar.gz
(7.4 kB
view details)
Built Distribution
File details
Details for the file strledger-0.8.1.tar.gz
.
File metadata
- Download URL: strledger-0.8.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 522780961c82006c53eeb46f6b85ddcde3b04792fc318887b98b9a5dd21c1da0 |
|
MD5 | d602d7836d90190a275de66bc89f8411 |
|
BLAKE2b-256 | c06052dfb165e0db3302f568a90a5f03a52e1448da75c209555ad9c538e49e8a |
File details
Details for the file strledger-0.8.1-py3-none-any.whl
.
File metadata
- Download URL: strledger-0.8.1-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92d08d6686613face1cd4054e6faa70aa8654c214d1bdf5b502a881241334517 |
|
MD5 | 2db64110345f2285e78e52e6908d6bae |
|
BLAKE2b-256 | 4d276b6fea4765d6aaa2250a8e1715e2dd2829e1c3e2fba8ea79a6af4a2a1c02 |