From ad5dff52bbc2dcf25db1152206cf239776479960 Mon Sep 17 00:00:00 2001 From: Yuki Kishimoto Date: Mon, 23 Sep 2024 14:47:57 -0400 Subject: [PATCH] Add `pow` field to filter JSON object --- 13.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/13.md b/13.md index cf5b1ac..77daf51 100644 --- a/13.md +++ b/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": +} +``` + +`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 -----------------------