Handshake

hkdfのboltにおける使い方を追っていたら偶然見つけたプロジェクト。
ソースを見るかぎりjsでごりごり書いており、健全なプロジェクトには見える。

Joseph Poonが関わっているらしい。
ピーター・ティールのFounders Fundも出資している。

接続にはnoise protocolが利用されていて、lightning networkのノウハウを活用しているものと思われる。 jsでどうやって書こうかずっと悩んでいたコードも、例えばしっかり書いてある。

https://github.com/handshake-org/hsd

mixKey(input) {  
  const info = EMPTY;
  const secret = input;
  const salt = this.chain;

  [this.chain, this.temp] = expand(secret, salt, info);

  this.initKey(this.temp);

  return this;
}