diff options
| author | fiatjaf <fiatjaf@gmail.com> | 2022-12-27 07:55:03 -0300 |
|---|---|---|
| committer | fiatjaf <fiatjaf@gmail.com> | 2022-12-27 07:55:20 -0300 |
| commit | 81a87f7bf2f7afc2d77b469db56f81e635f58a6a (patch) | |
| tree | 2809577ea36c9b9fd6f45922fefa7d7da1f0f84f | |
| parent | cee42f806e4a2ff8408f47189801fcc9c25348be (diff) | |
add examples for nip19.
| -rw-r--r-- | 19.md | 9 |
1 files changed, 9 insertions, 0 deletions
| @@ -41,3 +41,12 @@ These possible standardized `TLV` types are indicated here: | |||
| 41 | - for `nevent` it will be the 32 bytes of the event id | 41 | - for `nevent` it will be the 32 bytes of the event id |
| 42 | - `1`: `relay` | 42 | - `1`: `relay` |
| 43 | - A relay in which the entity (profile or event) is more likely to be found, encoded as UTF-8. This may be included multiple times. | 43 | - A relay in which the entity (profile or event) is more likely to be found, encoded as UTF-8. This may be included multiple times. |
| 44 | |||
| 45 | ## Examples | ||
| 46 | |||
| 47 | - `npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6` should decode into the public key hex `3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d` and vice-versa | ||
| 48 | - `nsec180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsgyumg0` should decode into the private key hex `3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d` and vice-versa | ||
| 49 | - `nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8gpp4mhxue69uhhytnc9e3k7mgpz4mhxue69uhkg6nzv9ejuumpv34kytnrdaksjlyr9p` should decode into a profile with the following TLV items: | ||
| 50 | - pubkey: `3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d` | ||
| 51 | - relay: `wss://r.x.com` | ||
| 52 | - relay: `wss://djbas.sadkb.com` | ||