mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 00:25:50 -05:00
Add pow
field to filter JSON object
This commit is contained in:
parent
4e73e94d41
commit
ad5dff52bb
15
13.md
15
13.md
|
@ -96,6 +96,21 @@ function countLeadingZeroes(hex) {
|
|||
}
|
||||
```
|
||||
|
||||
Filter
|
||||
------
|
||||
|
||||
A new `pow` field is introduced for `REQ` messages from clients:
|
||||
|
||||
```jsonc
|
||||
{
|
||||
// other fields on filter object...
|
||||
"pow": <integer between 0 and 255>
|
||||
}
|
||||
```
|
||||
|
||||
`pow` field is an integer (between 0 and 255) that represent the minimum `difficulty` that an event ID must have.
|
||||
Relays SHOULD discard from query result all events with a difficulty lower than `pow`.
|
||||
|
||||
Delegated Proof of Work
|
||||
-----------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user