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

ledger-coda-app-0.0.1.tar.gz (23.1 kB view details)

Uploaded Source

File details

Details for the file ledger-coda-app-0.0.1.tar.gz.

File metadata

  • Download URL: ledger-coda-app-0.0.1.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.9

File hashes

Hashes for ledger-coda-app-0.0.1.tar.gz
Algorithm Hash digest
SHA256 419a5a7461aa2c8cc7c7d67512eb1437ab04b2648121e3caf2e28c8284bf3736
MD5 25635a01da49cb52c833fd2271402268
BLAKE2b-256 937179017c88c63f7e9d012b541be93ea1aa5deaea86b01e1e8a5cd990a9991a

See more details on using hashes here.

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