nip60: expose GetSatoshisAmountFromBolt11() helper.

This commit is contained in:
fiatjaf
2025-02-05 13:20:41 -03:00
parent 26da7967dc
commit 0330c198fb
3 changed files with 3 additions and 3 deletions

View File

@@ -200,7 +200,7 @@ func parseKeysetKeys(keys nut01.KeysMap) (map[uint64]*btcec.PublicKey, error) {
return parsedKeys, nil
}
func getSatoshisAmountFromBolt11(bolt11 string) (uint64, error) {
func GetSatoshisAmountFromBolt11(bolt11 string) (uint64, error) {
if len(bolt11) < 50 {
return 0, fmt.Errorf("invalid invoice, too short")
}