experimental nak fs

This commit is contained in:
fiatjaf
2025-03-08 10:51:44 -03:00
parent c1248eb37b
commit d6a23bd00c
6 changed files with 256 additions and 14 deletions

View File

@@ -11,14 +11,15 @@ import (
"net/url"
"os"
"slices"
"strconv"
"strings"
"time"
"github.com/fatih/color"
"github.com/urfave/cli/v3"
jsoniter "github.com/json-iterator/go"
"github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/sdk"
"github.com/urfave/cli/v3"
)
var sys *sdk.System
@@ -234,6 +235,11 @@ func leftPadKey(k string) string {
return strings.Repeat("0", 64-len(k)) + k
}
func hexToUint64(hexStr string) uint64 {
v, _ := strconv.ParseUint(hexStr[0:16], 16, 64)
return v
}
var colors = struct {
reset func(...any) (int, error)
italic func(...any) string