From 8f1c67d1c3f71367f6417d877927c39d7753dbe9 Mon Sep 17 00:00:00 2001 From: Gabe <7622243+decentralgabe@users.noreply.github.com> Date: Fri, 17 May 2024 11:50:12 -0700 Subject: [PATCH] rename from did-dht-method to did-dht (#223) * renames * update spec --- CONTRIBUTING.md | 6 +++--- README.md | 18 +++++++++--------- impl/build/Dockerfile | 2 +- impl/cmd/cli/identity.go | 10 +++++----- impl/cmd/main.go | 12 ++++++------ impl/concurrencytest/main.go | 4 ++-- impl/docs/swagger.yaml | 2 +- impl/go.mod | 2 +- impl/integrationtest/main.go | 4 ++-- impl/internal/cli/store.go | 2 +- impl/internal/dht/getput.go | 2 +- impl/internal/did/client_test.go | 2 +- impl/magefile.go | 2 +- impl/pkg/dht/dht.go | 6 +++--- impl/pkg/dht/dht_test.go | 4 ++-- impl/pkg/dht/dns.go | 2 +- impl/pkg/dht/dns_test.go | 4 ++-- impl/pkg/dht/record_test.go | 4 ++-- impl/pkg/server/dht.go | 8 ++++---- impl/pkg/server/dht_test.go | 10 +++++----- impl/pkg/server/health.go | 2 +- impl/pkg/server/server.go | 8 ++++---- impl/pkg/server/server_test.go | 4 ++-- impl/pkg/service/dht.go | 12 ++++++------ impl/pkg/service/dht_test.go | 8 ++++---- impl/pkg/storage/db/bolt/bolt.go | 4 ++-- impl/pkg/storage/db/bolt/bolt_test.go | 4 ++-- impl/pkg/storage/db/bolt/dht.go | 2 +- impl/pkg/storage/db/postgres/postgres.go | 4 ++-- impl/pkg/storage/db/postgres/postgres_test.go | 8 ++++---- impl/pkg/storage/storage.go | 6 +++--- impl/pkg/storage/storage_test.go | 6 +++--- impl/pkg/telemetry/telemetry.go | 4 ++-- spec/package-lock.json | 2 +- spec/package.json | 6 +++--- spec/registry/spec.md | 10 +++++----- spec/spec.md | 8 ++++---- spec/specs.json | 4 ++-- 38 files changed, 104 insertions(+), 104 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2beeef3a..0828f4ac 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,7 +4,7 @@ There are many ways to be an open source contributor, and we're here to help you * Propose ideas in our [discord](https://discord.gg/tbd) -* Raise an issue or feature request in our [issue tracker](https://github.com/TBD54566975/did-dht-method/issues) +* Raise an issue or feature request in our [issue tracker](https://github.com/TBD54566975/did-dht/issues) * Help another contributor with one of their questions, or a code review * Suggest improvements to our Getting Started documentation by supplying a Pull Request * Evangelize our work together in conferences, podcasts, and social media spaces. @@ -87,7 +87,7 @@ $> mage test ### Issues Anyone from the community is welcome (and encouraged!) to raise issues via -[GitHub Issues](https://github.com/TBD54566975/did-dht-method/issues). +[GitHub Issues](https://github.com/TBD54566975/did-dht/issues). ### Discussions Design discussions and proposals take place in our [discord](https://discord.gg/tbd). @@ -96,7 +96,7 @@ We advocate an asynchronous, written debate model - so write up your thoughts an ### Continuous Integration -Build and Test cycles are run on every commit to every branch on [GitHub Actions](https://github.com/TBD54566975/did-dht-method/actions). +Build and Test cycles are run on every commit to every branch on [GitHub Actions](https://github.com/TBD54566975/did-dht/actions). ## Contribution diff --git a/README.md b/README.md index 5bd89588..e9d062bb 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ -[![godoc did-dht-method](https://img.shields.io/badge/godoc-did_dht_method-blue)](https://github.com/TBD54566975/did-dht-method/impl) +[![godoc did-dht](https://img.shields.io/badge/godoc-did_dht-blue)](https://github.com/TBD54566975/did-dht/impl) [![go version 1.22.3](https://img.shields.io/badge/go_version-1.22.3-brightgreen)](https://go.dev/) -[![license Apache 2](https://img.shields.io/badge/license-Apache%202-black)](https://github.com/TBD54566975/did-dht-method/blob/main/LICENSE) -[![issues](https://img.shields.io/github/issues/TBD54566975/did-dht-method)](https://github.com/TBD54566975/did-dht-method/issues) -![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/tbd54566975/did-dht-method/ci.yml) +[![license Apache 2](https://img.shields.io/badge/license-Apache%202-black)](https://github.com/TBD54566975/did-dht/blob/main/LICENSE) +[![issues](https://img.shields.io/github/issues/TBD54566975/did-dht)](https://github.com/TBD54566975/did-dht/issues) +![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/TBD54566975/did-dht/ci.yml) -# did-dht-method +# did-dht -The `did:dht` method. Home to the [DID DHT Method Specification](https://did-dht.com), and a reference implementation of a -gateway server in Go. +The `did:dht` method. Home to the [DID DHT Method Specification](https://did-dht.com), and a reference +implementation of a gateway server in Go. ## Build & Run @@ -55,12 +55,12 @@ docker run \ | Language | Client | Server | Link | | ---------- | ------ | ------ | ---- | -| Go | Yes | Yes | [did-dht-method](./impl), [web5-go](https://github.com/TBD54566975/web5-go/tree/main/dids/diddht) | +| Go | Yes | Yes | [did-dht](./impl), [web5-go](https://github.com/TBD54566975/web5-go/tree/main/dids/diddht) | | Typescript | Yes | No | [web5-js](https://github.com/TBD54566975/web5-js/blob/main/packages/dids/src/methods/did-dht.ts) | | Kotlin | Yes | No | [web5-kt](https://github.com/TBD54566975/web5-kt/tree/main/dids/src/main/kotlin/web5/sdk/dids/methods/dht) | | Swift | Yes | No | [web5-swift](https://github.com/TBD54566975/web5-swift/blob/main/Sources/Web5/Dids/Methods/DIDDHT.swift) | | Dart | Yes | No | [web5-dart](https://github.com/TBD54566975/web5-dart/tree/main/packages/web5/lib/src/dids/did_dht) | -| Rust | Yes | No | Coming soon! | +| Rust | Yes | No | [web5-rs](https://github.com/TBD54566975/web5-rs/tree/main/crates/dids/src/methods/dht) | ## Project Resources diff --git a/impl/build/Dockerfile b/impl/build/Dockerfile index 8f9e3ecb..f971115c 100644 --- a/impl/build/Dockerfile +++ b/impl/build/Dockerfile @@ -18,7 +18,7 @@ ARG VERSION ENV VERSION=$VERSION # Build using the environment variable -RUN go build -ldflags="-X github.com/TBD54566975/did-dht-method/config.Version=$VERSION" -tags jwx_es256k -o /did-dht ./cmd +RUN go build -ldflags="-X github.com/TBD54566975/did-dht/config.Version=$VERSION" -tags jwx_es256k -o /did-dht ./cmd EXPOSE 8305 EXPOSE 6881/udp diff --git a/impl/cmd/cli/identity.go b/impl/cmd/cli/identity.go index ec4a099c..5e33365a 100644 --- a/impl/cmd/cli/identity.go +++ b/impl/cmd/cli/identity.go @@ -11,11 +11,11 @@ import ( "github.com/sirupsen/logrus" "github.com/spf13/cobra" - "github.com/TBD54566975/did-dht-method/config" - "github.com/TBD54566975/did-dht-method/internal" - "github.com/TBD54566975/did-dht-method/internal/cli" - "github.com/TBD54566975/did-dht-method/internal/util" - "github.com/TBD54566975/did-dht-method/pkg/dht" + "github.com/TBD54566975/did-dht/config" + "github.com/TBD54566975/did-dht/internal" + "github.com/TBD54566975/did-dht/internal/cli" + "github.com/TBD54566975/did-dht/internal/util" + "github.com/TBD54566975/did-dht/pkg/dht" ) func init() { diff --git a/impl/cmd/main.go b/impl/cmd/main.go index 3367dc36..54de83c3 100644 --- a/impl/cmd/main.go +++ b/impl/cmd/main.go @@ -11,11 +11,11 @@ import ( "github.com/pkg/errors" "github.com/sirupsen/logrus" - "github.com/TBD54566975/did-dht-method/config" - int "github.com/TBD54566975/did-dht-method/internal/util" - "github.com/TBD54566975/did-dht-method/pkg/dht" - "github.com/TBD54566975/did-dht-method/pkg/server" - "github.com/TBD54566975/did-dht-method/pkg/telemetry" + "github.com/TBD54566975/did-dht/config" + int "github.com/TBD54566975/did-dht/internal/util" + "github.com/TBD54566975/did-dht/pkg/dht" + "github.com/TBD54566975/did-dht/pkg/server" + "github.com/TBD54566975/did-dht/pkg/telemetry" ) // main godoc @@ -23,7 +23,7 @@ import ( // @title The DID DHT Service // @description The DID DHT Service // @contact.name TBD -// @contact.url https://github.com/TBD54566975/did-dht-method +// @contact.url https://github.com/TBD54566975/did-dht // @contact.email tbd-developer@squareup.com // @license.name Apache 2.0 // @license.url http://www.apache.org/licenses/LICENSE-2.0.html diff --git a/impl/concurrencytest/main.go b/impl/concurrencytest/main.go index c15751e3..fd2f4f82 100644 --- a/impl/concurrencytest/main.go +++ b/impl/concurrencytest/main.go @@ -11,8 +11,8 @@ import ( "github.com/sirupsen/logrus" - "github.com/TBD54566975/did-dht-method/internal/did" - "github.com/TBD54566975/did-dht-method/pkg/dht" + "github.com/TBD54566975/did-dht/internal/did" + "github.com/TBD54566975/did-dht/pkg/dht" ) var ( diff --git a/impl/docs/swagger.yaml b/impl/docs/swagger.yaml index 95ee37d7..bdb91a51 100644 --- a/impl/docs/swagger.yaml +++ b/impl/docs/swagger.yaml @@ -9,7 +9,7 @@ info: contact: email: tbd-developer@squareup.com name: TBD - url: https://github.com/TBD54566975/did-dht-method + url: https://github.com/TBD54566975/did-dht description: The DID DHT Service license: name: Apache 2.0 diff --git a/impl/go.mod b/impl/go.mod index aaa990c1..2f96f223 100644 --- a/impl/go.mod +++ b/impl/go.mod @@ -1,4 +1,4 @@ -module github.com/TBD54566975/did-dht-method +module github.com/TBD54566975/did-dht go 1.22 diff --git a/impl/integrationtest/main.go b/impl/integrationtest/main.go index 03b45fca..c842764d 100644 --- a/impl/integrationtest/main.go +++ b/impl/integrationtest/main.go @@ -13,8 +13,8 @@ import ( "github.com/sirupsen/logrus" - "github.com/TBD54566975/did-dht-method/internal/did" - "github.com/TBD54566975/did-dht-method/pkg/dht" + "github.com/TBD54566975/did-dht/internal/did" + "github.com/TBD54566975/did-dht/pkg/dht" ) var ( diff --git a/impl/internal/cli/store.go b/impl/internal/cli/store.go index 99603f3a..50a71be8 100644 --- a/impl/internal/cli/store.go +++ b/impl/internal/cli/store.go @@ -6,7 +6,7 @@ import ( "github.com/TBD54566975/ssi-sdk/util" "github.com/goccy/go-json" - "github.com/TBD54566975/did-dht-method/internal" + "github.com/TBD54566975/did-dht/internal" ) const ( diff --git a/impl/internal/dht/getput.go b/impl/internal/dht/getput.go index ad89eddd..b7384768 100644 --- a/impl/internal/dht/getput.go +++ b/impl/internal/dht/getput.go @@ -17,7 +17,7 @@ import ( "github.com/anacrolix/dht/v2/krpc" "github.com/anacrolix/dht/v2/traversal" - "github.com/TBD54566975/did-dht-method/pkg/telemetry" + "github.com/TBD54566975/did-dht/pkg/telemetry" ) // Copied from https://github.com/anacrolix/dht/blob/master/exts/getput/getput.go and modified diff --git a/impl/internal/did/client_test.go b/impl/internal/did/client_test.go index 6c996fca..5080d976 100644 --- a/impl/internal/did/client_test.go +++ b/impl/internal/did/client_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/TBD54566975/did-dht-method/pkg/dht" + "github.com/TBD54566975/did-dht/pkg/dht" ) func TestClient(t *testing.T) { diff --git a/impl/magefile.go b/impl/magefile.go index 1980aa04..c7c4df40 100644 --- a/impl/magefile.go +++ b/impl/magefile.go @@ -32,7 +32,7 @@ func Build() error { println("error getting current version: ", err.Error()) } - return sh.Run(Go, "build", fmt.Sprintf("-ldflags=-X github.com/TBD54566975/did-dht-method/config.Version=%s", version), "-tags", "jwx_es256k", "./...") + return sh.Run(Go, "build", fmt.Sprintf("-ldflags=-X github.com/TBD54566975/did-dht/config.Version=%s", version), "-tags", "jwx_es256k", "./...") } // Clean deletes any build artifacts. diff --git a/impl/pkg/dht/dht.go b/impl/pkg/dht/dht.go index 42404ee3..6b7bce87 100644 --- a/impl/pkg/dht/dht.go +++ b/impl/pkg/dht/dht.go @@ -17,9 +17,9 @@ import ( "github.com/stretchr/testify/require" "golang.org/x/time/rate" - dhtint "github.com/TBD54566975/did-dht-method/internal/dht" - "github.com/TBD54566975/did-dht-method/internal/util" - "github.com/TBD54566975/did-dht-method/pkg/telemetry" + dhtint "github.com/TBD54566975/did-dht/internal/dht" + "github.com/TBD54566975/did-dht/internal/util" + "github.com/TBD54566975/did-dht/pkg/telemetry" ) // DHT is a wrapper around anacrolix/dht that implements the BEP-44 DHT protocol. diff --git a/impl/pkg/dht/dht_test.go b/impl/pkg/dht/dht_test.go index c3ff7c19..37dbf914 100644 --- a/impl/pkg/dht/dht_test.go +++ b/impl/pkg/dht/dht_test.go @@ -11,8 +11,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/TBD54566975/did-dht-method/internal/util" - dhtclient "github.com/TBD54566975/did-dht-method/pkg/dht" + "github.com/TBD54566975/did-dht/internal/util" + dhtclient "github.com/TBD54566975/did-dht/pkg/dht" ) func TestGetPutDHT(t *testing.T) { diff --git a/impl/pkg/dht/dns.go b/impl/pkg/dht/dns.go index eb374213..7fc3e405 100644 --- a/impl/pkg/dht/dns.go +++ b/impl/pkg/dht/dns.go @@ -9,7 +9,7 @@ import ( "github.com/anacrolix/torrent/bencode" "github.com/miekg/dns" - "github.com/TBD54566975/did-dht-method/internal/dht" + "github.com/TBD54566975/did-dht/internal/dht" ) // CreateDNSPublishRequest creates a put request for the given records. Requires a public/private keypair and diff --git a/impl/pkg/dht/dns_test.go b/impl/pkg/dht/dns_test.go index cee05c3f..09cd31b9 100644 --- a/impl/pkg/dht/dns_test.go +++ b/impl/pkg/dht/dns_test.go @@ -12,8 +12,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/TBD54566975/did-dht-method/internal/did" - "github.com/TBD54566975/did-dht-method/internal/util" + "github.com/TBD54566975/did-dht/internal/did" + "github.com/TBD54566975/did-dht/internal/util" ) func TestGetPutDNSDHT(t *testing.T) { diff --git a/impl/pkg/dht/record_test.go b/impl/pkg/dht/record_test.go index 4875dd3a..e3fc5a31 100644 --- a/impl/pkg/dht/record_test.go +++ b/impl/pkg/dht/record_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/TBD54566975/did-dht-method/internal/did" - "github.com/TBD54566975/did-dht-method/pkg/dht" + "github.com/TBD54566975/did-dht/internal/did" + "github.com/TBD54566975/did-dht/pkg/dht" ) func TestNewRecord(t *testing.T) { diff --git a/impl/pkg/server/dht.go b/impl/pkg/server/dht.go index 966909c0..b0ffff87 100644 --- a/impl/pkg/server/dht.go +++ b/impl/pkg/server/dht.go @@ -10,10 +10,10 @@ import ( "github.com/gin-gonic/gin" - "github.com/TBD54566975/did-dht-method/internal/util" - "github.com/TBD54566975/did-dht-method/pkg/dht" - "github.com/TBD54566975/did-dht-method/pkg/service" - "github.com/TBD54566975/did-dht-method/pkg/telemetry" + "github.com/TBD54566975/did-dht/internal/util" + "github.com/TBD54566975/did-dht/pkg/dht" + "github.com/TBD54566975/did-dht/pkg/service" + "github.com/TBD54566975/did-dht/pkg/telemetry" ) // DHTRouter is the router for the DHT API diff --git a/impl/pkg/server/dht_test.go b/impl/pkg/server/dht_test.go index 01470ac1..067cd875 100644 --- a/impl/pkg/server/dht_test.go +++ b/impl/pkg/server/dht_test.go @@ -12,11 +12,11 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/TBD54566975/did-dht-method/config" - "github.com/TBD54566975/did-dht-method/internal/did" - "github.com/TBD54566975/did-dht-method/pkg/dht" - "github.com/TBD54566975/did-dht-method/pkg/service" - "github.com/TBD54566975/did-dht-method/pkg/storage" + "github.com/TBD54566975/did-dht/config" + "github.com/TBD54566975/did-dht/internal/did" + "github.com/TBD54566975/did-dht/pkg/dht" + "github.com/TBD54566975/did-dht/pkg/service" + "github.com/TBD54566975/did-dht/pkg/storage" ) func TestDHTRouter(t *testing.T) { diff --git a/impl/pkg/server/health.go b/impl/pkg/server/health.go index 6f021ab9..6391826f 100644 --- a/impl/pkg/server/health.go +++ b/impl/pkg/server/health.go @@ -5,7 +5,7 @@ import ( "github.com/gin-gonic/gin" - "github.com/TBD54566975/did-dht-method/pkg/telemetry" + "github.com/TBD54566975/did-dht/pkg/telemetry" ) type GetHealthCheckResponse struct { diff --git a/impl/pkg/server/server.go b/impl/pkg/server/server.go index e6093408..867f32cb 100644 --- a/impl/pkg/server/server.go +++ b/impl/pkg/server/server.go @@ -14,10 +14,10 @@ import ( ginswagger "github.com/swaggo/gin-swagger" "go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin" - "github.com/TBD54566975/did-dht-method/config" - "github.com/TBD54566975/did-dht-method/pkg/dht" - "github.com/TBD54566975/did-dht-method/pkg/service" - "github.com/TBD54566975/did-dht-method/pkg/storage" + "github.com/TBD54566975/did-dht/config" + "github.com/TBD54566975/did-dht/pkg/dht" + "github.com/TBD54566975/did-dht/pkg/service" + "github.com/TBD54566975/did-dht/pkg/storage" ) const ( diff --git a/impl/pkg/server/server_test.go b/impl/pkg/server/server_test.go index 60be8599..a902e5d5 100644 --- a/impl/pkg/server/server_test.go +++ b/impl/pkg/server/server_test.go @@ -11,8 +11,8 @@ import ( "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert" - "github.com/TBD54566975/did-dht-method/config" - "github.com/TBD54566975/did-dht-method/pkg/dht" + "github.com/TBD54566975/did-dht/config" + "github.com/TBD54566975/did-dht/pkg/dht" ) const ( diff --git a/impl/pkg/service/dht.go b/impl/pkg/service/dht.go index c8a78f38..49a500ae 100644 --- a/impl/pkg/service/dht.go +++ b/impl/pkg/service/dht.go @@ -12,13 +12,13 @@ import ( "github.com/pkg/errors" "github.com/sirupsen/logrus" - "github.com/TBD54566975/did-dht-method/internal/util" + "github.com/TBD54566975/did-dht/internal/util" - "github.com/TBD54566975/did-dht-method/config" - dhtint "github.com/TBD54566975/did-dht-method/internal/dht" - "github.com/TBD54566975/did-dht-method/pkg/dht" - "github.com/TBD54566975/did-dht-method/pkg/storage" - "github.com/TBD54566975/did-dht-method/pkg/telemetry" + "github.com/TBD54566975/did-dht/config" + dhtint "github.com/TBD54566975/did-dht/internal/dht" + "github.com/TBD54566975/did-dht/pkg/dht" + "github.com/TBD54566975/did-dht/pkg/storage" + "github.com/TBD54566975/did-dht/pkg/telemetry" ) const recordSizeLimitBytes = 1000 diff --git a/impl/pkg/service/dht_test.go b/impl/pkg/service/dht_test.go index 2042677c..8ef5ebbf 100644 --- a/impl/pkg/service/dht_test.go +++ b/impl/pkg/service/dht_test.go @@ -10,10 +10,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/TBD54566975/did-dht-method/config" - "github.com/TBD54566975/did-dht-method/internal/did" - "github.com/TBD54566975/did-dht-method/pkg/dht" - "github.com/TBD54566975/did-dht-method/pkg/storage" + "github.com/TBD54566975/did-dht/config" + "github.com/TBD54566975/did-dht/internal/did" + "github.com/TBD54566975/did-dht/pkg/dht" + "github.com/TBD54566975/did-dht/pkg/storage" ) func TestDHTService(t *testing.T) { diff --git a/impl/pkg/storage/db/bolt/bolt.go b/impl/pkg/storage/db/bolt/bolt.go index 608c466d..6b9366d8 100644 --- a/impl/pkg/storage/db/bolt/bolt.go +++ b/impl/pkg/storage/db/bolt/bolt.go @@ -12,8 +12,8 @@ import ( "github.com/sirupsen/logrus" bolt "go.etcd.io/bbolt" - "github.com/TBD54566975/did-dht-method/pkg/dht" - "github.com/TBD54566975/did-dht-method/pkg/telemetry" + "github.com/TBD54566975/did-dht/pkg/dht" + "github.com/TBD54566975/did-dht/pkg/telemetry" ) const ( diff --git a/impl/pkg/storage/db/bolt/bolt_test.go b/impl/pkg/storage/db/bolt/bolt_test.go index 5ce89542..5114fece 100644 --- a/impl/pkg/storage/db/bolt/bolt_test.go +++ b/impl/pkg/storage/db/bolt/bolt_test.go @@ -10,8 +10,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/TBD54566975/did-dht-method/internal/did" - "github.com/TBD54566975/did-dht-method/pkg/dht" + "github.com/TBD54566975/did-dht/internal/did" + "github.com/TBD54566975/did-dht/pkg/dht" ) func TestBoltDB_ReadWrite(t *testing.T) { diff --git a/impl/pkg/storage/db/bolt/dht.go b/impl/pkg/storage/db/bolt/dht.go index 917094d1..474d31e1 100644 --- a/impl/pkg/storage/db/bolt/dht.go +++ b/impl/pkg/storage/db/bolt/dht.go @@ -6,7 +6,7 @@ import ( "github.com/TBD54566975/ssi-sdk/util" - "github.com/TBD54566975/did-dht-method/pkg/dht" + "github.com/TBD54566975/did-dht/pkg/dht" ) var ( diff --git a/impl/pkg/storage/db/postgres/postgres.go b/impl/pkg/storage/db/postgres/postgres.go index 365622b4..b108f571 100644 --- a/impl/pkg/storage/db/postgres/postgres.go +++ b/impl/pkg/storage/db/postgres/postgres.go @@ -12,8 +12,8 @@ import ( "github.com/sirupsen/logrus" "github.com/tv42/zbase32" - "github.com/TBD54566975/did-dht-method/pkg/dht" - "github.com/TBD54566975/did-dht-method/pkg/telemetry" + "github.com/TBD54566975/did-dht/pkg/dht" + "github.com/TBD54566975/did-dht/pkg/telemetry" ) //go:embed migrations diff --git a/impl/pkg/storage/db/postgres/postgres_test.go b/impl/pkg/storage/db/postgres/postgres_test.go index ce8f598e..3004e309 100644 --- a/impl/pkg/storage/db/postgres/postgres_test.go +++ b/impl/pkg/storage/db/postgres/postgres_test.go @@ -9,10 +9,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/TBD54566975/did-dht-method/internal/did" - "github.com/TBD54566975/did-dht-method/pkg/dht" - "github.com/TBD54566975/did-dht-method/pkg/storage" - "github.com/TBD54566975/did-dht-method/pkg/storage/db/postgres" + "github.com/TBD54566975/did-dht/internal/did" + "github.com/TBD54566975/did-dht/pkg/dht" + "github.com/TBD54566975/did-dht/pkg/storage" + "github.com/TBD54566975/did-dht/pkg/storage/db/postgres" ) func getTestDB(t *testing.T) storage.Storage { diff --git a/impl/pkg/storage/storage.go b/impl/pkg/storage/storage.go index daf4b2d2..917aa6d6 100644 --- a/impl/pkg/storage/storage.go +++ b/impl/pkg/storage/storage.go @@ -8,9 +8,9 @@ import ( "github.com/sirupsen/logrus" - "github.com/TBD54566975/did-dht-method/pkg/dht" - "github.com/TBD54566975/did-dht-method/pkg/storage/db/bolt" - "github.com/TBD54566975/did-dht-method/pkg/storage/db/postgres" + "github.com/TBD54566975/did-dht/pkg/dht" + "github.com/TBD54566975/did-dht/pkg/storage/db/bolt" + "github.com/TBD54566975/did-dht/pkg/storage/db/postgres" ) type Storage interface { diff --git a/impl/pkg/storage/storage_test.go b/impl/pkg/storage/storage_test.go index 81f82d19..73f1c414 100644 --- a/impl/pkg/storage/storage_test.go +++ b/impl/pkg/storage/storage_test.go @@ -8,9 +8,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/TBD54566975/did-dht-method/pkg/storage" - "github.com/TBD54566975/did-dht-method/pkg/storage/db/bolt" - "github.com/TBD54566975/did-dht-method/pkg/storage/db/postgres" + "github.com/TBD54566975/did-dht/pkg/storage" + "github.com/TBD54566975/did-dht/pkg/storage/db/bolt" + "github.com/TBD54566975/did-dht/pkg/storage/db/postgres" ) func TestNewStoragePostgres(t *testing.T) { diff --git a/impl/pkg/telemetry/telemetry.go b/impl/pkg/telemetry/telemetry.go index a4417746..49337889 100644 --- a/impl/pkg/telemetry/telemetry.go +++ b/impl/pkg/telemetry/telemetry.go @@ -16,11 +16,11 @@ import ( semconv "go.opentelemetry.io/otel/semconv/v1.24.0" "go.opentelemetry.io/otel/trace" - "github.com/TBD54566975/did-dht-method/config" + "github.com/TBD54566975/did-dht/config" ) const ( - scopeName = "github.com/TBD54566975/did-dht-method" + scopeName = "github.com/TBD54566975/did-dht" ) var ( diff --git a/spec/package-lock.json b/spec/package-lock.json index 046bb3db..cfcacb55 100644 --- a/spec/package-lock.json +++ b/spec/package-lock.json @@ -1,5 +1,5 @@ { - "name": "did-dht-method", + "name": "did-dht", "version": "1.0.0", "lockfileVersion": 3, "requires": true, diff --git a/spec/package.json b/spec/package.json index 4a586575..f6c61481 100644 --- a/spec/package.json +++ b/spec/package.json @@ -1,12 +1,12 @@ { - "name": "did-dht-method", + "name": "did-dht", "description": "The DID DHT Method", "version": "1.0.0", - "homepage": "http://tbd.website", + "homepage": "https://tbd.website", "license": "Apache 2.0", "repository": { "type": "git", - "url": "git://github.com/TBD54566975/did-dht-method" + "url": "git://github.com/TBD54566975/did-dht" }, "dependencies": { "spec-up": "^0.10.7" diff --git a/spec/registry/spec.md b/spec/registry/spec.md index 7ff13ef6..a62d052d 100644 --- a/spec/registry/spec.md +++ b/spec/registry/spec.md @@ -20,9 +20,9 @@ The DID DHT Method Specification Registry 1.0 ~ [Frank Hinek](https://github.com/frankhinek) **Participate:** -~ [GitHub repo](https://github.com/TBD54566975/did-dht-method) -~ [File a bug](https://github.com/TBD54566975/did-dht-method/issues) -~ [Commit history](https://github.com/TBD54566975/did-dht-method/commits/main) +~ [GitHub repo](https://github.com/TBD54566975/did-dht) +~ [File a bug](https://github.com/TBD54566975/did-dht/issues) +~ [Commit history](https://github.com/TBD54566975/did-dht/commits/main) ## Abstract @@ -81,7 +81,7 @@ DID Documents may contain [additional properties](https://www.w3.org/TR/did-core properties ****MAY**** be registered in the [[spec:DID-SPEC-REGISTRIES]], or in the following table. Independent of where the property is registered, a mapping ****MUST**** be provided between the property and its DNS packet representation. -To add additional properties and note their mappings, please [open a pull request](https://github.com/TBD54566975/did-dht-method/pulls). +To add additional properties and note their mappings, please [open a pull request](https://github.com/TBD54566975/did-dht/pulls). #### Service @@ -116,7 +116,7 @@ with `options.publicKeyFormat` set to `JsonWebKey`. ::: todo [](https://github.com/w3c-ccg/did-method-key/issues/66) -[](https://github.com/TBD54566975/did-dht-method/issues/57) +[](https://github.com/TBD54566975/did-dht/issues/57) Update this algorithm after the `did:key` spec is updated to support `did:dht`. ::: diff --git a/spec/spec.md b/spec/spec.md index 7d1fd915..76371e60 100644 --- a/spec/spec.md +++ b/spec/spec.md @@ -22,9 +22,9 @@ The DID DHT Method Specification 1.0 ~ [Kendall Weihe](https://github.com/KendallWeihe) **Participate:** -~ [GitHub repo](https://github.com/TBD54566975/did-dht-method) -~ [File a bug](https://github.com/TBD54566975/did-dht-method/issues) -~ [Commit history](https://github.com/TBD54566975/did-dht-method/commits/main) +~ [GitHub repo](https://github.com/TBD54566975/did-dht) +~ [File a bug](https://github.com/TBD54566975/did-dht/issues) +~ [Commit history](https://github.com/TBD54566975/did-dht/commits/main) ## Abstract @@ -1217,7 +1217,7 @@ However, we provide additional guidance for [DID Resolvers](https://www.w3.org/T [DID Resolution Metadata](https://www.w3.org/TR/did-core/#did-resolution-metadata) as follows: ::: todo -[](https://github.com/TBD54566975/did-dht-method/issues/136) +[](https://github.com/TBD54566975/did-dht/issues/136) Register `types`, `gateway`, and `expiry` types in the [DID Specification Registry](https://www.w3.org/TR/did-spec-registries). ::: diff --git a/spec/specs.json b/spec/specs.json index 2ddc1f91..805bc160 100644 --- a/spec/specs.json +++ b/spec/specs.json @@ -9,7 +9,7 @@ "source": { "host": "github", "account": "tbd54566975", - "repo": "did-dht-method" + "repo": "did-dht" } }, { @@ -21,7 +21,7 @@ "source": { "host": "github", "account": "tbd54566975", - "repo": "did-dht-method" + "repo": "did-dht" } } ]