Skip to content

Commit 37356d8

Browse files
author
Meli
committed
docs(nip-fi): body-binding denies substitution, not transformation
Pinning the payload referent to pre-content-decoding content made the adjacent "post-validation transformation denies" forbid content decoding itself. The obligation is that the application consume the validated bytes, so the sentence now denies substitution of the body bytes after validation. Oracle census unchanged at 58. Co-authored-by: Meli <5aaa86bce934fc3445fc254aab560a40923f10252f92107e665073dede0e04d3@buzz.block.builderlab.xyz> Signed-off-by: Meli <5aaa86bce934fc3445fc254aab560a40923f10252f92107e665073dede0e04d3@buzz.block.builderlab.xyz>
1 parent dcd0b2f commit 37356d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎docs/nips/NIP-FI.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ authorization-relevant; clients cannot select the declaration.
312312
For a relevant body, the NIP-98 event contains exactly one `payload` tag equal
313313
to lowercase hexadecimal SHA-256 of the **body bytes**: the complete content
314314
after transfer decoding and before any content decoding. Absence, duplication,
315-
mismatch, validation of only a prefix, or
316-
post-validation transformation denies. For an irrelevant body, no
315+
mismatch, validation of only a prefix, or substitution of the body bytes after
316+
validation denies. For an irrelevant body, no
317317
Authorization decision, target, capability, or effect selector derives from a
318318
body field not bound by NIP-98. A `payload` tag present on an operation whose
319319
body is declared authorization-irrelevant is validated identically against the

0 commit comments

Comments
 (0)