use xhex everywhere.

This commit is contained in:
fiatjaf
2025-11-21 21:16:34 -03:00
parent 61b9717c5c
commit 55a43e46b7
46 changed files with 185 additions and 177 deletions

View File

@@ -1,9 +1,8 @@
package bluge
import (
"encoding/hex"
"fiatjaf.com/nostr"
"github.com/templexxx/xhex"
)
const (
@@ -23,6 +22,6 @@ func (id eventIdentifier) Field() string {
func (id eventIdentifier) Term() []byte {
idhex := make([]byte, 64)
hex.Encode(idhex, id[:])
xhex.Encode(idhex, id[:])
return idhex
}