transports/noise: Expose Prologue mechanism
Description
Enable users to provide a Noise Prologue via Builder::prologue.
Motivation
Needed for https://github.com/libp2p/rust-libp2p/pull/2622, more specifically to validate the remote's TLS fingerprints. See https://github.com/libp2p/specs/pull/412#discussion_r930582351.
Requirements
Open questions
Are you planning to do it yourself in a pull request?
Maybe. In case someone wants to pick this up instead, please comment to make sure we are not duplicating work.
Corresponding pull request on the Golang side: https://github.com/libp2p/go-libp2p/pull/1663
@melekes Let me know if you are going to pick this up, otherwise I'll take it :)
Please go ahead. I will focus more on smoldot / substrate side for now.