From 134d1225d66666bc5ce83c3a113374c0b062a19f Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 29 Oct 2024 13:33:24 -0300 Subject: [PATCH] nak event: presence of key flags indicates the need to resign a given event. fixes https://github.com/fiatjaf/nak/issues/41 --- event.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/event.go b/event.go index cbc0ec5..909803f 100644 --- a/event.go +++ b/event.go @@ -227,6 +227,10 @@ example: mustRehashAndResign = true } + if c.IsSet("musig") || c.IsSet("sec") || c.IsSet("prompt-sec") { + mustRehashAndResign = true + } + if difficulty := c.Uint("pow"); difficulty > 0 { // before doing pow we need the pubkey if numSigners := c.Uint("musig"); numSigners > 1 {