ape-trezor


Nameape-trezor JSON
Version 0.7.0 PyPI version JSON
download
home_pagehttps://github.com/ApeWorX/ape-trezor
Summaryape-trezor: Plugin for Trezor Hardware Wallets
upload_time2023-12-19 02:12:27
maintainer
docs_urlNone
authorApeWorX Ltd.
requires_python>=3.8,<4
licenseApache-2.0
keywords ethereum
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Quick Start

Ape Trezor is a plugin for [Ape Framework](https://github.com/ApeWorx/ape) which integrates [Trezorlib ethereum.py](https://github.com/trezor/trezor-firmware/blob/master/python/src/trezorlib/ethereum.py) to load and create accounts, sign messages, and sign transactions.

## Dependencies

- [python3](https://www.python.org/downloads) version 3.8 up tp 3.11.

**Note**: USB does not work in WSL2 environments natively and is [not currently supported](https://github.com/microsoft/WSL/issues/5158).

## Installation

### via `pip`

You can install the latest release via [`pip`](https://pypi.org/project/pip/):

```bash
pip install ape-trezor
```

### via `setuptools`

You can clone the repository and use [`setuptools`](https://github.com/pypa/setuptools) for the most up-to-date version:

```bash
git clone https://github.com/ApeWorX/ape-trezor.git
cd ape-trezor
python3 setup.py install
```

## Quick Usage

Trezor accounts have the following capabilities in `ape`:

1. Can sign transactions (both static-fee and EIP-1559 compliant)
2. Can sign messages using the default EIP-191 specification

To use the Trezor plugin, you must have the Trezor USB device connected and unlocked.

**WARNING**: When the Trezor Suite is open, you may face additional connection issues.
It is recommended to not have the Trezor Suite application open while using the plugin.

## Add Accounts

Add accounts using the `add` command:

```bash
ape trezor add <alias>
```

You can also specify the HD Path:

```bash
ape trezor add <alias> --hd-path "m/44'/1'/0'/0"
```

**WARNING**: When using 3rd party wallets, such as this plugin, `trezorlib` discourages signing transactions from the default Ethereum HD Path `m/44'/60'/0'/0`.
Changing the HD-Path in that circumstance will allow fewer warnings from both Ape and the device, as well as improved security.
See https://github.com/trezor/trezor-firmware/issues/1336#issuecomment-720126545 for more information.

```yaml
trezor:
  hd_path: "m/44'/1'/0'/0"
```

## List Accounts

To list just your Trezor accounts in `ape`, do:

```bash
ape trezor list
```

## Remove accounts

You can also remove accounts:

```bash
ape trezor delete <alias>
ape trezor delete-all
```

## Sign Messages

You can sign messages with your accounts:

```bash
ape trezor sign-message <alias> "hello world"
```

## Verify Messages

You can also verify a message with a signature:

```bash
ape trezor verify-message "hello world" <signature>
```

## Development

Please see the [contributing guide](CONTRIBUTING.md) to learn more how to contribute to this project.
Comments, questions, criticisms and pull requests are welcomed.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ApeWorX/ape-trezor",
    "name": "ape-trezor",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4",
    "maintainer_email": "",
    "keywords": "ethereum",
    "author": "ApeWorX Ltd.",
    "author_email": "admin@apeworx.io",
    "download_url": "https://files.pythonhosted.org/packages/5e/88/cea31516815ea7f7912eec3710e13cd8361ccabf387625b50eb0370353bf/ape-trezor-0.7.0.tar.gz",
    "platform": null,
    "description": "# Quick Start\n\nApe Trezor is a plugin for [Ape Framework](https://github.com/ApeWorx/ape) which integrates [Trezorlib ethereum.py](https://github.com/trezor/trezor-firmware/blob/master/python/src/trezorlib/ethereum.py) to load and create accounts, sign messages, and sign transactions.\n\n## Dependencies\n\n- [python3](https://www.python.org/downloads) version 3.8 up tp 3.11.\n\n**Note**: USB does not work in WSL2 environments natively and is [not currently supported](https://github.com/microsoft/WSL/issues/5158).\n\n## Installation\n\n### via `pip`\n\nYou can install the latest release via [`pip`](https://pypi.org/project/pip/):\n\n```bash\npip install ape-trezor\n```\n\n### via `setuptools`\n\nYou can clone the repository and use [`setuptools`](https://github.com/pypa/setuptools) for the most up-to-date version:\n\n```bash\ngit clone https://github.com/ApeWorX/ape-trezor.git\ncd ape-trezor\npython3 setup.py install\n```\n\n## Quick Usage\n\nTrezor accounts have the following capabilities in `ape`:\n\n1. Can sign transactions (both static-fee and EIP-1559 compliant)\n2. Can sign messages using the default EIP-191 specification\n\nTo use the Trezor plugin, you must have the Trezor USB device connected and unlocked.\n\n**WARNING**: When the Trezor Suite is open, you may face additional connection issues.\nIt is recommended to not have the Trezor Suite application open while using the plugin.\n\n## Add Accounts\n\nAdd accounts using the `add` command:\n\n```bash\nape trezor add <alias>\n```\n\nYou can also specify the HD Path:\n\n```bash\nape trezor add <alias> --hd-path \"m/44'/1'/0'/0\"\n```\n\n**WARNING**: When using 3rd party wallets, such as this plugin, `trezorlib` discourages signing transactions from the default Ethereum HD Path `m/44'/60'/0'/0`.\nChanging the HD-Path in that circumstance will allow fewer warnings from both Ape and the device, as well as improved security.\nSee https://github.com/trezor/trezor-firmware/issues/1336#issuecomment-720126545 for more information.\n\n```yaml\ntrezor:\n  hd_path: \"m/44'/1'/0'/0\"\n```\n\n## List Accounts\n\nTo list just your Trezor accounts in `ape`, do:\n\n```bash\nape trezor list\n```\n\n## Remove accounts\n\nYou can also remove accounts:\n\n```bash\nape trezor delete <alias>\nape trezor delete-all\n```\n\n## Sign Messages\n\nYou can sign messages with your accounts:\n\n```bash\nape trezor sign-message <alias> \"hello world\"\n```\n\n## Verify Messages\n\nYou can also verify a message with a signature:\n\n```bash\nape trezor verify-message \"hello world\" <signature>\n```\n\n## Development\n\nPlease see the [contributing guide](CONTRIBUTING.md) to learn more how to contribute to this project.\nComments, questions, criticisms and pull requests are welcomed.\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "ape-trezor: Plugin for Trezor Hardware Wallets",
    "version": "0.7.0",
    "project_urls": {
        "Homepage": "https://github.com/ApeWorX/ape-trezor"
    },
    "split_keywords": [
        "ethereum"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0ada95deef95c727a367c23041a97b7306a0ede17095b550fbda9f5c8620f135",
                "md5": "b73ae850152fa1e5cdaa6d122819fa15",
                "sha256": "354c66774cc0058a9765d16df02f18fcd4395aeb8ecd8e77e589ab49c6b69596"
            },
            "downloads": -1,
            "filename": "ape_trezor-0.7.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b73ae850152fa1e5cdaa6d122819fa15",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4",
            "size": 17097,
            "upload_time": "2023-12-19T02:12:26",
            "upload_time_iso_8601": "2023-12-19T02:12:26.201563Z",
            "url": "https://files.pythonhosted.org/packages/0a/da/95deef95c727a367c23041a97b7306a0ede17095b550fbda9f5c8620f135/ape_trezor-0.7.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5e88cea31516815ea7f7912eec3710e13cd8361ccabf387625b50eb0370353bf",
                "md5": "1ebffaf901cca4b155e2535ff60b78f3",
                "sha256": "db30ccf37a3e642daf4d4ed38c90b273fd2e7721fdd0a0b93ca952fc4443f05a"
            },
            "downloads": -1,
            "filename": "ape-trezor-0.7.0.tar.gz",
            "has_sig": false,
            "md5_digest": "1ebffaf901cca4b155e2535ff60b78f3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4",
            "size": 27459,
            "upload_time": "2023-12-19T02:12:27",
            "upload_time_iso_8601": "2023-12-19T02:12:27.468392Z",
            "url": "https://files.pythonhosted.org/packages/5e/88/cea31516815ea7f7912eec3710e13cd8361ccabf387625b50eb0370353bf/ape-trezor-0.7.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-19 02:12:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ApeWorX",
    "github_project": "ape-trezor",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "ape-trezor"
}
        
Elapsed time: 0.17099s