Ape Trezor is a plugin for Ape Framework which integrates Trezorlib ethereum.py to load and create accounts, sign messages, and sign transactions.
- python3 version 3.8 or greater, python3-dev
You can install the latest release via pip
:
pip install ape-trezor
You can clone the repository and use setuptools
for the most up-to-date version:
git clone https://github.com/ApeWorX/ape-trezor.git
cd ape-trezor
python3 setup.py install
You must have the Trezor USB device connected.
Then, add accounts:
ape trezor add <alias>
Trezor accounts have the following capabilities in ape
:
- Can sign transactions
- Can sign messages using the default EIP-191 specification
To list just your Trezor accounts in ape
, do:
ape trezor list
You can also remove accounts:
ape trezor delete <alias>
ape trezor delete-all
You can sign messages with your accounts:
ape trezor sign-message <alias> "hello world"
You can also verify a message with a signature:
ape trezor verify-message "hello world" <signature>
Please see the contributing guide to learn more how to contribute to this project. Comments, questions, criticisms and pull requests are welcomed.