Skip to content

Commit

Permalink
NIP-02, NIP-51: new tags should be added to the end of the list
Browse files Browse the repository at this point in the history
Fixes #958
  • Loading branch information
alexgleason committed Jan 1, 2024
1 parent 27fef63 commit 3d8652e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 02.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ For example:

Every new following list that gets published overwrites the past ones, so it should contain all entries. Relays and clients SHOULD delete past following lists as soon as they receive a new one.

Whenever new follows are added to an existing list, clients SHOULD append them to the end of the list, so they are stored in chronological order.

## Uses

### Follow list backup
Expand Down
2 changes: 2 additions & 0 deletions 51.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ This NIP defines lists of things that users can create. Lists can contain refere

Public items in a list are specified in the event `tags` array, while private items are specified in a JSON array that mimics the structure of the event `tags` array, but stringified and encrypted using the same scheme from [NIP-04](04.md) (the shared key is computed using the author's public and private key) and stored in the `.content`.

When new items are added to an existing list, clients SHOULD append them to the end of the list, so they are stored in chronological order.

## Types of lists

## Standard lists
Expand Down

0 comments on commit 3d8652e

Please sign in to comment.