hyperledger / fabric-gateway

Go, Node and Java client API for Hyperledger Fabric v2.4+
https://hyperledger.github.io/fabric-gateway/
Apache License 2.0
150 stars 87 forks source link

Use noble-curves for Node crypto implementation (again) #677

Closed bestbeforetoday closed 5 months ago

bestbeforetoday commented 6 months ago

As a blockchain developer I want a light-weight crypto implementation So that the attack surface of dependencies in minimised

noble-curves appears to be a lighter weight, more actively supported, better typed, and potentially faster crypto implementation than elliptic.

This issue is the same as #524, which was implemented in commit c040e5251670223c4d5f0142ef4f3205ac644c65 and then undone in commit f75f44020d5bec45b3d303267de8ab76c2cabaef due to lack of support for big-endian platforms. Once a version of noble-hashes >1.3.3 is available (including the big-endian support now committed in the main branch), and a version of noble-curves depending on that noble-hashes version is released, the signing implementation can be reimplemented to use noble-hashes.