mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-12 15:09:07 -05:00
improves wording
This commit is contained in:
parent
bad139ed6e
commit
e71e3907a7
7
76.md
7
76.md
|
@ -22,10 +22,13 @@ Relays MUST check if the authed user is one of the keys in the `rp` before sendi
|
|||
|
||||
## Probabilistic Read Permissions
|
||||
|
||||
Bloom filters are bit arrays that encode keys `n` times. They are represented by a base64 encoded tag value with the `n` as the third element.
|
||||
Probabilistic permissions use bloom filters that include a set of pubkeys. They are represented by a colon-separated value with:
|
||||
1. the size of the bit array
|
||||
2. the number of hashing rounds used by the filter
|
||||
3. the bit array in Base64.
|
||||
|
||||
```json
|
||||
["prp", "<bit size>:<rounds>:<base64>"]
|
||||
["prp", "<BitArray Size>:<Rounds>:<base64>"]
|
||||
```
|
||||
|
||||
Bloom filters MUST use `SHA-256` functions of the key + iterating index as the psedocode below:
|
||||
|
|
Loading…
Reference in New Issue
Block a user