3 ms·
Shameless plug: a few months back, I was going thru a coding bootcamp and for a 2-day sprint (forgive me) I wrote a simple, entirely insecure Lamport-Merkle dig
by nunyabuizness 11y ago
Shameless plug: a few months back, I was going thru a coding bootcamp and for a 2-day sprint (forgive me) I wrote a simple, entirely insecure Lamport-Merkle digital signature algorithm implementation [0] in JavaScript based on the "spec" outlined in the Wiki [1].
It uses nothing but Merkle trees and SHA-256 hashes, lacks documentation and should be used by no one, but the code is pretty simple to follow [2] and I'd appreciate any and all comments/criticisms in terms of implementation, optimizations, usage requirements and API improvements:
[0] https://github.com/sunny-g/Lamport-Merkle.js https://github.com/sunny-g/Lamport-Merkle.js
[1] https://en.wikipedia.org/wiki/Merkle_signature_scheme https://en.wikipedia.org/wiki/Merkle_signature_scheme
[2] http://blog.sunnyg.io/2014/12/13/merkle-key-trees-and-signature-scheme/ http://blog.sunnyg.io/2014/12/13/merkle-key-trees-and-signat...