2016-07-30 11:52:50 +00:00
|
|
|
Note: the GPG-related code is still under development, so please try the current implementation
|
|
|
|
and feel free to [report any issue](https://github.com/romanz/trezor-agent/issues) you have encountered.
|
|
|
|
Thanks!
|
2016-07-30 11:45:50 +00:00
|
|
|
|
2016-06-20 19:38:30 +00:00
|
|
|
# Installation
|
2016-05-07 10:02:10 +00:00
|
|
|
|
2016-05-07 12:51:01 +00:00
|
|
|
First, verify that you have GPG 2.1+ [installed](https://gist.github.com/vt0r/a2f8c0bcb1400131ff51):
|
2016-06-20 19:13:05 +00:00
|
|
|
|
2016-05-06 19:16:03 +00:00
|
|
|
```
|
2016-05-07 12:51:01 +00:00
|
|
|
$ gpg2 --version | head -n1
|
2016-10-18 15:12:42 +00:00
|
|
|
gpg (GnuPG) 2.1.15
|
2016-05-06 19:16:03 +00:00
|
|
|
```
|
|
|
|
|
2016-10-04 16:59:08 +00:00
|
|
|
Update you TREZOR firmware to the latest version (at least v1.4.0).
|
2016-06-20 19:13:05 +00:00
|
|
|
|
2016-10-04 16:59:08 +00:00
|
|
|
Install latest `trezor-agent` package from GitHub:
|
2016-05-07 17:41:34 +00:00
|
|
|
```
|
2016-08-27 17:59:25 +00:00
|
|
|
$ pip install --user git+https://github.com/romanz/trezor-agent.git
|
2016-05-07 17:41:34 +00:00
|
|
|
```
|
|
|
|
|
2016-10-22 19:44:45 +00:00
|
|
|
# Quickstart
|
2016-05-07 10:15:29 +00:00
|
|
|
|
2016-10-24 16:48:47 +00:00
|
|
|
## Identity creation
|
|
|
|
[![asciicast](https://asciinema.org/a/c2yodst21h9obttkn9wgf3783.png)](https://asciinema.org/a/c2yodst21h9obttkn9wgf3783)
|
2016-06-20 19:13:05 +00:00
|
|
|
|
2016-10-24 16:48:47 +00:00
|
|
|
## Sample usage (signature and decryption)
|
|
|
|
[![asciicast](https://asciinema.org/a/7x0h9tyoyu5ar6jc8y9oih0ba.png)](https://asciinema.org/a/7x0h9tyoyu5ar6jc8y9oih0ba)
|
2016-05-07 10:02:10 +00:00
|
|
|
|
2016-05-07 12:51:01 +00:00
|
|
|
## Git commit & tag signatures:
|
|
|
|
Git can use GPG to sign and verify commits and tags (see [here](https://git-scm.com/book/en/v2/Git-Tools-Signing-Your-Work)):
|
2016-05-07 10:02:10 +00:00
|
|
|
```
|
2016-10-29 19:28:57 +00:00
|
|
|
$ git config --local gpg.program $(which gpg2)
|
2016-05-07 12:51:01 +00:00
|
|
|
$ git commit --gpg-sign # create GPG-signed commit
|
|
|
|
$ git log --show-signature -1 # verify commit signature
|
2016-10-23 10:56:22 +00:00
|
|
|
$ git tag --sign "v1.2.3" # create GPG-signed tag
|
|
|
|
$ git verify-tag "v1.2.3" # verify tag signature
|
2016-10-04 16:59:08 +00:00
|
|
|
```
|