fix: add isCryptographicIPNS check for ipns-ns #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@makoto @Arachnid
This is a PoC that makes migration away from non-cryptographic identifiers in
ipns-ns
(ensdomains/ens-app#849 (comment) less painful:ipns-ns
+ printing deprecation warning👉 this PR as a starting point for a discussion, do not merge it.
I don't like how hacky detection of inlined names is, but this is the only way to correctly decode string like
app.uniswap.org
in your GUI web app and at the same time refuse to encode a non-libp2p-key string inlined inside Base58 multihash.I am not sure if we should pollute this library with workarounds for things that should be either in web interface at ens-app or in the at the contract level (if ENS did CID validation at the contract level, it would never allow names in the first place).
app.uniswap.org
, so it receivesapp.uniswap.org
already encoded as an identity multihash with value inlined as digest – where is this happening?ens-app
passed original identifier as-is, and did not turn it to Base58, then this entire PR would not be necessary.lmk your thought on this