libp2p/js-libp2p-crypto

Ed25519 Private Key length

開放

#200 建立於 2021年10月7日

 (1 則留言) (0 個反應) (1 位負責人)TypeScript (49 個分叉)auto 404
P2good first issuehelp wantedstatus/ready

倉庫指標

星標
 (79 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南