libp2p / specs

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

Should the libp2p extension be over SubjectPublicKeyInfo? #245

Open Demi-Marie opened 4 years ago

Demi-Marie commented 4 years ago

Should the libp2p extension include a signature of SubjectPublicKeyInfo instead of a signature of the public key? This seems to be good practice, as SubjectPublicKeyInfo includes not only the public key, but also the signature algorithm. For example, if RSA PKCS 1.5 were broken, but RSASSA-PSA was not broken, this would prevent forgery attacks until clients could upgrade their TLS libraries to reject RSA PKCS 1.5.