Sign Stellar Transaction with Ledger on the command line.
Project description
strledger - Sign Stellar Transaction with Ledger on the command line.
Installation
pip install -U strledger
Cli Usage
Usage: strledger [OPTIONS] COMMAND [ARGS]...
Stellar Ledger commands.
This project is built on the basis of ledgerctl, you can check ledgerctl for more features.
Options:
-v, --verbose Display exchanged APDU.
--help Show this message and exit.
Commands:
app-info Get Stellar app info.
get-address Get Stellar public address.
sign-tx Sign a base64-encoded transaction envelope.
version Get strledger version info.
Library Usage
from strledger import get_default_client
client = get_default_client()
# 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.3.0.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for strledger-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f84686dd17a75c1fe00b0a9cbb11ba0e4dda71486dfbdd004cf5b3ee4e525f8a |
|
MD5 | 8fb90cf56c314806aaa44eea11aa274d |
|
BLAKE2b-256 | 9ee889062d6c4e1316205224d0cc6dee23d5a4e9b80b1b2458a7fb7bf207d696 |