nip77: convert to dealing with bytes instead of hex strings.

it was cool but this should be faster and less confusing.
This commit is contained in:
fiatjaf
2025-05-12 05:54:39 -03:00
parent bbffe45824
commit 94d29f1230
8 changed files with 66 additions and 157 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ func (v *Vector) FindLowerBound(begin, end int, bound negentropy.Bound) int {
return begin + idx
}
func (v *Vector) Fingerprint(begin, end int) string {
func (v *Vector) Fingerprint(begin, end int) [negentropy.FingerprintSize]byte {
v.acc.Reset()
for _, item := range v.Range(begin, end) {