Skip to content

Commit

Permalink
mention possibility of pubkey on nevent.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Mar 15, 2023
1 parent a886b43 commit e1004d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 19.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ These possible standardized `TLV` types are indicated here:
- for `nrelay`, this is the relay URL
- for `naddr`, it is the identifier (the `"d"` tag) of the event being referenced
- `1`: `relay`
- for `nprofile`, `nevent` and `naddr`, a relay in which the entity (profile or event) is more likely to be found, encoded as ascii
- for `nprofile`, `nevent` and `naddr`, _optionally_, a relay in which the entity (profile or event) is more likely to be found, encoded as ascii
- this may be included multiple times
- `2`: `author`
- for `naddr`, the 32 bytes of the pubkey of the event
- for `nevent`, _optionally_, the 32 bytes of the pubkey of the event
- `3`: `kind`
- for `naddr`, the 32-bit unsigned integer of the kind, big-endian


## Examples

- `npub10elfcs4fr0l0r8af98jlmgdh9c8tcxjvz9qkw038js35mp4dma8qzvjptg` should decode into the public key hex `7e7e9c42a91bfef19fa929e5fda1b72e0ebc1a4c1141673e2794234d86addf4e` and vice-versa
Expand Down

0 comments on commit e1004d3

Please sign in to comment.