{"id":18016647,"url":"https://github.com/monadicus/aleo-testnet2-tools","last_synced_at":"2025-04-04T15:29:15.578Z","repository":{"id":257506940,"uuid":"857860427","full_name":"monadicus/aleo-testnet2-tools","owner":"monadicus","description":"Simple CLI and WASM tools to derive Aleo Mainnet addresses from Testnet2 private keys, and sign messages using Aleo Testnet2 private keys.","archived":false,"fork":false,"pushed_at":"2025-03-14T19:43:51.000Z","size":276,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T20:35:01.510Z","etag":null,"topics":["aleo","cli","testnet","wasm"],"latest_commit_sha":null,"homepage":"https://monadicus.github.io/aleo-testnet2-tools/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monadicus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-15T19:41:50.000Z","updated_at":"2025-03-14T19:43:55.000Z","dependencies_parsed_at":"2024-10-30T04:42:43.206Z","dependency_job_id":null,"html_url":"https://github.com/monadicus/aleo-testnet2-tools","commit_stats":null,"previous_names":["monadicus/aleo-testnet2-tools"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monadicus%2Faleo-testnet2-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monadicus%2Faleo-testnet2-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monadicus%2Faleo-testnet2-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monadicus%2Faleo-testnet2-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monadicus","download_url":"https://codeload.github.com/monadicus/aleo-testnet2-tools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247201671,"owners_count":20900654,"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":["aleo","cli","testnet","wasm"],"created_at":"2024-10-30T04:18:45.104Z","updated_at":"2025-04-04T15:29:15.545Z","avatar_url":"https://github.com/monadicus.png","language":"Rust","readme":"# Aleo Testnet2 Tools\n\n# [Use These Tools Online](https://monadicus.github.io/aleo-testnet2-tools/)\n\nOr run the website locally from the [wasm-suite](./wasm-suite/) directory.\n\n```bash\n$ cargo run -q\nA collection of tools for working with Aleo testnet2 addresses and signatures\n\nUsage: aleo-testnet2-tools [OPTIONS] \u003cCOMMAND\u003e\n\nCommands:\n  from-key       Derive a testnet2 and mainnet address from a private key\n  from-key-file  Derive a testnet2 and mainnet address from a private key file\n  from-sig       Derive a testnet2 and mainnet address from a signature\n  sign           Sign a message with a testnet2 private key\n  verify         Verify a signature with a testnet2 address and message\n  help           Print this message or the help of the given subcommand(s)\n\nOptions:\n  -j, --json     Enable JSON output\n  -h, --help     Print help\n  -V, --version  Print version\n```\n\n## Setup/Building\n\n### Rust\n\n1. Install [rust](https://www.rust-lang.org/tools/install)\n1. Clone this repo\n1. View help message: `cargo run`\n\n### Container\n\n1. Install a container engine such as [docker](https://docs.docker.com/engine/install/) or [podman](https://podman.io/docs/installation).\n1. Build the container: `docker build . -t aleo-testnet2-tools`\n1. Run the CLI in a container `docker run --rm aleo-testnet2-tools tool \u003cCOMMAND\u003e` (replace `\u003cCOMMAND\u003e` with `from-key ...` or `--help`)\n\n\u003e [!NOTE]\n\u003e The file/path based commands/options will not work in containers\n\u003e\n\u003e ```sh\n\u003e # Example of signing a message using a container with a key from the host filesystem\n\u003e docker run --rm aleo-testnet2-tools tool sign -p $(cat ~/.aleo/key) -m \"hello, world!\"\n\u003e ```\n\n\n## Commands\n\nAll commands, when run with `--json` (eg. `cargo run -q -- --json`) will output as JSON.\n\n### `from-key` - Derive addresses from key\n\n```sh\n# Input the private key as plaintext\n$ cargo run -q from-key APrivateKey...\ntestnet2 address: aleo1...\nmainnet address: aleo1...\n```\n\n### `from-key-file` - Derive addresses from key file\n\n```sh\n# Input the private key from a file\n$ cargo run -q from-key-file ./path/to/testnet2.key\ntestnet2 address: aleo1...\nmainnet address: aleo1...\n```\n\n### `from-sig` - Derive addresses from a signature\n\n```sh\n$ cargo run -q from-sig sign1...\"\ntestnet2 address: aleo1...\n```\n\n### `sign` - Sign a message with a Testnet2 private key\n\n```sh\n# Sign a message from a private key file\n$ cargo run -q sign -f ./path/to/testnet2.key -m \"my message\"\nsign1...\n\n# Sign a message from a plaintext private key\n$ cargo run -q sign -p APrivate1... -m \"my message\"\nsign1...\n```\n\n### `verify` - Verify a message signed with a Testnet2 private key\n\n```sh\n# Sign a message from a private key file\n$ cargo run -q verify -a aleo1... -m \"signed message\" -s sign1...\ntrue # (or false)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonadicus%2Faleo-testnet2-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonadicus%2Faleo-testnet2-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonadicus%2Faleo-testnet2-tools/lists"}