richardschneider / net-ipfs-http-client

InterPlanetary File System client for .Net (C#, VB, F# ...)
MIT License
158 stars 52 forks source link

Validate a MultiAddress #1

Closed richardschneider closed 6 years ago

richardschneider commented 9 years ago

Add a MultiAddress.Validate() that verifies each protocol is known and its Value is valid. Throws an Exception if not valid.

When parsing a MultiAddress we do not want to validate because more recent IPFS peers might support protocols we don't know about. So validate, should only be used when we are about to contact the peer.

richardschneider commented 6 years ago

So far no use-case has been identified.