Skip to content

Commit 55c6a67

Browse files
authored
Merge pull request #354 from ipfs/hacdias-patch-1
docs: validity follows expiration window
2 parents 9141da7 + ba619e8 commit 55c6a67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ipns/IPNS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ A logical IPNS record is a data structure containing the following fields:
132132
- Implementations MUST support `validityType = 0` and include this value in both `IpnsEntry.validityType` and inside the DAG-CBOR document at `IpnsEntry.data[validityType]`.
133133
- **Validity** (bytes)
134134
- When `validityType = 0`
135-
- Expiration date of the record with nanoseconds precision.
135+
- Expiration date of the record with nanoseconds precision. Expiration time should match the publishing medium's window.
136+
- For example, IPNS records published on the DHT should have an expiration time set to within 48 hours after publication. Setting the expiration time to longer than 48 hours will not have any effect, as DHT peers only keep records for up to 48 hours.
136137
- Represented as an ASCII string that follows notation from [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) (`1970-01-01T00:00:00.000000001Z`).
137138
- Implementations MUST include this value in both `IpnsEntry.validity` and inside the DAG-CBOR document at `IpnsEntry.data[validity]`.
138139
- **Sequence** (uint64)

0 commit comments

Comments
 (0)