Closed RangerMauve closed 5 years ago
If you are doing an implementation (as noted on IRC), you might be interested in these notes:
https://github.com/bnewbold/geniza/blob/master/notes/crypto/notes.txt https://github.com/bnewbold/geniza/tree/master/notes
I think @yoshuawuyts also started a "how to implement dat" guide as part of datrs... maybe this? https://github.com/datrs/book/tree/master/src
And https://github.com/datrs/tree-index/issues/7 cool stuff there as well :)
@RangerMauve I went to make the PR but I'm not 100% what aspect was unclear. (Sorry to put this on you but) could you make an PR or suggest some language that you think would clarify this?
Sure, I'll do a PR. Basically, I just want to add some psuedocode to show how signatures are generated for a node, and how they are verified once you get a node.
@RangerMauve Okay awesome 👍 gracias!
The hypercore DEP (0002) contains some useful example code for how nodes are hashed.
I think it's important to do the same thing for signing these nodes because it was a little hard to follow the internals in hypercore and hypercore-crypto to find this line.