{"id":20376899,"url":"https://github.com/xjonathanlei/coins-android-bug-repro","last_synced_at":"2026-05-11T15:08:54.200Z","repository":{"id":210359935,"uuid":"726354557","full_name":"xJonathanLEI/coins-android-bug-repro","owner":"xJonathanLEI","description":"Reproducer for a bug in the `coins-ledger` crate","archived":false,"fork":false,"pushed_at":"2023-12-02T06:51:01.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T05:52:00.193Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xJonathanLEI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-12-02T06:14:14.000Z","updated_at":"2023-12-02T06:55:36.000Z","dependencies_parsed_at":"2023-12-02T08:41:19.750Z","dependency_job_id":null,"html_url":"https://github.com/xJonathanLEI/coins-android-bug-repro","commit_stats":null,"previous_names":["xjonathanlei/coins-android-bug-repro"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xJonathanLEI%2Fcoins-android-bug-repro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xJonathanLEI%2Fcoins-android-bug-repro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xJonathanLEI%2Fcoins-android-bug-repro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xJonathanLEI%2Fcoins-android-bug-repro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xJonathanLEI","download_url":"https://codeload.github.com/xJonathanLEI/coins-android-bug-repro/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241928527,"owners_count":20043820,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T01:39:55.871Z","updated_at":"2026-05-11T15:08:49.163Z","avatar_url":"https://github.com/xJonathanLEI.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coins-android-bug-repro\n\nReproducer for [a bug](https://github.com/summa-tx/coins/pull/129#issuecomment-1835245612) introduced in [summa-tx/coins#129](https://github.com/summa-tx/coins/pull/129). This reproducer is supposed to be run in [Termux](https://termux.dev/) on an Android device.\n\n## Running\n\nInstall [Termux](https://github.com/termux/termux-app) and [Termux API](https://github.com/termux/termux-api) (_NOT_ from Google Play store). Inside Termux, update package registry index:\n\n```console\npkg update\n```\n\nThen install necessary dependencies:\n\n```console\npkg install git rust libusb termux-api\n```\n\nThen clone and change directory into this repository.\n\nNow, connect your Ledger device, unlock and enter the Ethereum app. First, use this command to determine the full device path:\n\n```console\ntermux-usb -l\n```\n\nwhich shows a list of paths to the connected devices. There should only be one entry (unless you have other devices connected). An example output looks like this:\n\n```log\n[\n  \"/dev/bus/usb/002/003\"\n]\n```\n\nNow, use this value to run the following command. Replace the path with the value you got from the command above:\n\n```console\ntermux-usb -r -E -e \"cargo run\" /dev/bus/usb/002/003\n```\n\nwhich should ask for a signature for send a `0 ETH` transaction to the zero address from your Ledger device. This is using the `main` branch for `coins-ledger`.\n\nNow, change the Git `rev` used for the `coins-ledger` dependency to point to the PR head. Alternatively, use the `Cargo.pr.toml` file, which points to commit `1d578d4`\n\n```console\ncp Cargo.pr.toml Cargo.toml\n```\n\nAnd run the `cargo run` command again:\n\n```console\ntermux-usb -r -E -e \"cargo run\" /dev/bus/usb/002/003\n```\n\nThis time, the application should fail:\n\n```log\nthread 'main' panicked at src/main.rs:47:18:\ntransport exchange failed: ResponseTooShort([])\nnote: run with `RUST_BACKTRACE=1` environment variable to display a backtrace\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxjonathanlei%2Fcoins-android-bug-repro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxjonathanlei%2Fcoins-android-bug-repro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxjonathanlei%2Fcoins-android-bug-repro/lists"}