get rid of base64x temporarily since it doesn't work on arm64.

This commit is contained in:
fiatjaf
2025-03-19 15:02:56 -03:00
parent f72dea346f
commit f47282c745
2 changed files with 4 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ package khatru
import (
"context"
"crypto/sha256"
"encoding/base64"
"encoding/hex"
"encoding/json"
"fmt"
@@ -12,7 +13,6 @@ import (
"reflect"
"strings"
"github.com/cloudwego/base64x"
"github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip86"
)
@@ -72,7 +72,7 @@ func (rl *Relay) HandleNIP86(w http.ResponseWriter, r *http.Request) {
goto respond
}
evtj, err := base64x.StdEncoding.DecodeString(spl[1])
evtj, err := base64.StdEncoding.DecodeString(spl[1])
if err != nil {
resp.Error = "invalid base64 auth"
goto respond