storacha / w3name

IPNS client and service for generating, updating, and tracking immutable names with signed updates
Other
45 stars 12 forks source link

fix: Implement initial record validity checks. #11

Closed joshJarr closed 2 years ago

joshJarr commented 2 years ago

Implemented some initial validity checks following https://github.com/web3-storage/web3.storage/blob/main/packages/db/postgres/functions.sql#L456 and https://github.com/ipfs/go-ipns/blob/a8379aa25ef287ffab7c5b89bfaad622da7e976d/ipns.go#L325

Requires more tests to be written for cover every case

adamalton commented 2 years ago

Back to you, @joshJarr for a re-review.

joshJarr commented 2 years ago

This looks good to me! will merge this now