Clarification over TTL and LifeTime for IPNS Records

  • lifetime indicates for how long a given record is valid (maximum time this record will be valid for)
  • ttl is a optional value saying how long a record can be cached for (minimum time this record will be valid for / acceptable).

TTL option is currently experimental, and it’s been wired through in a slightly weird way - through a context value - https://github.com/ipfs/go-ipfs/blob/d40c69f56e3f2abfa8a72d3213a5ca1e8af1ab98/namesys/publisher.go#L204