You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/llarp
Jason Rhinelander 860c5efd47 Derived key fixes
The reason things weren't working here is because libsodium does
something completely unintuitive and called the seed the "secret key"
when it isn't, it's the seed.

This adds a new PrivateKey class (alongside the existing SecretKey and
PubKey) that holds just a private key value but no seed -- which we need
to do because there is no way we can get a seed after calculating a
derived keypair.

With these changes, we now generate exactly the same keys and subkeys as
Tor (and a new test case uses values generated in Tor to verify this).

This is incomplete -- the subkey signing code is still not implemented;
it has to be adapted to create a signature from a PrivateKey rather than
a SecretKey which will probably requiring working around/reimplementing
some of what libsodium does for creating a signature since it expects
"secret keys" i.e. the seed.
5 years ago
..
android Produce hierarchy of 'libraries' inside libllarp 6 years ago
config configurable log level 5 years ago
consensus initial wack at 0.7.0 dht fixes 5 years ago
constants initial wack at 0.7.0 dht fixes 5 years ago
crypto Derived key fixes 5 years ago
dht initial dht key blinding 5 years ago
dns prune unused files. 5 years ago
ev monotonic time and run testnet at 20% realtime 5 years ago
exit m_LastUse shouldn't be 0 ever now 5 years ago
handlers limit number of snode sessions client side 5 years ago
hook prepare for 0.5.0 5 years ago
iwp initial wack at 0.7.0 dht fixes 5 years ago
link initial wack at 0.7.0 dht fixes 5 years ago
linux Produce hierarchy of 'libraries' inside libllarp 6 years ago
messages initial wack at 0.7.0 dht fixes 5 years ago
net remove side effect from address detection assert 5 years ago
path initial dht key blinding 5 years ago
router initial wack at 0.7.0 dht fixes 5 years ago
routing initial wack at 0.7.0 dht fixes 5 years ago
rpc Add support for lokid's "unchanged" response 5 years ago
service Derived key fixes 5 years ago
util initial wack at 0.7.0 dht fixes 5 years ago
win32 happy new year 5 years ago
CMakeLists.txt initial wack at 0.7.0 dht fixes 5 years ago
app.xml stray tag ;-; 6 years ago
bootstrap.cpp add bootstrap list functionality and utility 5 years ago
bootstrap.hpp add bootstrap list functionality and utility 5 years ago
context.cpp contrib/testnet: fix up testnet config generator to make super centralized topology 5 years ago
nodedb.cpp connect to closer nodes for introset lookups 5 years ago
nodedb.hpp connect to closer nodes for introset lookups 5 years ago
pow.cpp prepare for 0.5.0 5 years ago
pow.hpp Port code to use CryptoManager over passing Crypto pointers 5 years ago
profiling.cpp more intellegent path failure profiling using LRSM 5 years ago
profiling.hpp more intellegent path failure profiling using LRSM 5 years ago
router_contact.cpp router version 5 years ago
router_contact.hpp router version 5 years ago
router_id.cpp prepare for 0.5.0 5 years ago
router_id.hpp prepare for 0.5.0 5 years ago
router_version.cpp make it compile 5 years ago
router_version.hpp make it compile 5 years ago
testnet.c prepare for 0.5.0 5 years ago