nak event: presence of key flags indicates the need to resign a given event.

fixes https://github.com/fiatjaf/nak/issues/41
This commit is contained in:
fiatjaf 2024-10-29 13:33:24 -03:00
parent 464766a836
commit 134d1225d6

View File

@ -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 {