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

@@ -8,7 +8,7 @@ import (
"github.com/mailru/easyjson"
jwriter "github.com/mailru/easyjson/jwriter"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostrlib"
"github.com/tidwall/gjson"
)

View File

@@ -7,8 +7,8 @@ import (
"github.com/fiatjaf/eventstore"
"github.com/fiatjaf/eventstore/slicestore"
"github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip77"
"fiatjaf.com/nostrlib"
"fiatjaf.com/nostrlib/nip77"
)
func main() {

View File

@@ -3,7 +3,7 @@ package negentropy
import (
"fmt"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostrlib"
)
func (n *Negentropy) readTimestamp(reader *StringHexReader) (nostr.Timestamp, error) {

View File

@@ -9,9 +9,9 @@ import (
"sync"
"testing"
"github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip77/negentropy"
"github.com/nbd-wtf/go-nostr/nip77/negentropy/storage/vector"
"fiatjaf.com/nostrlib"
"fiatjaf.com/nostrlib/nip77/negentropy"
"fiatjaf.com/nostrlib/nip77/negentropy/storage/vector"
"github.com/stretchr/testify/require"
)

View File

@@ -6,7 +6,7 @@ import (
"strings"
"unsafe"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostrlib"
)
const (

View File

@@ -5,7 +5,7 @@ import (
"encoding/binary"
"encoding/hex"
"github.com/nbd-wtf/go-nostr/nip77/negentropy"
"fiatjaf.com/nostrlib/nip77/negentropy"
)
type Accumulator struct {

View File

@@ -6,9 +6,9 @@ import (
"iter"
"slices"
"github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip77/negentropy"
"github.com/nbd-wtf/go-nostr/nip77/negentropy/storage"
"fiatjaf.com/nostr"
"fiatjaf.com/nostr/nip77/negentropy"
"fiatjaf.com/nostr/nip77/negentropy/storage"
)
type Vector struct {

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"strings"
"github.com/nbd-wtf/go-nostr"
"fiatjaf.com/nostrlib"
)
const FingerprintSize = 16

View File

@@ -6,9 +6,9 @@ import (
"sync"
"testing"
"github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip77/negentropy"
"github.com/nbd-wtf/go-nostr/nip77/negentropy/storage/vector"
"fiatjaf.com/nostrlib"
"fiatjaf.com/nostrlib/nip77/negentropy"
"fiatjaf.com/nostrlib/nip77/negentropy/storage/vector"
"github.com/stretchr/testify/require"
)

View File

@@ -5,9 +5,9 @@ import (
"fmt"
"sync"
"github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip77/negentropy"
"github.com/nbd-wtf/go-nostr/nip77/negentropy/storage/vector"
"fiatjaf.com/nostrlib"
"fiatjaf.com/nostrlib/nip77/negentropy"
"fiatjaf.com/nostrlib/nip77/negentropy/storage/vector"
)
type direction struct {