nip61: a comment about the amount.

This commit is contained in:
fiatjaf
2025-10-26 17:00:48 -03:00
parent 131093388d
commit 5c8f04efa1

View File

@@ -163,6 +163,9 @@ func getEligibleTokensWeHave(
} }
} }
// GetAmountFromNutzap parses and sums all the proofs in a nutzap, returns the amount.
//
// The amount will be in the unit corresponding to the mint keys, which is often "sat" but can be something else.
func GetAmountFromNutzap(evt nostr.Event) uint64 { func GetAmountFromNutzap(evt nostr.Event) uint64 {
var total uint64 var total uint64
for _, tag := range evt.Tags { for _, tag := range evt.Tags {