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

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.1.tar.gz (24.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: coda-ledger-cli-0.0.1.tar.gz
  • Upload date:
  • Size: 24.3 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 coda-ledger-cli-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fa14c73c4ef9a3a6bf8b48acb7b242738aec0488b98a47a4e8a31f42719ee91c
MD5 4b0752b9269b59527c3f850f8cb3bc99
BLAKE2b-256 31a219d4dc94178697a7f9faa25c71216e789c8fb5d3504f4f575f3bd08d44f4

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

This release

0.0.1 This release

1 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