diff --git a/addresstag/addresstag.go b/addresstag/addresstag.go index dfe86e4..5d42db4 100644 --- a/addresstag/addresstag.go +++ b/addresstag/addresstag.go @@ -4,8 +4,8 @@ import ( "strconv" "strings" - "realy.mleku.dev/chk" - "realy.mleku.dev/hex" + "realy.lol/chk" + "realy.lol/hex" ) // DecodeAddressTag unpacks the contents of an `a` tag. diff --git a/atomic/example_test.go b/atomic/example_test.go index 5896670..6fe20e8 100644 --- a/atomic/example_test.go +++ b/atomic/example_test.go @@ -23,7 +23,7 @@ package atomic_test import ( "fmt" - "realy.mleku.dev/atomic" + "realy.lol/atomic" ) func Example() { diff --git a/auth/nip42.go b/auth/nip42.go index 8bfd643..8d40cee 100644 --- a/auth/nip42.go +++ b/auth/nip42.go @@ -7,13 +7,13 @@ import ( "strings" "time" - "realy.mleku.dev/chk" - "realy.mleku.dev/event" - "realy.mleku.dev/kind" - "realy.mleku.dev/log" - "realy.mleku.dev/tag" - "realy.mleku.dev/tags" - "realy.mleku.dev/timestamp" + "realy.lol/chk" + "realy.lol/event" + "realy.lol/kind" + "realy.lol/log" + "realy.lol/tag" + "realy.lol/tags" + "realy.lol/timestamp" ) // GenerateChallenge creates a reasonable, 96 byte base64 challenge string diff --git a/auth/nip42_test.go b/auth/nip42_test.go index 7c2f0ea..2b655ff 100644 --- a/auth/nip42_test.go +++ b/auth/nip42_test.go @@ -3,8 +3,8 @@ package auth import ( "testing" - "realy.mleku.dev/chk" - "realy.mleku.dev/p256k" + "realy.lol/chk" + "realy.lol/p256k" ) func TestCreateUnsigned(t *testing.T) { diff --git a/bech32encoding/keys.go b/bech32encoding/keys.go index babd99a..b006ec6 100644 --- a/bech32encoding/keys.go +++ b/bech32encoding/keys.go @@ -3,13 +3,13 @@ package bech32encoding import ( "bytes" - "realy.mleku.dev/chk" - btcec "realy.mleku.dev/ec" - "realy.mleku.dev/ec/bech32" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/ec/secp256k1" - "realy.mleku.dev/hex" - "realy.mleku.dev/log" + "realy.lol/chk" + btcec "realy.lol/ec" + "realy.lol/ec/bech32" + "realy.lol/ec/schnorr" + "realy.lol/ec/secp256k1" + "realy.lol/hex" + "realy.lol/log" ) const ( diff --git a/bech32encoding/keys_test.go b/bech32encoding/keys_test.go index 1cfecd6..74a040b 100644 --- a/bech32encoding/keys_test.go +++ b/bech32encoding/keys_test.go @@ -6,8 +6,8 @@ import ( "encoding/hex" "testing" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/ec/secp256k1" + "realy.lol/ec/schnorr" + "realy.lol/ec/secp256k1" ) func TestConvertBits(t *testing.T) { diff --git a/bech32encoding/nip19.go b/bech32encoding/nip19.go index 115c5d3..66e13ac 100644 --- a/bech32encoding/nip19.go +++ b/bech32encoding/nip19.go @@ -4,17 +4,17 @@ import ( "bytes" "encoding/binary" - "realy.mleku.dev/bech32encoding/pointers" - "realy.mleku.dev/bech32encoding/tlv" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/bech32" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/errorf" - "realy.mleku.dev/eventid" - "realy.mleku.dev/hex" - "realy.mleku.dev/kind" - "realy.mleku.dev/log" - "realy.mleku.dev/sha256" + "realy.lol/bech32encoding/pointers" + "realy.lol/bech32encoding/tlv" + "realy.lol/chk" + "realy.lol/ec/bech32" + "realy.lol/ec/schnorr" + "realy.lol/errorf" + "realy.lol/eventid" + "realy.lol/hex" + "realy.lol/kind" + "realy.lol/log" + "realy.lol/sha256" ) var ( diff --git a/bech32encoding/nip19_test.go b/bech32encoding/nip19_test.go index 1cbd4ad..797f7e2 100644 --- a/bech32encoding/nip19_test.go +++ b/bech32encoding/nip19_test.go @@ -5,12 +5,12 @@ import ( "reflect" "testing" - "realy.mleku.dev/bech32encoding/pointers" - "realy.mleku.dev/chk" - "realy.mleku.dev/eventid" - "realy.mleku.dev/hex" - "realy.mleku.dev/kind" - "realy.mleku.dev/log" + "realy.lol/bech32encoding/pointers" + "realy.lol/chk" + "realy.lol/eventid" + "realy.lol/hex" + "realy.lol/kind" + "realy.lol/log" ) func TestEncodeNpub(t *testing.T) { diff --git a/bech32encoding/pointers/pointers.go b/bech32encoding/pointers/pointers.go index 2ed5069..7ffa553 100644 --- a/bech32encoding/pointers/pointers.go +++ b/bech32encoding/pointers/pointers.go @@ -3,8 +3,8 @@ package pointers import ( - "realy.mleku.dev/eventid" - "realy.mleku.dev/kind" + "realy.lol/eventid" + "realy.lol/kind" ) // Profile pointer is a combination of pubkey and relay list. diff --git a/bech32encoding/tlv/tlv.go b/bech32encoding/tlv/tlv.go index d35f564..bee8336 100644 --- a/bech32encoding/tlv/tlv.go +++ b/bech32encoding/tlv/tlv.go @@ -6,7 +6,7 @@ package tlv import ( "io" - "realy.mleku.dev/chk" + "realy.lol/chk" ) const ( diff --git a/bin/binary.go b/bin/binary.go index 8039428..cf2434b 100644 --- a/bin/binary.go +++ b/bin/binary.go @@ -3,7 +3,7 @@ package bin import ( "encoding/binary" - "realy.mleku.dev/errorf" + "realy.lol/errorf" ) // Append is a straight append with length prefix. diff --git a/bunker/client.go b/bunker/client.go new file mode 100644 index 0000000..d52e1f2 --- /dev/null +++ b/bunker/client.go @@ -0,0 +1,307 @@ +package bunker + +import ( + "encoding/json" + "math/rand" + "net/url" + "strconv" + + "github.com/puzpuzpuz/xsync/v3" + + "relay.mleku.dev/atomic" + "relay.mleku.dev/chk" + "relay.mleku.dev/context" + "relay.mleku.dev/encryption" + "relay.mleku.dev/errorf" + "relay.mleku.dev/event" + "relay.mleku.dev/filter" + "relay.mleku.dev/filters" + "relay.mleku.dev/hex" + "relay.mleku.dev/keys" + "relay.mleku.dev/kind" + "relay.mleku.dev/kinds" + "relay.mleku.dev/p256k" + "relay.mleku.dev/signer" + "relay.mleku.dev/tag" + "relay.mleku.dev/tags" + "relay.mleku.dev/timestamp" + "relay.mleku.dev/ws" +) + +type BunkerClient struct { + serial atomic.Uint64 + clientSecretKey signer.I + target []byte + pool *ws.Pool + relays []string + conversationKey []byte // nip44 + listeners *xsync.MapOf[string, chan Response] + expectingAuth *xsync.MapOf[string, struct{}] + idPrefix string + onAuth func(string) + // memoized + getPublicKeyResponse string + // SkipSignatureCheck can be set if you don't want to double-check incoming signatures + SkipSignatureCheck bool +} + +// ConnectBunker establishes an RPC connection to a NIP-46 signer using the relays and secret provided in the bunkerURL. +// pool can be passed to reuse an existing pool, otherwise a new pool will be created. +func ConnectBunker( + ctx context.T, + clientSecretKey signer.I, + bunkerURLOrNIP05 string, + pool *ws.Pool, + onAuth func(string), +) (client *BunkerClient, err error) { + var parsed *url.URL + if parsed, err = url.Parse(bunkerURLOrNIP05); chk.E(err) { + return + } + // assume it's a bunker url (will fail later if not) + secret := parsed.Query().Get("secret") + relays := parsed.Query()["relay"] + targetPublicKey := parsed.Host + if parsed.Scheme == "" { + // could be a NIP-05 + var pubkey string + var relays_ []string + if pubkey, relays_, err = queryWellKnownNostrJson(ctx, bunkerURLOrNIP05); chk.E(err) { + return + } + targetPublicKey = pubkey + relays = relays_ + } else if parsed.Scheme == "bunker" { + // this is what we were expecting, so just move on + } else { + // otherwise fail here + err = errorf.E("wrong scheme '%s', must be bunker://", parsed.Scheme) + return + } + if !keys.IsValidPublicKey(targetPublicKey) { + err = errorf.E("'%s' is not a valid public key hex", targetPublicKey) + return + } + var targetPubkey, sec []byte + if targetPubkey, err = keys.HexPubkeyToBytes(targetPublicKey); chk.E(err) { + return + } + if sec, err = hex.Dec(secret); chk.E(err) { + return + } + if client, err = NewBunker( + ctx, + clientSecretKey, + targetPubkey, + relays, + pool, + onAuth, + ); chk.E(err) { + return + } + _, err = client.RPC(ctx, "connect", [][]byte{targetPubkey, sec}) + return +} + +func NewBunker( + ctx context.T, + clientSecretKey signer.I, + targetPublicKey []byte, + relays []string, + pool *ws.Pool, + onAuth func(string), +) (client *BunkerClient, err error) { + if pool == nil { + pool = ws.NewPool(ctx) + } + clientSecret := new(p256k.Signer) + if err = clientSecret.InitSec(clientSecretKey.Sec()); chk.E(err) { + return + } + clientPubkey := clientSecret.Pub() + var conversationKey, sharedSecret []byte + if sharedSecret, err = encryption.ComputeSharedSecret(targetPublicKey, + clientSecretKey.Sec()); chk.E(err) { + return + } + if conversationKey, err = encryption.GenerateConversationKey(targetPublicKey, + clientSecret.Sec()); chk.E(err) { + return + } + client = &BunkerClient{ + pool: pool, + clientSecretKey: clientSecretKey, + target: targetPublicKey, + relays: relays, + conversationKey: conversationKey, + listeners: xsync.NewMapOf[string, chan Response](), + expectingAuth: xsync.NewMapOf[string, struct{}](), + onAuth: onAuth, + idPrefix: "gn-" + strconv.Itoa(rand.Intn(65536)), + } + go func() { + now := timestamp.Now() + events := pool.SubMany(ctx, relays, filters.New(&filter.T{ + Tags: tags.New(tag.New([]byte("p"), clientPubkey)), + Kinds: kinds.New(kind.NostrConnect), + Since: now, + }), ws.WithLabel("bunker46client")) + for ev := range events { + if !ev.Event.Kind.Equal(kind.NostrConnect) { + err = errorf.E("event kind is %s, but we expected %s", + ev.Event.Kind.Name(), kind.NostrConnect.Name()) + continue + } + var plain []byte + if plain, err = encryption.Decrypt(ev.Event.Content, conversationKey); chk.E(err) { + if plain, err = encryption.DecryptNip4(ev.Event.Content, + sharedSecret); chk.E(err) { + continue + } + } + var resp Response + if err = json.Unmarshal(plain, &resp); chk.E(err) { + continue + } + if resp.Result == "auth_url" { + // special case + authURL := resp.Error + if _, ok := client.expectingAuth.Load(resp.ID); ok { + client.onAuth(authURL) + } + continue + } + if dispatcher, ok := client.listeners.Load(resp.ID); ok { + dispatcher <- resp + continue + } + } + }() + return +} + +func (client *BunkerClient) RPC(ctx context.T, method string, + params [][]byte) (result string, err error) { + id := client.idPrefix + "-" + strconv.FormatUint(client.serial.Add(1), 10) + var req []byte + if req, err = json.Marshal(Request{ + ID: id, + Method: method, + Params: params, + }); chk.E(err) { + return + } + var content []byte + if content, err = encryption.Encrypt(req, client.conversationKey); chk.E(err) { + return + } + ev := &event.T{ + Content: content, + CreatedAt: timestamp.Now(), + Kind: kind.NostrConnect, + Tags: tags.New(tag.New([]byte("p"), client.target)), + } + if err = ev.Sign(client.clientSecretKey); chk.E(err) { + return + } + respWaiter := make(chan Response) + client.listeners.Store(id, respWaiter) + defer func() { + client.listeners.Delete(id) + close(respWaiter) + }() + hasWorked := make(chan struct{}) + for _, url := range client.relays { + go func(url string) { + var relay *ws.Client + relay, err = client.pool.EnsureRelay(url) + if err == nil { + if err = relay.Publish(ctx, ev); chk.E(err) { + return + } + select { + case hasWorked <- struct{}{}: // todo: shouldn't this be after success? + default: + } + } + }(url) + } + select { + case <-hasWorked: + // continue + case <-ctx.Done(): + err = errorf.E("couldn't connect to any relay") + return + } + + select { + case <-ctx.Done(): + err = errorf.E("context canceled") + return + case resp := <-respWaiter: + if resp.Error != "" { + err = errorf.E("response error: %s", resp.Error) + return + } + result = resp.Result + return + } +} + +func (client *BunkerClient) Ping(ctx context.T) (err error) { + if _, err = client.RPC(ctx, "ping", [][]byte{}); chk.E(err) { + return + } + return +} + +func (client *BunkerClient) GetPublicKey(ctx context.T) (resp string, err error) { + if client.getPublicKeyResponse != "" { + resp = client.getPublicKeyResponse + return + } + resp, err = client.RPC(ctx, "get_public_key", [][]byte{}) + client.getPublicKeyResponse = resp + return +} + +func (client *BunkerClient) SignEvent(ctx context.T, evt *event.T) (err error) { + var resp string + if resp, err = client.RPC(ctx, "sign_event", [][]byte{evt.Serialize()}); chk.E(err) { + return + } + if err = json.Unmarshal([]byte(resp), evt); chk.E(err) { + return + } + if !client.SkipSignatureCheck { + var valid bool + if valid, err = evt.Verify(); chk.E(err) { + return + } + if !valid { + err = errorf.E("sign_event response from bunker has invalid signature") + return + } + } + return +} + +func (client *BunkerClient) NIP44Encrypt(ctx context.T, + targetPublicKey, plaintext []byte) (string, error) { + return client.RPC(ctx, "nip44_encrypt", [][]byte{targetPublicKey, plaintext}) +} + +func (client *BunkerClient) NIP44Decrypt(ctx context.T, + targetPublicKey, ciphertext []byte) (string, error) { + return client.RPC(ctx, "nip44_decrypt", [][]byte{targetPublicKey, ciphertext}) +} + +func (client *BunkerClient) NIP04Encrypt(ctx context.T, + targetPublicKey, plaintext []byte) (string, error) { + return client.RPC(ctx, "nip04_encrypt", [][]byte{targetPublicKey, plaintext}) +} + +func (client *BunkerClient) NIP04Decrypt(ctx context.T, + targetPublicKey, ciphertext []byte) (string, error) { + return client.RPC(ctx, "nip04_decrypt", [][]byte{targetPublicKey, ciphertext}) +} diff --git a/bunker/main.go b/bunker/main.go new file mode 100644 index 0000000..29a623f --- /dev/null +++ b/bunker/main.go @@ -0,0 +1,69 @@ +package bunker + +import ( + "encoding/json" + "net/url" + "strings" + + "relay.mleku.dev/chk" + "relay.mleku.dev/context" + "relay.mleku.dev/event" + "relay.mleku.dev/keys" +) + +type Request struct { + ID string `json:"id"` + Method string `json:"method"` + Params [][]byte `json:"params"` +} + +func (r *Request) String() (s string) { + var j []byte + var err error + if j, err = json.Marshal(r); chk.E(err) { + return + } + return string(j) +} + +type Response struct { + ID string `json:"id"` + Error string `json:"error,omitempty"` + Result string `json:"result,omitempty"` +} + +func (r *Response) String() (s string) { + var j []byte + var err error + if j, err = json.Marshal(r); chk.E(err) { + return + } + return string(j) +} + +type Signer interface { + GetSession(clientPubkey string) (*Session, bool) + HandleRequest(context.T, *event.T) (req *Request, resp *Response, + eventResponse *event.T, err error) +} + +type RelayReadWrite struct { + Read, Write bool +} + +func IsValidBunkerURL(input string) bool { + p, err := url.Parse(input) + if err != nil { + return false + } + if p.Scheme != "bunker" { + return false + } + if !keys.IsValidPublicKey(p.Host) { + return false + } + if !strings.Contains(p.RawQuery, "relay=") { + return false + } + return true +} diff --git a/bunker/nip46_test.go b/bunker/nip46_test.go new file mode 100644 index 0000000..e37dba8 --- /dev/null +++ b/bunker/nip46_test.go @@ -0,0 +1,24 @@ +package bunker + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestValidBunkerURL(t *testing.T) { + valid := IsValidBunkerURL("bunker://3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d?relay=wss%3A%2F%2Frelay.damus.io&relay=wss%3A%2F%2Frelay.snort.social&relay=wss%3A%2F%2Frelay.nsecbunker.com") + assert.True(t, valid, "should be valid") + + inValid := IsValidBunkerURL("askjdbkajdbv") + assert.False(t, inValid, "should be invalid") + + inValid1 := IsValidBunkerURL("asdjasbndksa@asjdnksa.com") + assert.False(t, inValid1, "should be invalid") + + inValid2 := IsValidBunkerURL("https://hello.com?relays=wss://xxxxxx.xxxx") + assert.False(t, inValid2, "should be invalid") + + inValid3 := IsValidBunkerURL("bunker://fa883d107ef9e558472c4eb9aaaefa459d?relay=wss%3A%2F%2Frelay.damus.io&relay=wss%3A%2F%2Frelay.snort.social&relay=wss%3A%2F%2Frelay.nsecbunker.com") + assert.False(t, inValid3, "should be invalid") +} diff --git a/bunker/session.go b/bunker/session.go new file mode 100644 index 0000000..5df6bb1 --- /dev/null +++ b/bunker/session.go @@ -0,0 +1,61 @@ +package bunker + +import ( + "encoding/json" + + "relay.mleku.dev/chk" + "relay.mleku.dev/encryption" + "relay.mleku.dev/event" + "relay.mleku.dev/kind" + "relay.mleku.dev/tag" + "relay.mleku.dev/tags" + "relay.mleku.dev/timestamp" +) + +type Session struct { + Pubkey, SharedKey, ConversationKey []byte +} + +func (s *Session) ParseRequest(ev *event.T) (req *Request, err error) { + var b []byte + if b, err = encryption.Decrypt(ev.Content, s.ConversationKey); chk.E(err) { + if b, err = encryption.DecryptNip4(ev.Content, s.SharedKey); chk.E(err) { + return + } + } + if err = json.Unmarshal(b, &req); chk.E(err) { + return + } + return +} + +func (s *Session) MakeResponse(id, requester, result string, + rErr error) (resp *Response, ev *event.T, err error) { + if rErr != nil { + resp = &Response{ + ID: id, + Result: rErr.Error(), + } + } else if len(result) > 0 { + resp = &Response{ + ID: id, + Result: result, + } + } + // todo: what if the response is empty? this shouldn't happen i think? + var j []byte + if j, err = json.Marshal(resp); chk.E(err) { + return + } + var ciphertext []byte + if ciphertext, err = encryption.Encrypt(j, s.ConversationKey); chk.E(err) { + return + } + ev = &event.T{ + Content: ciphertext, + CreatedAt: timestamp.Now(), + Kind: kind.NostrConnect, + Tags: tags.New(tag.New("p", requester)), + } + return +} diff --git a/bunker/static.go b/bunker/static.go new file mode 100644 index 0000000..6897779 --- /dev/null +++ b/bunker/static.go @@ -0,0 +1,206 @@ +package bunker + +import ( + "encoding/json" + "fmt" + "sync" + + "relay.mleku.dev/chk" + "relay.mleku.dev/context" + "relay.mleku.dev/ec/schnorr" + "relay.mleku.dev/encryption" + "relay.mleku.dev/errorf" + "relay.mleku.dev/event" + "relay.mleku.dev/hex" + "relay.mleku.dev/keys" + "relay.mleku.dev/kind" + "relay.mleku.dev/signer" +) + +var _ Signer = (*StaticKeySigner)(nil) + +type StaticKeySigner struct { + sync.Mutex + secretKey signer.I + sessions map[string]*Session + RelaysToAdvertise map[string]RelayReadWrite + AuthorizeRequest func(harmless bool, from, secret []byte) bool +} + +func NewStaticKeySigner(secretKey signer.I) *StaticKeySigner { + return &StaticKeySigner{secretKey: secretKey, + RelaysToAdvertise: make(map[string]RelayReadWrite)} +} + +func (p *StaticKeySigner) GetSession(clientPubkey string) (s *Session, exists bool) { + p.Lock() + defer p.Unlock() + s, exists = p.sessions[clientPubkey] + return +} + +func (p *StaticKeySigner) getOrCreateSession(clientPubkey []byte) (s *Session, err error) { + p.Lock() + defer p.Unlock() + s = new(Session) + var exists bool + if s, exists = p.sessions[string(clientPubkey)]; exists { + return + } + if s.SharedKey, err = encryption.ComputeSharedSecret(clientPubkey, + p.secretKey.Sec()); chk.E(err) { + return + } + if s.ConversationKey, err = encryption.GenerateConversationKey(clientPubkey, + p.secretKey.Pub()); chk.E(err) { + return + } + s.Pubkey = p.secretKey.Pub() + // add to pool + p.sessions[string(clientPubkey)] = s + return +} + +func (p *StaticKeySigner) HandleRequest(_ context.T, ev *event.T) (req *Request, res *Response, + eventResponse *event.T, err error) { + if !ev.Kind.Equal(kind.NostrConnect) { + err = errorf.E("event kind is %s, but we expected %s", + ev.Kind.Name(), kind.NostrConnect.Name()) + return + } + var session *Session + if session, err = p.getOrCreateSession(ev.Pubkey); chk.E(err) { + return + } + if req, err = session.ParseRequest(ev); chk.E(err) { + return + } + var secret, result []byte + var harmless bool + var rErr error + switch req.Method { + case "connect": + if len(req.Params) >= 2 { + secret = req.Params[1] + } + result = []byte("ack") + harmless = true + case "get_public_key": + result = session.Pubkey + harmless = true + case "sign_event": + if len(req.Params) != 1 { + rErr = errorf.E("wrong number of arguments to 'sign_event'") + break + } + evt := &event.T{} + if rErr = json.Unmarshal(req.Params[0], evt); chk.E(rErr) { + break + } + if rErr = evt.Sign(p.secretKey); chk.E(rErr) { + break + } + result = evt.Serialize() + case "get_relays": + if result, rErr = json.Marshal(p.RelaysToAdvertise); chk.E(rErr) { + break + } + harmless = true + case "nip44_encrypt": + var pk, sharedSecret []byte + if pk, rErr = CheckParamsAndKey(req); chk.E(err) { + break + } + if sharedSecret, rErr = p.GetConversationKey(pk); chk.E(err) { + break + } + if result, rErr = encryption.Encrypt(req.Params[1], sharedSecret); chk.E(err) { + break + } + case "nip44_decrypt": + var pk, sharedSecret []byte + if pk, rErr = CheckParamsAndKey(req); chk.E(err) { + break + } + if sharedSecret, rErr = p.GetConversationKey(pk); chk.E(err) { + break + } + if result, err = encryption.Decrypt(req.Params[1], sharedSecret); chk.E(err) { + break + } + case "nip04_encrypt": + var pk, sharedSecret []byte + if pk, rErr = CheckParamsAndKey(req); chk.E(err) { + break + } + if sharedSecret, rErr = p.ComputeSharedSecret(pk); chk.E(err) { + break + } + if result, rErr = encryption.EncryptNip4(req.Params[1], + sharedSecret); chk.E(err) { + break + } + case "nip04_decrypt": + var pk, sharedSecret []byte + if pk, rErr = CheckParamsAndKey(req); chk.E(err) { + break + } + if sharedSecret, rErr = p.ComputeSharedSecret(pk); chk.E(err) { + break + } + if result, rErr = encryption.DecryptNip4(req.Params[1], + sharedSecret); chk.E(err) { + break + } + case "ping": + result = []byte("pong") + harmless = true + default: + rErr = errorf.E("unknown method '%s'", req.Method) + } + if rErr == nil && p.AuthorizeRequest != nil { + if !p.AuthorizeRequest(harmless, ev.Pubkey, secret) { + rErr = fmt.Errorf("unauthorized") + } + } + if res, eventResponse, err = session.MakeResponse(req.ID, hex.Enc(ev.Pubkey), + string(result), rErr); chk.E(err) { + return + } + if err = eventResponse.Sign(p.secretKey); chk.E(err) { + return + } + return +} + +func (p *StaticKeySigner) GetConversationKey(pk []byte) (sharedSecret []byte, rErr error) { + if sharedSecret, rErr = encryption.GenerateConversationKey(pk, + p.secretKey.Sec()); chk.E(rErr) { + return + } + return +} + +func (p *StaticKeySigner) ComputeSharedSecret(pk []byte) (sharedSecret []byte, rErr error) { + if sharedSecret, rErr = encryption.ComputeSharedSecret(pk, + p.secretKey.Sec()); chk.E(rErr) { + return + } + return +} + +func CheckParamsAndKey(req *Request) (pk []byte, rErr error) { + if len(req.Params) != 2 { + rErr = errorf.E("wrong number of arguments to 'nip04_decrypt'") + return + } + if !keys.IsValidPublicKey(req.Params[0]) { + rErr = errorf.E("first argument to 'nip04_decrypt' is not a pubkey string") + return + } + pk = make([]byte, schnorr.PubKeyBytesLen) + if _, rErr = hex.DecBytes(pk, req.Params[0]); chk.E(rErr) { + return + } + return +} diff --git a/bunker/wellknownnostrjson.go b/bunker/wellknownnostrjson.go new file mode 100644 index 0000000..809e2b1 --- /dev/null +++ b/bunker/wellknownnostrjson.go @@ -0,0 +1,30 @@ +package bunker + +import ( + "context" + "fmt" + + "relay.mleku.dev/chk" + "relay.mleku.dev/dns" + "relay.mleku.dev/errorf" +) + +func queryWellKnownNostrJson(ctx context.Context, fullname string) (pubkey string, + relays []string, err error) { + var result *dns.WellKnownResponse + var name string + if result, name, err = dns.Fetch(ctx, fullname); chk.E(err) { + return + } + + var ok bool + if pubkey, ok = result.Names[name]; !ok { + return "", nil, fmt.Errorf("no entry found for the '%s' name", name) + } + if relays, _ = result.NIP46[pubkey]; !ok { + err = errorf.E("no bunker relays found for the '%s' name", name) + return + } + + return +} diff --git a/chk/chk.go b/chk/chk.go index 69f3b84..1abe5d5 100644 --- a/chk/chk.go +++ b/chk/chk.go @@ -2,7 +2,7 @@ package chk import ( - "realy.mleku.dev/lol" + "realy.lol/lol" ) var F, E, W, I, D, T lol.Chk diff --git a/cmd/lerproxy/main.go b/cmd/lerproxy/main.go index 4f56f96..b75016b 100644 --- a/cmd/lerproxy/main.go +++ b/cmd/lerproxy/main.go @@ -26,14 +26,14 @@ import ( "golang.org/x/crypto/acme/autocert" "golang.org/x/sync/errgroup" - "realy.mleku.dev/chk" - "realy.mleku.dev/cmd/lerproxy/buf" - "realy.mleku.dev/cmd/lerproxy/hsts" - "realy.mleku.dev/cmd/lerproxy/reverse" - "realy.mleku.dev/cmd/lerproxy/tcpkeepalive" - "realy.mleku.dev/cmd/lerproxy/util" - "realy.mleku.dev/context" - "realy.mleku.dev/log" + "realy.lol/chk" + "realy.lol/cmd/lerproxy/buf" + "realy.lol/cmd/lerproxy/hsts" + "realy.lol/cmd/lerproxy/reverse" + "realy.lol/cmd/lerproxy/tcpkeepalive" + "realy.lol/cmd/lerproxy/util" + "realy.lol/context" + "realy.lol/log" ) type runArgs struct { diff --git a/cmd/lerproxy/reverse/proxy.go b/cmd/lerproxy/reverse/proxy.go index 224e5d0..a2dd006 100644 --- a/cmd/lerproxy/reverse/proxy.go +++ b/cmd/lerproxy/reverse/proxy.go @@ -7,8 +7,8 @@ import ( "net/http/httputil" "net/url" - "realy.mleku.dev/cmd/lerproxy/util" - "realy.mleku.dev/log" + "realy.lol/cmd/lerproxy/util" + "realy.lol/log" ) // NewSingleHostReverseProxy is a copy of httputil.NewSingleHostReverseProxy diff --git a/cmd/lerproxy/tcpkeepalive/listener.go b/cmd/lerproxy/tcpkeepalive/listener.go index 4cc8c47..d44e9be 100644 --- a/cmd/lerproxy/tcpkeepalive/listener.go +++ b/cmd/lerproxy/tcpkeepalive/listener.go @@ -6,8 +6,8 @@ import ( "net" "time" - "realy.mleku.dev/chk" - "realy.mleku.dev/cmd/lerproxy/timeout" + "realy.lol/chk" + "realy.lol/cmd/lerproxy/timeout" ) // Period can be changed prior to opening a Listener to alter its' diff --git a/cmd/lerproxy/timeout/conn.go b/cmd/lerproxy/timeout/conn.go index fbe5a29..8c77f95 100644 --- a/cmd/lerproxy/timeout/conn.go +++ b/cmd/lerproxy/timeout/conn.go @@ -6,7 +6,7 @@ import ( "net" "time" - "realy.mleku.dev/chk" + "realy.lol/chk" ) // Conn extends deadline after successful read or write operations diff --git a/cmd/nauth/main.go b/cmd/nauth/main.go index 1cdd050..6cef817 100644 --- a/cmd/nauth/main.go +++ b/cmd/nauth/main.go @@ -6,13 +6,13 @@ import ( "os" "time" - "realy.mleku.dev/bech32encoding" - "realy.mleku.dev/chk" - "realy.mleku.dev/errorf" - "realy.mleku.dev/httpauth" - "realy.mleku.dev/log" - "realy.mleku.dev/p256k" - "realy.mleku.dev/signer" + "realy.lol/bech32encoding" + "realy.lol/chk" + "realy.lol/errorf" + "realy.lol/httpauth" + "realy.lol/log" + "realy.lol/p256k" + "realy.lol/signer" ) const secEnv = "NOSTR_SECRET_KEY" diff --git a/cmd/nurl/main.go b/cmd/nurl/main.go index 18e4240..74c6341 100644 --- a/cmd/nurl/main.go +++ b/cmd/nurl/main.go @@ -10,16 +10,16 @@ import ( "net/url" "os" - realy_lol "realy.mleku.dev" - "realy.mleku.dev/bech32encoding" - "realy.mleku.dev/chk" - "realy.mleku.dev/errorf" - "realy.mleku.dev/hex" - "realy.mleku.dev/httpauth" - "realy.mleku.dev/log" - "realy.mleku.dev/p256k" - "realy.mleku.dev/sha256" - "realy.mleku.dev/signer" + realy_lol "realy.lol" + "realy.lol/bech32encoding" + "realy.lol/chk" + "realy.lol/errorf" + "realy.lol/hex" + "realy.lol/httpauth" + "realy.lol/log" + "realy.lol/p256k" + "realy.lol/sha256" + "realy.lol/signer" ) const secEnv = "NOSTR_SECRET_KEY" diff --git a/cmd/realy/main.go b/cmd/realy/main.go index f034b07..82034d0 100644 --- a/cmd/realy/main.go +++ b/cmd/realy/main.go @@ -17,22 +17,22 @@ import ( "github.com/adrg/xdg" - realy_lol "realy.mleku.dev" - "realy.mleku.dev/bech32encoding" - "realy.mleku.dev/chk" - "realy.mleku.dev/config" - "realy.mleku.dev/context" - "realy.mleku.dev/hex" - "realy.mleku.dev/interrupt" - "realy.mleku.dev/log" - "realy.mleku.dev/lol" - "realy.mleku.dev/openapi" - "realy.mleku.dev/p256k" - "realy.mleku.dev/ratel" - "realy.mleku.dev/realy" - "realy.mleku.dev/servemux" - "realy.mleku.dev/socketapi" - "realy.mleku.dev/units" + realy_lol "realy.lol" + "realy.lol/bech32encoding" + "realy.lol/chk" + "realy.lol/config" + "realy.lol/context" + "realy.lol/hex" + "realy.lol/interrupt" + "realy.lol/log" + "realy.lol/lol" + "realy.lol/openapi" + "realy.lol/p256k" + "realy.lol/ratel" + "realy.lol/realy" + "realy.lol/servemux" + "realy.lol/socketapi" + "realy.lol/units" ) func main() { diff --git a/cmd/vainstr/main.go b/cmd/vainstr/main.go index 767439b..1ab656d 100644 --- a/cmd/vainstr/main.go +++ b/cmd/vainstr/main.go @@ -14,14 +14,14 @@ import ( "github.com/alexflint/go-arg" - "realy.mleku.dev/atomic" - "realy.mleku.dev/bech32encoding" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/bech32" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/ec/secp256k1" - "realy.mleku.dev/interrupt" - "realy.mleku.dev/log" + "realy.lol/atomic" + "realy.lol/bech32encoding" + "realy.lol/chk" + "realy.lol/ec/bech32" + "realy.lol/ec/schnorr" + "realy.lol/ec/secp256k1" + "realy.lol/interrupt" + "realy.lol/log" ) var prefix = append(bech32encoding.PubHRP, '1') diff --git a/config/config.go b/config/config.go index 9660455..8235ade 100644 --- a/config/config.go +++ b/config/config.go @@ -8,9 +8,9 @@ import ( "github.com/pkg/profile" "go-simpler.org/env" - "realy.mleku.dev" - "realy.mleku.dev/chk" - "realy.mleku.dev/config/keyvalue" + "realy.lol" + "realy.lol/chk" + "realy.lol/config/keyvalue" ) // C is the configuration for a realy. Note that it is absolutely minimal. More complex diff --git a/dns/nip05.go b/dns/nip05.go index 59c6d0d..9e9f404 100644 --- a/dns/nip05.go +++ b/dns/nip05.go @@ -9,11 +9,11 @@ import ( "regexp" "strings" - "realy.mleku.dev/bech32encoding/pointers" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/errorf" - "realy.mleku.dev/keys" + "realy.lol/bech32encoding/pointers" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/errorf" + "realy.lol/keys" ) // Nip05Regex is an regular expression that matches up with the same pattern as diff --git a/dns/nip05_test.go b/dns/nip05_test.go index e39ce50..cf853a5 100644 --- a/dns/nip05_test.go +++ b/dns/nip05_test.go @@ -5,9 +5,9 @@ import ( "context" "testing" - "realy.mleku.dev/bech32encoding/pointers" - "realy.mleku.dev/chk" - "realy.mleku.dev/keys" + "realy.lol/bech32encoding/pointers" + "realy.lol/chk" + "realy.lol/keys" ) func TestParse(t *testing.T) { diff --git a/ec/README.md b/ec/README.md index 5f01d82..1a77294 100644 --- a/ec/README.md +++ b/ec/README.md @@ -1,4 +1,4 @@ -realy.mleku.dev/pkg/ec +realy.lol/pkg/ec ===== This is a full drop-in replacement for diff --git a/ec/base58/base58_test.go b/ec/base58/base58_test.go index 2ac8476..8a1c166 100644 --- a/ec/base58/base58_test.go +++ b/ec/base58/base58_test.go @@ -9,7 +9,7 @@ import ( "encoding/hex" "testing" - "realy.mleku.dev/ec/base58" + "realy.lol/ec/base58" ) var stringTests = []struct { diff --git a/ec/base58/base58bench_test.go b/ec/base58/base58bench_test.go index ad5fd92..a8173a6 100644 --- a/ec/base58/base58bench_test.go +++ b/ec/base58/base58bench_test.go @@ -8,7 +8,7 @@ import ( "bytes" "testing" - "realy.mleku.dev/ec/base58" + "realy.lol/ec/base58" ) var ( diff --git a/ec/base58/base58check.go b/ec/base58/base58check.go index 14009d0..2f34ca6 100644 --- a/ec/base58/base58check.go +++ b/ec/base58/base58check.go @@ -7,7 +7,7 @@ package base58 import ( "errors" - "realy.mleku.dev/sha256" + "realy.lol/sha256" ) // ErrChecksum indicates that the checksum of a check-encoded string does not verify against diff --git a/ec/base58/base58check_test.go b/ec/base58/base58check_test.go index e88c469..dfb84ce 100644 --- a/ec/base58/base58check_test.go +++ b/ec/base58/base58check_test.go @@ -7,7 +7,7 @@ package base58_test import ( "testing" - "realy.mleku.dev/ec/base58" + "realy.lol/ec/base58" ) var checkEncodingStringTests = []struct { diff --git a/ec/base58/example_test.go b/ec/base58/example_test.go index c41b15f..e3c161e 100644 --- a/ec/base58/example_test.go +++ b/ec/base58/example_test.go @@ -7,7 +7,7 @@ package base58_test import ( "fmt" - "realy.mleku.dev/ec/base58" + "realy.lol/ec/base58" ) // This example demonstrates how to decode modified base58 encoded data. diff --git a/ec/bech32/README.md b/ec/bech32/README.md index aa3d509..18474ed 100644 --- a/ec/bech32/README.md +++ b/ec/bech32/README.md @@ -2,7 +2,7 @@ bech32 ========== [![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) -[![GoDoc](https://godoc.org/realy.mleku.dev/pkg/ec/bech32?status.png)](http://godoc.org/realy.mleku.dev/pkg/ec/bech32) +[![GoDoc](https://godoc.org/realy.lol/pkg/ec/bech32?status.png)](http://godoc.org/realy.lol/pkg/ec/bech32) Package bech32 provides a Go implementation of the bech32 format specified in [BIP 173](https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki). @@ -17,9 +17,9 @@ $ go get -u mleku.dev/pkg/ec/bech32 ## Examples -* [Bech32 decode Example](http://godoc.org/realy.mleku.dev/pkg/ec/bech32#example-Bech32Decode) +* [Bech32 decode Example](http://godoc.org/realy.lol/pkg/ec/bech32#example-Bech32Decode) Demonstrates how to decode a bech32 encoded string. -* [Bech32 encode Example](http://godoc.org/realy.mleku.dev/pkg/ec/bech32#example-BechEncode) +* [Bech32 encode Example](http://godoc.org/realy.lol/pkg/ec/bech32#example-BechEncode) Demonstrates how to encode data into a bech32 string. ## License diff --git a/ec/bench_test.go b/ec/bench_test.go index a5a90bd..9d36959 100644 --- a/ec/bench_test.go +++ b/ec/bench_test.go @@ -8,8 +8,8 @@ import ( "math/big" "testing" - "realy.mleku.dev/ec/secp256k1" - "realy.mleku.dev/hex" + "realy.lol/ec/secp256k1" + "realy.lol/hex" ) // setHex decodes the passed big-endian hex string into the internal field value diff --git a/ec/btcec.go b/ec/btcec.go index 6cbab8e..ccf0120 100644 --- a/ec/btcec.go +++ b/ec/btcec.go @@ -20,7 +20,7 @@ package btcec // reverse the transform than to operate in affine coordinates. import ( - "realy.mleku.dev/ec/secp256k1" + "realy.lol/ec/secp256k1" ) // KoblitzCurve provides an implementation for secp256k1 that fits the ECC diff --git a/ec/chaincfg/deployment_time_frame.go b/ec/chaincfg/deployment_time_frame.go index 2dae0d3..c4fe7d3 100644 --- a/ec/chaincfg/deployment_time_frame.go +++ b/ec/chaincfg/deployment_time_frame.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "realy.mleku.dev/ec/wire" + "realy.lol/ec/wire" ) var ( diff --git a/ec/chaincfg/genesis.go b/ec/chaincfg/genesis.go index cfa7e95..c1e2c63 100644 --- a/ec/chaincfg/genesis.go +++ b/ec/chaincfg/genesis.go @@ -3,8 +3,8 @@ package chaincfg import ( "time" - "realy.mleku.dev/ec/chainhash" - "realy.mleku.dev/ec/wire" + "realy.lol/ec/chainhash" + "realy.lol/ec/wire" ) var ( diff --git a/ec/chaincfg/params.go b/ec/chaincfg/params.go index 7f9c89f..630c607 100644 --- a/ec/chaincfg/params.go +++ b/ec/chaincfg/params.go @@ -5,8 +5,8 @@ import ( "math/big" "time" - "realy.mleku.dev/ec/chainhash" - "realy.mleku.dev/ec/wire" + "realy.lol/ec/chainhash" + "realy.lol/ec/wire" ) var ( diff --git a/ec/chainhash/hash.go b/ec/chainhash/hash.go index 42bb613..9e684fe 100644 --- a/ec/chainhash/hash.go +++ b/ec/chainhash/hash.go @@ -9,8 +9,8 @@ import ( "encoding/json" "fmt" - "realy.mleku.dev/hex" - "realy.mleku.dev/sha256" + "realy.lol/hex" + "realy.lol/sha256" ) const ( diff --git a/ec/chainhash/hashfuncs.go b/ec/chainhash/hashfuncs.go index 25c29c6..b039506 100644 --- a/ec/chainhash/hashfuncs.go +++ b/ec/chainhash/hashfuncs.go @@ -5,7 +5,7 @@ package chainhash -import "realy.mleku.dev/sha256" +import "realy.lol/sha256" // HashB calculates hash(b) and returns the resulting bytes. func HashB(b []byte) []byte { diff --git a/ec/ciphering.go b/ec/ciphering.go index 4c559da..e952339 100644 --- a/ec/ciphering.go +++ b/ec/ciphering.go @@ -5,7 +5,7 @@ package btcec import ( - "realy.mleku.dev/ec/secp256k1" + "realy.lol/ec/secp256k1" ) // GenerateSharedSecret generates a shared secret based on a secret key and a diff --git a/ec/curve.go b/ec/curve.go index 51e6007..33a701e 100644 --- a/ec/curve.go +++ b/ec/curve.go @@ -6,7 +6,7 @@ package btcec import ( "fmt" - "realy.mleku.dev/ec/secp256k1" + "realy.lol/ec/secp256k1" ) // JacobianPoint is an element of the group formed by the secp256k1 curve in diff --git a/ec/ecdsa/bench_test.go b/ec/ecdsa/bench_test.go index 5422f19..997abf4 100644 --- a/ec/ecdsa/bench_test.go +++ b/ec/ecdsa/bench_test.go @@ -8,8 +8,8 @@ package ecdsa import ( "testing" - "realy.mleku.dev/ec/secp256k1" - "realy.mleku.dev/hex" + "realy.lol/ec/secp256k1" + "realy.lol/hex" ) // hexToModNScalar converts the passed hex string into a ModNScalar and will diff --git a/ec/ecdsa/signature.go b/ec/ecdsa/signature.go index 5fcc49a..fa04c37 100644 --- a/ec/ecdsa/signature.go +++ b/ec/ecdsa/signature.go @@ -8,7 +8,7 @@ package ecdsa import ( "fmt" - "realy.mleku.dev/ec/secp256k1" + "realy.lol/ec/secp256k1" ) // References: diff --git a/ec/ecdsa/signature_test.go b/ec/ecdsa/signature_test.go index 493dfd4..f55209e 100644 --- a/ec/ecdsa/signature_test.go +++ b/ec/ecdsa/signature_test.go @@ -15,9 +15,9 @@ import ( "testing" "time" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/secp256k1" - "realy.mleku.dev/hex" + "realy.lol/chk" + "realy.lol/ec/secp256k1" + "realy.lol/hex" ) // hexToBytes converts the passed hex string into bytes and will panic if there diff --git a/ec/error.go b/ec/error.go index 9f2a554..6bd4b59 100644 --- a/ec/error.go +++ b/ec/error.go @@ -4,7 +4,7 @@ package btcec import ( - "realy.mleku.dev/ec/secp256k1" + "realy.lol/ec/secp256k1" ) // Error identifies an error related to public key cryptography using a diff --git a/ec/field.go b/ec/field.go index 036d127..3317c90 100644 --- a/ec/field.go +++ b/ec/field.go @@ -1,6 +1,6 @@ package btcec -import "realy.mleku.dev/ec/secp256k1" +import "realy.lol/ec/secp256k1" // FieldVal implements optimized fixed-precision arithmetic over the secp256k1 // finite field. This means all arithmetic is performed modulo diff --git a/ec/field_test.go b/ec/field_test.go index 51015a1..e4f369a 100644 --- a/ec/field_test.go +++ b/ec/field_test.go @@ -9,8 +9,8 @@ import ( "math/rand" "testing" - "realy.mleku.dev/chk" - "realy.mleku.dev/hex" + "realy.lol/chk" + "realy.lol/hex" ) // TestIsZero ensures that checking if a field IsZero works as expected. diff --git a/ec/fuzz_test.go b/ec/fuzz_test.go index 906c5c0..a6b85e7 100644 --- a/ec/fuzz_test.go +++ b/ec/fuzz_test.go @@ -11,7 +11,7 @@ package btcec import ( "testing" - "realy.mleku.dev/hex" + "realy.lol/hex" ) func FuzzParsePubKey(f *testing.F) { diff --git a/ec/modnscalar.go b/ec/modnscalar.go index e68ee50..f47ce77 100644 --- a/ec/modnscalar.go +++ b/ec/modnscalar.go @@ -4,7 +4,7 @@ package btcec import ( - "realy.mleku.dev/ec/secp256k1" + "realy.lol/ec/secp256k1" ) // ModNScalar implements optimized 256-bit constant-time fixed-precision diff --git a/ec/musig2/bench_test.go b/ec/musig2/bench_test.go index 9f17760..4a33924 100644 --- a/ec/musig2/bench_test.go +++ b/ec/musig2/bench_test.go @@ -8,9 +8,9 @@ import ( "fmt" "testing" - "realy.mleku.dev/ec" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/hex" + "realy.lol/ec" + "realy.lol/ec/schnorr" + "realy.lol/hex" ) var ( diff --git a/ec/musig2/context.go b/ec/musig2/context.go index 9873bae..8da2e99 100644 --- a/ec/musig2/context.go +++ b/ec/musig2/context.go @@ -5,9 +5,9 @@ package musig2 import ( "fmt" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec" - "realy.mleku.dev/ec/schnorr" + "realy.lol/chk" + "realy.lol/ec" + "realy.lol/ec/schnorr" ) var ( diff --git a/ec/musig2/keys.go b/ec/musig2/keys.go index 29889ac..1e728b5 100644 --- a/ec/musig2/keys.go +++ b/ec/musig2/keys.go @@ -7,10 +7,10 @@ import ( "fmt" "sort" - "realy.mleku.dev/ec" - "realy.mleku.dev/ec/chainhash" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/ec/secp256k1" + "realy.lol/ec" + "realy.lol/ec/chainhash" + "realy.lol/ec/schnorr" + "realy.lol/ec/secp256k1" ) var ( diff --git a/ec/musig2/keys_test.go b/ec/musig2/keys_test.go index e522976..080ba84 100644 --- a/ec/musig2/keys_test.go +++ b/ec/musig2/keys_test.go @@ -12,10 +12,10 @@ import ( "github.com/stretchr/testify/require" - "realy.mleku.dev/ec" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/ec/secp256k1" - "realy.mleku.dev/hex" + "realy.lol/ec" + "realy.lol/ec/schnorr" + "realy.lol/ec/secp256k1" + "realy.lol/hex" ) const ( diff --git a/ec/musig2/musig2_test.go b/ec/musig2/musig2_test.go index 19ed939..7608713 100644 --- a/ec/musig2/musig2_test.go +++ b/ec/musig2/musig2_test.go @@ -8,9 +8,9 @@ import ( "sync" "testing" - "realy.mleku.dev/ec" - "realy.mleku.dev/hex" - "realy.mleku.dev/sha256" + "realy.lol/ec" + "realy.lol/hex" + "realy.lol/sha256" ) const ( diff --git a/ec/musig2/nonces.go b/ec/musig2/nonces.go index 6bf7bc2..637a631 100644 --- a/ec/musig2/nonces.go +++ b/ec/musig2/nonces.go @@ -9,10 +9,10 @@ import ( "errors" "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec" - "realy.mleku.dev/ec/chainhash" - "realy.mleku.dev/ec/schnorr" + "realy.lol/chk" + "realy.lol/ec" + "realy.lol/ec/chainhash" + "realy.lol/ec/schnorr" ) const ( diff --git a/ec/musig2/nonces_test.go b/ec/musig2/nonces_test.go index cc5bf31..4513400 100644 --- a/ec/musig2/nonces_test.go +++ b/ec/musig2/nonces_test.go @@ -12,7 +12,7 @@ import ( "github.com/stretchr/testify/require" - "realy.mleku.dev/hex" + "realy.lol/hex" ) type nonceGenTestCase struct { diff --git a/ec/musig2/sign.go b/ec/musig2/sign.go index c917d8f..87b7689 100644 --- a/ec/musig2/sign.go +++ b/ec/musig2/sign.go @@ -7,11 +7,11 @@ import ( "fmt" "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec" - "realy.mleku.dev/ec/chainhash" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/ec/secp256k1" + "realy.lol/chk" + "realy.lol/ec" + "realy.lol/ec/chainhash" + "realy.lol/ec/schnorr" + "realy.lol/ec/secp256k1" ) var ( diff --git a/ec/musig2/sign_test.go b/ec/musig2/sign_test.go index 3e362c4..aad3832 100644 --- a/ec/musig2/sign_test.go +++ b/ec/musig2/sign_test.go @@ -13,9 +13,9 @@ import ( "github.com/stretchr/testify/require" - "realy.mleku.dev/ec" - "realy.mleku.dev/ec/secp256k1" - "realy.mleku.dev/hex" + "realy.lol/ec" + "realy.lol/ec/secp256k1" + "realy.lol/hex" ) const ( diff --git a/ec/pubkey.go b/ec/pubkey.go index 512ca3f..3b3124b 100644 --- a/ec/pubkey.go +++ b/ec/pubkey.go @@ -5,7 +5,7 @@ package btcec import ( - "realy.mleku.dev/ec/secp256k1" + "realy.lol/ec/secp256k1" ) // These constants define the lengths of serialized public keys. diff --git a/ec/schnorr/bench_test.go b/ec/schnorr/bench_test.go index eec2f1f..b1133f3 100644 --- a/ec/schnorr/bench_test.go +++ b/ec/schnorr/bench_test.go @@ -9,10 +9,10 @@ import ( "math/big" "testing" - "realy.mleku.dev/ec" - "realy.mleku.dev/ec/secp256k1" - "realy.mleku.dev/hex" - "realy.mleku.dev/sha256" + "realy.lol/ec" + "realy.lol/ec/secp256k1" + "realy.lol/hex" + "realy.lol/sha256" ) // hexToBytes converts the passed hex string into bytes and will panic if there diff --git a/ec/schnorr/pubkey.go b/ec/schnorr/pubkey.go index 1dac160..c3c78ea 100644 --- a/ec/schnorr/pubkey.go +++ b/ec/schnorr/pubkey.go @@ -8,8 +8,8 @@ package schnorr import ( "fmt" - "realy.mleku.dev/ec" - "realy.mleku.dev/ec/secp256k1" + "realy.lol/ec" + "realy.lol/ec/secp256k1" ) // These constants define the lengths of serialized public keys. diff --git a/ec/schnorr/signature.go b/ec/schnorr/signature.go index 020d8e4..ca2b776 100644 --- a/ec/schnorr/signature.go +++ b/ec/schnorr/signature.go @@ -5,10 +5,10 @@ package schnorr import ( "fmt" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec" - "realy.mleku.dev/ec/chainhash" - "realy.mleku.dev/ec/secp256k1" + "realy.lol/chk" + "realy.lol/ec" + "realy.lol/ec/chainhash" + "realy.lol/ec/secp256k1" ) const ( diff --git a/ec/schnorr/signature_test.go b/ec/schnorr/signature_test.go index f1ddc21..909d563 100644 --- a/ec/schnorr/signature_test.go +++ b/ec/schnorr/signature_test.go @@ -13,10 +13,10 @@ import ( "github.com/davecgh/go-spew/spew" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec" - "realy.mleku.dev/ec/secp256k1" - "realy.mleku.dev/hex" + "realy.lol/chk" + "realy.lol/ec" + "realy.lol/ec/secp256k1" + "realy.lol/hex" ) type bip340Test struct { diff --git a/ec/seckey.go b/ec/seckey.go index 461c5d2..8aa54c2 100644 --- a/ec/seckey.go +++ b/ec/seckey.go @@ -5,7 +5,7 @@ package btcec import ( - "realy.mleku.dev/ec/secp256k1" + "realy.lol/ec/secp256k1" ) // SecretKey wraps an ecdsa.SecretKey as a convenience mainly for signing things with the secret key without having to diff --git a/ec/secp256k1/curve.go b/ec/secp256k1/curve.go index 29690d0..c1e8903 100644 --- a/ec/secp256k1/curve.go +++ b/ec/secp256k1/curve.go @@ -8,7 +8,7 @@ package secp256k1 import ( "math/bits" - "realy.mleku.dev/hex" + "realy.lol/hex" ) // References: diff --git a/ec/secp256k1/example_test.go b/ec/secp256k1/example_test.go index 2045748..4551f41 100644 --- a/ec/secp256k1/example_test.go +++ b/ec/secp256k1/example_test.go @@ -11,9 +11,9 @@ import ( "encoding/binary" "fmt" - "realy.mleku.dev/ec/secp256k1" - "realy.mleku.dev/hex" - "realy.mleku.dev/sha256" + "realy.lol/ec/secp256k1" + "realy.lol/hex" + "realy.lol/sha256" ) // This example demonstrates use of GenerateSharedSecret to encrypt a message diff --git a/ec/secp256k1/field.go b/ec/secp256k1/field.go index b2703f2..c9c1918 100644 --- a/ec/secp256k1/field.go +++ b/ec/secp256k1/field.go @@ -52,7 +52,7 @@ package secp256k1 // ordinarily would. See the documentation for FieldVal for more details. import ( - "realy.mleku.dev/hex" + "realy.lol/hex" ) // Constants used to make the code more readable. diff --git a/ec/secp256k1/field_test.go b/ec/secp256k1/field_test.go index 5804c0f..d126ac2 100644 --- a/ec/secp256k1/field_test.go +++ b/ec/secp256k1/field_test.go @@ -15,7 +15,7 @@ import ( "testing" "time" - "realy.mleku.dev/hex" + "realy.lol/hex" ) // SetHex decodes the passed big-endian hex string into the internal field value diff --git a/ec/secp256k1/modnscalar.go b/ec/secp256k1/modnscalar.go index b28ee84..08a7e2f 100644 --- a/ec/secp256k1/modnscalar.go +++ b/ec/secp256k1/modnscalar.go @@ -7,7 +7,7 @@ package secp256k1 import ( "math/big" - "realy.mleku.dev/hex" + "realy.lol/hex" ) // References: diff --git a/ec/secp256k1/modnscalar_test.go b/ec/secp256k1/modnscalar_test.go index 296af95..ca0e179 100644 --- a/ec/secp256k1/modnscalar_test.go +++ b/ec/secp256k1/modnscalar_test.go @@ -13,8 +13,8 @@ import ( "testing" "time" - "realy.mleku.dev/chk" - "realy.mleku.dev/hex" + "realy.lol/chk" + "realy.lol/hex" ) // SetHex interprets the provided hex string as a 256-bit big-endian unsigned diff --git a/ec/secp256k1/nonce.go b/ec/secp256k1/nonce.go index cad5ccd..8fd896e 100644 --- a/ec/secp256k1/nonce.go +++ b/ec/secp256k1/nonce.go @@ -9,7 +9,7 @@ import ( "bytes" "hash" - "realy.mleku.dev/sha256" + "realy.lol/sha256" ) // References: diff --git a/ec/secp256k1/nonce_test.go b/ec/secp256k1/nonce_test.go index 9ecc35b..745a2f6 100644 --- a/ec/secp256k1/nonce_test.go +++ b/ec/secp256k1/nonce_test.go @@ -9,8 +9,8 @@ import ( "bytes" "testing" - "realy.mleku.dev/hex" - "realy.mleku.dev/sha256" + "realy.lol/hex" + "realy.lol/sha256" ) // hexToBytes converts the passed hex string into bytes and will panic if there diff --git a/ec/secp256k1/precomps/genprecomps.go b/ec/secp256k1/precomps/genprecomps.go index d0adc3f..006a098 100644 --- a/ec/secp256k1/precomps/genprecomps.go +++ b/ec/secp256k1/precomps/genprecomps.go @@ -13,9 +13,9 @@ import ( "math/big" "os" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/secp256k1" - "realy.mleku.dev/log" + "realy.lol/chk" + "realy.lol/ec/secp256k1" + "realy.lol/log" ) // curveParams houses the secp256k1 curve parameters for convenient access. diff --git a/ec/secp256k1/seckey.go b/ec/secp256k1/seckey.go index efdf6a0..b822d47 100644 --- a/ec/secp256k1/seckey.go +++ b/ec/secp256k1/seckey.go @@ -9,7 +9,7 @@ import ( "crypto/rand" "io" - "realy.mleku.dev/chk" + "realy.lol/chk" ) // SecretKey provides facilities for working with secp256k1 secret keys within diff --git a/ec/taproot/taproot.go b/ec/taproot/taproot.go index a9e4a3a..6714a38 100644 --- a/ec/taproot/taproot.go +++ b/ec/taproot/taproot.go @@ -7,9 +7,9 @@ import ( "errors" "fmt" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/bech32" - "realy.mleku.dev/ec/chaincfg" + "realy.lol/chk" + "realy.lol/ec/bech32" + "realy.lol/ec/chaincfg" ) // AddressSegWit is the base address type for all SegWit addresses. diff --git a/ec/wire/blockheader.go b/ec/wire/blockheader.go index 733d052..09e2f8c 100644 --- a/ec/wire/blockheader.go +++ b/ec/wire/blockheader.go @@ -3,7 +3,7 @@ package wire import ( "time" - "realy.mleku.dev/ec/chainhash" + "realy.lol/ec/chainhash" ) // BlockHeader defines information about a block and is used in the bitcoin diff --git a/ec/wire/msgtx.go b/ec/wire/msgtx.go index cf8d28d..fe0bf38 100644 --- a/ec/wire/msgtx.go +++ b/ec/wire/msgtx.go @@ -1,7 +1,7 @@ package wire import ( - "realy.mleku.dev/ec/chainhash" + "realy.lol/ec/chainhash" ) // OutPoint defines a bitcoin data type that is used to track previous diff --git a/encryption/nip4.go b/encryption/nip4.go index a2eac00..7f84149 100644 --- a/encryption/nip4.go +++ b/encryption/nip4.go @@ -9,10 +9,10 @@ import ( "lukechampine.com/frand" - "realy.mleku.dev/chk" - "realy.mleku.dev/errorf" - "realy.mleku.dev/hex" - "realy.mleku.dev/p256k" + "realy.lol/chk" + "realy.lol/errorf" + "realy.lol/hex" + "realy.lol/p256k" ) // ComputeSharedSecret returns a shared secret key used to encrypt messages. The private and public keys should be hex diff --git a/encryption/nip44.go b/encryption/nip44.go index faefdfd..79d73c3 100644 --- a/encryption/nip44.go +++ b/encryption/nip44.go @@ -12,9 +12,9 @@ import ( "golang.org/x/crypto/chacha20" "golang.org/x/crypto/hkdf" - "realy.mleku.dev/chk" - "realy.mleku.dev/errorf" - "realy.mleku.dev/sha256" + "realy.lol/chk" + "realy.lol/errorf" + "realy.lol/sha256" ) const ( diff --git a/encryption/nip44_test.go b/encryption/nip44_test.go index e737cda..9e6bfb6 100644 --- a/encryption/nip44_test.go +++ b/encryption/nip44_test.go @@ -9,10 +9,10 @@ import ( "github.com/stretchr/testify/assert" - "realy.mleku.dev/chk" - "realy.mleku.dev/hex" - "realy.mleku.dev/keys" - "realy.mleku.dev/sha256" + "realy.lol/chk" + "realy.lol/hex" + "realy.lol/keys" + "realy.lol/sha256" ) func assertCryptPriv(t *testing.T, diff --git a/env/config.go b/env/config.go index 0d9d1d9..352cc32 100644 --- a/env/config.go +++ b/env/config.go @@ -6,7 +6,7 @@ import ( "os" "strings" - "realy.mleku.dev/chk" + "realy.lol/chk" ) // Env is a key/value map used to represent environment variables. This is diff --git a/envelopes/authenvelope/authenvelope.go b/envelopes/authenvelope/authenvelope.go index 560293c..f4a471e 100644 --- a/envelopes/authenvelope/authenvelope.go +++ b/envelopes/authenvelope/authenvelope.go @@ -5,13 +5,13 @@ package authenvelope import ( "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/codec" - envs "realy.mleku.dev/envelopes" - "realy.mleku.dev/errorf" - "realy.mleku.dev/event" - "realy.mleku.dev/log" - "realy.mleku.dev/text" + "realy.lol/chk" + "realy.lol/codec" + envs "realy.lol/envelopes" + "realy.lol/errorf" + "realy.lol/event" + "realy.lol/log" + "realy.lol/text" ) // L is the label associated with this type of codec.Envelope. diff --git a/envelopes/authenvelope/authenvelope_test.go b/envelopes/authenvelope/authenvelope_test.go index ff2777f..d834cff 100644 --- a/envelopes/authenvelope/authenvelope_test.go +++ b/envelopes/authenvelope/authenvelope_test.go @@ -4,10 +4,10 @@ import ( "bytes" "testing" - "realy.mleku.dev/auth" - "realy.mleku.dev/chk" - "realy.mleku.dev/envelopes" - "realy.mleku.dev/p256k" + "realy.lol/auth" + "realy.lol/chk" + "realy.lol/envelopes" + "realy.lol/p256k" ) const relayURL = "wss://example.com" diff --git a/envelopes/closedenvelope/closedenvelope.go b/envelopes/closedenvelope/closedenvelope.go index 083c11f..4265c6d 100644 --- a/envelopes/closedenvelope/closedenvelope.go +++ b/envelopes/closedenvelope/closedenvelope.go @@ -6,11 +6,11 @@ package closedenvelope import ( "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/codec" - "realy.mleku.dev/envelopes" - "realy.mleku.dev/subscription" - "realy.mleku.dev/text" + "realy.lol/chk" + "realy.lol/codec" + "realy.lol/envelopes" + "realy.lol/subscription" + "realy.lol/text" ) // L is the label associated with this type of codec.Envelope. diff --git a/envelopes/closedenvelope/closedenvelope_test.go b/envelopes/closedenvelope/closedenvelope_test.go index 4ee3470..b177115 100644 --- a/envelopes/closedenvelope/closedenvelope_test.go +++ b/envelopes/closedenvelope/closedenvelope_test.go @@ -6,9 +6,9 @@ import ( "lukechampine.com/frand" - "realy.mleku.dev/chk" - "realy.mleku.dev/envelopes" - "realy.mleku.dev/subscription" + "realy.lol/chk" + "realy.lol/envelopes" + "realy.lol/subscription" ) var messages = [][]byte{ diff --git a/envelopes/closeenvelope/closeenvelope.go b/envelopes/closeenvelope/closeenvelope.go index cc65cae..cba6932 100644 --- a/envelopes/closeenvelope/closeenvelope.go +++ b/envelopes/closeenvelope/closeenvelope.go @@ -5,10 +5,10 @@ package closeenvelope import ( "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/codec" - "realy.mleku.dev/envelopes" - "realy.mleku.dev/subscription" + "realy.lol/chk" + "realy.lol/codec" + "realy.lol/envelopes" + "realy.lol/subscription" ) // L is the label associated with this type of codec.Envelope. diff --git a/envelopes/closeenvelope/closeenvelope_test.go b/envelopes/closeenvelope/closeenvelope_test.go index b73342c..d74ffe3 100644 --- a/envelopes/closeenvelope/closeenvelope_test.go +++ b/envelopes/closeenvelope/closeenvelope_test.go @@ -4,9 +4,9 @@ import ( "bytes" "testing" - "realy.mleku.dev/chk" - "realy.mleku.dev/envelopes" - "realy.mleku.dev/subscription" + "realy.lol/chk" + "realy.lol/envelopes" + "realy.lol/subscription" ) func TestMarshalUnmarshal(t *testing.T) { diff --git a/envelopes/countenvelope/countenvelope.go b/envelopes/countenvelope/countenvelope.go index 3367c95..dfd8fb9 100644 --- a/envelopes/countenvelope/countenvelope.go +++ b/envelopes/countenvelope/countenvelope.go @@ -6,14 +6,14 @@ import ( "bytes" "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/codec" - "realy.mleku.dev/envelopes" - "realy.mleku.dev/errorf" - "realy.mleku.dev/filters" - "realy.mleku.dev/ints" - "realy.mleku.dev/subscription" - "realy.mleku.dev/text" + "realy.lol/chk" + "realy.lol/codec" + "realy.lol/envelopes" + "realy.lol/errorf" + "realy.lol/filters" + "realy.lol/ints" + "realy.lol/subscription" + "realy.lol/text" ) // L is the label associated with this type of codec.Envelope. diff --git a/envelopes/countenvelope/countenvelope_test.go b/envelopes/countenvelope/countenvelope_test.go index 3accbce..36520bc 100644 --- a/envelopes/countenvelope/countenvelope_test.go +++ b/envelopes/countenvelope/countenvelope_test.go @@ -4,10 +4,10 @@ import ( "bytes" "testing" - "realy.mleku.dev/chk" - "realy.mleku.dev/envelopes" - "realy.mleku.dev/filters" - "realy.mleku.dev/subscription" + "realy.lol/chk" + "realy.lol/envelopes" + "realy.lol/filters" + "realy.lol/subscription" ) func TestRequest(t *testing.T) { diff --git a/envelopes/eoseenvelope/eoseenvelope.go b/envelopes/eoseenvelope/eoseenvelope.go index 47a11e1..4cd7cc4 100644 --- a/envelopes/eoseenvelope/eoseenvelope.go +++ b/envelopes/eoseenvelope/eoseenvelope.go @@ -7,10 +7,10 @@ package eoseenvelope import ( "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/codec" - "realy.mleku.dev/envelopes" - "realy.mleku.dev/subscription" + "realy.lol/chk" + "realy.lol/codec" + "realy.lol/envelopes" + "realy.lol/subscription" ) // L is the label associated with this type of codec.Envelope. diff --git a/envelopes/eoseenvelope/eoseenvelope_test.go b/envelopes/eoseenvelope/eoseenvelope_test.go index 397c614..1c221e9 100644 --- a/envelopes/eoseenvelope/eoseenvelope_test.go +++ b/envelopes/eoseenvelope/eoseenvelope_test.go @@ -4,9 +4,9 @@ import ( "bytes" "testing" - "realy.mleku.dev/chk" - "realy.mleku.dev/envelopes" - "realy.mleku.dev/subscription" + "realy.lol/chk" + "realy.lol/envelopes" + "realy.lol/subscription" ) func TestMarshalUnmarshal(t *testing.T) { diff --git a/envelopes/eventenvelope/eventenvelope.go b/envelopes/eventenvelope/eventenvelope.go index 47a3533..212a41a 100644 --- a/envelopes/eventenvelope/eventenvelope.go +++ b/envelopes/eventenvelope/eventenvelope.go @@ -5,12 +5,12 @@ package eventenvelope import ( "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/codec" - "realy.mleku.dev/envelopes" - "realy.mleku.dev/errorf" - "realy.mleku.dev/event" - "realy.mleku.dev/subscription" + "realy.lol/chk" + "realy.lol/codec" + "realy.lol/envelopes" + "realy.lol/errorf" + "realy.lol/event" + "realy.lol/subscription" ) // L is the label associated with this type of codec.Envelope. diff --git a/envelopes/eventenvelope/eventenvelope_test.go b/envelopes/eventenvelope/eventenvelope_test.go index 94743ca..ddfc2e9 100644 --- a/envelopes/eventenvelope/eventenvelope_test.go +++ b/envelopes/eventenvelope/eventenvelope_test.go @@ -5,11 +5,11 @@ import ( "bytes" "testing" - "realy.mleku.dev/chk" - "realy.mleku.dev/envelopes" - "realy.mleku.dev/event" - "realy.mleku.dev/event/examples" - "realy.mleku.dev/subscription" + "realy.lol/chk" + "realy.lol/envelopes" + "realy.lol/event" + "realy.lol/event/examples" + "realy.lol/subscription" ) func TestSubmission(t *testing.T) { diff --git a/envelopes/noticeenvelope/noticeenvelope.go b/envelopes/noticeenvelope/noticeenvelope.go index cf1e797..0d7c328 100644 --- a/envelopes/noticeenvelope/noticeenvelope.go +++ b/envelopes/noticeenvelope/noticeenvelope.go @@ -6,10 +6,10 @@ package noticeenvelope import ( "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/codec" - "realy.mleku.dev/envelopes" - "realy.mleku.dev/text" + "realy.lol/chk" + "realy.lol/codec" + "realy.lol/envelopes" + "realy.lol/text" ) // L is the label associated with this type of codec.Envelope. diff --git a/envelopes/noticeenvelope/noticeenvelope_test.go b/envelopes/noticeenvelope/noticeenvelope_test.go index 0471877..297909b 100644 --- a/envelopes/noticeenvelope/noticeenvelope_test.go +++ b/envelopes/noticeenvelope/noticeenvelope_test.go @@ -4,9 +4,9 @@ import ( "bytes" "testing" - "realy.mleku.dev/chk" - "realy.mleku.dev/envelopes" - "realy.mleku.dev/envelopes/messages" + "realy.lol/chk" + "realy.lol/envelopes" + "realy.lol/envelopes/messages" ) func TestMarshalUnmarshal(t *testing.T) { diff --git a/envelopes/okenvelope/okenvelope.go b/envelopes/okenvelope/okenvelope.go index 6b64e93..69d55b6 100644 --- a/envelopes/okenvelope/okenvelope.go +++ b/envelopes/okenvelope/okenvelope.go @@ -6,14 +6,14 @@ package okenvelope import ( "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/codec" - "realy.mleku.dev/envelopes" - "realy.mleku.dev/errorf" - "realy.mleku.dev/eventid" - "realy.mleku.dev/log" - "realy.mleku.dev/sha256" - "realy.mleku.dev/text" + "realy.lol/chk" + "realy.lol/codec" + "realy.lol/envelopes" + "realy.lol/errorf" + "realy.lol/eventid" + "realy.lol/log" + "realy.lol/sha256" + "realy.lol/text" ) // L is the label associated with this type of codec.Envelope. diff --git a/envelopes/okenvelope/okenvelope_test.go b/envelopes/okenvelope/okenvelope_test.go index 0ea8fd8..3c35828 100644 --- a/envelopes/okenvelope/okenvelope_test.go +++ b/envelopes/okenvelope/okenvelope_test.go @@ -4,10 +4,10 @@ import ( "bytes" "testing" - "realy.mleku.dev/chk" - "realy.mleku.dev/envelopes" - "realy.mleku.dev/envelopes/messages" - "realy.mleku.dev/eventid" + "realy.lol/chk" + "realy.lol/envelopes" + "realy.lol/envelopes/messages" + "realy.lol/eventid" ) func TestMarshalUnmarshal(t *testing.T) { diff --git a/envelopes/reqenvelope/reqenvelope.go b/envelopes/reqenvelope/reqenvelope.go index 2e6ea6b..57baf30 100644 --- a/envelopes/reqenvelope/reqenvelope.go +++ b/envelopes/reqenvelope/reqenvelope.go @@ -5,11 +5,11 @@ package reqenvelope import ( "io" - "realy.mleku.dev/codec" - "realy.mleku.dev/envelopes" - "realy.mleku.dev/filters" - "realy.mleku.dev/subscription" - "realy.mleku.dev/text" + "realy.lol/codec" + "realy.lol/envelopes" + "realy.lol/filters" + "realy.lol/subscription" + "realy.lol/text" ) // L is the label associated with this type of codec.Envelope. diff --git a/envelopes/reqenvelope/reqenvelope_test.go b/envelopes/reqenvelope/reqenvelope_test.go index b591f23..6b5599e 100644 --- a/envelopes/reqenvelope/reqenvelope_test.go +++ b/envelopes/reqenvelope/reqenvelope_test.go @@ -4,9 +4,9 @@ import ( "bytes" "testing" - "realy.mleku.dev/envelopes" - "realy.mleku.dev/filters" - "realy.mleku.dev/subscription" + "realy.lol/envelopes" + "realy.lol/filters" + "realy.lol/subscription" ) func TestMarshalUnmarshal(t *testing.T) { diff --git a/envelopes/reqenvelope/util.go b/envelopes/reqenvelope/util.go index 088e777..a4b9272 100644 --- a/envelopes/reqenvelope/util.go +++ b/envelopes/reqenvelope/util.go @@ -1,7 +1,7 @@ package reqenvelope import ( - "realy.mleku.dev/lol" + "realy.lol/lol" ) var ( diff --git a/errorf/errorf.go b/errorf/errorf.go index cb45781..74f4dd2 100644 --- a/errorf/errorf.go +++ b/errorf/errorf.go @@ -2,7 +2,7 @@ package errorf import ( - "realy.mleku.dev/lol" + "realy.lol/lol" ) var F, E, W, I, D, T lol.Err diff --git a/event/canonical.go b/event/canonical.go index 270d9b9..a32f607 100644 --- a/event/canonical.go +++ b/event/canonical.go @@ -3,16 +3,16 @@ package event import ( "reflect" - "realy.mleku.dev/chk" - "realy.mleku.dev/codec" - "realy.mleku.dev/errorf" - "realy.mleku.dev/hex" - "realy.mleku.dev/json" - "realy.mleku.dev/kind" - "realy.mleku.dev/log" - "realy.mleku.dev/tags" - "realy.mleku.dev/text" - "realy.mleku.dev/timestamp" + "realy.lol/chk" + "realy.lol/codec" + "realy.lol/errorf" + "realy.lol/hex" + "realy.lol/json" + "realy.lol/kind" + "realy.lol/log" + "realy.lol/tags" + "realy.lol/text" + "realy.lol/timestamp" ) // ToCanonical converts the event to the canonical encoding used to derive the diff --git a/event/canonical_test.go b/event/canonical_test.go index f6e605b..6c8ba9b 100644 --- a/event/canonical_test.go +++ b/event/canonical_test.go @@ -5,8 +5,8 @@ import ( "bytes" "testing" - "realy.mleku.dev/chk" - "realy.mleku.dev/event/examples" + "realy.lol/chk" + "realy.lol/event/examples" ) func TestFromCanonical(t *testing.T) { diff --git a/event/codectester/divider/main.go b/event/codectester/divider/main.go index 14da557..53d477a 100644 --- a/event/codectester/divider/main.go +++ b/event/codectester/divider/main.go @@ -10,11 +10,11 @@ import ( "os" "strings" - "realy.mleku.dev/chk" - "realy.mleku.dev/event" - "realy.mleku.dev/interrupt" - "realy.mleku.dev/log" - "realy.mleku.dev/units" + "realy.lol/chk" + "realy.lol/event" + "realy.lol/interrupt" + "realy.lol/log" + "realy.lol/units" ) func main() { diff --git a/event/event.go b/event/event.go index 1444bf6..646d737 100644 --- a/event/event.go +++ b/event/event.go @@ -7,19 +7,19 @@ package event import ( "lukechampine.com/frand" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/errorf" - "realy.mleku.dev/eventid" - "realy.mleku.dev/hex" - "realy.mleku.dev/kind" - "realy.mleku.dev/sha256" - "realy.mleku.dev/signer" - "realy.mleku.dev/tag" - "realy.mleku.dev/tags" - "realy.mleku.dev/text" - "realy.mleku.dev/timestamp" - "realy.mleku.dev/unix" + "realy.lol/chk" + "realy.lol/ec/schnorr" + "realy.lol/errorf" + "realy.lol/eventid" + "realy.lol/hex" + "realy.lol/kind" + "realy.lol/sha256" + "realy.lol/signer" + "realy.lol/tag" + "realy.lol/tags" + "realy.lol/text" + "realy.lol/timestamp" + "realy.lol/unix" ) // T is the primary datatype of nostr. This is the form of the structure that diff --git a/event/event_test.go b/event/event_test.go index 935d803..75731f9 100644 --- a/event/event_test.go +++ b/event/event_test.go @@ -6,9 +6,9 @@ import ( _ "embed" "testing" - "realy.mleku.dev/chk" - "realy.mleku.dev/event/examples" - "realy.mleku.dev/p256k" + "realy.lol/chk" + "realy.lol/event/examples" + "realy.lol/p256k" ) func TestTMarshal_Unmarshal(t *testing.T) { diff --git a/event/json.go b/event/json.go index 95744aa..16afc0d 100644 --- a/event/json.go +++ b/event/json.go @@ -5,15 +5,15 @@ import ( "encoding/json" "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/errorf" - "realy.mleku.dev/hex" - "realy.mleku.dev/kind" - "realy.mleku.dev/sha256" - "realy.mleku.dev/tags" - "realy.mleku.dev/text" - "realy.mleku.dev/timestamp" + "realy.lol/chk" + "realy.lol/ec/schnorr" + "realy.lol/errorf" + "realy.lol/hex" + "realy.lol/kind" + "realy.lol/sha256" + "realy.lol/tags" + "realy.lol/text" + "realy.lol/timestamp" ) var ( diff --git a/event/signatures.go b/event/signatures.go index a0f26f3..40b41c9 100644 --- a/event/signatures.go +++ b/event/signatures.go @@ -3,13 +3,13 @@ package event import ( "bytes" - "realy.mleku.dev/chk" - sch "realy.mleku.dev/ec/schnorr" - k1 "realy.mleku.dev/ec/secp256k1" - "realy.mleku.dev/errorf" - "realy.mleku.dev/log" - "realy.mleku.dev/p256k" - "realy.mleku.dev/signer" + "realy.lol/chk" + sch "realy.lol/ec/schnorr" + k1 "realy.lol/ec/secp256k1" + "realy.lol/errorf" + "realy.lol/log" + "realy.lol/p256k" + "realy.lol/signer" ) // Sign the event using the signer.I. Uses github.com/bitcoin-core/secp256k1 if diff --git a/eventid/eventid.go b/eventid/eventid.go index cc06b22..40424e0 100644 --- a/eventid/eventid.go +++ b/eventid/eventid.go @@ -5,11 +5,11 @@ package eventid import ( "lukechampine.com/frand" - "realy.mleku.dev/chk" - "realy.mleku.dev/errorf" - "realy.mleku.dev/hex" - "realy.mleku.dev/log" - "realy.mleku.dev/sha256" + "realy.lol/chk" + "realy.lol/errorf" + "realy.lol/hex" + "realy.lol/log" + "realy.lol/sha256" ) // T is the SHA256 hash in hexadecimal of the canonical form of an event as diff --git a/filter/filter.go b/filter/filter.go index b698dde..52f44e2 100644 --- a/filter/filter.go +++ b/filter/filter.go @@ -11,21 +11,21 @@ import ( "lukechampine.com/frand" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/ec/secp256k1" - "realy.mleku.dev/errorf" - "realy.mleku.dev/event" - "realy.mleku.dev/hex" - "realy.mleku.dev/ints" - "realy.mleku.dev/kind" - "realy.mleku.dev/kinds" - "realy.mleku.dev/realy/pointers" - "realy.mleku.dev/sha256" - "realy.mleku.dev/tag" - "realy.mleku.dev/tags" - "realy.mleku.dev/text" - "realy.mleku.dev/timestamp" + "realy.lol/chk" + "realy.lol/ec/schnorr" + "realy.lol/ec/secp256k1" + "realy.lol/errorf" + "realy.lol/event" + "realy.lol/hex" + "realy.lol/ints" + "realy.lol/kind" + "realy.lol/kinds" + "realy.lol/realy/pointers" + "realy.lol/sha256" + "realy.lol/tag" + "realy.lol/tags" + "realy.lol/text" + "realy.lol/timestamp" ) // T is the primary query form for requesting events from a nostr relay. diff --git a/filter/filter_test.go b/filter/filter_test.go index 03d2662..e9c6c0c 100644 --- a/filter/filter_test.go +++ b/filter/filter_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - "realy.mleku.dev/chk" + "realy.lol/chk" ) func TestT_MarshalUnmarshal(t *testing.T) { diff --git a/filter/simple.go b/filter/simple.go index 40b8bf3..6cf9c71 100644 --- a/filter/simple.go +++ b/filter/simple.go @@ -4,19 +4,19 @@ import ( "encoding/binary" "sort" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/errorf" - "realy.mleku.dev/event" - "realy.mleku.dev/hex" - "realy.mleku.dev/ints" - "realy.mleku.dev/kinds" - "realy.mleku.dev/realy/pointers" - "realy.mleku.dev/sha256" - "realy.mleku.dev/tag" - "realy.mleku.dev/tags" - "realy.mleku.dev/text" - "realy.mleku.dev/timestamp" + "realy.lol/chk" + "realy.lol/ec/schnorr" + "realy.lol/errorf" + "realy.lol/event" + "realy.lol/hex" + "realy.lol/ints" + "realy.lol/kinds" + "realy.lol/realy/pointers" + "realy.lol/sha256" + "realy.lol/tag" + "realy.lol/tags" + "realy.lol/text" + "realy.lol/timestamp" ) // S is a simplified filter that only covers the nip-01 REQ filter minus the diff --git a/filters/filters.go b/filters/filters.go index 24e03b4..f93c31e 100644 --- a/filters/filters.go +++ b/filters/filters.go @@ -2,10 +2,10 @@ package filters import ( - "realy.mleku.dev/chk" - "realy.mleku.dev/errorf" - "realy.mleku.dev/event" - "realy.mleku.dev/filter" + "realy.lol/chk" + "realy.lol/errorf" + "realy.lol/event" + "realy.lol/filter" ) // T is a wrapper around an array of pointers to filter.T. diff --git a/filters/filters_test.go b/filters/filters_test.go index 7a5df01..3faaa05 100644 --- a/filters/filters_test.go +++ b/filters/filters_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - "realy.mleku.dev/chk" + "realy.lol/chk" ) func TestT_MarshalUnmarshal(t *testing.T) { diff --git a/go.mod b/go.mod index 0f6c05b..57b44f1 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module realy.mleku.dev +module realy.lol go 1.24.2 diff --git a/hex/aliases.go b/hex/aliases.go index 696869b..64286cc 100644 --- a/hex/aliases.go +++ b/hex/aliases.go @@ -7,8 +7,8 @@ import ( "github.com/templexxx/xhex" - "realy.mleku.dev/chk" - "realy.mleku.dev/errorf" + "realy.lol/chk" + "realy.lol/errorf" ) var Enc = hex.EncodeToString diff --git a/httpauth/nip98auth.go b/httpauth/nip98auth.go index d24731b..6b3dfcf 100644 --- a/httpauth/nip98auth.go +++ b/httpauth/nip98auth.go @@ -6,14 +6,14 @@ import ( "net/url" "strings" - "realy.mleku.dev/chk" - "realy.mleku.dev/event" - "realy.mleku.dev/kind" - "realy.mleku.dev/log" - "realy.mleku.dev/signer" - "realy.mleku.dev/tag" - "realy.mleku.dev/tags" - "realy.mleku.dev/timestamp" + "realy.lol/chk" + "realy.lol/event" + "realy.lol/kind" + "realy.lol/log" + "realy.lol/signer" + "realy.lol/tag" + "realy.lol/tags" + "realy.lol/timestamp" ) const ( diff --git a/httpauth/validate.go b/httpauth/validate.go index 0f7e194..aa1a6ae 100644 --- a/httpauth/validate.go +++ b/httpauth/validate.go @@ -7,14 +7,14 @@ import ( "strings" "time" - "realy.mleku.dev/chk" - "realy.mleku.dev/errorf" - "realy.mleku.dev/event" - "realy.mleku.dev/ints" - "realy.mleku.dev/kind" - "realy.mleku.dev/tag" + "realy.lol/chk" + "realy.lol/errorf" + "realy.lol/event" + "realy.lol/ints" + "realy.lol/kind" + "realy.lol/tag" - "realy.mleku.dev/log" + "realy.lol/log" ) var ErrMissingKey = fmt.Errorf( diff --git a/interrupt/main.go b/interrupt/main.go index ec8e199..9e22c59 100644 --- a/interrupt/main.go +++ b/interrupt/main.go @@ -9,8 +9,8 @@ import ( "os/signal" "runtime" - "realy.mleku.dev/atomic" - "realy.mleku.dev/log" + "realy.lol/atomic" + "realy.lol/log" ) // HandlerWithSource is an interrupt handling closure and the source location that it was sent diff --git a/interrupt/restart.go b/interrupt/restart.go index bfc2627..41940fd 100644 --- a/interrupt/restart.go +++ b/interrupt/restart.go @@ -8,7 +8,7 @@ import ( "github.com/kardianos/osext" - "realy.mleku.dev/log" + "realy.lol/log" ) // Restart uses syscall.Exec to restart the process. MacOS and Windows are not implemented, diff --git a/ints/gen/pregen.go b/ints/gen/pregen.go index 6db0a3e..364b15e 100644 --- a/ints/gen/pregen.go +++ b/ints/gen/pregen.go @@ -6,7 +6,7 @@ import ( "fmt" "os" - "realy.mleku.dev/chk" + "realy.lol/chk" ) func main() { diff --git a/ints/ints.go b/ints/ints.go index 45ce836..57d0d4a 100644 --- a/ints/ints.go +++ b/ints/ints.go @@ -10,7 +10,7 @@ import ( "golang.org/x/exp/constraints" - "realy.mleku.dev/errorf" + "realy.lol/errorf" ) // run this to regenerate (pointlessly) the base 10 array of 4 places per entry diff --git a/ints/ints_test.go b/ints/ints_test.go index 5a2f871..18c7e9f 100644 --- a/ints/ints_test.go +++ b/ints/ints_test.go @@ -7,7 +7,7 @@ import ( "lukechampine.com/frand" - "realy.mleku.dev/chk" + "realy.lol/chk" ) func TestMarshalUnmarshal(t *testing.T) { diff --git a/json/array.go b/json/array.go index d9e122e..fef74e9 100644 --- a/json/array.go +++ b/json/array.go @@ -3,8 +3,8 @@ package json import ( "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/codec" + "realy.lol/chk" + "realy.lol/codec" ) // An Array is an ordered list of values. Each field is typed, to deal with the javascript diff --git a/json/base64.go b/json/base64.go index ac4204e..1bbedc9 100644 --- a/json/base64.go +++ b/json/base64.go @@ -4,9 +4,9 @@ import ( "bytes" "encoding/base64" - "realy.mleku.dev/chk" - "realy.mleku.dev/errorf" - "realy.mleku.dev/text" + "realy.lol/chk" + "realy.lol/errorf" + "realy.lol/text" ) // Base64 is a string representing binary data encoded as base64. diff --git a/json/bech32.go b/json/bech32.go index 9b3d700..e33250d 100644 --- a/json/bech32.go +++ b/json/bech32.go @@ -3,11 +3,11 @@ package json import ( "bytes" - "realy.mleku.dev/bech32encoding" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/bech32" - "realy.mleku.dev/errorf" - "realy.mleku.dev/text" + "realy.lol/bech32encoding" + "realy.lol/chk" + "realy.lol/ec/bech32" + "realy.lol/errorf" + "realy.lol/text" ) // Bech32 is a string encoded in bech32 format including a human-readable prefix and base32 diff --git a/json/examples_test.go b/json/examples_test.go index c5b3827..092b64a 100644 --- a/json/examples_test.go +++ b/json/examples_test.go @@ -4,8 +4,8 @@ import ( "bytes" "fmt" - "realy.mleku.dev/chk" - "realy.mleku.dev/hex" + "realy.lol/chk" + "realy.lol/hex" ) func ExampleBool_Marshal() { diff --git a/json/hex.go b/json/hex.go index e0eccd9..cd1d7bb 100644 --- a/json/hex.go +++ b/json/hex.go @@ -1,10 +1,10 @@ package json import ( - "realy.mleku.dev/chk" - "realy.mleku.dev/errorf" - "realy.mleku.dev/hex" - "realy.mleku.dev/text" + "realy.lol/chk" + "realy.lol/errorf" + "realy.lol/hex" + "realy.lol/text" ) // Hex is a string representing binary data encoded as hexadecimal. diff --git a/json/keyvalue.go b/json/keyvalue.go index 15d2214..8c9e519 100644 --- a/json/keyvalue.go +++ b/json/keyvalue.go @@ -3,8 +3,8 @@ package json import ( "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/codec" + "realy.lol/chk" + "realy.lol/codec" ) // An Object is an (not necessarily) ordered list of KeyValue. diff --git a/json/signed.go b/json/signed.go index f762400..956b3a3 100644 --- a/json/signed.go +++ b/json/signed.go @@ -3,8 +3,8 @@ package json import ( "golang.org/x/exp/constraints" - "realy.mleku.dev/chk" - "realy.mleku.dev/ints" + "realy.lol/chk" + "realy.lol/ints" ) // Signed integers can be negative and thus a `-` prefix. diff --git a/json/string.go b/json/string.go index 0cbc77e..766c570 100644 --- a/json/string.go +++ b/json/string.go @@ -1,8 +1,8 @@ package json import ( - "realy.mleku.dev/chk" - "realy.mleku.dev/text" + "realy.lol/chk" + "realy.lol/text" ) // String is a regular string. Must be escaped as per nip-01. Bytes stored in it are not diff --git a/json/unsigned.go b/json/unsigned.go index b96d5a0..abfd8ee 100644 --- a/json/unsigned.go +++ b/json/unsigned.go @@ -3,8 +3,8 @@ package json import ( "golang.org/x/exp/constraints" - "realy.mleku.dev/chk" - "realy.mleku.dev/ints" + "realy.lol/chk" + "realy.lol/ints" ) // Unsigned integers have no possible `-` prefix nor a decimal place. diff --git a/keys/keys.go b/keys/keys.go index 1a5d57a..2924d4f 100644 --- a/keys/keys.go +++ b/keys/keys.go @@ -5,10 +5,10 @@ package keys import ( "bytes" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/hex" - "realy.mleku.dev/p256k" + "realy.lol/chk" + "realy.lol/ec/schnorr" + "realy.lol/hex" + "realy.lol/p256k" ) // GeneratePrivateKey - deprecated, use GenerateSecretKeyHex diff --git a/kind/kind.go b/kind/kind.go index 4c69f12..5f5e191 100644 --- a/kind/kind.go +++ b/kind/kind.go @@ -8,8 +8,8 @@ import ( "golang.org/x/exp/constraints" - "realy.mleku.dev/chk" - "realy.mleku.dev/ints" + "realy.lol/chk" + "realy.lol/ints" ) // T - which will be externally referenced as kind.T is the event type in the diff --git a/kind/kind_test.go b/kind/kind_test.go index 096c8f6..192a54d 100644 --- a/kind/kind_test.go +++ b/kind/kind_test.go @@ -5,7 +5,7 @@ import ( "lukechampine.com/frand" - "realy.mleku.dev/chk" + "realy.lol/chk" ) func TestMarshalUnmarshal(t *testing.T) { diff --git a/kinds/kinds.go b/kinds/kinds.go index 2cfe825..0654312 100644 --- a/kinds/kinds.go +++ b/kinds/kinds.go @@ -3,11 +3,11 @@ package kinds import ( - "realy.mleku.dev/chk" - "realy.mleku.dev/errorf" - "realy.mleku.dev/ints" - "realy.mleku.dev/kind" - "realy.mleku.dev/log" + "realy.lol/chk" + "realy.lol/errorf" + "realy.lol/ints" + "realy.lol/kind" + "realy.lol/log" ) // T is an array of kind.T, used in filter.T and filter.S for searches. diff --git a/kinds/kinds_test.go b/kinds/kinds_test.go index 92c1c33..fbaa531 100644 --- a/kinds/kinds_test.go +++ b/kinds/kinds_test.go @@ -5,8 +5,8 @@ import ( "lukechampine.com/frand" - "realy.mleku.dev/chk" - "realy.mleku.dev/kind" + "realy.lol/chk" + "realy.lol/kind" ) func TestUnmarshalKindsArray(t *testing.T) { diff --git a/log/log.go b/log/log.go index e5b8021..c3ca36e 100644 --- a/log/log.go +++ b/log/log.go @@ -2,7 +2,7 @@ package log import ( - "realy.mleku.dev/lol" + "realy.lol/lol" ) var F, E, W, I, D, T lol.LevelPrinter diff --git a/normalize/normalize.go b/normalize/normalize.go index d29a8bc..4b681b6 100644 --- a/normalize/normalize.go +++ b/normalize/normalize.go @@ -6,9 +6,9 @@ import ( "bytes" "net/url" - "realy.mleku.dev/chk" - "realy.mleku.dev/ints" - "realy.mleku.dev/log" + "realy.lol/chk" + "realy.lol/ints" + "realy.lol/log" ) var ( diff --git a/nwc/lightning.go b/nwc/lightning.go index 379fb86..a44658d 100644 --- a/nwc/lightning.go +++ b/nwc/lightning.go @@ -1,7 +1,7 @@ package nwc import ( - "realy.mleku.dev/kind" + "realy.lol/kind" ) var Kinds = []*kind.T{ diff --git a/nwc/pay_invoice.go b/nwc/pay_invoice.go index 0ea9893..683ccb4 100644 --- a/nwc/pay_invoice.go +++ b/nwc/pay_invoice.go @@ -1,7 +1,7 @@ package nwc import ( - "realy.mleku.dev/text" + "realy.lol/text" ) type PayInvoiceRequest struct { diff --git a/nwc/pay_invoice_test.go b/nwc/pay_invoice_test.go index f70bd8c..8d2c671 100644 --- a/nwc/pay_invoice_test.go +++ b/nwc/pay_invoice_test.go @@ -3,7 +3,7 @@ package nwc import ( "fmt" - "realy.mleku.dev/chk" + "realy.lol/chk" ) func ExamplePayInvoiceRequest_Marshal() { diff --git a/nwc/protocols.go b/nwc/protocols.go index f94681a..3f1b5ea 100644 --- a/nwc/protocols.go +++ b/nwc/protocols.go @@ -1,7 +1,7 @@ package nwc import ( - "realy.mleku.dev/ints" + "realy.lol/ints" ) // Interfaces diff --git a/openapi/http-configuration.go b/openapi/http-configuration.go index c17a0e5..a558b9a 100644 --- a/openapi/http-configuration.go +++ b/openapi/http-configuration.go @@ -5,13 +5,13 @@ import ( "github.com/danielgtaylor/huma/v2" - "realy.mleku.dev/bech32encoding" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/hex" - "realy.mleku.dev/log" - "realy.mleku.dev/realy/config" - "realy.mleku.dev/realy/helpers" + "realy.lol/bech32encoding" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/hex" + "realy.lol/log" + "realy.lol/realy/config" + "realy.lol/realy/helpers" ) // ConfigurationSetInput is the parameters for HTTP API method to set Configuration. diff --git a/openapi/http-event.go b/openapi/http-event.go index f0363af..55d3187 100644 --- a/openapi/http-event.go +++ b/openapi/http-event.go @@ -8,18 +8,18 @@ import ( "github.com/danielgtaylor/huma/v2" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/event" - "realy.mleku.dev/filter" - "realy.mleku.dev/hex" - "realy.mleku.dev/httpauth" - "realy.mleku.dev/ints" - "realy.mleku.dev/kind" - "realy.mleku.dev/log" - "realy.mleku.dev/realy/helpers" - "realy.mleku.dev/sha256" - "realy.mleku.dev/tag" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/event" + "realy.lol/filter" + "realy.lol/hex" + "realy.lol/httpauth" + "realy.lol/ints" + "realy.lol/kind" + "realy.lol/log" + "realy.lol/realy/helpers" + "realy.lol/sha256" + "realy.lol/tag" ) // EventInput is the parameters for the Event HTTP API method. diff --git a/openapi/http-eventidsbyserial.go b/openapi/http-eventidsbyserial.go index ab56075..a7e78ad 100644 --- a/openapi/http-eventidsbyserial.go +++ b/openapi/http-eventidsbyserial.go @@ -5,10 +5,10 @@ import ( "github.com/danielgtaylor/huma/v2" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/eventidserial" - "realy.mleku.dev/realy/helpers" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/eventidserial" + "realy.lol/realy/helpers" ) type EventIdsBySerialInput struct { diff --git a/openapi/http-events.go b/openapi/http-events.go index eadf320..6b8a997 100644 --- a/openapi/http-events.go +++ b/openapi/http-events.go @@ -7,15 +7,15 @@ import ( "github.com/danielgtaylor/huma/v2" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/hex" - "realy.mleku.dev/httpauth" - "realy.mleku.dev/realy/helpers" - "realy.mleku.dev/sha256" - "realy.mleku.dev/store" - "realy.mleku.dev/tag" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/ec/schnorr" + "realy.lol/hex" + "realy.lol/httpauth" + "realy.lol/realy/helpers" + "realy.lol/sha256" + "realy.lol/store" + "realy.lol/tag" ) // EventsInput is the parameters for an Events HTTP API method. Basically an array of eventid.T. diff --git a/openapi/http-export.go b/openapi/http-export.go index c0f8928..8f79ee4 100644 --- a/openapi/http-export.go +++ b/openapi/http-export.go @@ -5,9 +5,9 @@ import ( "github.com/danielgtaylor/huma/v2" - "realy.mleku.dev/context" - "realy.mleku.dev/log" - "realy.mleku.dev/realy/helpers" + "realy.lol/context" + "realy.lol/log" + "realy.lol/realy/helpers" ) // ExportInput is the parameters for the HTTP API Export method. diff --git a/openapi/http-filter.go b/openapi/http-filter.go index 5c44ac3..975b3ca 100644 --- a/openapi/http-filter.go +++ b/openapi/http-filter.go @@ -9,21 +9,21 @@ import ( "github.com/danielgtaylor/huma/v2" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/event" - "realy.mleku.dev/filter" - "realy.mleku.dev/filters" - "realy.mleku.dev/hex" - "realy.mleku.dev/httpauth" - "realy.mleku.dev/kind" - "realy.mleku.dev/kinds" - "realy.mleku.dev/log" - "realy.mleku.dev/realy/helpers" - "realy.mleku.dev/store" - "realy.mleku.dev/tag" - "realy.mleku.dev/tags" - "realy.mleku.dev/timestamp" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/event" + "realy.lol/filter" + "realy.lol/filters" + "realy.lol/hex" + "realy.lol/httpauth" + "realy.lol/kind" + "realy.lol/kinds" + "realy.lol/log" + "realy.lol/realy/helpers" + "realy.lol/store" + "realy.lol/tag" + "realy.lol/tags" + "realy.lol/timestamp" ) // SimpleFilter is the main parts of a filter.T that relate to event store indexes. diff --git a/openapi/http-import.go b/openapi/http-import.go index b940933..b2a14c2 100644 --- a/openapi/http-import.go +++ b/openapi/http-import.go @@ -8,9 +8,9 @@ import ( "github.com/danielgtaylor/huma/v2" - "realy.mleku.dev/context" - "realy.mleku.dev/log" - "realy.mleku.dev/realy/helpers" + "realy.lol/context" + "realy.lol/log" + "realy.lol/realy/helpers" ) // ImportInput is the parameters of an import operation, authentication and the stream of line diff --git a/openapi/http-nuke.go b/openapi/http-nuke.go index ba1a977..fc251f0 100644 --- a/openapi/http-nuke.go +++ b/openapi/http-nuke.go @@ -6,11 +6,11 @@ import ( "github.com/danielgtaylor/huma/v2" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/log" - "realy.mleku.dev/realy/helpers" - "realy.mleku.dev/store" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/log" + "realy.lol/realy/helpers" + "realy.lol/store" ) // NukeInput is the parameters for the HTTP API method nuke. Note that it has a confirmation diff --git a/openapi/http-relay.go b/openapi/http-relay.go index 6ce6636..9c32435 100644 --- a/openapi/http-relay.go +++ b/openapi/http-relay.go @@ -7,13 +7,13 @@ import ( "github.com/danielgtaylor/huma/v2" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/event" - "realy.mleku.dev/httpauth" - "realy.mleku.dev/log" - "realy.mleku.dev/publish" - "realy.mleku.dev/realy/helpers" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/event" + "realy.lol/httpauth" + "realy.lol/log" + "realy.lol/publish" + "realy.lol/realy/helpers" ) // RelayInput is the parameters for the Event HTTP API method. diff --git a/openapi/http-rescan.go b/openapi/http-rescan.go index 5c102f4..6d36ea2 100644 --- a/openapi/http-rescan.go +++ b/openapi/http-rescan.go @@ -5,11 +5,11 @@ import ( "github.com/danielgtaylor/huma/v2" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/log" - "realy.mleku.dev/realy/helpers" - "realy.mleku.dev/store" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/log" + "realy.lol/realy/helpers" + "realy.lol/store" ) type RescanInput struct { diff --git a/openapi/http-shutdown.go b/openapi/http-shutdown.go index 885252d..53311c9 100644 --- a/openapi/http-shutdown.go +++ b/openapi/http-shutdown.go @@ -6,8 +6,8 @@ import ( "github.com/danielgtaylor/huma/v2" - "realy.mleku.dev/context" - "realy.mleku.dev/realy/helpers" + "realy.lol/context" + "realy.lol/realy/helpers" ) type ShutdownInput struct { diff --git a/openapi/http-subscribe.go b/openapi/http-subscribe.go index 46d7646..d3ffcae 100644 --- a/openapi/http-subscribe.go +++ b/openapi/http-subscribe.go @@ -8,20 +8,20 @@ import ( "github.com/danielgtaylor/huma/v2" "github.com/danielgtaylor/huma/v2/sse" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/event" - "realy.mleku.dev/filter" - "realy.mleku.dev/filters" - "realy.mleku.dev/hex" - "realy.mleku.dev/httpauth" - "realy.mleku.dev/kind" - "realy.mleku.dev/kinds" - "realy.mleku.dev/log" - "realy.mleku.dev/publish" - "realy.mleku.dev/realy/helpers" - "realy.mleku.dev/tag" - "realy.mleku.dev/tags" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/event" + "realy.lol/filter" + "realy.lol/filters" + "realy.lol/hex" + "realy.lol/httpauth" + "realy.lol/kind" + "realy.lol/kinds" + "realy.lol/log" + "realy.lol/publish" + "realy.lol/realy/helpers" + "realy.lol/tag" + "realy.lol/tags" ) type SubscribeInput struct { diff --git a/openapi/huma.go b/openapi/huma.go index 5d2becd..b8308f3 100644 --- a/openapi/huma.go +++ b/openapi/huma.go @@ -6,7 +6,7 @@ import ( "github.com/danielgtaylor/huma/v2" "github.com/danielgtaylor/huma/v2/adapters/humago" - "realy.mleku.dev/servemux" + "realy.lol/servemux" ) // ExposeMiddleware adds the http.Request and http.ResponseWriter to the context diff --git a/openapi/main.go b/openapi/main.go index 1900b83..d57ca33 100644 --- a/openapi/main.go +++ b/openapi/main.go @@ -3,8 +3,8 @@ package openapi import ( "github.com/danielgtaylor/huma/v2" - "realy.mleku.dev/realy/interfaces" - "realy.mleku.dev/servemux" + "realy.lol/realy/interfaces" + "realy.lol/servemux" ) type Operations struct { diff --git a/openapi/publisher-openapi.go b/openapi/publisher-openapi.go index 3988052..bbd1fdf 100644 --- a/openapi/publisher-openapi.go +++ b/openapi/publisher-openapi.go @@ -4,13 +4,13 @@ import ( "bytes" "sync" - "realy.mleku.dev/context" - "realy.mleku.dev/event" - "realy.mleku.dev/filter" - "realy.mleku.dev/publish" - "realy.mleku.dev/publish/publisher" - "realy.mleku.dev/tag" - "realy.mleku.dev/typer" + "realy.lol/context" + "realy.lol/event" + "realy.lol/filter" + "realy.lol/publish" + "realy.lol/publish/publisher" + "realy.lol/tag" + "realy.lol/typer" ) const Type = "openapi" diff --git a/p256k/btcec.go b/p256k/btcec.go index 17a77c2..a2a1bb5 100644 --- a/p256k/btcec.go +++ b/p256k/btcec.go @@ -3,7 +3,7 @@ package p256k import ( - "realy.mleku.dev/p256k/btcec" + "realy.lol/p256k/btcec" ) func init() { diff --git a/p256k/btcec/btcec.go b/p256k/btcec/btcec.go index 9fd3ad6..e08d494 100644 --- a/p256k/btcec/btcec.go +++ b/p256k/btcec/btcec.go @@ -2,12 +2,12 @@ package btcec import ( - "realy.mleku.dev/chk" - ec "realy.mleku.dev/ec" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/ec/secp256k1" - "realy.mleku.dev/errorf" - "realy.mleku.dev/signer" + "realy.lol/chk" + ec "realy.lol/ec" + "realy.lol/ec/schnorr" + "realy.lol/ec/secp256k1" + "realy.lol/errorf" + "realy.lol/signer" ) // Signer is an implementation of signer.I that uses the btcec library. diff --git a/p256k/btcec/btcec_test.go b/p256k/btcec/btcec_test.go index 1c18cbb..fd86dc6 100644 --- a/p256k/btcec/btcec_test.go +++ b/p256k/btcec/btcec_test.go @@ -6,13 +6,13 @@ import ( "testing" "time" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/event" - "realy.mleku.dev/event/examples" - "realy.mleku.dev/log" - "realy.mleku.dev/p256k/btcec" - "realy.mleku.dev/sha256" + "realy.lol/chk" + "realy.lol/ec/schnorr" + "realy.lol/event" + "realy.lol/event/examples" + "realy.lol/log" + "realy.lol/p256k/btcec" + "realy.lol/sha256" ) func TestSigner_Generate(t *testing.T) { diff --git a/p256k/p256k.go b/p256k/p256k.go index 03515c3..70990f3 100644 --- a/p256k/p256k.go +++ b/p256k/p256k.go @@ -4,12 +4,12 @@ package p256k import "C" import ( - "realy.mleku.dev/chk" - btcec "realy.mleku.dev/ec" - "realy.mleku.dev/ec/secp256k1" - "realy.mleku.dev/errorf" - "realy.mleku.dev/log" - realy "realy.mleku.dev/signer" + "realy.lol/chk" + btcec "realy.lol/ec" + "realy.lol/ec/secp256k1" + "realy.lol/errorf" + "realy.lol/log" + realy "realy.lol/signer" ) func init() { diff --git a/p256k/p256k_test.go b/p256k/p256k_test.go index e6ff645..ac067d7 100644 --- a/p256k/p256k_test.go +++ b/p256k/p256k_test.go @@ -9,13 +9,13 @@ import ( "testing" "time" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/event" - "realy.mleku.dev/event/examples" - "realy.mleku.dev/log" - "realy.mleku.dev/p256k" - realy "realy.mleku.dev/signer" + "realy.lol/chk" + "realy.lol/ec/schnorr" + "realy.lol/event" + "realy.lol/event/examples" + "realy.lol/log" + "realy.lol/p256k" + realy "realy.lol/signer" ) func TestSigner_Generate(t *testing.T) { diff --git a/p256k/secp256k1.go b/p256k/secp256k1.go index 08209c8..c2f7cdb 100644 --- a/p256k/secp256k1.go +++ b/p256k/secp256k1.go @@ -6,12 +6,12 @@ import ( "crypto/rand" "unsafe" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/ec/secp256k1" - "realy.mleku.dev/errorf" - "realy.mleku.dev/log" - "realy.mleku.dev/sha256" + "realy.lol/chk" + "realy.lol/ec/schnorr" + "realy.lol/ec/secp256k1" + "realy.lol/errorf" + "realy.lol/log" + "realy.lol/sha256" ) /* diff --git a/p256k/secp256k1_test.go b/p256k/secp256k1_test.go index 06c0ece..a82d6ab 100644 --- a/p256k/secp256k1_test.go +++ b/p256k/secp256k1_test.go @@ -7,12 +7,12 @@ import ( "bytes" "testing" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/event" - "realy.mleku.dev/event/examples" - "realy.mleku.dev/p256k" - "realy.mleku.dev/sha256" + "realy.lol/chk" + "realy.lol/ec/schnorr" + "realy.lol/event" + "realy.lol/event/examples" + "realy.lol/p256k" + "realy.lol/sha256" ) func TestVerify(t *testing.T) { diff --git a/publish/publisher.go b/publish/publisher.go index 8f01ddf..51b4e62 100644 --- a/publish/publisher.go +++ b/publish/publisher.go @@ -2,9 +2,9 @@ package publish import ( - "realy.mleku.dev/event" - "realy.mleku.dev/publish/publisher" - "realy.mleku.dev/typer" + "realy.lol/event" + "realy.lol/publish/publisher" + "realy.lol/typer" ) var publishers publisher.Publishers diff --git a/publish/publisher/interface.go b/publish/publisher/interface.go index 12965dd..70ef88c 100644 --- a/publish/publisher/interface.go +++ b/publish/publisher/interface.go @@ -1,8 +1,8 @@ package publisher import ( - "realy.mleku.dev/event" - "realy.mleku.dev/typer" + "realy.lol/event" + "realy.lol/typer" ) type I interface { diff --git a/ratel/close.go b/ratel/close.go index bf1ef43..0d63327 100644 --- a/ratel/close.go +++ b/ratel/close.go @@ -1,8 +1,8 @@ package ratel import ( - "realy.mleku.dev/chk" - "realy.mleku.dev/log" + "realy.lol/chk" + "realy.lol/log" ) // Close the database. If the Flatten flag was set, then trigger the flattening of tables before diff --git a/ratel/configuration.go b/ratel/configuration.go index 8c5b4d6..d03c799 100644 --- a/ratel/configuration.go +++ b/ratel/configuration.go @@ -5,9 +5,9 @@ import ( "github.com/dgraph-io/badger/v4" - "realy.mleku.dev/chk" - "realy.mleku.dev/ratel/prefixes" - "realy.mleku.dev/realy/config" + "realy.lol/chk" + "realy.lol/ratel/prefixes" + "realy.lol/realy/config" ) // SetConfiguration stores the store.C value to a provided setting. diff --git a/ratel/create-a-tag.go b/ratel/create-a-tag.go index 0dc21fe..d3339ac 100644 --- a/ratel/create-a-tag.go +++ b/ratel/create-a-tag.go @@ -3,19 +3,19 @@ package ratel import ( "strings" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/hex" - "realy.mleku.dev/log" - "realy.mleku.dev/ratel/keys" - "realy.mleku.dev/ratel/keys/arb" - "realy.mleku.dev/ratel/keys/createdat" - "realy.mleku.dev/ratel/keys/index" - "realy.mleku.dev/ratel/keys/kinder" - "realy.mleku.dev/ratel/keys/pubkey" - "realy.mleku.dev/ratel/keys/serial" - "realy.mleku.dev/ratel/prefixes" - "realy.mleku.dev/tag/atag" + "realy.lol/chk" + "realy.lol/ec/schnorr" + "realy.lol/hex" + "realy.lol/log" + "realy.lol/ratel/keys" + "realy.lol/ratel/keys/arb" + "realy.lol/ratel/keys/createdat" + "realy.lol/ratel/keys/index" + "realy.lol/ratel/keys/kinder" + "realy.lol/ratel/keys/pubkey" + "realy.lol/ratel/keys/serial" + "realy.lol/ratel/prefixes" + "realy.lol/tag/atag" ) // Create_a_Tag generates tag indexes from a tag key, tag value, created_at diff --git a/ratel/deleteevent.go b/ratel/deleteevent.go index 2539968..b937462 100644 --- a/ratel/deleteevent.go +++ b/ratel/deleteevent.go @@ -3,19 +3,19 @@ package ratel import ( "github.com/dgraph-io/badger/v4" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/event" - "realy.mleku.dev/eventid" - "realy.mleku.dev/log" - "realy.mleku.dev/ratel/keys" - "realy.mleku.dev/ratel/keys/createdat" - "realy.mleku.dev/ratel/keys/id" - "realy.mleku.dev/ratel/keys/index" - "realy.mleku.dev/ratel/keys/serial" - "realy.mleku.dev/ratel/keys/tombstone" - "realy.mleku.dev/ratel/prefixes" - "realy.mleku.dev/timestamp" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/event" + "realy.lol/eventid" + "realy.lol/log" + "realy.lol/ratel/keys" + "realy.lol/ratel/keys/createdat" + "realy.lol/ratel/keys/id" + "realy.lol/ratel/keys/index" + "realy.lol/ratel/keys/serial" + "realy.lol/ratel/keys/tombstone" + "realy.lol/ratel/prefixes" + "realy.lol/timestamp" ) // DeleteEvent deletes an event if it exists, and writes a tombstone for the event unless diff --git a/ratel/eventsbyserial.go b/ratel/eventsbyserial.go index 5f25e4f..9aa651a 100644 --- a/ratel/eventsbyserial.go +++ b/ratel/eventsbyserial.go @@ -3,16 +3,16 @@ package ratel import ( "github.com/dgraph-io/badger/v4" - "realy.mleku.dev/eventidserial" - "realy.mleku.dev/hex" - "realy.mleku.dev/ratel/keys" - "realy.mleku.dev/ratel/keys/createdat" - "realy.mleku.dev/ratel/keys/fullid" - "realy.mleku.dev/ratel/keys/fullpubkey" - "realy.mleku.dev/ratel/keys/index" - "realy.mleku.dev/ratel/keys/serial" - "realy.mleku.dev/ratel/prefixes" - "realy.mleku.dev/timestamp" + "realy.lol/eventidserial" + "realy.lol/hex" + "realy.lol/ratel/keys" + "realy.lol/ratel/keys/createdat" + "realy.lol/ratel/keys/fullid" + "realy.lol/ratel/keys/fullpubkey" + "realy.lol/ratel/keys/index" + "realy.lol/ratel/keys/serial" + "realy.lol/ratel/prefixes" + "realy.lol/timestamp" ) func (r *T) EventIdsBySerial(start uint64, count int) (evs []eventidserial.E, diff --git a/ratel/export.go b/ratel/export.go index 60097b9..04a39ad 100644 --- a/ratel/export.go +++ b/ratel/export.go @@ -7,15 +7,15 @@ import ( "github.com/dgraph-io/badger/v4" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/filter" - "realy.mleku.dev/hex" - "realy.mleku.dev/log" - "realy.mleku.dev/ratel/keys/serial" - "realy.mleku.dev/ratel/prefixes" - "realy.mleku.dev/tag" - "realy.mleku.dev/tags" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/filter" + "realy.lol/hex" + "realy.lol/log" + "realy.lol/ratel/keys/serial" + "realy.lol/ratel/prefixes" + "realy.lol/tag" + "realy.lol/tags" ) // Export the complete database of stored events to an io.Writer in line structured minified diff --git a/ratel/fetch-ids.go b/ratel/fetch-ids.go index cfa6480..2ae8eed 100644 --- a/ratel/fetch-ids.go +++ b/ratel/fetch-ids.go @@ -5,12 +5,12 @@ import ( "github.com/dgraph-io/badger/v4" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/ratel/keys/id" - "realy.mleku.dev/ratel/keys/serial" - "realy.mleku.dev/ratel/prefixes" - "realy.mleku.dev/tag" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/ratel/keys/id" + "realy.lol/ratel/keys/serial" + "realy.lol/ratel/prefixes" + "realy.lol/tag" ) // FetchIds retrieves events based on a list of event Ids that have been provided. diff --git a/ratel/getecounterkey.go b/ratel/getecounterkey.go index 66db1f2..27e5bb8 100644 --- a/ratel/getecounterkey.go +++ b/ratel/getecounterkey.go @@ -1,8 +1,8 @@ package ratel import ( - "realy.mleku.dev/ratel/keys/serial" - "realy.mleku.dev/ratel/prefixes" + "realy.lol/ratel/keys/serial" + "realy.lol/ratel/prefixes" ) // GetCounterKey returns the proper counter key for a given event Id. This needs diff --git a/ratel/getindexkeysforevent.go b/ratel/getindexkeysforevent.go index f201723..670393e 100644 --- a/ratel/getindexkeysforevent.go +++ b/ratel/getindexkeysforevent.go @@ -3,21 +3,21 @@ package ratel import ( "bytes" - "realy.mleku.dev/chk" - "realy.mleku.dev/event" - "realy.mleku.dev/eventid" - "realy.mleku.dev/log" - "realy.mleku.dev/ratel/keys" - "realy.mleku.dev/ratel/keys/createdat" - "realy.mleku.dev/ratel/keys/fullid" - "realy.mleku.dev/ratel/keys/fullpubkey" - "realy.mleku.dev/ratel/keys/id" - "realy.mleku.dev/ratel/keys/index" - "realy.mleku.dev/ratel/keys/kinder" - "realy.mleku.dev/ratel/keys/pubkey" - "realy.mleku.dev/ratel/keys/serial" - "realy.mleku.dev/ratel/prefixes" - "realy.mleku.dev/tag" + "realy.lol/chk" + "realy.lol/event" + "realy.lol/eventid" + "realy.lol/log" + "realy.lol/ratel/keys" + "realy.lol/ratel/keys/createdat" + "realy.lol/ratel/keys/fullid" + "realy.lol/ratel/keys/fullpubkey" + "realy.lol/ratel/keys/id" + "realy.lol/ratel/keys/index" + "realy.lol/ratel/keys/kinder" + "realy.lol/ratel/keys/pubkey" + "realy.lol/ratel/keys/serial" + "realy.lol/ratel/prefixes" + "realy.lol/tag" ) // GetIndexKeysForEvent generates all the index keys required to filter for diff --git a/ratel/gettagkeyprefix.go b/ratel/gettagkeyprefix.go index d564f7c..932d447 100644 --- a/ratel/gettagkeyprefix.go +++ b/ratel/gettagkeyprefix.go @@ -1,14 +1,14 @@ package ratel import ( - eventstore "realy.mleku.dev/addresstag" - "realy.mleku.dev/chk" - "realy.mleku.dev/hex" - "realy.mleku.dev/ratel/keys" - "realy.mleku.dev/ratel/keys/arb" - "realy.mleku.dev/ratel/keys/kinder" - "realy.mleku.dev/ratel/keys/pubkey" - "realy.mleku.dev/ratel/prefixes" + eventstore "realy.lol/addresstag" + "realy.lol/chk" + "realy.lol/hex" + "realy.lol/ratel/keys" + "realy.lol/ratel/keys/arb" + "realy.lol/ratel/keys/kinder" + "realy.lol/ratel/keys/pubkey" + "realy.lol/ratel/prefixes" ) // GetTagKeyPrefix returns tag index prefixes based on the initial field of a diff --git a/ratel/import.go b/ratel/import.go index 6fc8a0d..01a9a70 100644 --- a/ratel/import.go +++ b/ratel/import.go @@ -5,9 +5,9 @@ import ( "io" "time" - "realy.mleku.dev/chk" - "realy.mleku.dev/event" - "realy.mleku.dev/log" + "realy.lol/chk" + "realy.lol/event" + "realy.lol/log" ) const maxLen = 500000000 diff --git a/ratel/init.go b/ratel/init.go index 594994a..8e8d77a 100644 --- a/ratel/init.go +++ b/ratel/init.go @@ -7,10 +7,10 @@ import ( "github.com/dgraph-io/badger/v4" - "realy.mleku.dev/chk" - "realy.mleku.dev/log" - "realy.mleku.dev/ratel/prefixes" - "realy.mleku.dev/units" + "realy.lol/chk" + "realy.lol/log" + "realy.lol/ratel/prefixes" + "realy.lol/units" ) // Init sets up the database with the loaded configuration. diff --git a/ratel/keys/arb/arb.go b/ratel/keys/arb/arb.go index fec07c1..18684dd 100644 --- a/ratel/keys/arb/arb.go +++ b/ratel/keys/arb/arb.go @@ -7,9 +7,9 @@ import ( "bytes" "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/log" - "realy.mleku.dev/ratel/keys" + "realy.lol/chk" + "realy.lol/log" + "realy.lol/ratel/keys" ) // T is an arbitrary length byte string. In any construction there can only be one with arbitrary length. Custom lengths diff --git a/ratel/keys/count/count.go b/ratel/keys/count/count.go index 3afadbd..4eec814 100644 --- a/ratel/keys/count/count.go +++ b/ratel/keys/count/count.go @@ -3,7 +3,7 @@ package count import ( - "realy.mleku.dev/timestamp" + "realy.lol/timestamp" ) type Item struct { diff --git a/ratel/keys/createdat/createdat.go b/ratel/keys/createdat/createdat.go index 12d326c..40eab5e 100644 --- a/ratel/keys/createdat/createdat.go +++ b/ratel/keys/createdat/createdat.go @@ -5,11 +5,11 @@ import ( "encoding/binary" "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/errorf" - "realy.mleku.dev/ratel/keys" - "realy.mleku.dev/ratel/keys/serial" - "realy.mleku.dev/timestamp" + "realy.lol/chk" + "realy.lol/errorf" + "realy.lol/ratel/keys" + "realy.lol/ratel/keys/serial" + "realy.lol/timestamp" ) const Len = 8 diff --git a/ratel/keys/createdat/createdat_test.go b/ratel/keys/createdat/createdat_test.go index aa85162..9c70fea 100644 --- a/ratel/keys/createdat/createdat_test.go +++ b/ratel/keys/createdat/createdat_test.go @@ -7,7 +7,7 @@ import ( "lukechampine.com/frand" - "realy.mleku.dev/timestamp" + "realy.lol/timestamp" ) func TestT(t *testing.T) { diff --git a/ratel/keys/fullid/fullid.go b/ratel/keys/fullid/fullid.go index bbb417c..ee877ae 100644 --- a/ratel/keys/fullid/fullid.go +++ b/ratel/keys/fullid/fullid.go @@ -5,11 +5,11 @@ import ( "fmt" "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/ratel/keys" - "realy.mleku.dev/sha256" + "realy.lol/chk" + "realy.lol/ratel/keys" + "realy.lol/sha256" - "realy.mleku.dev/eventid" + "realy.lol/eventid" ) const Len = sha256.Size diff --git a/ratel/keys/fullid/fullid_test.go b/ratel/keys/fullid/fullid_test.go index e482619..b75ae88 100644 --- a/ratel/keys/fullid/fullid_test.go +++ b/ratel/keys/fullid/fullid_test.go @@ -6,8 +6,8 @@ import ( "lukechampine.com/frand" - "realy.mleku.dev/eventid" - "realy.mleku.dev/sha256" + "realy.lol/eventid" + "realy.lol/sha256" ) func TestT(t *testing.T) { diff --git a/ratel/keys/fullpubkey/fullpubkey.go b/ratel/keys/fullpubkey/fullpubkey.go index 46dc2c0..e4f33ce 100644 --- a/ratel/keys/fullpubkey/fullpubkey.go +++ b/ratel/keys/fullpubkey/fullpubkey.go @@ -6,9 +6,9 @@ import ( "fmt" "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/ratel/keys" + "realy.lol/chk" + "realy.lol/ec/schnorr" + "realy.lol/ratel/keys" ) const Len = schnorr.PubKeyBytesLen diff --git a/ratel/keys/fullpubkey/fullpubkey_test.go b/ratel/keys/fullpubkey/fullpubkey_test.go index d6c4ce3..17006c1 100644 --- a/ratel/keys/fullpubkey/fullpubkey_test.go +++ b/ratel/keys/fullpubkey/fullpubkey_test.go @@ -6,7 +6,7 @@ import ( "lukechampine.com/frand" - "realy.mleku.dev/sha256" + "realy.lol/sha256" ) func TestT(t *testing.T) { diff --git a/ratel/keys/id/id.go b/ratel/keys/id/id.go index 197cb0d..ecfc009 100644 --- a/ratel/keys/id/id.go +++ b/ratel/keys/id/id.go @@ -7,13 +7,13 @@ import ( "io" "strings" - "realy.mleku.dev/chk" - "realy.mleku.dev/errorf" - "realy.mleku.dev/ratel/keys" - "realy.mleku.dev/sha256" + "realy.lol/chk" + "realy.lol/errorf" + "realy.lol/ratel/keys" + "realy.lol/sha256" - "realy.mleku.dev/eventid" - "realy.mleku.dev/hex" + "realy.lol/eventid" + "realy.lol/hex" ) const Len = 8 diff --git a/ratel/keys/id/id_test.go b/ratel/keys/id/id_test.go index 809d754..ee4028d 100644 --- a/ratel/keys/id/id_test.go +++ b/ratel/keys/id/id_test.go @@ -6,8 +6,8 @@ import ( "lukechampine.com/frand" - "realy.mleku.dev/eventid" - "realy.mleku.dev/sha256" + "realy.lol/eventid" + "realy.lol/sha256" ) func TestT(t *testing.T) { diff --git a/ratel/keys/index/index.go b/ratel/keys/index/index.go index 0f4716f..bb42768 100644 --- a/ratel/keys/index/index.go +++ b/ratel/keys/index/index.go @@ -7,8 +7,8 @@ import ( "fmt" "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/ratel/keys" + "realy.lol/chk" + "realy.lol/ratel/keys" ) const Len = 1 diff --git a/ratel/keys/index/prefixes.go b/ratel/keys/index/prefixes.go index 9b55144..c4cdc90 100644 --- a/ratel/keys/index/prefixes.go +++ b/ratel/keys/index/prefixes.go @@ -1,7 +1,7 @@ package index import ( - "realy.mleku.dev/ratel/keys" + "realy.lol/ratel/keys" ) type P byte diff --git a/ratel/keys/keys_test.go b/ratel/keys/keys_test.go index e03bad2..23f9f69 100644 --- a/ratel/keys/keys_test.go +++ b/ratel/keys/keys_test.go @@ -9,18 +9,18 @@ import ( "lukechampine.com/frand" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/eventid" - "realy.mleku.dev/kind" - "realy.mleku.dev/ratel/keys" - "realy.mleku.dev/ratel/keys/createdat" - "realy.mleku.dev/ratel/keys/id" - "realy.mleku.dev/ratel/keys/index" - "realy.mleku.dev/ratel/keys/kinder" - "realy.mleku.dev/ratel/keys/pubkey" - "realy.mleku.dev/ratel/keys/serial" - "realy.mleku.dev/ratel/prefixes" - "realy.mleku.dev/timestamp" + "realy.lol/ec/schnorr" + "realy.lol/eventid" + "realy.lol/kind" + "realy.lol/ratel/keys" + "realy.lol/ratel/keys/createdat" + "realy.lol/ratel/keys/id" + "realy.lol/ratel/keys/index" + "realy.lol/ratel/keys/kinder" + "realy.lol/ratel/keys/pubkey" + "realy.lol/ratel/keys/serial" + "realy.lol/ratel/prefixes" + "realy.lol/timestamp" ) func TestElement(t *testing.T) { diff --git a/ratel/keys/kinder/kind.go b/ratel/keys/kinder/kind.go index a503a6d..4762790 100644 --- a/ratel/keys/kinder/kind.go +++ b/ratel/keys/kinder/kind.go @@ -6,9 +6,9 @@ import ( "encoding/binary" "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/kind" - "realy.mleku.dev/ratel/keys" + "realy.lol/chk" + "realy.lol/kind" + "realy.lol/ratel/keys" ) const Len = 2 diff --git a/ratel/keys/kinder/kind_test.go b/ratel/keys/kinder/kind_test.go index 508eaa3..5b9f0dc 100644 --- a/ratel/keys/kinder/kind_test.go +++ b/ratel/keys/kinder/kind_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - "realy.mleku.dev/kind" + "realy.lol/kind" ) func TestT(t *testing.T) { diff --git a/ratel/keys/pubkey/pubkey.go b/ratel/keys/pubkey/pubkey.go index 35c669c..bd04e90 100644 --- a/ratel/keys/pubkey/pubkey.go +++ b/ratel/keys/pubkey/pubkey.go @@ -6,10 +6,10 @@ import ( "fmt" "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/log" - "realy.mleku.dev/ratel/keys" + "realy.lol/chk" + "realy.lol/ec/schnorr" + "realy.lol/log" + "realy.lol/ratel/keys" ) const Len = 8 diff --git a/ratel/keys/pubkey/pubkey_test.go b/ratel/keys/pubkey/pubkey_test.go index 56e1d1e..ade853f 100644 --- a/ratel/keys/pubkey/pubkey_test.go +++ b/ratel/keys/pubkey/pubkey_test.go @@ -6,8 +6,8 @@ import ( "lukechampine.com/frand" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/schnorr" + "realy.lol/chk" + "realy.lol/ec/schnorr" ) func TestT(t *testing.T) { diff --git a/ratel/keys/serial/serial.go b/ratel/keys/serial/serial.go index f196a2b..50eec24 100644 --- a/ratel/keys/serial/serial.go +++ b/ratel/keys/serial/serial.go @@ -8,8 +8,8 @@ import ( "fmt" "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/ratel/keys" + "realy.lol/chk" + "realy.lol/ratel/keys" ) const Len = 8 diff --git a/ratel/keys/serial/serial_test.go b/ratel/keys/serial/serial_test.go index b9243d3..a6b1a5b 100644 --- a/ratel/keys/serial/serial_test.go +++ b/ratel/keys/serial/serial_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - "realy.mleku.dev/ratel/keys/serial" + "realy.lol/ratel/keys/serial" "lukechampine.com/frand" ) diff --git a/ratel/keys/tombstone/tombstone.go b/ratel/keys/tombstone/tombstone.go index cea4de3..97186de 100644 --- a/ratel/keys/tombstone/tombstone.go +++ b/ratel/keys/tombstone/tombstone.go @@ -5,10 +5,10 @@ package tombstone import ( "io" - "realy.mleku.dev/chk" - "realy.mleku.dev/eventid" - "realy.mleku.dev/log" - "realy.mleku.dev/ratel/keys" + "realy.lol/chk" + "realy.lol/eventid" + "realy.lol/log" + "realy.lol/ratel/keys" ) const Len = 16 diff --git a/ratel/keys/tombstone/tombstone_test.go b/ratel/keys/tombstone/tombstone_test.go index aa28dd2..0586821 100644 --- a/ratel/keys/tombstone/tombstone_test.go +++ b/ratel/keys/tombstone/tombstone_test.go @@ -6,7 +6,7 @@ import ( "lukechampine.com/frand" - "realy.mleku.dev/eventid" + "realy.lol/eventid" ) func TestT(t *testing.T) { diff --git a/ratel/log.go b/ratel/log.go index ddd6429..49f196c 100644 --- a/ratel/log.go +++ b/ratel/log.go @@ -5,9 +5,9 @@ import ( "runtime" "strings" - "realy.mleku.dev/atomic" - "realy.mleku.dev/log" - "realy.mleku.dev/lol" + "realy.lol/atomic" + "realy.lol/log" + "realy.lol/lol" ) // NewLogger creates a new badger logger. diff --git a/ratel/main.go b/ratel/main.go index 843e8fd..9021321 100644 --- a/ratel/main.go +++ b/ratel/main.go @@ -9,13 +9,13 @@ import ( "github.com/dgraph-io/badger/v4" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/log" - "realy.mleku.dev/lol" - "realy.mleku.dev/ratel/keys/serial" - "realy.mleku.dev/ratel/prefixes" - "realy.mleku.dev/store" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/log" + "realy.lol/lol" + "realy.lol/ratel/keys/serial" + "realy.lol/ratel/prefixes" + "realy.lol/store" ) // DefaultMaxLimit is set to a size that means the usual biggest batch of events sent to a diff --git a/ratel/nuke.go b/ratel/nuke.go index 1a6ca51..3cc90dd 100644 --- a/ratel/nuke.go +++ b/ratel/nuke.go @@ -1,9 +1,9 @@ package ratel import ( - "realy.mleku.dev/chk" - "realy.mleku.dev/log" - "realy.mleku.dev/ratel/prefixes" + "realy.lol/chk" + "realy.lol/log" + "realy.lol/ratel/prefixes" ) func (r *T) Nuke() (err error) { diff --git a/ratel/prefixes/index_test.go b/ratel/prefixes/index_test.go index fa1ce69..8040cfa 100644 --- a/ratel/prefixes/index_test.go +++ b/ratel/prefixes/index_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - "realy.mleku.dev/ratel/keys/index" + "realy.lol/ratel/keys/index" ) func TestT(t *testing.T) { diff --git a/ratel/prefixes/prefixes.go b/ratel/prefixes/prefixes.go index fd8a42b..6bc7b6b 100644 --- a/ratel/prefixes/prefixes.go +++ b/ratel/prefixes/prefixes.go @@ -4,15 +4,15 @@ package prefixes import ( - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/ratel/keys/createdat" - "realy.mleku.dev/ratel/keys/fullid" - "realy.mleku.dev/ratel/keys/id" - "realy.mleku.dev/ratel/keys/index" - "realy.mleku.dev/ratel/keys/kinder" - "realy.mleku.dev/ratel/keys/pubkey" - "realy.mleku.dev/ratel/keys/serial" - "realy.mleku.dev/sha256" + "realy.lol/ec/schnorr" + "realy.lol/ratel/keys/createdat" + "realy.lol/ratel/keys/fullid" + "realy.lol/ratel/keys/id" + "realy.lol/ratel/keys/index" + "realy.lol/ratel/keys/kinder" + "realy.lol/ratel/keys/pubkey" + "realy.lol/ratel/keys/serial" + "realy.lol/sha256" ) const ( diff --git a/ratel/preparequeries.go b/ratel/preparequeries.go index 4841bbd..28ebe16 100644 --- a/ratel/preparequeries.go +++ b/ratel/preparequeries.go @@ -5,18 +5,18 @@ import ( "fmt" "math" - "realy.mleku.dev/chk" - "realy.mleku.dev/errorf" - "realy.mleku.dev/event" - "realy.mleku.dev/eventid" - "realy.mleku.dev/filter" - "realy.mleku.dev/log" - "realy.mleku.dev/ratel/keys/id" - "realy.mleku.dev/ratel/keys/kinder" - "realy.mleku.dev/ratel/keys/pubkey" - "realy.mleku.dev/ratel/keys/serial" - "realy.mleku.dev/ratel/prefixes" - "realy.mleku.dev/timestamp" + "realy.lol/chk" + "realy.lol/errorf" + "realy.lol/event" + "realy.lol/eventid" + "realy.lol/filter" + "realy.lol/log" + "realy.lol/ratel/keys/id" + "realy.lol/ratel/keys/kinder" + "realy.lol/ratel/keys/pubkey" + "realy.lol/ratel/keys/serial" + "realy.lol/ratel/prefixes" + "realy.lol/timestamp" ) type Results struct { diff --git a/ratel/queryevents.go b/ratel/queryevents.go index 6e0229c..7f76806 100644 --- a/ratel/queryevents.go +++ b/ratel/queryevents.go @@ -8,19 +8,19 @@ import ( "github.com/dgraph-io/badger/v4" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/event" - "realy.mleku.dev/eventid" - "realy.mleku.dev/filter" - "realy.mleku.dev/hex" - "realy.mleku.dev/log" - "realy.mleku.dev/ratel/keys/createdat" - "realy.mleku.dev/ratel/keys/serial" - "realy.mleku.dev/ratel/prefixes" - "realy.mleku.dev/realy/pointers" - "realy.mleku.dev/tag" - "realy.mleku.dev/timestamp" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/event" + "realy.lol/eventid" + "realy.lol/filter" + "realy.lol/hex" + "realy.lol/log" + "realy.lol/ratel/keys/createdat" + "realy.lol/ratel/keys/serial" + "realy.lol/ratel/prefixes" + "realy.lol/realy/pointers" + "realy.lol/tag" + "realy.lol/timestamp" ) func (r *T) QueryEvents(c context.T, f *filter.T) (evs event.Ts, err error) { diff --git a/ratel/queryforids.go b/ratel/queryforids.go index 4dfd7db..d06ed90 100644 --- a/ratel/queryforids.go +++ b/ratel/queryforids.go @@ -7,23 +7,23 @@ import ( "github.com/dgraph-io/badger/v4" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/event" - "realy.mleku.dev/eventid" - "realy.mleku.dev/filter" - "realy.mleku.dev/log" - "realy.mleku.dev/ratel/keys" - "realy.mleku.dev/ratel/keys/createdat" - "realy.mleku.dev/ratel/keys/fullid" - "realy.mleku.dev/ratel/keys/fullpubkey" - "realy.mleku.dev/ratel/keys/index" - "realy.mleku.dev/ratel/keys/serial" - "realy.mleku.dev/ratel/prefixes" - "realy.mleku.dev/realy/pointers" - "realy.mleku.dev/store" - "realy.mleku.dev/tag" - "realy.mleku.dev/timestamp" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/event" + "realy.lol/eventid" + "realy.lol/filter" + "realy.lol/log" + "realy.lol/ratel/keys" + "realy.lol/ratel/keys/createdat" + "realy.lol/ratel/keys/fullid" + "realy.lol/ratel/keys/fullpubkey" + "realy.lol/ratel/keys/index" + "realy.lol/ratel/keys/serial" + "realy.lol/ratel/prefixes" + "realy.lol/realy/pointers" + "realy.lol/store" + "realy.lol/tag" + "realy.lol/timestamp" ) func (r *T) QueryForIds(c context.T, f *filter.T) (founds []store.IdTsPk, err error) { diff --git a/ratel/rescan.go b/ratel/rescan.go index 7edbdde..282c18b 100644 --- a/ratel/rescan.go +++ b/ratel/rescan.go @@ -3,15 +3,15 @@ package ratel import ( "github.com/dgraph-io/badger/v4" - "realy.mleku.dev/chk" - "realy.mleku.dev/event" - "realy.mleku.dev/log" - "realy.mleku.dev/ratel/keys" - "realy.mleku.dev/ratel/keys/createdat" - "realy.mleku.dev/ratel/keys/serial" - "realy.mleku.dev/ratel/prefixes" - "realy.mleku.dev/sha256" - "realy.mleku.dev/timestamp" + "realy.lol/chk" + "realy.lol/event" + "realy.lol/log" + "realy.lol/ratel/keys" + "realy.lol/ratel/keys/createdat" + "realy.lol/ratel/keys/serial" + "realy.lol/ratel/prefixes" + "realy.lol/sha256" + "realy.lol/timestamp" ) // Rescan regenerates all indexes of events to add new indexes in a new version. diff --git a/ratel/saveevent.go b/ratel/saveevent.go index f219614..d6b4d1a 100644 --- a/ratel/saveevent.go +++ b/ratel/saveevent.go @@ -3,20 +3,20 @@ package ratel import ( "github.com/dgraph-io/badger/v4" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/errorf" - "realy.mleku.dev/event" - "realy.mleku.dev/eventid" - "realy.mleku.dev/ratel/keys" - "realy.mleku.dev/ratel/keys/createdat" - "realy.mleku.dev/ratel/keys/id" - "realy.mleku.dev/ratel/keys/index" - "realy.mleku.dev/ratel/keys/serial" - "realy.mleku.dev/ratel/prefixes" - "realy.mleku.dev/sha256" - eventstore "realy.mleku.dev/store" - "realy.mleku.dev/timestamp" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/errorf" + "realy.lol/event" + "realy.lol/eventid" + "realy.lol/ratel/keys" + "realy.lol/ratel/keys/createdat" + "realy.lol/ratel/keys/id" + "realy.lol/ratel/keys/index" + "realy.lol/ratel/keys/serial" + "realy.lol/ratel/prefixes" + "realy.lol/sha256" + eventstore "realy.lol/store" + "realy.lol/timestamp" ) func (r *T) SaveEvent(c context.T, ev *event.T) (err error) { diff --git a/realy/acceptevent.go b/realy/acceptevent.go index 422a5c8..6e80eb5 100644 --- a/realy/acceptevent.go +++ b/realy/acceptevent.go @@ -3,15 +3,15 @@ package realy import ( "bytes" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/event" - "realy.mleku.dev/hex" - "realy.mleku.dev/kind" - "realy.mleku.dev/log" - "realy.mleku.dev/tag" - "realy.mleku.dev/tag/atag" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/ec/schnorr" + "realy.lol/event" + "realy.lol/hex" + "realy.lol/kind" + "realy.lol/log" + "realy.lol/tag" + "realy.lol/tag/atag" ) func (s *Server) acceptEvent(c context.T, evt *event.T, authedPubkey []byte, diff --git a/realy/acceptreq.go b/realy/acceptreq.go index 530d3a6..125cb8d 100644 --- a/realy/acceptreq.go +++ b/realy/acceptreq.go @@ -4,10 +4,10 @@ import ( "bytes" "net/http" - "realy.mleku.dev/context" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/filters" - "realy.mleku.dev/log" + "realy.lol/context" + "realy.lol/ec/schnorr" + "realy.lol/filters" + "realy.lol/log" ) func (s *Server) AcceptReq(c context.T, hr *http.Request, id []byte, diff --git a/realy/addEvent.go b/realy/addEvent.go index 90649c6..066a719 100644 --- a/realy/addEvent.go +++ b/realy/addEvent.go @@ -7,12 +7,12 @@ import ( "regexp" "strings" - "realy.mleku.dev/context" - "realy.mleku.dev/event" - "realy.mleku.dev/log" - "realy.mleku.dev/publish" - "realy.mleku.dev/reason" - "realy.mleku.dev/store" + "realy.lol/context" + "realy.lol/event" + "realy.lol/log" + "realy.lol/publish" + "realy.lol/reason" + "realy.lol/store" ) var ( diff --git a/realy/admin.go b/realy/admin.go index baf57df..4be3782 100644 --- a/realy/admin.go +++ b/realy/admin.go @@ -1,15 +1,15 @@ package realy import ( - "realy.mleku.dev/bech32encoding" - "realy.mleku.dev/chk" - "realy.mleku.dev/hex" - "realy.mleku.dev/log" - "realy.mleku.dev/lol" - "realy.mleku.dev/p256k" - "realy.mleku.dev/realy/config" - "realy.mleku.dev/signer" - "realy.mleku.dev/store" + "realy.lol/bech32encoding" + "realy.lol/chk" + "realy.lol/hex" + "realy.lol/log" + "realy.lol/lol" + "realy.lol/p256k" + "realy.lol/realy/config" + "realy.lol/signer" + "realy.lol/store" ) func (s *Server) UpdateConfiguration() (err error) { diff --git a/realy/auth.go b/realy/auth.go index 37c57cf..ce8af63 100644 --- a/realy/auth.go +++ b/realy/auth.go @@ -8,9 +8,9 @@ import ( "strings" "time" - "realy.mleku.dev/chk" - "realy.mleku.dev/httpauth" - "realy.mleku.dev/log" + "realy.lol/chk" + "realy.lol/httpauth" + "realy.lol/log" ) func (s *Server) adminAuth(r *http.Request, diff --git a/realy/handleRelayinfo.go b/realy/handleRelayinfo.go index 27783c7..df28a6d 100644 --- a/realy/handleRelayinfo.go +++ b/realy/handleRelayinfo.go @@ -5,10 +5,10 @@ import ( "net/http" "sort" - "realy.mleku.dev" - "realy.mleku.dev/chk" - "realy.mleku.dev/log" - "realy.mleku.dev/relayinfo" + "realy.lol" + "realy.lol/chk" + "realy.lol/log" + "realy.lol/relayinfo" ) func (s *Server) HandleRelayInfo(w http.ResponseWriter, r *http.Request) { diff --git a/realy/init.go b/realy/init.go index 42084ec..3bbb30c 100644 --- a/realy/init.go +++ b/realy/init.go @@ -6,15 +6,15 @@ import ( "fmt" "strings" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/event" - "realy.mleku.dev/filter" - "realy.mleku.dev/hex" - "realy.mleku.dev/kind" - "realy.mleku.dev/kinds" - "realy.mleku.dev/log" - "realy.mleku.dev/tag" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/event" + "realy.lol/filter" + "realy.lol/hex" + "realy.lol/kind" + "realy.lol/kinds" + "realy.lol/log" + "realy.lol/tag" ) func getFirstTime() (s string) { diff --git a/realy/interfaces/interfaces.go b/realy/interfaces/interfaces.go index f498617..a75cf57 100644 --- a/realy/interfaces/interfaces.go +++ b/realy/interfaces/interfaces.go @@ -4,11 +4,11 @@ import ( "net/http" "time" - "realy.mleku.dev/context" - "realy.mleku.dev/event" - "realy.mleku.dev/filters" - "realy.mleku.dev/realy/config" - "realy.mleku.dev/store" + "realy.lol/context" + "realy.lol/event" + "realy.lol/filters" + "realy.lol/realy/config" + "realy.lol/store" ) type Server interface { diff --git a/realy/options/options.go b/realy/options/options.go index c9f94ab..59d8d37 100644 --- a/realy/options/options.go +++ b/realy/options/options.go @@ -5,7 +5,7 @@ package options import ( - "realy.mleku.dev/event" + "realy.lol/event" ) type SkipEventFunc func(*event.T) bool diff --git a/realy/pointers/pointers.go b/realy/pointers/pointers.go index ec9ab61..e21d972 100644 --- a/realy/pointers/pointers.go +++ b/realy/pointers/pointers.go @@ -3,7 +3,7 @@ package pointers import ( "time" - "realy.mleku.dev/unix" + "realy.lol/unix" ) // PointerToValue is a generic interface to refer to any pointer to almost any kind of common diff --git a/realy/server-impl.go b/realy/server-impl.go index 0bf2557..9d4d977 100644 --- a/realy/server-impl.go +++ b/realy/server-impl.go @@ -4,15 +4,15 @@ import ( "net/http" "time" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/errorf" - "realy.mleku.dev/event" - "realy.mleku.dev/log" - "realy.mleku.dev/realy/config" - "realy.mleku.dev/realy/interfaces" - "realy.mleku.dev/signer" - "realy.mleku.dev/store" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/errorf" + "realy.lol/event" + "realy.lol/log" + "realy.lol/realy/config" + "realy.lol/realy/interfaces" + "realy.lol/signer" + "realy.lol/store" ) func (s *Server) AdminAuth(r *http.Request, remote string, diff --git a/realy/server-publish.go b/realy/server-publish.go index 51246fa..613319e 100644 --- a/realy/server-publish.go +++ b/realy/server-publish.go @@ -5,16 +5,16 @@ import ( "errors" "fmt" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/errorf" - "realy.mleku.dev/event" - "realy.mleku.dev/filter" - "realy.mleku.dev/kinds" - "realy.mleku.dev/log" - "realy.mleku.dev/reason" - "realy.mleku.dev/store" - "realy.mleku.dev/tag" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/errorf" + "realy.lol/event" + "realy.lol/filter" + "realy.lol/kinds" + "realy.lol/log" + "realy.lol/reason" + "realy.lol/store" + "realy.lol/tag" ) func (s *Server) Publish(c context.T, evt *event.T) (err error) { diff --git a/realy/server.go b/realy/server.go index 135c75b..3617c2a 100644 --- a/realy/server.go +++ b/realy/server.go @@ -11,15 +11,15 @@ import ( "github.com/danielgtaylor/huma/v2" "github.com/rs/cors" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/list" - "realy.mleku.dev/log" - "realy.mleku.dev/realy/config" - "realy.mleku.dev/realy/helpers" - "realy.mleku.dev/servemux" - "realy.mleku.dev/signer" - "realy.mleku.dev/store" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/list" + "realy.lol/log" + "realy.lol/realy/config" + "realy.lol/realy/helpers" + "realy.lol/servemux" + "realy.lol/signer" + "realy.lol/store" ) type Server struct { diff --git a/realy/server_test.go b/realy/server_test.go index 1cfbee8..045ea69 100644 --- a/realy/server_test.go +++ b/realy/server_test.go @@ -8,10 +8,10 @@ import ( "github.com/gobwas/ws/wsutil" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/ratel" - "realy.mleku.dev/ws" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/ratel" + "realy.lol/ws" ) func TestServerStartShutdown(t *testing.T) { diff --git a/relay/interface.go b/relay/interface.go index 3fa2f31..b5fd28d 100644 --- a/relay/interface.go +++ b/relay/interface.go @@ -5,11 +5,11 @@ package relay import ( "net/http" - "realy.mleku.dev/context" - "realy.mleku.dev/event" - "realy.mleku.dev/filter" - "realy.mleku.dev/filters" - "realy.mleku.dev/store" + "realy.lol/context" + "realy.lol/event" + "realy.lol/filter" + "realy.lol/filters" + "realy.lol/store" ) // I is the main interface for implementing a nostr relay. diff --git a/relayinfo/fetch.go b/relayinfo/fetch.go index 243a9fb..49f22b5 100644 --- a/relayinfo/fetch.go +++ b/relayinfo/fetch.go @@ -6,10 +6,10 @@ import ( "net/http" "time" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/errorf" - "realy.mleku.dev/normalize" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/errorf" + "realy.lol/normalize" ) // Fetch fetches the NIP-11 Info. diff --git a/relayinfo/types.go b/relayinfo/types.go index b1e3773..76bd954 100644 --- a/relayinfo/types.go +++ b/relayinfo/types.go @@ -7,11 +7,11 @@ import ( "sort" "sync" - "realy.mleku.dev/chk" - "realy.mleku.dev/kinds" - "realy.mleku.dev/log" - "realy.mleku.dev/number" - "realy.mleku.dev/timestamp" + "realy.lol/chk" + "realy.lol/kinds" + "realy.lol/log" + "realy.lol/number" + "realy.lol/timestamp" ) // NIP is a number and description of a nostr "improvement" possibility. diff --git a/socketapi/challenge.go b/socketapi/challenge.go index e2f84d6..3961f34 100644 --- a/socketapi/challenge.go +++ b/socketapi/challenge.go @@ -6,10 +6,10 @@ import ( "github.com/fasthttp/websocket" - "realy.mleku.dev/bech32encoding" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/bech32" - "realy.mleku.dev/ws" + "realy.lol/bech32encoding" + "realy.lol/chk" + "realy.lol/ec/bech32" + "realy.lol/ws" ) const ( diff --git a/socketapi/handleAuth.go b/socketapi/handleAuth.go index 5d4e8f8..c937aed 100644 --- a/socketapi/handleAuth.go +++ b/socketapi/handleAuth.go @@ -1,13 +1,13 @@ package socketapi import ( - "realy.mleku.dev/auth" - "realy.mleku.dev/chk" - "realy.mleku.dev/envelopes/authenvelope" - "realy.mleku.dev/envelopes/okenvelope" - "realy.mleku.dev/log" - "realy.mleku.dev/realy/interfaces" - "realy.mleku.dev/reason" + "realy.lol/auth" + "realy.lol/chk" + "realy.lol/envelopes/authenvelope" + "realy.lol/envelopes/okenvelope" + "realy.lol/log" + "realy.lol/realy/interfaces" + "realy.lol/reason" ) func (a *A) HandleAuth(b []byte, srv interfaces.Server) (msg []byte) { diff --git a/socketapi/handleClose.go b/socketapi/handleClose.go index 88483a9..ee08c03 100644 --- a/socketapi/handleClose.go +++ b/socketapi/handleClose.go @@ -1,11 +1,11 @@ package socketapi import ( - "realy.mleku.dev/chk" - "realy.mleku.dev/envelopes/closeenvelope" - "realy.mleku.dev/log" - "realy.mleku.dev/publish" - "realy.mleku.dev/realy/interfaces" + "realy.lol/chk" + "realy.lol/envelopes/closeenvelope" + "realy.lol/log" + "realy.lol/publish" + "realy.lol/realy/interfaces" ) func (a *A) HandleClose(req []byte, diff --git a/socketapi/handleEvent.go b/socketapi/handleEvent.go index 477ab18..40d8687 100644 --- a/socketapi/handleEvent.go +++ b/socketapi/handleEvent.go @@ -4,21 +4,21 @@ import ( "bytes" "strings" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/envelopes/authenvelope" - "realy.mleku.dev/envelopes/eventenvelope" - "realy.mleku.dev/envelopes/okenvelope" - "realy.mleku.dev/event" - "realy.mleku.dev/filter" - "realy.mleku.dev/hex" - "realy.mleku.dev/ints" - "realy.mleku.dev/kind" - "realy.mleku.dev/log" - "realy.mleku.dev/realy/interfaces" - "realy.mleku.dev/sha256" - "realy.mleku.dev/store" - "realy.mleku.dev/tag" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/envelopes/authenvelope" + "realy.lol/envelopes/eventenvelope" + "realy.lol/envelopes/okenvelope" + "realy.lol/event" + "realy.lol/filter" + "realy.lol/hex" + "realy.lol/ints" + "realy.lol/kind" + "realy.lol/log" + "realy.lol/realy/interfaces" + "realy.lol/sha256" + "realy.lol/store" + "realy.lol/tag" ) func (a *A) HandleEvent(c context.T, req []byte, srv interfaces.Server, diff --git a/socketapi/handleMessage.go b/socketapi/handleMessage.go index dbe9e97..89ebbfb 100644 --- a/socketapi/handleMessage.go +++ b/socketapi/handleMessage.go @@ -3,14 +3,14 @@ package socketapi import ( "fmt" - "realy.mleku.dev/chk" - "realy.mleku.dev/envelopes" - "realy.mleku.dev/envelopes/authenvelope" - "realy.mleku.dev/envelopes/closeenvelope" - "realy.mleku.dev/envelopes/eventenvelope" - "realy.mleku.dev/envelopes/noticeenvelope" - "realy.mleku.dev/envelopes/reqenvelope" - "realy.mleku.dev/log" + "realy.lol/chk" + "realy.lol/envelopes" + "realy.lol/envelopes/authenvelope" + "realy.lol/envelopes/closeenvelope" + "realy.lol/envelopes/eventenvelope" + "realy.lol/envelopes/noticeenvelope" + "realy.lol/envelopes/reqenvelope" + "realy.lol/log" ) func (a *A) HandleMessage(msg []byte, remote string) { diff --git a/socketapi/handleReq.go b/socketapi/handleReq.go index efaf1ee..040688d 100644 --- a/socketapi/handleReq.go +++ b/socketapi/handleReq.go @@ -6,25 +6,25 @@ import ( "github.com/dgraph-io/badger/v4" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/envelopes/authenvelope" - "realy.mleku.dev/envelopes/closedenvelope" - "realy.mleku.dev/envelopes/eoseenvelope" - "realy.mleku.dev/envelopes/eventenvelope" - "realy.mleku.dev/envelopes/reqenvelope" - "realy.mleku.dev/event" - "realy.mleku.dev/filter" - "realy.mleku.dev/hex" - "realy.mleku.dev/kind" - "realy.mleku.dev/kinds" - "realy.mleku.dev/log" - "realy.mleku.dev/publish" - "realy.mleku.dev/realy/interfaces" - "realy.mleku.dev/realy/pointers" - "realy.mleku.dev/reason" - "realy.mleku.dev/store" - "realy.mleku.dev/tag" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/envelopes/authenvelope" + "realy.lol/envelopes/closedenvelope" + "realy.lol/envelopes/eoseenvelope" + "realy.lol/envelopes/eventenvelope" + "realy.lol/envelopes/reqenvelope" + "realy.lol/event" + "realy.lol/filter" + "realy.lol/hex" + "realy.lol/kind" + "realy.lol/kinds" + "realy.lol/log" + "realy.lol/publish" + "realy.lol/realy/interfaces" + "realy.lol/realy/pointers" + "realy.lol/reason" + "realy.lol/store" + "realy.lol/tag" ) func (a *A) HandleReq(c context.T, req []byte, srv interfaces.Server, aut []byte, remote string) (r []byte) { diff --git a/socketapi/main.go b/socketapi/main.go index 4bfcd36..4262d32 100644 --- a/socketapi/main.go +++ b/socketapi/main.go @@ -7,16 +7,16 @@ import ( "github.com/fasthttp/websocket" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/envelopes/authenvelope" - "realy.mleku.dev/log" - "realy.mleku.dev/publish" - "realy.mleku.dev/realy/helpers" - "realy.mleku.dev/realy/interfaces" - "realy.mleku.dev/servemux" - "realy.mleku.dev/units" - "realy.mleku.dev/ws" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/envelopes/authenvelope" + "realy.lol/log" + "realy.lol/publish" + "realy.lol/realy/helpers" + "realy.lol/realy/interfaces" + "realy.lol/servemux" + "realy.lol/units" + "realy.lol/ws" ) const ( diff --git a/socketapi/ok.go b/socketapi/ok.go index 75945ac..5fa922f 100644 --- a/socketapi/ok.go +++ b/socketapi/ok.go @@ -1,9 +1,9 @@ package socketapi import ( - "realy.mleku.dev/envelopes/eid" - "realy.mleku.dev/envelopes/okenvelope" - "realy.mleku.dev/reason" + "realy.lol/envelopes/eid" + "realy.lol/envelopes/okenvelope" + "realy.lol/reason" ) type OK func(a *A, env eid.Ider, format string, params ...any) (err error) diff --git a/socketapi/pinger.go b/socketapi/pinger.go index 92c6da2..4c5ba74 100644 --- a/socketapi/pinger.go +++ b/socketapi/pinger.go @@ -5,8 +5,8 @@ import ( "github.com/fasthttp/websocket" - "realy.mleku.dev/context" - "realy.mleku.dev/log" + "realy.lol/context" + "realy.lol/log" ) func (a *A) Pinger(ctx context.T, ticker *time.Ticker, cancel context.F, remote string) { diff --git a/socketapi/publisher.go b/socketapi/publisher.go index 4079553..bd46404 100644 --- a/socketapi/publisher.go +++ b/socketapi/publisher.go @@ -5,15 +5,15 @@ import ( "regexp" "sync" - "realy.mleku.dev/chk" - "realy.mleku.dev/envelopes/eventenvelope" - "realy.mleku.dev/event" - "realy.mleku.dev/filters" - "realy.mleku.dev/publish" - "realy.mleku.dev/publish/publisher" - "realy.mleku.dev/tag" - "realy.mleku.dev/typer" - "realy.mleku.dev/ws" + "realy.lol/chk" + "realy.lol/envelopes/eventenvelope" + "realy.lol/event" + "realy.lol/filters" + "realy.lol/publish" + "realy.lol/publish/publisher" + "realy.lol/tag" + "realy.lol/typer" + "realy.lol/ws" ) const Type = "socketapi" diff --git a/store/alias.go b/store/alias.go index fe65615..7321b8d 100644 --- a/store/alias.go +++ b/store/alias.go @@ -3,8 +3,8 @@ package store import ( "net/http" - "realy.mleku.dev/envelopes/okenvelope" - "realy.mleku.dev/subscription" + "realy.lol/envelopes/okenvelope" + "realy.lol/subscription" ) type SubID = subscription.Id diff --git a/store/store_interface.go b/store/store_interface.go index d45aff2..8993ec6 100644 --- a/store/store_interface.go +++ b/store/store_interface.go @@ -6,13 +6,13 @@ package store import ( "io" - "realy.mleku.dev/context" - "realy.mleku.dev/event" - "realy.mleku.dev/eventid" - "realy.mleku.dev/eventidserial" - "realy.mleku.dev/filter" - "realy.mleku.dev/realy/config" - "realy.mleku.dev/tag" + "realy.lol/context" + "realy.lol/event" + "realy.lol/eventid" + "realy.lol/eventidserial" + "realy.lol/filter" + "realy.lol/realy/config" + "realy.lol/tag" ) // I is an types for a persistence layer for nostr events handled by a relay. diff --git a/subscription/subscriptionid.go b/subscription/subscriptionid.go index 70fc049..186da30 100644 --- a/subscription/subscriptionid.go +++ b/subscription/subscriptionid.go @@ -6,11 +6,11 @@ package subscription import ( "crypto/rand" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/bech32" - "realy.mleku.dev/errorf" - "realy.mleku.dev/log" - "realy.mleku.dev/text" + "realy.lol/chk" + "realy.lol/ec/bech32" + "realy.lol/errorf" + "realy.lol/log" + "realy.lol/text" ) type Id struct { diff --git a/subscription/subscriptionid_test.go b/subscription/subscriptionid_test.go index f4a215e..716c37a 100644 --- a/subscription/subscriptionid_test.go +++ b/subscription/subscriptionid_test.go @@ -6,7 +6,7 @@ import ( "lukechampine.com/frand" - "realy.mleku.dev/chk" + "realy.lol/chk" ) func TestMarshalUnmarshal(t *testing.T) { diff --git a/tag/atag/atag.go b/tag/atag/atag.go index ad11850..3d30873 100644 --- a/tag/atag/atag.go +++ b/tag/atag/atag.go @@ -5,10 +5,10 @@ package atag import ( "bytes" - "realy.mleku.dev/chk" - "realy.mleku.dev/hex" - "realy.mleku.dev/ints" - "realy.mleku.dev/kind" + "realy.lol/chk" + "realy.lol/hex" + "realy.lol/ints" + "realy.lol/kind" ) // T is a data structure for what is found in an `a` tag: kind:pubkey:arbitrary data diff --git a/tag/atag/atag_test.go b/tag/atag/atag_test.go index 8c00617..3ccef75 100644 --- a/tag/atag/atag_test.go +++ b/tag/atag/atag_test.go @@ -7,11 +7,11 @@ import ( "lukechampine.com/frand" - "realy.mleku.dev/chk" - "realy.mleku.dev/ec/schnorr" - "realy.mleku.dev/hex" - "realy.mleku.dev/kind" - "realy.mleku.dev/log" + "realy.lol/chk" + "realy.lol/ec/schnorr" + "realy.lol/hex" + "realy.lol/kind" + "realy.lol/log" ) func TestT_Marshal_Unmarshal(t *testing.T) { diff --git a/tag/tag.go b/tag/tag.go index da6894b..b8c30a1 100644 --- a/tag/tag.go +++ b/tag/tag.go @@ -6,10 +6,10 @@ package tag import ( "bytes" - "realy.mleku.dev/errorf" - "realy.mleku.dev/log" - "realy.mleku.dev/normalize" - "realy.mleku.dev/text" + "realy.lol/errorf" + "realy.lol/log" + "realy.lol/normalize" + "realy.lol/text" ) // The tag position meanings, so they are clear when reading. diff --git a/tag/tag_test.go b/tag/tag_test.go index 55aeff8..25786a8 100644 --- a/tag/tag_test.go +++ b/tag/tag_test.go @@ -6,8 +6,8 @@ import ( "lukechampine.com/frand" - "realy.mleku.dev/chk" - "realy.mleku.dev/log" + "realy.lol/chk" + "realy.lol/log" ) func TestMarshalUnmarshal(t *testing.T) { diff --git a/tags/tags.go b/tags/tags.go index 0992481..0680aa4 100644 --- a/tags/tags.go +++ b/tags/tags.go @@ -10,10 +10,10 @@ import ( "os" "sort" - "realy.mleku.dev/chk" - "realy.mleku.dev/log" - "realy.mleku.dev/lol" - "realy.mleku.dev/tag" + "realy.lol/chk" + "realy.lol/log" + "realy.lol/lol" + "realy.lol/tag" ) // T is a list of tag.T - which are lists of string elements with ordering and no uniqueness diff --git a/tags/tags_test.go b/tags/tags_test.go index 464f125..91e2c73 100644 --- a/tags/tags_test.go +++ b/tags/tags_test.go @@ -6,10 +6,10 @@ import ( "lukechampine.com/frand" - "realy.mleku.dev/chk" - "realy.mleku.dev/hex" - "realy.mleku.dev/log" - "realy.mleku.dev/tag" + "realy.lol/chk" + "realy.lol/hex" + "realy.lol/log" + "realy.lol/tag" ) func TestMarshalUnmarshal(t *testing.T) { diff --git a/tests/generate.go b/tests/generate.go index 5b28386..353addb 100644 --- a/tests/generate.go +++ b/tests/generate.go @@ -7,11 +7,11 @@ import ( "lukechampine.com/frand" - "realy.mleku.dev/chk" - "realy.mleku.dev/event" - "realy.mleku.dev/kind" - "realy.mleku.dev/p256k" - "realy.mleku.dev/timestamp" + "realy.lol/chk" + "realy.lol/event" + "realy.lol/kind" + "realy.lol/p256k" + "realy.lol/timestamp" ) // GenerateEvent creates events full of random kinds and content data. diff --git a/text/escape_test.go b/text/escape_test.go index 6a289f8..c589e01 100644 --- a/text/escape_test.go +++ b/text/escape_test.go @@ -5,8 +5,8 @@ import ( "lukechampine.com/frand" - "realy.mleku.dev/chk" - "realy.mleku.dev/sha256" + "realy.lol/chk" + "realy.lol/sha256" ) func TestUnescapeByteString(t *testing.T) { diff --git a/text/helpers.go b/text/helpers.go index 314b436..bafdfad 100644 --- a/text/helpers.go +++ b/text/helpers.go @@ -6,9 +6,9 @@ import ( "github.com/templexxx/xhex" - "realy.mleku.dev/chk" - "realy.mleku.dev/errorf" - "realy.mleku.dev/hex" + "realy.lol/chk" + "realy.lol/errorf" + "realy.lol/hex" ) // JSONKey generates the JSON format for an object key and terminates with the semicolon. diff --git a/text/helpers_test.go b/text/helpers_test.go index d7d985c..872d22f 100644 --- a/text/helpers_test.go +++ b/text/helpers_test.go @@ -6,9 +6,9 @@ import ( "lukechampine.com/frand" - "realy.mleku.dev/chk" - "realy.mleku.dev/hex" - "realy.mleku.dev/sha256" + "realy.lol/chk" + "realy.lol/hex" + "realy.lol/sha256" ) func TestUnmarshalHexArray(t *testing.T) { diff --git a/text/hex.go b/text/hex.go index 17e99d8..46f3159 100644 --- a/text/hex.go +++ b/text/hex.go @@ -1,8 +1,8 @@ package text import ( - "realy.mleku.dev/chk" - "realy.mleku.dev/hex" + "realy.lol/chk" + "realy.lol/hex" ) // AppendHexFromBinary appends to a hex output from binary input. diff --git a/timestamp/timestamp.go b/timestamp/timestamp.go index 252db0b..19e5569 100644 --- a/timestamp/timestamp.go +++ b/timestamp/timestamp.go @@ -7,9 +7,9 @@ import ( "time" "unsafe" - "realy.mleku.dev/chk" - "realy.mleku.dev/errorf" - "realy.mleku.dev/ints" + "realy.lol/chk" + "realy.lol/errorf" + "realy.lol/ints" ) // T is a convenience type for UNIX 64 bit timestamps of 1 second diff --git a/unix/unix.go b/unix/unix.go index 0b3453c..a6656d0 100644 --- a/unix/unix.go +++ b/unix/unix.go @@ -3,7 +3,7 @@ package unix import ( "time" - "realy.mleku.dev/ints" + "realy.lol/ints" ) type Time struct{ time.Time } diff --git a/ws/client.go b/ws/client.go index 1baf486..e40ca27 100644 --- a/ws/client.go +++ b/ws/client.go @@ -11,26 +11,26 @@ import ( "github.com/gobwas/ws/wsutil" "github.com/puzpuzpuz/xsync/v3" - "realy.mleku.dev/atomic" - "realy.mleku.dev/auth" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/envelopes" - "realy.mleku.dev/envelopes/authenvelope" - "realy.mleku.dev/envelopes/closedenvelope" - "realy.mleku.dev/envelopes/countenvelope" - "realy.mleku.dev/envelopes/eoseenvelope" - "realy.mleku.dev/envelopes/eventenvelope" - "realy.mleku.dev/envelopes/noticeenvelope" - "realy.mleku.dev/envelopes/okenvelope" - "realy.mleku.dev/errorf" - "realy.mleku.dev/event" - "realy.mleku.dev/filter" - "realy.mleku.dev/filters" - "realy.mleku.dev/kind" - "realy.mleku.dev/log" - "realy.mleku.dev/normalize" - "realy.mleku.dev/signer" + "realy.lol/atomic" + "realy.lol/auth" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/envelopes" + "realy.lol/envelopes/authenvelope" + "realy.lol/envelopes/closedenvelope" + "realy.lol/envelopes/countenvelope" + "realy.lol/envelopes/eoseenvelope" + "realy.lol/envelopes/eventenvelope" + "realy.lol/envelopes/noticeenvelope" + "realy.lol/envelopes/okenvelope" + "realy.lol/errorf" + "realy.lol/event" + "realy.lol/filter" + "realy.lol/filters" + "realy.lol/kind" + "realy.lol/log" + "realy.lol/normalize" + "realy.lol/signer" ) var subscriptionIDCounter atomic.Int32 diff --git a/ws/client_test.go b/ws/client_test.go index e414a9d..70d67f3 100644 --- a/ws/client_test.go +++ b/ws/client_test.go @@ -15,17 +15,17 @@ import ( "golang.org/x/net/websocket" - "realy.mleku.dev/chk" - "realy.mleku.dev/envelopes/eventenvelope" - "realy.mleku.dev/envelopes/okenvelope" - "realy.mleku.dev/event" - "realy.mleku.dev/kind" - "realy.mleku.dev/normalize" - "realy.mleku.dev/p256k" - "realy.mleku.dev/reason" - "realy.mleku.dev/tag" - "realy.mleku.dev/tags" - "realy.mleku.dev/timestamp" + "realy.lol/chk" + "realy.lol/envelopes/eventenvelope" + "realy.lol/envelopes/okenvelope" + "realy.lol/event" + "realy.lol/kind" + "realy.lol/normalize" + "realy.lol/p256k" + "realy.lol/reason" + "realy.lol/tag" + "realy.lol/tags" + "realy.lol/timestamp" ) func TestPublish(t *testing.T) { diff --git a/ws/connection.go b/ws/connection.go index 8197d3b..ad4263a 100644 --- a/ws/connection.go +++ b/ws/connection.go @@ -14,10 +14,10 @@ import ( "github.com/gobwas/ws/wsflate" "github.com/gobwas/ws/wsutil" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/errorf" - "realy.mleku.dev/log" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/errorf" + "realy.lol/log" ) // Connection is an outbound client -> relay connection. diff --git a/ws/listener.go b/ws/listener.go index 33ea423..1e6a7a2 100644 --- a/ws/listener.go +++ b/ws/listener.go @@ -8,8 +8,8 @@ import ( "github.com/fasthttp/websocket" - "realy.mleku.dev/atomic" - "realy.mleku.dev/log" + "realy.lol/atomic" + "realy.lol/log" ) // Listener is a websocket implementation for a relay listener. diff --git a/ws/pool.go b/ws/pool.go index e6ef657..aa44af9 100644 --- a/ws/pool.go +++ b/ws/pool.go @@ -10,16 +10,16 @@ import ( "github.com/puzpuzpuz/xsync/v3" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/errorf" - "realy.mleku.dev/event" - "realy.mleku.dev/filter" - "realy.mleku.dev/filters" - "realy.mleku.dev/log" - "realy.mleku.dev/normalize" - "realy.mleku.dev/signer" - "realy.mleku.dev/timestamp" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/errorf" + "realy.lol/event" + "realy.lol/filter" + "realy.lol/filters" + "realy.lol/log" + "realy.lol/normalize" + "realy.lol/signer" + "realy.lol/timestamp" ) var ( diff --git a/ws/subscription.go b/ws/subscription.go index 1a2269b..ab92525 100644 --- a/ws/subscription.go +++ b/ws/subscription.go @@ -5,16 +5,16 @@ import ( "sync" "sync/atomic" - "realy.mleku.dev/chk" - "realy.mleku.dev/context" - "realy.mleku.dev/envelopes/closeenvelope" - "realy.mleku.dev/envelopes/countenvelope" - "realy.mleku.dev/envelopes/reqenvelope" - "realy.mleku.dev/errorf" - "realy.mleku.dev/event" - "realy.mleku.dev/filters" - "realy.mleku.dev/log" - "realy.mleku.dev/subscription" + "realy.lol/chk" + "realy.lol/context" + "realy.lol/envelopes/closeenvelope" + "realy.lol/envelopes/countenvelope" + "realy.lol/envelopes/reqenvelope" + "realy.lol/errorf" + "realy.lol/event" + "realy.lol/filters" + "realy.lol/log" + "realy.lol/subscription" ) // Subscription is a client interface for a subscription (what REQ turns into after EOSE). diff --git a/ws/subscription_test.go b/ws/subscription_test.go index 3c705c1..04a3606 100644 --- a/ws/subscription_test.go +++ b/ws/subscription_test.go @@ -5,13 +5,13 @@ import ( "sync/atomic" "testing" - "realy.mleku.dev/context" - "realy.mleku.dev/filter" - "realy.mleku.dev/filters" - "realy.mleku.dev/kind" - "realy.mleku.dev/kinds" - "realy.mleku.dev/tag" - "realy.mleku.dev/tags" + "realy.lol/context" + "realy.lol/filter" + "realy.lol/filters" + "realy.lol/kind" + "realy.lol/kinds" + "realy.lol/tag" + "realy.lol/tags" ) const RELAY = "wss://mleku.realy.lol"