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,8 +1,7 @@
package nip06
import (
"encoding/hex"
"fiatjaf.com/nostr"
"github.com/tyler-smith/go-bip32"
"github.com/tyler-smith/go-bip39"
)
@@ -47,7 +46,7 @@ func PrivateKeyFromSeed(seed []byte) (string, error) {
}
}
return hex.EncodeToString(next.Key), nil
return nostr.HexEncodeToString(next.Key), nil
}
func ValidateWords(words string) bool {