Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix!: require IPNS V2 signatures #4207

Merged
merged 2 commits into from Sep 22, 2022
Merged

Conversation

lidel
Copy link
Member

@lidel lidel commented Sep 12, 2022

This PR makes js-ipfs ignore V1 signatures when validating IPNS records, and always require V2.

See ipfs/js-ipns#180 for low level details (needs that to be released before merging this)

Closes #4197

BREAKING CHANGE: IPNS Records that do not have V2 but have V1 signature will no longer pass validation, even if V1 is correct. V2 is mandatory to pass validation. See "Record validation" in ipfs/specs#319 for details.

ipfs/js-ipns#180

BREAKING CHANGE: IPNS V1 signatures are ignored, records without V2 signature are no longer marked as Valid.
@lidel lidel changed the title fix: require IPNS V2 signatures fix!: require IPNS V2 signatures Sep 20, 2022
@lidel
Copy link
Member Author

lidel commented Sep 20, 2022

@achingbrain switched this PR to js-ipns v3.0.0, ready for your final review. We are planning to release ipfs/kubo#9265 in Kubo 0.16 RC this/next week, so would be good to ship JS version in the next JS-IPFS release too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Remove support for deprecated IPNS records v1
2 participants