upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/90.md
diff options
context:
space:
mode:
authorstarbuilder <101296187+starbackr-dev@users.noreply.github.com>2023-11-06 17:22:50 -0500
committerGitHub <noreply@github.com>2023-11-06 17:22:50 -0500
commit7e3b7cd90c6e5c4ccba94b58231312aaac421551 (patch)
treec6c376e2c4ce6201903009fb6d32e00974ebab32 /90.md
parent56dbb7722c3d1a2c759277391960f41ba6948dcd (diff)
Update 90.md
updated based on comments
Diffstat (limited to '90.md')
-rw-r--r--90.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/90.md b/90.md
index 24da99c..8394c38 100644
--- a/90.md
+++ b/90.md
@@ -69,7 +69,7 @@ All tags are optional.
69 69
70## Encrypted Params 70## Encrypted Params
71 71
72If the user wants to keep the input parameters a secret, they can encrypt the `i` and `param` tags with the service provider's 'p' tag and add it to the content field. The user also indicates whether the output should be encrypted or not as one of the parameters. 72If the user wants to keep the input parameters a secret, they can encrypt the `i` and `param` tags with the service provider's 'p' tag and add it to the content field. Add a tag `encrypted` as tags. Encryption for private tags will use [NIP-04 - Encrypted Direct Message encryption](https://github.com/nostr-protocol/nips/blob/master/04.md), using the user's private and service provider's public key for the shared secret
73 73
74```json 74```json
75[ 75[
@@ -90,8 +90,8 @@ This param data will be encrypted and added to the `content` field and `p` tag s
90``` 90```
91"content": "BE2Y4xvS6HIY7TozIgbEl3sAHkdZoXyLRRkZv4fLPh3R7LtviLKAJM5qpkC7D6VtMbgIt4iNcMpLtpo...", 91"content": "BE2Y4xvS6HIY7TozIgbEl3sAHkdZoXyLRRkZv4fLPh3R7LtviLKAJM5qpkC7D6VtMbgIt4iNcMpLtpo...",
92 "tags": [ 92 "tags": [
93 [`p`, `04f74530a6ede6b24731b976b8e78fb449ea61f40ff10e3d869a3030c4edc91f`], 93 ["p", "04f74530a6ede6b24731b976b8e78fb449ea61f40ff10e3d869a3030c4edc91f"],
94 [`encrypted`] 94 ["encrypted"]
95 ] 95 ]
96 96
97 97
@@ -123,7 +123,7 @@ Service providers publish job results, providing the output of the job result. T
123 123
124## Encrypted Output 124## Encrypted Output
125 125
126If the request has encrypted params, then output should be encrypted and placed in `content` field with `p` tag. If the output is encrypted, then avoid including `i` tag with input-data as clear text. 126If the request has encrypted params, then output should be encrypted and placed in `content` field. If the output is encrypted, then avoid including `i` tag with input-data as clear text.
127Add a tag encrypted to mark the output content as `encrypted` 127Add a tag encrypted to mark the output content as `encrypted`
128```json 128```json
129{ 129{
@@ -135,7 +135,7 @@ Add a tag encrypted to mark the output content as `encrypted`
135 [ "e", "<job-request-id>", "<relay-hint>" ], 135 [ "e", "<job-request-id>", "<relay-hint>" ],
136 [ "p", "<customer's-pubkey>" ], 136 [ "p", "<customer's-pubkey>" ],
137 [ "amount", "requested-payment-amount", "<optional-bolt11>" ], 137 [ "amount", "requested-payment-amount", "<optional-bolt11>" ],
138 [`encrypted`] 138 ["encrypted"]
139 139
140 ] 140 ]
141} 141}