Skip to main content

Scripts to interact with the Coda Ledger app

Project description

Coda signature app for Ledger Blue & Ledger Nano S/X

Big disclaimer : This is a work in progress. Don't use it on a Ledger device that is handling or has ever handled private keys associated with any accounts of value.

This app grew loosely from the Ledger samplesign app, but all of the python in /cli has been updated to use python3. So if you're here from another project and curious, it seems it is possible!

Run make to check the build, and make load to build and load the application onto the device. Errors try to be helpful and the most common reason for failure is the device autolocking, so if something isn't working that might just be the reason. make delete deletes the app.

See Ledger's documentation for further information.

To get the app version:

python3 cli/sign.py --request='version'

To generate and return the public key generated with nonce 11:

python3 cli/sign.py --request=publickey --nonce=11

To sign a transaction, with pk 1234 ("nonce":37 in the JSON gives the signature/account nonce, --nonce=1234 gives the nonce with which the Ledger device will generate the sender private/public keypair):

python3 cli/sign.py --request=transaction --nonce=1234 --transaction='{"sendPayment": {"is_delegation": "False","nonce": 37,"from": 123,"to": "tNci9iZe1p3KK4MCcqDa52mpxBTveEm3kqZMm7vwJF9uKzGGt1pCHVNa2oMevDb1HDAs4bNdMQLNbD8N3tkCtKNGM53obE9qFkkhmqMnKRLNLiSfPJuLGsSwqnL3HxSqciJoqJJJmq5Cfb","amount": 1000,"fee": 8,"valid_until": 1600,"memo": "2pmu64f2x97tNiDXMycnLwBSECDKbX77MTXVWVsG8hcRFsedhXDWWq"}}'

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

coda-ledger-cli-0.0.3.tar.gz (2.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page