hyperboria / bugs

Peer-to-peer IPv6 networking, secure and near-zero-conf.
154 stars 17 forks source link

privatetopublic tool broken #165

Open pruflyos opened 6 years ago

pruflyos commented 6 years ago

Looks like the privatetopublic command doesn't work (anymore) as expected.

When I generate private/public key address pairs with makekeys and afterwards copy one of the private keys into the privatetopublic command, I'll get Not a valid cjdns address:

cjdns$ ./makekeys 
09b96345a30e2214b48a9a59182f9cbf7d62bd3c5f6ca94253b0efe7fd33bdc7 fc79:3fbc:b47f:9e7e:1025:4f8f:b83a:6771 gfmn7w9p8752c8cjd4dkvqsv8psw4tblm1dsb9qpp2g9kxl17qh0.k

cjdns$ ./privatetopublic 
09b96345a30e2214b48a9a59182f9cbf7d62bd3c5f6ca94253b0efe7fd33bdc7
Not a valid cjdns address

However, the publictoip6 command works fine:

cjdns$ ./publictoip6 gfmn7w9p8752c8cjd4dkvqsv8psw4tblm1dsb9qpp2g9kxl17qh0.k
fc79:3fbc:b47f:9e7e:1025:4f8f:b83a:6771
progval commented 6 years ago

I sent a fix to cjdns: https://github.com/cjdelisle/cjdns/pull/1119

You might be unable to merge this patch on the current master; here is one for master: https://github.com/ProgVal/cjdns/commit/d8af47a26d823ef0acccf1c38bf8188b73e528be