mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 08:55:52 -05:00
Fixing Code blocks
This commit is contained in:
parent
84df78894e
commit
e4f9ba4883
4
82.md
4
82.md
|
@ -71,6 +71,7 @@ The `d` tag must be equal to the FHIR resource id and the author of the event mu
|
||||||
|
|
||||||
A 5th parameter per `e` tag contains the secret to decode the `.content`, encrypted to the pubkey of each `e` hex. By default, the contents of a resource are available to all cited in the FHIR resource. From the sender's perspective, the secret is stored in an `e` tag with the sender's public key. Secrets are thus not saved anywhere else but in the message itself.
|
A 5th parameter per `e` tag contains the secret to decode the `.content`, encrypted to the pubkey of each `e` hex. By default, the contents of a resource are available to all cited in the FHIR resource. From the sender's perspective, the secret is stored in an `e` tag with the sender's public key. Secrets are thus not saved anywhere else but in the message itself.
|
||||||
|
|
||||||
|
```json
|
||||||
{
|
{
|
||||||
"kind": 32225,
|
"kind": 32225,
|
||||||
"created_at": 1675642635,
|
"created_at": 1675642635,
|
||||||
|
@ -85,6 +86,7 @@ A 5th parameter per `e` tag contains the secret to decode the `.content`, encryp
|
||||||
"pubkey": "...",
|
"pubkey": "...",
|
||||||
"id": "..."
|
"id": "..."
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
The collection of such event kinds will assemble a medical record.
|
The collection of such event kinds will assemble a medical record.
|
||||||
|
|
||||||
|
@ -94,6 +96,7 @@ If the patient wishes to share it's record with another Nostr user (say another
|
||||||
|
|
||||||
The `.content` of the secret sharing event is the encrypted secret using the public key of the receiver. The `a` references the resource the receiver is obtaining access to and the `e` tag contains the receiver's public key.
|
The `.content` of the secret sharing event is the encrypted secret using the public key of the receiver. The `a` references the resource the receiver is obtaining access to and the `e` tag contains the receiver's public key.
|
||||||
|
|
||||||
|
```json
|
||||||
{
|
{
|
||||||
"kind": 32226,
|
"kind": 32226,
|
||||||
"created_at": 1675642635,
|
"created_at": 1675642635,
|
||||||
|
@ -106,6 +109,7 @@ The `.content` of the secret sharing event is the encrypted secret using the pub
|
||||||
"pubkey": "...",
|
"pubkey": "...",
|
||||||
"id": "..."
|
"id": "..."
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user