{"id":17144997,"url":"https://github.com/mikesposito/walleth","last_synced_at":"2025-04-13T11:12:23.918Z","repository":{"id":195596625,"uuid":"692168708","full_name":"mikesposito/walleth","owner":"mikesposito","description":"A Rust library for easily create, manage, use and protect Ethereum accounts.","archived":false,"fork":false,"pushed_at":"2024-05-08T23:31:16.000Z","size":89,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T11:12:19.284Z","etag":null,"topics":["accounts","ethereum","library","rust","wallet","webassembly"],"latest_commit_sha":null,"homepage":"","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/mikesposito.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-09-15T18:02:37.000Z","updated_at":"2024-11-22T04:24:08.000Z","dependencies_parsed_at":"2023-09-24T10:59:37.155Z","dependency_job_id":"71055865-b70f-4f5d-aabf-f2c9cfa50cd7","html_url":"https://github.com/mikesposito/walleth","commit_stats":null,"previous_names":["mikesposito/walleth"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikesposito%2Fwalleth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikesposito%2Fwalleth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikesposito%2Fwalleth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikesposito%2Fwalleth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikesposito","download_url":"https://codeload.github.com/mikesposito/walleth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248703198,"owners_count":21148118,"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":["accounts","ethereum","library","rust","wallet","webassembly"],"created_at":"2024-10-14T21:04:05.907Z","updated_at":"2025-04-13T11:12:23.891Z","avatar_url":"https://github.com/mikesposito.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# walleth\n\nA (WIP) Rust library for easily create, manage, use and protect Ethereum accounts. Interacting with keys and signing transactions securely (will be) made as easy as breathing.\n\n\u003e [!WARNING]\n\u003e This library is under development and APIs are rapidly changing iIncluding this README!). Make sure to lock to a specific crate version to avoid updates. \n\n## Features\n- [x] 💳 Multiple BIP39 HD wallets management\n- [x] 🔐 Built-in encryption for all keys managed\n- [x] ✨ Built-in bytes serialization / deserialization for the entire keychain\n- [x] 🚧 Customizable wallet classes (HD, single, etc..)\n- [ ] 🌎 Built-in network scraper\n- [ ] 🛒 Built-in transaction manager\n- [ ] ⚡️ Built-in JSON-RPC Provider engine\n\n## Usage\n\n### Create a new keychain\n```rust\nuse walleth::keychain::Keychain;\nuse walleth::hdkey::HDKey;\n\nlet mut keychain = Keychain::\u003cHDKey\u003e::new();\n```\n\n### Add a new HD Wallet to the keychain\n```rust\nuse walleth::keychain::Keychain;\nuse walleth::hdkey::{HDKey, hdkey_factory};\n\nlet mut keychain = Keychain::\u003cHDKey\u003e::new();\nlet hdwallet = keychain.add_multi_keypair(hdkey_factory, None).unwrap();\n```\n\n### Add a new HD Wallet to the keychain with a specific mnemonic\n```rust\nuse walleth::keychain::Keychain;\nuse walleth::hdkey::{HDKey, hdkey_factory};\n\nlet mnemonic = \"grocery belt target explain clay essay focus spatial skull brain measure matrix toward visual protect owner stone scale slim ghost panda exact combine game\".to_string();\nlet mut keychain = Keychain::\u003cHDKey\u003e::new();\nlet hdwallet = keychain.add_multi_keypair(hdkey_factory, Some(mnemonic)).unwrap();\n```\n\n### Derive keys and sign\n\n```rust\nuse walleth::{\n  keychain::Keychain,\n  hdkey::{HDKey, hdkey_factory},\n  identity::{\n    MultiKeyPair,\n    AccountDeriver,\n    signer::{Signer, Signable}\n  },\n};\n\nlet mut keychain = Keychain::\u003cHDKey\u003e::new();\nlet hdwallet = keychain.add_multi_keypair(hdkey_factory, None).unwrap();\n\n// Derive an account at path\nlet account = hdwallet.account_at(0).unwrap();\n\n// Sign a message\nlet signature = hdwallet.sign(\u0026account, \"Hello\".as_bytes()).unwrap();\n\n// Verify signature\nhdwallet.verify(\u0026account, \"Hello\".as_bytes(), \u0026signature);\n```\n\n\u003e [!NOTE]\n\u003e See [documentation page](https://docs.rs/walleth/0.1.0/walleth) for more information about the available methods and modules, and how to use them.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikesposito%2Fwalleth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikesposito%2Fwalleth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikesposito%2Fwalleth/lists"}