Skip to main content

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"}}'

Release files for ledger-coda-app 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ledger-coda-app 0.0.1
File Size Uploaded
ledger-coda-app-0.0.1.tar.gz 23.1 kB Details

Release files / ledger-coda-app-0.0.1.tar.gz

Download URL ledger-coda-app-0.0.1.tar.gz
Size 23.1 kB
Tags Source
SHA-256 checksum
How to use checksums
419a5a7461aa2c8cc7c7d67512eb1437ab04b2648121e3caf2e28c8284bf3736
BLAKE2b-256 checksum
How to use checksums
937179017c88c63f7e9d012b541be93ea1aa5deaea86b01e1e8a5cd990a9991a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page