From f03cfdcf060ca052b68f8adddf515d945d7a83bb Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 12 May 2023 08:56:38 -0400 Subject: [PATCH] Adds a secret, nonce to NIP-19 --- 19.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/19.md b/19.md index 6fc4523e71..1e8b459080 100644 --- a/19.md +++ b/19.md @@ -54,7 +54,11 @@ These possible standardized `TLV` types are indicated here: - `3`: `kind` - for `naddr`, the 32-bit unsigned integer of the kind, big-endian - for `nevent`, _optionally_, the 32-bit unsigned integer of the kind, big-endian - +- `4`: `secret` + - the secret, in byte array, to be used when decrypting the event or its related components +- `5`: `nonce` + - the initialization vector (IV), in byte array, to be used when decrypting the event or its related components + ## Examples - `npub10elfcs4fr0l0r8af98jlmgdh9c8tcxjvz9qkw038js35mp4dma8qzvjptg` should decode into the public key hex `7e7e9c42a91bfef19fa929e5fda1b72e0ebc1a4c1141673e2794234d86addf4e` and vice-versa