Skip to content

Commit

Permalink
chore: apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-Authored-By: vasco-santos <vasco.santos@ua.pt>
  • Loading branch information
Stebalien and vasco-santos authored Dec 28, 2018
1 parent 4cbb006 commit 5f83a55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions naming/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ IPNS is based on [SFS](http://en.wikipedia.org/wiki/Self-certifying_File_System)

# IPNS Record

An IPNS record is a data structure composed by:
An IPNS record is a data structure containing the following fields:

- 1. **Value** (bytes)
- It can be a path to another IPNS record, a `dnslink` path (`/ipns/example.com`) or an IPFS path (`/ipfs/Qm...`)
- 2. **Validity** (bytes)
- Expiration date of the record using [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) with nanoseconds precision.
- Note: Currently, the expiration date is the only available type of validity.
- 3. **Validity Type** (uint64)
- Allows us to define if the record is valid under certain conditions
- Only supporting expiration date with `validityType = 0` for now
- Allows us to define the conditions under which the record is valid.
- Only supports expiration date with `validityType = 0` for now.
- 4. **Signature** (bytes)
- Concatenate value, validity field and validity type
- Sign the concatenation result with the provided private key
Expand Down

0 comments on commit 5f83a55

Please sign in to comment.