Hi guys,
did anyone tried to setup gpg signing in on Fedora?
I’ve followed: GPG - Trezor Wiki
Installed instead packages: python3-pip python3-devel libusb systemd-devel gnupg2
and then tried to setup, however I’m getting an error:
[user@localhost ~]$ trezor-gpg init "Name Surname <[email protected]>" -v
2021-10-16 23:09:31,713 WARNING This GPG tool is still in EXPERIMENTAL mode, so please note that the API and features may change without backwards compatibility! [__init__.py:118]
2021-10-16 23:09:31,717 INFO device name: trezor [__init__.py:126]
2021-10-16 23:09:31,717 INFO GPG home directory: /home/user/.gnupg/trezor [__init__.py:131]
2021-10-16 23:09:31,722 WARNING NOTE: in order to re-generate the exact same GPG key later, run this command with "--time=0" commandline flag (to set the timestamp of the GPG key manually). [__init__.py:33]
2021-10-16 23:09:31,769 INFO Enumerating UdpTransport: found 0 devices [__init__.py:120]
2021-10-16 23:09:31,773 INFO Enumerating BridgeTransport: found 1 devices [__init__.py:120]
2021-10-16 23:09:31,783 INFO Enumerating WebUsbTransport: found 1 devices [__init__.py:120]
2021-10-16 23:09:31,788 INFO Enumerating HidTransport: found 0 devices [__init__.py:120]
2021-10-16 23:09:31,788 INFO creating client instance for device: bridge:1 [client.py:89]
2021-10-16 23:09:38,887 INFO Enumerating UdpTransport: found 0 devices [__init__.py:120]
2021-10-16 23:09:38,899 INFO Enumerating BridgeTransport: found 1 devices [__init__.py:120]
2021-10-16 23:09:38,903 INFO Enumerating WebUsbTransport: found 1 devices [__init__.py:120]
2021-10-16 23:09:38,907 INFO Enumerating HidTransport: found 0 devices [__init__.py:120]
2021-10-16 23:09:38,907 INFO creating client instance for device: bridge:1 [client.py:89]
2021-10-16 23:09:39,938 INFO creating new nist256p1 GPG primary key for "Name Surname <[email protected]>" [__init__.py:62]
2021-10-16 23:09:39,939 INFO please confirm GPG signature on Trezor for "<gpg://Name Surname <[email protected]>|nist256p1>"... [client.py:32]
2021-10-16 23:09:39,939 INFO Enumerating UdpTransport: found 0 devices [__init__.py:120]
2021-10-16 23:09:39,951 INFO Enumerating BridgeTransport: found 1 devices [__init__.py:120]
2021-10-16 23:09:39,954 INFO Enumerating WebUsbTransport: found 1 devices [__init__.py:120]
2021-10-16 23:09:39,959 INFO Enumerating HidTransport: found 0 devices [__init__.py:120]
2021-10-16 23:09:39,959 INFO creating client instance for device: bridge:1 [client.py:89]
2021-10-16 23:09:48,777 INFO please confirm GPG signature on Trezor for "<gpg://Name Surname <[email protected]>|nist256p1>"... [client.py:32]
2021-10-16 23:09:48,777 INFO Enumerating UdpTransport: found 0 devices [__init__.py:120]
2021-10-16 23:09:48,780 INFO Enumerating BridgeTransport: found 1 devices [__init__.py:120]
2021-10-16 23:09:48,781 INFO Enumerating WebUsbTransport: found 1 devices [__init__.py:120]
2021-10-16 23:09:48,784 INFO Enumerating HidTransport: found 0 devices [__init__.py:120]
2021-10-16 23:09:48,784 INFO creating client instance for device: bridge:1 [client.py:89]
gpg: keybox '/home/user/.gnupg/trezor/pubring.kbx' created
gpg: armor header: Version: GnuPG v2
gpg: pub nistp256/5DC87C3AAB1762A4 1970-01-01 Name Surname <[email protected]>
gpg: /home/user/.gnupg/trezor/trustdb.gpg: trustdb created
gpg: using pgp trust model
gpg: key 5DC87C3AAB1762A4: public key "Name Surname <[email protected]>" imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: inserting ownertrust of 6
gpg: checking the trustdb
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: error reading key: No secret key
Traceback (most recent call last):
File "/home/user/.local/bin/trezor-gpg", line 8, in <module>
sys.exit(gpg_tool())
File "/home/user/.local/bin/trezor_agent.py", line 6, in <lambda>
gpg_tool = lambda: libagent.gpg.main(DeviceType)
File "/home/user/.local/lib/python3.9/site-packages/libagent/gpg/__init__.py", line 320, in main
return args.func(device_type=device_type, args=args)
File "/home/user/.local/lib/python3.9/site-packages/libagent/gpg/__init__.py", line 198, in run_init
check_call(keyring.gpg_command(['--homedir', homedir,
File "/home/user/.local/lib/python3.9/site-packages/libagent/gpg/__init__.py", line 104, in check_call
subprocess.check_call(args=args, stdin=stdin, env=env)
File "/usr/lib64/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/gpg', '--homedir', '/home/user/.gnupg/trezor', '--list-secret-keys', 'Name Surname <[email protected]>']' returned non-zero exit status 2.
Seems like key is created and imported, however not found just in the next step. When I list wallet without filter, there is nothing.
Does anyone tried it or knows what’s wrong?
Thanks for any help.
Best, Juraj+