a bunch of [32]byte conversions. still more needed.

This commit is contained in:
fiatjaf
2025-04-14 17:31:23 -03:00
parent 40535e6b19
commit b4268d649c
132 changed files with 857 additions and 879 deletions

View File

@@ -6,7 +6,7 @@ import (
"fmt"
"strconv"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostrlib"
)
type HistoryEntry struct {

View File

@@ -9,7 +9,7 @@ import (
"github.com/elnosh/gonuts/cashu/nuts/nut02"
"github.com/elnosh/gonuts/cashu/nuts/nut04"
"github.com/elnosh/gonuts/cashu/nuts/nut05"
"github.com/nbd-wtf/go-nostr/nip60/client"
"fiatjaf.com/nostrlib/nip60/client"
)
type lightningSwapStatus int

View File

@@ -7,8 +7,8 @@ import (
"github.com/elnosh/gonuts/cashu"
"github.com/elnosh/gonuts/cashu/nuts/nut05"
"github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip60/client"
"fiatjaf.com/nostrlib"
"fiatjaf.com/nostrlib/nip60/client"
)
func (w *Wallet) PayBolt11(ctx context.Context, invoice string, opts ...SendOption) (string, error) {

View File

@@ -7,8 +7,8 @@ import (
"github.com/elnosh/gonuts/cashu"
"github.com/elnosh/gonuts/cashu/nuts/nut10"
"github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip60/client"
"fiatjaf.com/nostrlib"
"fiatjaf.com/nostrlib/nip60/client"
)
type receiveSettings struct {

View File

@@ -6,7 +6,7 @@ import (
"github.com/elnosh/gonuts/cashu"
"github.com/elnosh/gonuts/cashu/nuts/nut04"
"github.com/nbd-wtf/go-nostr/nip60/client"
"fiatjaf.com/nostrlib/nip60/client"
)
func (w *Wallet) SendExternal(

View File

@@ -11,8 +11,8 @@ import (
"github.com/elnosh/gonuts/cashu/nuts/nut02"
"github.com/elnosh/gonuts/cashu/nuts/nut10"
"github.com/elnosh/gonuts/cashu/nuts/nut11"
"github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip60/client"
"fiatjaf.com/nostrlib"
"fiatjaf.com/nostrlib/nip60/client"
)
type SendOption func(opts *sendSettings)

View File

@@ -10,7 +10,7 @@ import (
"github.com/elnosh/gonuts/cashu/nuts/nut02"
"github.com/elnosh/gonuts/cashu/nuts/nut03"
"github.com/elnosh/gonuts/cashu/nuts/nut10"
"github.com/nbd-wtf/go-nostr/nip60/client"
"fiatjaf.com/nostrlib/nip60/client"
)
type swapSettings struct {

View File

@@ -6,7 +6,7 @@ import (
"fmt"
"github.com/elnosh/gonuts/cashu"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostrlib"
)
type Token struct {

View File

@@ -11,7 +11,7 @@ import (
"github.com/btcsuite/btcd/btcec/v2"
"github.com/decred/dcrd/dcrec/secp256k1/v4"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostrlib"
)
type Wallet struct {

View File

@@ -10,8 +10,8 @@ import (
"github.com/btcsuite/btcd/btcec/v2"
"github.com/elnosh/gonuts/cashu"
"github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/keyer"
"fiatjaf.com/nostrlib"
"fiatjaf.com/nostrlib/keyer"
"github.com/stretchr/testify/require"
"golang.org/x/exp/rand"
)