eventstore tests.

This commit is contained in:
fiatjaf
2025-04-18 11:27:22 -03:00
parent 32efaa7c58
commit 92c2de6294
32 changed files with 355 additions and 652 deletions

View File

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