libp2p / specs

Technical specifications for the libp2p networking stack
https://libp2p.io
1.56k stars 273 forks source link

Ambiguity in ECDSA and secp256k1 implementation #540

Open drHuangMHT opened 1 year ago

drHuangMHT commented 1 year ago

ECDSA is a kind of algorithm while secp256k1 is a kind of curve used in ECDSA. However, the two things are listed at the same level in peer-ids. And there are other kinds of curve like secp256r1 and secp384r1 that can be used in ECDSA but not mentioned in the sepc.
Therefore, I propose that we make secp256k1 support a MUST when supporting ECDSA and other curves a MAY. This also means we stop listing secp256k1 and ECDSA at the same level.