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.0.tar.gz
(7.3 kB
view hashes)
Built Distribution
Close
Hashes for strledger-0.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ccf924a2d5bd640f2581aa3272c54ca9f1d3467afc6e51bd119735af673be88 |
|
MD5 | 047c0eb78965559a4d125fae06d42ed1 |
|
BLAKE2b-256 | f7b557a09c1af372cee9e63cbed89dbc11848b7e5816f248d452aa492e5638cc |