From 61e6eaf2a4d6989977615a77f9f03f917960e3d5 Mon Sep 17 00:00:00 2001 From: Rob Woodgate Date: Thu, 2 Apr 2026 15:41:47 +0100 Subject: [PATCH 1/2] nut10: Add witness section and warning --- 10.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/10.md b/10.md index 8c2c436c..0a5af470 100644 --- a/10.md +++ b/10.md @@ -67,6 +67,14 @@ Each individual tag is an array of **ONE or more strings**. The first element of `["locktime", 1765300829]` - a tag must contain **strings** only\ `["locktime", ""]` - a tag must contain **non-empty strings** only +## Witness + +Signatures or other witness data are provided in the `Proof.witness` as a serialized JSON string of the witness object for the NUT-10 kind. + +> [!IMPORTANT] +> `Proof.witness` is only expected for proofs containing a NUT-10 Well-known Secret. +> A mint MAY reject a Proof containing a witness field if its secret is not NUT-10 compliant + ## Examples Example use cases of this secret format are From 1cbc14337509bbc53c353f87e5a48f91287228a0 Mon Sep 17 00:00:00 2001 From: Rob Woodgate Date: Tue, 7 Apr 2026 21:26:48 +0100 Subject: [PATCH 2/2] clarify rejection --- 10.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/10.md b/10.md index 0a5af470..5a4a2034 100644 --- a/10.md +++ b/10.md @@ -73,7 +73,7 @@ Signatures or other witness data are provided in the `Proof.witness` as a serial > [!IMPORTANT] > `Proof.witness` is only expected for proofs containing a NUT-10 Well-known Secret. -> A mint MAY reject a Proof containing a witness field if its secret is not NUT-10 compliant +> A mint MAY reject a Proof containing a witness field if its secret cannot be parsed as a [Well-known Secret](#well-known-secret)). ## Examples