mirror of
https://github.com/fiatjaf/nak.git
synced 2025-12-09 00:58:50 +00:00
convert to using nostrlib.
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
package nostrfs
|
||||
|
||||
import "strconv"
|
||||
import (
|
||||
"fiatjaf.com/nostr"
|
||||
)
|
||||
|
||||
func kindToExtension(kind int) string {
|
||||
func kindToExtension(kind nostr.Kind) string {
|
||||
switch kind {
|
||||
case 30023:
|
||||
return "md"
|
||||
@@ -12,8 +14,3 @@ func kindToExtension(kind int) string {
|
||||
return "txt"
|
||||
}
|
||||
}
|
||||
|
||||
func hexToUint64(hexStr string) uint64 {
|
||||
v, _ := strconv.ParseUint(hexStr[16:32], 16, 64)
|
||||
return v
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user