Commit Graph

7 Commits

Author SHA1 Message Date
Olaoluwa Osuntokun
a67603051c Further flesh out sphinx implementation
* Over head is quite small, at just 225 bytes if assuming 5 hops
* Most likely also don’t even need the message at all?
  * What would it contain?

* Bunch of TODO’s still left in the code, need to write the portion for
processing and forwarding mix headers received by the nodes.

* After the processing stuff, need to write an extensive set of tests
to ensure correctness.

* Also, need to figure out the division between nodeID and lightning
address. For sphinx, they must be “prefix free”.
2016-01-15 19:20:25 -08:00
Olaoluwa Osuntokun
90316e6426 Yep, secret derivation checks it out sage math
* Meaning the way we calculate the shared secret
* They get M = (G * x_us) * b_0, they calc the secret with M * x_them
   * M * x_them = G * x_us * b_ * x_them
* We have H = (G * x_them), we calc with H * (x_us * b_0 mod n))
  * H * (x_us * b_0) = G * x_them * x_us * b_0
2016-01-15 19:20:25 -08:00
Olaoluwa Osuntokun
032c24824a start of sphinx implementation, need to verify in sage tho 2016-01-15 19:20:25 -08:00
Olaoluwa Osuntokun
32db5f7dfe moving sphinx stuff to diff file 2016-01-15 19:20:25 -08:00
Olaoluwa Osuntokun
7a42591826 move notes to self to new files 2016-01-15 19:20:22 -08:00
Olaoluwa Osuntokun
6c11bcd0ce HMAC is part of AHDR not the FS 2015-10-06 14:36:18 -07:00
Olaoluwa Osuntokun
f16691a98f Initial brain dump of ln-hornet 2015-10-06 14:34:26 -07:00