libp2p/js-libp2p-crypto

Ed25519 Private Key length

オープン

#200 opened on 2021/10/07

 (1 件のコメント) (0 件のリアクション) (1 人の担当者)TypeScript (49 件のフォーク)auto 404
P2good first issuehelp wantedstatus/ready

Repository metrics

Stars
 (79 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Constructing a new Ed25519 key by passing a 32 byte Uint8Array should be allowed. I assume this check is due to the convention of passing in private & public concatenated, would be nice to detect a 32 byte key per the spec.

I could work on a pull if this is of interest to anyone else.

https://github.com/libp2p/js-libp2p-crypto/blob/a99f419f7904317271c3d0eb6f8eb31e69d3f9b5/src/keys/ed25519-class.js#L44

コントリビューターガイド