Ed25519 --keygen won't work
Playing with Ed25519 keys to write the documentation and identify bugs or issues.
First one: tor --keygen and/or tor --datadirectory /var/lib/tor/keys --keygen will not work. It asks me for the password 2 times and aborts. Here is the output (using Debian Wheezy 64 bit and Tor 0.2.7.2-alpha installed from deb.tp.o tor-nightly-master-wheezy; checked permissions on directories):
Jul 27 21:03:21.080 [err] tor_assertion_failed_(): Bug: ../src/or/router.c:229: get_server_identity_key: Assertion server_identitykey failed; aborting. (on Tor 0.2.7.2-alpha-dev ) Jul 27 21:03:21.080 [err] Bug: Assertion server_identitykey failed in get_server_identity_key at ../src/or/router.c:229. Stack trace: (on Tor 0.2.7.2-alpha-dev ) Jul 27 21:03:21.080 [err] Bug: tor(log_backtrace+0x41) [0x7f6227482311] (on Tor 0.2.7.2-alpha-dev ) Jul 27 21:03:21.080 [err] Bug: tor(tor_assertion_failed_+0x9f) [0x7f622748fd9f] (on Tor 0.2.7.2-alpha-dev ) Jul 27 21:03:21.080 [err] Bug: tor(get_server_identity_key+0x93) [0x7f62273cb0d3] (on Tor 0.2.7.2-alpha-dev ) Jul 27 21:03:21.080 [err] Bug: tor(load_ed_keys+0x525) [0x7f62273d2075] (on Tor 0.2.7.2-alpha-dev ) Jul 27 21:03:21.080 [err] Bug: tor(tor_main+0x180a) [0x7f622739975a] (on Tor 0.2.7.2-alpha-dev ) Jul 27 21:03:21.080 [err] Bug: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7f6225c81ead] (on Tor 0.2.7.2-alpha-dev ) Jul 27 21:03:21.080 [err] Bug: tor(+0x3cc9d) [0x7f6227392c9d] (on Tor 0.2.7.2-alpha-dev ) Aborted