{"id":20226253,"url":"https://github.com/zilpay/zilliqa_ledger_flutter","last_synced_at":"2025-03-03T12:47:10.192Z","repository":{"id":262420388,"uuid":"886678094","full_name":"zilpay/zilliqa_ledger_flutter","owner":"zilpay","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-12T11:09:12.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-13T23:32:53.571Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","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/zilpay.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2024-11-11T12:09:33.000Z","updated_at":"2024-11-12T11:09:16.000Z","dependencies_parsed_at":"2024-11-12T10:50:38.414Z","dependency_job_id":"1e8344bc-eb06-476d-944a-e94270ca39af","html_url":"https://github.com/zilpay/zilliqa_ledger_flutter","commit_stats":null,"previous_names":["zilpay/zilliqa_ledger_flutter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zilpay%2Fzilliqa_ledger_flutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zilpay%2Fzilliqa_ledger_flutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zilpay%2Fzilliqa_ledger_flutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zilpay%2Fzilliqa_ledger_flutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zilpay","download_url":"https://codeload.github.com/zilpay/zilliqa_ledger_flutter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241670132,"owners_count":20000326,"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-14T07:16:58.145Z","updated_at":"2025-03-03T12:47:10.146Z","avatar_url":"https://github.com/zilpay.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://www.ledger.com/\"\u003e\n    \u003cimg src=\"https://cdn.freebiesupply.com/logos/large/2x/ledger-logo-png-transparent.png\" width=\"600\"/\u003e\n  \u003c/a\u003e\n\n\u003ch1 align=\"center\"\u003eledger-zilliqa\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    A Flutter Ledger App Plugin for the Zilliqa blockchain\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/zilpay/zilliqa_ledger_flutter/issues\"\u003eReport Bug\u003c/a\u003e\n    · \u003ca href=\"https://github.com/zilpay/zilliqa_ledger_flutter/issues\"\u003eRequest Feature\u003c/a\u003e\n    · \u003ca href=\"https://pub.dev/packages/ledger_flutter\"\u003eLedger Flutter\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\n---\n\n## Overview\n\nLedger Nano devices provide secure hardware wallet solutions for managing your cryptocurrencies. This Flutter package is a plugin for the [ledger_flutter](https://pub.dev/packages/ledger_flutter) package that enables interaction with the Zilliqa blockchain, allowing you to retrieve accounts and sign transactions using your Ledger hardware wallet.\n\n## Features\n\n- 🔑 Get public keys and addresses\n- 📝 Sign transactions\n- 🔐 Sign message hashes\n- 📱 Cross-platform support (iOS \u0026 Android)\n- ⚡️ Fast and efficient BLE communication\n- 🔒 Secure transaction signing\n\n## Getting Started\n\n### Installation\n\nAdd the latest version of this package to your `pubspec.yaml`:\n\n```yaml\ndependencies:\n  zilliqa_ledger_flutter: ^latest-version\n```\n\nFor integration with the Ledger Flutter package, check out the documentation [here](https://pub.dev/packages/ledger_flutter).\n\n### Setup\n\nCreate a new instance of a `ZilliqaLedgerApp` and pass an instance of your `Ledger` object:\n\n```dart\nfinal app = ZilliqaLedgerApp(ledger);\n```\n\n## Usage\n\n### Get Public Key and Address\n\nYou can retrieve the public key and address for a specific account index:\n\n```dart\n// Get public key\nfinal publicKey = await app.getPublicKey(device, accountIndex);\n\n// Get public address\nfinal addressInfo = await app.getPublicAddress(device, accountIndex);\nprint('Address: ${addressInfo.address}');\nprint('Public Key: ${addressInfo.publicKey}');\n```\n\n### Sign Transactions\n\nSign Zilliqa transactions using your Ledger device:\n\n```dart\n// Prepare your transaction bytes\nfinal transaction = // Your encoded transaction bytes\n\nfinal signature = await app.signZilliqaTransaction(\n    device,\n    transaction,\n    accountIndex,\n);\n\n// Use the signature with your transaction\nprint('Transaction signature: $signature');\n```\n\n### Sign Message Hash\n\nSign message hashes for verification:\n\n```dart\nfinal hash = // Your message hash bytes\nfinal signature = await app.signHash(\n    device,\n    hash,\n    accountIndex,\n);\n\nprint('Message signature: $signature');\n```\n\n## Error Handling\n\nThe plugin includes comprehensive error handling for common Ledger operations:\n\n```dart\ntry {\n  final publicKey = await app.getPublicKey(device, accountIndex);\n} catch (e) {\n  if (e is LedgerException) {\n    // Handle Ledger-specific errors\n    print('Ledger error: ${e.message}');\n  } else {\n    // Handle other errors\n    print('Error: $e');\n  }\n}\n```\n\n## Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag `enhancement`.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/amazing-feature`)\n3. Commit your Changes (`git commit -m 'feat: add some amazing feature'`)\n4. Push to the Branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License\n\nThe zilliqa_ledger_flutter package is released under the MIT License. See [LICENSE](LICENSE) for details.\n\n## Support\n\nIf you like this package, consider supporting it by:\n- ⭐️ Starring the repository\n- 🐛 Reporting bugs\n- 📝 Contributing to the codebase\n- 💡 Suggesting new featuresrom the package authors, and more.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzilpay%2Fzilliqa_ledger_flutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzilpay%2Fzilliqa_ledger_flutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzilpay%2Fzilliqa_ledger_flutter/lists"}