diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6bb1b5f..60c2183 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: uses: codecov/codecov-action@v4.0.1 with: token: ${{ secrets.CODECOV_TOKEN }} - slug: TBD54566975/web5-go + slug: decentralized-identity/web5-go lint: name: Lint timeout-minutes: 10 diff --git a/.gitmodules b/.gitmodules index a4d13ed..61a2476 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "web5-spec"] path = web5-spec - url = git@github.com:TBD54566975/web5-spec.git + url = git@github.com:decentralized-identity/web5-spec.git diff --git a/README.md b/README.md index 7ab1c1a..a5d366f 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Supported Digital Signature Algorithms: ## `dids` Supported DID Methods: * [`did:jwk`](https://github.com/quartzjer/did-jwk/blob/main/spec.md) -* 🚧 [`did:dht`](https://github.com/TBD54566975/did-dht-method) 🚧 +* 🚧 [`did:dht`](https://github.com/decentralized-identity/did-dht-method) 🚧 ## `jws` JWS signing and verification using DIDs @@ -52,7 +52,7 @@ We use a submodule for test vectors that make sure we follow the appropriate spe To set up the submodule, clone using: ``` -git clone --recurse-submodules git@github.com:TBD54566975/web5-go.git +git clone --recurse-submodules git@github.com:decentralized-identity/web5-go.git ``` If you've already cloned, add submodules: diff --git a/cmd/web5/cmd_did_create.go b/cmd/web5/cmd_did_create.go index dac5aaa..8761da9 100644 --- a/cmd/web5/cmd_did_create.go +++ b/cmd/web5/cmd_did_create.go @@ -5,10 +5,10 @@ import ( "encoding/json" "fmt" - "github.com/tbd54566975/web5-go/dids/did" - "github.com/tbd54566975/web5-go/dids/diddht" - "github.com/tbd54566975/web5-go/dids/didjwk" - "github.com/tbd54566975/web5-go/dids/didweb" + "github.com/decentralized-identity/web5-go/dids/did" + "github.com/decentralized-identity/web5-go/dids/diddht" + "github.com/decentralized-identity/web5-go/dids/didjwk" + "github.com/decentralized-identity/web5-go/dids/didweb" ) type didCreateCMD struct { diff --git a/cmd/web5/cmd_did_resolve.go b/cmd/web5/cmd_did_resolve.go index ad217da..3bb57b0 100644 --- a/cmd/web5/cmd_did_resolve.go +++ b/cmd/web5/cmd_did_resolve.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - "github.com/tbd54566975/web5-go/dids" + "github.com/decentralized-identity/web5-go/dids" ) type didResolveCMD struct { diff --git a/cmd/web5/cmd_jwt_decode.go b/cmd/web5/cmd_jwt_decode.go index 9244001..3195366 100644 --- a/cmd/web5/cmd_jwt_decode.go +++ b/cmd/web5/cmd_jwt_decode.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - "github.com/tbd54566975/web5-go/jwt" + "github.com/decentralized-identity/web5-go/jwt" ) type jwtDecodeCMD struct { diff --git a/cmd/web5/cmd_jwt_sign.go b/cmd/web5/cmd_jwt_sign.go index 0cb1d0d..38407d2 100644 --- a/cmd/web5/cmd_jwt_sign.go +++ b/cmd/web5/cmd_jwt_sign.go @@ -4,8 +4,8 @@ import ( "encoding/json" "fmt" - "github.com/tbd54566975/web5-go/dids/did" - "github.com/tbd54566975/web5-go/jwt" + "github.com/decentralized-identity/web5-go/dids/did" + "github.com/decentralized-identity/web5-go/jwt" ) type jwtSignCMD struct { diff --git a/cmd/web5/cmd_jwt_verify.go b/cmd/web5/cmd_jwt_verify.go index 91226d4..97f2816 100644 --- a/cmd/web5/cmd_jwt_verify.go +++ b/cmd/web5/cmd_jwt_verify.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - "github.com/tbd54566975/web5-go/jwt" + "github.com/decentralized-identity/web5-go/jwt" ) type jwtVerifyCMD struct { diff --git a/cmd/web5/cmd_vc_create.go b/cmd/web5/cmd_vc_create.go index bbeff1c..ce255f1 100644 --- a/cmd/web5/cmd_vc_create.go +++ b/cmd/web5/cmd_vc_create.go @@ -5,8 +5,8 @@ import ( "fmt" "time" - "github.com/tbd54566975/web5-go/dids/did" - "github.com/tbd54566975/web5-go/vc" + "github.com/decentralized-identity/web5-go/dids/did" + "github.com/decentralized-identity/web5-go/vc" ) type vcCreateCMD struct { diff --git a/cmd/web5/cmd_vc_sign.go b/cmd/web5/cmd_vc_sign.go index c91e5bd..351bc56 100644 --- a/cmd/web5/cmd_vc_sign.go +++ b/cmd/web5/cmd_vc_sign.go @@ -4,8 +4,8 @@ import ( "encoding/json" "fmt" - "github.com/tbd54566975/web5-go/dids/did" - "github.com/tbd54566975/web5-go/vc" + "github.com/decentralized-identity/web5-go/dids/did" + "github.com/decentralized-identity/web5-go/vc" ) type vcSignCMD struct { diff --git a/cmd/web5/cmd_vcjwt_decode.go b/cmd/web5/cmd_vcjwt_decode.go index 1206186..1f470c7 100644 --- a/cmd/web5/cmd_vcjwt_decode.go +++ b/cmd/web5/cmd_vcjwt_decode.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - "github.com/tbd54566975/web5-go/vc" + "github.com/decentralized-identity/web5-go/vc" ) type vcjwtDecodeCMD struct { diff --git a/cmd/web5/cmd_vcjwt_verify.go b/cmd/web5/cmd_vcjwt_verify.go index b918fef..b23c768 100644 --- a/cmd/web5/cmd_vcjwt_verify.go +++ b/cmd/web5/cmd_vcjwt_verify.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - "github.com/tbd54566975/web5-go/vc" + "github.com/decentralized-identity/web5-go/vc" ) type vcjwtVerifyCMD struct { diff --git a/crypto/README.md b/crypto/README.md index 14305ab..bafa4ba 100644 --- a/crypto/README.md +++ b/crypto/README.md @@ -34,7 +34,7 @@ This package mostly exists to maintain parity with the structure of other web5 S ### Key Generation -the `dsa` package provides [algorithm IDs](https://github.com/TBD54566975/web5-go/blob/5d50ce8f24e4b47b0a8626724e8a571e9b5c847f/crypto/dsa/dsa.go#L11-L14) that can be passed to the `GenerateKey` function e.g. +the `dsa` package provides [algorithm IDs](https://github.com/decentralized-identity/web5-go/blob/5d50ce8f24e4b47b0a8626724e8a571e9b5c847f/crypto/dsa/dsa.go#L11-L14) that can be passed to the `GenerateKey` function e.g. ```go package main @@ -42,7 +42,7 @@ package main import ( "fmt" - "github.com/tbd54566975/web5-go/crypto/dsa" + "github.com/decentralized-identity/web5-go/crypto/dsa" ) func main() { @@ -64,7 +64,7 @@ package main import ( "fmt" - "github.com/tbd54566975/web5-go/crypto/dsa" + "github.com/decentralized-identity/web5-go/crypto/dsa" ) func main() { @@ -95,7 +95,7 @@ package main import ( "fmt" - "github.com/tbd54566975/web5-go/crypto/dsa" + "github.com/decentralized-identity/web5-go/crypto/dsa" ) func main() { diff --git a/crypto/dsa/dsa.go b/crypto/dsa/dsa.go index 746c4ac..c7dbe8f 100644 --- a/crypto/dsa/dsa.go +++ b/crypto/dsa/dsa.go @@ -3,9 +3,9 @@ package dsa import ( "fmt" - "github.com/tbd54566975/web5-go/crypto/dsa/ecdsa" - "github.com/tbd54566975/web5-go/crypto/dsa/eddsa" - "github.com/tbd54566975/web5-go/jwk" + "github.com/decentralized-identity/web5-go/crypto/dsa/ecdsa" + "github.com/decentralized-identity/web5-go/crypto/dsa/eddsa" + "github.com/decentralized-identity/web5-go/jwk" ) const ( diff --git a/crypto/dsa/dsa_test.go b/crypto/dsa/dsa_test.go index 2f271ee..21e28a0 100644 --- a/crypto/dsa/dsa_test.go +++ b/crypto/dsa/dsa_test.go @@ -5,10 +5,10 @@ import ( "testing" "github.com/alecthomas/assert/v2" - "github.com/tbd54566975/web5-go/crypto/dsa" - "github.com/tbd54566975/web5-go/crypto/dsa/ecdsa" - "github.com/tbd54566975/web5-go/crypto/dsa/eddsa" - "github.com/tbd54566975/web5-go/jwk" + "github.com/decentralized-identity/web5-go/crypto/dsa" + "github.com/decentralized-identity/web5-go/crypto/dsa/ecdsa" + "github.com/decentralized-identity/web5-go/crypto/dsa/eddsa" + "github.com/decentralized-identity/web5-go/jwk" ) func TestGeneratePrivateKeySECP256K1(t *testing.T) { @@ -129,7 +129,7 @@ func TestBytesToPublicKey_BadBytes(t *testing.T) { } func TestBytesToPublicKey_SECP256K1(t *testing.T) { - // vector taken from https://github.com/TBD54566975/web5-js/blob/dids-new-crypto/packages/crypto/tests/fixtures/test-vectors/secp256k1/bytes-to-public-key.json + // vector taken from https://github.com/decentralized-identity/web5-js/blob/dids-new-crypto/packages/crypto/tests/fixtures/test-vectors/secp256k1/bytes-to-public-key.json publicKeyHex := "0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8" pubKeyBytes, err := hex.DecodeString(publicKeyHex) assert.NoError(t, err) diff --git a/crypto/dsa/ecdsa/ecdsa.go b/crypto/dsa/ecdsa/ecdsa.go index 4065405..97cdf28 100644 --- a/crypto/dsa/ecdsa/ecdsa.go +++ b/crypto/dsa/ecdsa/ecdsa.go @@ -4,7 +4,7 @@ import ( "errors" "fmt" - "github.com/tbd54566975/web5-go/jwk" + "github.com/decentralized-identity/web5-go/jwk" ) const ( diff --git a/crypto/dsa/ecdsa/secp256k1.go b/crypto/dsa/ecdsa/secp256k1.go index 40bee34..20f9e3b 100644 --- a/crypto/dsa/ecdsa/secp256k1.go +++ b/crypto/dsa/ecdsa/secp256k1.go @@ -6,9 +6,9 @@ import ( "errors" "fmt" + "github.com/decentralized-identity/web5-go/jwk" _secp256k1 "github.com/decred/dcrd/dcrec/secp256k1/v4" "github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa" - "github.com/tbd54566975/web5-go/jwk" ) const ( diff --git a/crypto/dsa/ecdsa/secp256k1_test.go b/crypto/dsa/ecdsa/secp256k1_test.go index f771a10..56a29d5 100644 --- a/crypto/dsa/ecdsa/secp256k1_test.go +++ b/crypto/dsa/ecdsa/secp256k1_test.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/alecthomas/assert/v2" - "github.com/tbd54566975/web5-go/crypto/dsa/ecdsa" - "github.com/tbd54566975/web5-go/jwk" + "github.com/decentralized-identity/web5-go/crypto/dsa/ecdsa" + "github.com/decentralized-identity/web5-go/jwk" ) func TestSECP256K1GeneratePrivateKey(t *testing.T) { @@ -26,7 +26,7 @@ func TestSECP256K1BytesToPublicKey_Bad(t *testing.T) { } func TestSECP256K1BytesToPublicKey_Uncompressed(t *testing.T) { - // vector taken from https://github.com/TBD54566975/web5-js/blob/dids-new-crypto/packages/crypto/tests/fixtures/test-vectors/secp256k1/bytes-to-public-key.json + // vector taken from https://github.com/decentralized-identity/web5-js/blob/dids-new-crypto/packages/crypto/tests/fixtures/test-vectors/secp256k1/bytes-to-public-key.json publicKeyHex := "0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8" pubKeyBytes, err := hex.DecodeString(publicKeyHex) assert.NoError(t, err) @@ -41,7 +41,7 @@ func TestSECP256K1BytesToPublicKey_Uncompressed(t *testing.T) { } func TestSECP256K1PublicKeyToBytes(t *testing.T) { - // vector taken from https://github.com/TBD54566975/web5-js/blob/dids-new-crypto/packages/crypto/tests/fixtures/test-vectors/secp256k1/bytes-to-public-key.json + // vector taken from https://github.com/decentralized-identity/web5-js/blob/dids-new-crypto/packages/crypto/tests/fixtures/test-vectors/secp256k1/bytes-to-public-key.json jwk := jwk.JWK{ KTY: "EC", CRV: ecdsa.SECP256K1JWACurve, diff --git a/crypto/dsa/eddsa/ed25519.go b/crypto/dsa/eddsa/ed25519.go index d763f33..b0cd557 100644 --- a/crypto/dsa/eddsa/ed25519.go +++ b/crypto/dsa/eddsa/ed25519.go @@ -7,7 +7,7 @@ import ( "errors" "fmt" - "github.com/tbd54566975/web5-go/jwk" + "github.com/decentralized-identity/web5-go/jwk" ) const ( diff --git a/crypto/dsa/eddsa/ed25519_test.go b/crypto/dsa/eddsa/ed25519_test.go index 6ab1940..1307217 100644 --- a/crypto/dsa/eddsa/ed25519_test.go +++ b/crypto/dsa/eddsa/ed25519_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/alecthomas/assert/v2" - "github.com/tbd54566975/web5-go/crypto/dsa/eddsa" - "github.com/tbd54566975/web5-go/jwk" + "github.com/decentralized-identity/web5-go/crypto/dsa/eddsa" + "github.com/decentralized-identity/web5-go/jwk" ) func TestED25519BytesToPublicKey_Bad(t *testing.T) { @@ -17,7 +17,7 @@ func TestED25519BytesToPublicKey_Bad(t *testing.T) { } func TestED25519BytesToPublicKey_Good(t *testing.T) { - // vector taken from https://github.com/TBD54566975/web5-js/blob/dids-new-crypto/packages/crypto/tests/fixtures/test-vectors/ed25519/bytes-to-public-key.json + // vector taken from https://github.com/decentralized-identity/web5-js/blob/dids-new-crypto/packages/crypto/tests/fixtures/test-vectors/ed25519/bytes-to-public-key.json pubKeyHex := "7d4d0e7f6153a69b6242b522abbee685fda4420f8834b108c3bdae369ef549fa" pubKeyBytes, err := hex.DecodeString(pubKeyHex) assert.NoError(t, err) @@ -31,7 +31,7 @@ func TestED25519BytesToPublicKey_Good(t *testing.T) { } func TestED25519PublicKeyToBytes(t *testing.T) { - // vector taken from: https://github.com/TBD54566975/web5-spec/blob/main/test-vectors/crypto_ed25519/sign.json + // vector taken from: https://github.com/decentralized-identity/web5-spec/blob/main/test-vectors/crypto_ed25519/sign.json jwk := jwk.JWK{ KTY: "OKP", CRV: eddsa.ED25519JWACurve, diff --git a/crypto/dsa/eddsa/eddsa.go b/crypto/dsa/eddsa/eddsa.go index 13d3f4d..79567e9 100644 --- a/crypto/dsa/eddsa/eddsa.go +++ b/crypto/dsa/eddsa/eddsa.go @@ -6,7 +6,7 @@ import ( "errors" "fmt" - "github.com/tbd54566975/web5-go/jwk" + "github.com/decentralized-identity/web5-go/jwk" ) const ( diff --git a/crypto/entropy_test.go b/crypto/entropy_test.go index bbaaf0f..fd3f7a6 100644 --- a/crypto/entropy_test.go +++ b/crypto/entropy_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/alecthomas/assert/v2" - "github.com/tbd54566975/web5-go/crypto" + "github.com/decentralized-identity/web5-go/crypto" ) func Test_GenerateEntropy(t *testing.T) { diff --git a/crypto/keymanager.go b/crypto/keymanager.go index 947dcd4..6c2f61f 100644 --- a/crypto/keymanager.go +++ b/crypto/keymanager.go @@ -3,8 +3,8 @@ package crypto import ( "fmt" - "github.com/tbd54566975/web5-go/crypto/dsa" - "github.com/tbd54566975/web5-go/jwk" + "github.com/decentralized-identity/web5-go/crypto/dsa" + "github.com/decentralized-identity/web5-go/jwk" ) // KeyManager is an abstraction that can be leveraged to manage/use keys (create, sign etc) as desired per the given use case @@ -44,7 +44,7 @@ func NewLocalKeyManager() *LocalKeyManager { // GeneratePrivateKey generates a new private key using the algorithm provided, // stores it in the key store and returns the key id -// Supported algorithms are available in [github.com/tbd54566975/web5-go/crypto/dsa.AlgorithmID] +// Supported algorithms are available in [github.com/decentralized-identity/web5-go/crypto/dsa.AlgorithmID] func (k *LocalKeyManager) GeneratePrivateKey(algorithmID string) (string, error) { var keyAlias string diff --git a/crypto/keymanager_test.go b/crypto/keymanager_test.go index 44b2c18..45e0a97 100644 --- a/crypto/keymanager_test.go +++ b/crypto/keymanager_test.go @@ -4,8 +4,8 @@ import ( "testing" "github.com/alecthomas/assert/v2" - "github.com/tbd54566975/web5-go/crypto" - "github.com/tbd54566975/web5-go/crypto/dsa" + "github.com/decentralized-identity/web5-go/crypto" + "github.com/decentralized-identity/web5-go/crypto/dsa" ) func TestGeneratePrivateKey(t *testing.T) { diff --git a/dids/README.md b/dids/README.md index b7f890c..ae45c06 100644 --- a/dids/README.md +++ b/dids/README.md @@ -55,7 +55,7 @@ package main import ( "fmt" - "github.com/tbd54566975/web5-go/didjwk" + "github.com/decentralized-identity/web5-go/didjwk" ) func main() { @@ -81,7 +81,7 @@ package main import ( "fmt" - "github.com/tbd54566975/web5-go/didjwk" + "github.com/decentralized-identity/web5-go/didjwk" ) func main() { @@ -110,8 +110,8 @@ package main import ( "fmt" - "github.com/tbd54566975/web5-go/dsa" - "github.com/tbd54566975/web5-go/didjwk" + "github.com/decentralized-identity/web5-go/dsa" + "github.com/decentralized-identity/web5-go/didjwk" ) func main() { @@ -148,8 +148,8 @@ package main import ( "fmt" - "github.com/tbd54566975/web5-go/dsa" - "github.com/tbd54566975/web5-go/dids" + "github.com/decentralized-identity/web5-go/dsa" + "github.com/decentralized-identity/web5-go/dids" ) func main() { @@ -180,8 +180,8 @@ package main import ( "fmt" - "github.com/tbd54566975/web5-go/did" - "github.com/tbd54566975/web5-go/didjwk" + "github.com/decentralized-identity/web5-go/did" + "github.com/decentralized-identity/web5-go/didjwk" ) func main() { @@ -213,7 +213,7 @@ package main import ( "fmt" - "github.com/tbd54566975/web5-go/did" + "github.com/decentralized-identity/web5-go/did" ) func main() { diff --git a/dids/did/bearerdid.go b/dids/did/bearerdid.go index a087528..567ac1f 100644 --- a/dids/did/bearerdid.go +++ b/dids/did/bearerdid.go @@ -3,9 +3,9 @@ package did import ( "fmt" - "github.com/tbd54566975/web5-go/crypto" - "github.com/tbd54566975/web5-go/dids/didcore" - "github.com/tbd54566975/web5-go/jwk" + "github.com/decentralized-identity/web5-go/crypto" + "github.com/decentralized-identity/web5-go/dids/didcore" + "github.com/decentralized-identity/web5-go/jwk" ) // BearerDID is a composite type that combines a DID with a KeyManager containing keys diff --git a/dids/did/bearerdid_test.go b/dids/did/bearerdid_test.go index f3dd0eb..65a83db 100644 --- a/dids/did/bearerdid_test.go +++ b/dids/did/bearerdid_test.go @@ -4,12 +4,12 @@ import ( "testing" "github.com/alecthomas/assert/v2" - "github.com/tbd54566975/web5-go/crypto/dsa" - "github.com/tbd54566975/web5-go/dids/did" - "github.com/tbd54566975/web5-go/dids/didcore" - "github.com/tbd54566975/web5-go/dids/didjwk" - "github.com/tbd54566975/web5-go/jwk" - "github.com/tbd54566975/web5-go/jws" + "github.com/decentralized-identity/web5-go/crypto/dsa" + "github.com/decentralized-identity/web5-go/dids/did" + "github.com/decentralized-identity/web5-go/dids/didcore" + "github.com/decentralized-identity/web5-go/dids/didjwk" + "github.com/decentralized-identity/web5-go/jwk" + "github.com/decentralized-identity/web5-go/jws" ) func TestToPortableDID(t *testing.T) { diff --git a/dids/did/did_test.go b/dids/did/did_test.go index ec0c9ad..5d1b1ed 100644 --- a/dids/did/did_test.go +++ b/dids/did/did_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/alecthomas/assert/v2" - "github.com/tbd54566975/web5-go/dids/did" + "github.com/decentralized-identity/web5-go/dids/did" ) type vector struct { diff --git a/dids/did/portabledid.go b/dids/did/portabledid.go index 7a16378..22ac33c 100644 --- a/dids/did/portabledid.go +++ b/dids/did/portabledid.go @@ -1,8 +1,8 @@ package did import ( - "github.com/tbd54566975/web5-go/dids/didcore" - "github.com/tbd54566975/web5-go/jwk" + "github.com/decentralized-identity/web5-go/dids/didcore" + "github.com/decentralized-identity/web5-go/jwk" ) // PortableDID is a serializable BearerDID. VerificationMethod contains the private key diff --git a/dids/didcore/document.go b/dids/didcore/document.go index d32a142..8b52186 100644 --- a/dids/didcore/document.go +++ b/dids/didcore/document.go @@ -4,7 +4,7 @@ import ( "errors" "fmt" - "github.com/tbd54566975/web5-go/jwk" + "github.com/decentralized-identity/web5-go/jwk" ) const ( diff --git a/dids/didcore/document_test.go b/dids/didcore/document_test.go index 7dfc7bf..4b24d59 100644 --- a/dids/didcore/document_test.go +++ b/dids/didcore/document_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/alecthomas/assert/v2" - "github.com/tbd54566975/web5-go/dids/didcore" + "github.com/decentralized-identity/web5-go/dids/didcore" ) func TestAddVerificationMethod(t *testing.T) { diff --git a/dids/diddht/diddht.go b/dids/diddht/diddht.go index fd62505..b144d6b 100644 --- a/dids/diddht/diddht.go +++ b/dids/diddht/diddht.go @@ -9,13 +9,13 @@ import ( "sync" "time" - "github.com/tbd54566975/web5-go/crypto" - "github.com/tbd54566975/web5-go/crypto/dsa" - "github.com/tbd54566975/web5-go/dids/did" - "github.com/tbd54566975/web5-go/dids/didcore" - "github.com/tbd54566975/web5-go/dids/diddht/internal/bep44" - "github.com/tbd54566975/web5-go/dids/diddht/internal/dns" - "github.com/tbd54566975/web5-go/dids/diddht/internal/pkarr" + "github.com/decentralized-identity/web5-go/crypto" + "github.com/decentralized-identity/web5-go/crypto/dsa" + "github.com/decentralized-identity/web5-go/dids/did" + "github.com/decentralized-identity/web5-go/dids/didcore" + "github.com/decentralized-identity/web5-go/dids/diddht/internal/bep44" + "github.com/decentralized-identity/web5-go/dids/diddht/internal/dns" + "github.com/decentralized-identity/web5-go/dids/diddht/internal/pkarr" "github.com/tv42/zbase32" ) diff --git a/dids/diddht/diddht_test.go b/dids/diddht/diddht_test.go index a29b9b7..2eaa523 100644 --- a/dids/diddht/diddht_test.go +++ b/dids/diddht/diddht_test.go @@ -5,7 +5,7 @@ import ( "encoding/hex" "encoding/json" "fmt" - "github.com/tbd54566975/web5-go/dids/did" + "github.com/decentralized-identity/web5-go/dids/did" "net/http" "net/http/httptest" "testing" @@ -13,10 +13,10 @@ import ( "io" "github.com/alecthomas/assert/v2" - "github.com/tbd54566975/web5-go/crypto" - "github.com/tbd54566975/web5-go/crypto/dsa" - "github.com/tbd54566975/web5-go/dids/didcore" - "github.com/tbd54566975/web5-go/dids/diddht/internal/bep44" + "github.com/decentralized-identity/web5-go/crypto" + "github.com/decentralized-identity/web5-go/crypto/dsa" + "github.com/decentralized-identity/web5-go/dids/didcore" + "github.com/decentralized-identity/web5-go/dids/diddht/internal/bep44" "golang.org/x/net/dns/dnsmessage" ) @@ -54,7 +54,7 @@ func makeDNSMessage(answersOpt ...DHTTXTResourceOpt) dnsmessage.Message { } func TestDHTResolve(t *testing.T) { - // vector taken from https://github.com/TBD54566975/web5-js/blob/dids-new-crypto/packages/crypto/tests/fixtures/test-vectors/secp256k1/bytes-to-public-key.json + // vector taken from https://github.com/decentralized-identity/web5-js/blob/dids-new-crypto/packages/crypto/tests/fixtures/test-vectors/secp256k1/bytes-to-public-key.json publicKeyHexSecp256k1 := "0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8" pubKeyBytesSecp256k1, err := hex.DecodeString(publicKeyHexSecp256k1) assert.NoError(t, err) diff --git a/dids/diddht/internal/bencode/bencode_test.go b/dids/diddht/internal/bencode/bencode_test.go index 4f37453..64d3041 100644 --- a/dids/diddht/internal/bencode/bencode_test.go +++ b/dids/diddht/internal/bencode/bencode_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/alecthomas/assert/v2" - "github.com/tbd54566975/web5-go/dids/diddht/internal/bencode" + "github.com/decentralized-identity/web5-go/dids/diddht/internal/bencode" ) func TestMarshal_String(t *testing.T) { diff --git a/dids/diddht/internal/dns/did.go b/dids/diddht/internal/dns/did.go index 731d3f4..31f7d6a 100644 --- a/dids/diddht/internal/dns/did.go +++ b/dids/diddht/internal/dns/did.go @@ -8,8 +8,8 @@ import ( "sort" "strings" - "github.com/tbd54566975/web5-go/crypto/dsa" - "github.com/tbd54566975/web5-go/dids/didcore" + "github.com/decentralized-identity/web5-go/crypto/dsa" + "github.com/decentralized-identity/web5-go/dids/didcore" "golang.org/x/net/dns/dnsmessage" ) diff --git a/dids/diddht/internal/dns/did_test.go b/dids/diddht/internal/dns/did_test.go index 68b0db8..071ee66 100644 --- a/dids/diddht/internal/dns/did_test.go +++ b/dids/diddht/internal/dns/did_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/alecthomas/assert/v2" - "github.com/tbd54566975/web5-go/dids/didcore" + "github.com/decentralized-identity/web5-go/dids/didcore" ) func Test_MarshalDIDDocument(t *testing.T) { diff --git a/dids/diddht/internal/dns/dns.go b/dids/diddht/internal/dns/dns.go index 7dd2d19..44c21ec 100644 --- a/dids/diddht/internal/dns/dns.go +++ b/dids/diddht/internal/dns/dns.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/tbd54566975/web5-go/dids/didcore" + "github.com/decentralized-identity/web5-go/dids/didcore" "golang.org/x/net/dns/dnsmessage" ) diff --git a/dids/diddht/internal/dns/dnsmappings.go b/dids/diddht/internal/dns/dnsmappings.go index e97352d..a44e837 100644 --- a/dids/diddht/internal/dns/dnsmappings.go +++ b/dids/diddht/internal/dns/dnsmappings.go @@ -1,8 +1,8 @@ package dns import ( - "github.com/tbd54566975/web5-go/crypto/dsa" - "github.com/tbd54566975/web5-go/dids/didcore" + "github.com/decentralized-identity/web5-go/crypto/dsa" + "github.com/decentralized-identity/web5-go/dids/didcore" ) // vmPurposeDNStoDID maps the DNS representation of the diff --git a/dids/diddht/internal/pkarr/gateway.go b/dids/diddht/internal/pkarr/gateway.go index 9050315..63a011c 100644 --- a/dids/diddht/internal/pkarr/gateway.go +++ b/dids/diddht/internal/pkarr/gateway.go @@ -8,7 +8,7 @@ import ( "net/url" "strings" - "github.com/tbd54566975/web5-go/dids/diddht/internal/bep44" + "github.com/decentralized-identity/web5-go/dids/diddht/internal/bep44" ) // Client is a client for publishing and fetching BEP44 messages to and from a Pkarr relay server. diff --git a/dids/diddht/resolver.go b/dids/diddht/resolver.go index 8cfb3ed..0b2036f 100644 --- a/dids/diddht/resolver.go +++ b/dids/diddht/resolver.go @@ -4,10 +4,10 @@ import ( "context" "net/http" - "github.com/tbd54566975/web5-go/dids/did" - "github.com/tbd54566975/web5-go/dids/didcore" - "github.com/tbd54566975/web5-go/dids/diddht/internal/dns" - "github.com/tbd54566975/web5-go/dids/diddht/internal/pkarr" + "github.com/decentralized-identity/web5-go/dids/did" + "github.com/decentralized-identity/web5-go/dids/didcore" + "github.com/decentralized-identity/web5-go/dids/diddht/internal/dns" + "github.com/decentralized-identity/web5-go/dids/diddht/internal/pkarr" "github.com/tv42/zbase32" ) diff --git a/dids/diddht/resolver_test.go b/dids/diddht/resolver_test.go index ffd78d3..f0e4475 100644 --- a/dids/diddht/resolver_test.go +++ b/dids/diddht/resolver_test.go @@ -73,7 +73,7 @@ func Test_VectorsResolve(t *testing.T) { func Test_resolve(t *testing.T) { - // vector taken from https://github.com/TBD54566975/web5-js/blob/91d52aaa9410db5e5f7c3c31ebfe0d4956028496/packages/dids/tests/methods/did-dht.spec.ts#L725 + // vector taken from https://github.com/decentralized-identity/web5-js/blob/91d52aaa9410db5e5f7c3c31ebfe0d4956028496/packages/dids/tests/methods/did-dht.spec.ts#L725 vectors := map[string]string{ "did:dht:9tjoow45ef1hksoo96bmzkwwy3mhme95d7fsi3ezjyjghmp75qyo": "ea33e704f3a48a3392f54b28744cdfb4e24780699f92ba7df62fd486d2a2cda3f263e1c6bcbd" + "75d438be7316e5d6e94b13e98151f599cfecefad0b37432bd90a0000000065b0ed1600008400" + diff --git a/dids/didjwk/didjwk.go b/dids/didjwk/didjwk.go index c820ef0..4099bcd 100644 --- a/dids/didjwk/didjwk.go +++ b/dids/didjwk/didjwk.go @@ -6,11 +6,11 @@ import ( "encoding/json" "fmt" - "github.com/tbd54566975/web5-go/crypto" - "github.com/tbd54566975/web5-go/crypto/dsa" - "github.com/tbd54566975/web5-go/dids/did" - "github.com/tbd54566975/web5-go/dids/didcore" - "github.com/tbd54566975/web5-go/jwk" + "github.com/decentralized-identity/web5-go/crypto" + "github.com/decentralized-identity/web5-go/crypto/dsa" + "github.com/decentralized-identity/web5-go/dids/did" + "github.com/decentralized-identity/web5-go/dids/didcore" + "github.com/decentralized-identity/web5-go/jwk" ) // createOptions is a struct that contains all options that can be passed to [Create] diff --git a/dids/didjwk/didjwk_test.go b/dids/didjwk/didjwk_test.go index 6a460e6..b3ec6c3 100644 --- a/dids/didjwk/didjwk_test.go +++ b/dids/didjwk/didjwk_test.go @@ -2,14 +2,14 @@ package didjwk_test import ( "fmt" - "github.com/tbd54566975/web5-go/dids/did" + "github.com/decentralized-identity/web5-go/dids/did" "testing" "github.com/alecthomas/assert/v2" - "github.com/tbd54566975/web5-go" - "github.com/tbd54566975/web5-go/dids/didcore" - "github.com/tbd54566975/web5-go/dids/didjwk" - "github.com/tbd54566975/web5-go/jwk" + "github.com/decentralized-identity/web5-go" + "github.com/decentralized-identity/web5-go/dids/didcore" + "github.com/decentralized-identity/web5-go/dids/didjwk" + "github.com/decentralized-identity/web5-go/jwk" ) func TestCreate(t *testing.T) { diff --git a/dids/didweb/didweb.go b/dids/didweb/didweb.go index f7a35aa..33d65ac 100644 --- a/dids/didweb/didweb.go +++ b/dids/didweb/didweb.go @@ -11,10 +11,10 @@ import ( "strconv" "strings" - "github.com/tbd54566975/web5-go/crypto" - "github.com/tbd54566975/web5-go/crypto/dsa" - _did "github.com/tbd54566975/web5-go/dids/did" - "github.com/tbd54566975/web5-go/dids/didcore" + "github.com/decentralized-identity/web5-go/crypto" + "github.com/decentralized-identity/web5-go/crypto/dsa" + _did "github.com/decentralized-identity/web5-go/dids/did" + "github.com/decentralized-identity/web5-go/dids/didcore" ) // CreateOption is the type returned from each individual option function @@ -239,8 +239,8 @@ func (r Resolver) ResolveWithContext(ctx context.Context, uri string) (didcore.R return didcore.ResolutionResultWithError("invalidDid"), didcore.ResolutionError{Code: "invalidDid"} } - // TODO item 6 from https://w3c-ccg.github.io/did-method-web/#read-resolve https://github.com/TBD54566975/web5-go/issues/94 - // TODO item 7 from https://w3c-ccg.github.io/did-method-web/#read-resolve https://github.com/TBD54566975/web5-go/issues/95 + // TODO item 6 from https://w3c-ccg.github.io/did-method-web/#read-resolve https://github.com/decentralized-identity/web5-go/issues/94 + // TODO item 7 from https://w3c-ccg.github.io/did-method-web/#read-resolve https://github.com/decentralized-identity/web5-go/issues/95 req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil) if err != nil { diff --git a/dids/didweb/didweb_test.go b/dids/didweb/didweb_test.go index c056b04..474d9ba 100644 --- a/dids/didweb/didweb_test.go +++ b/dids/didweb/didweb_test.go @@ -4,9 +4,9 @@ import ( "testing" "github.com/alecthomas/assert/v2" - "github.com/tbd54566975/web5-go/dids/did" - "github.com/tbd54566975/web5-go/dids/didcore" - "github.com/tbd54566975/web5-go/dids/didweb" + "github.com/decentralized-identity/web5-go/dids/did" + "github.com/decentralized-identity/web5-go/dids/didcore" + "github.com/decentralized-identity/web5-go/dids/didweb" ) func TestCreate(t *testing.T) { diff --git a/dids/resolver.go b/dids/resolver.go index 7af81a3..1606a45 100644 --- a/dids/resolver.go +++ b/dids/resolver.go @@ -4,11 +4,11 @@ import ( "context" "sync" - "github.com/tbd54566975/web5-go/dids/did" - "github.com/tbd54566975/web5-go/dids/didcore" - "github.com/tbd54566975/web5-go/dids/diddht" - "github.com/tbd54566975/web5-go/dids/didjwk" - "github.com/tbd54566975/web5-go/dids/didweb" + "github.com/decentralized-identity/web5-go/dids/did" + "github.com/decentralized-identity/web5-go/dids/didcore" + "github.com/decentralized-identity/web5-go/dids/diddht" + "github.com/decentralized-identity/web5-go/dids/didjwk" + "github.com/decentralized-identity/web5-go/dids/didweb" ) // Resolve resolves the provided DID URI. This function is capable of resolving diff --git a/jws/README.md b/jws/README.md index ef357c0..5bc60f1 100644 --- a/jws/README.md +++ b/jws/README.md @@ -24,8 +24,8 @@ package main import ( "fmt" - "github.com/tbd54566975/web5-go/didjwk" - "github.com/tbd54566975/web5-go/jws" + "github.com/decentralized-identity/web5-go/didjwk" + "github.com/decentralized-identity/web5-go/jws" ) func main() { @@ -56,8 +56,8 @@ package main import ( "fmt" - "github.com/tbd54566975/web5-go/didjwk" - "github.com/tbd54566975/web5-go/jws" + "github.com/decentralized-identity/web5-go/didjwk" + "github.com/decentralized-identity/web5-go/jws" ) func main() { @@ -86,8 +86,8 @@ package main import ( "fmt" - "github.com/tbd54566975/web5-go/didjwk" - "github.com/tbd54566975/web5-go/jws" + "github.com/decentralized-identity/web5-go/didjwk" + "github.com/decentralized-identity/web5-go/jws" ) func main() { @@ -116,8 +116,8 @@ package main import ( "fmt" - "github.com/tbd54566975/web5-go/didjwk" - "github.com/tbd54566975/web5-go/jws" + "github.com/decentralized-identity/web5-go/didjwk" + "github.com/decentralized-identity/web5-go/jws" ) func main() { diff --git a/jws/jws.go b/jws/jws.go index 2c8aad9..baabf12 100644 --- a/jws/jws.go +++ b/jws/jws.go @@ -7,10 +7,10 @@ import ( "fmt" "strings" - "github.com/tbd54566975/web5-go/crypto/dsa" - "github.com/tbd54566975/web5-go/dids" - _did "github.com/tbd54566975/web5-go/dids/did" - "github.com/tbd54566975/web5-go/dids/didcore" + "github.com/decentralized-identity/web5-go/crypto/dsa" + "github.com/decentralized-identity/web5-go/dids" + _did "github.com/decentralized-identity/web5-go/dids/did" + "github.com/decentralized-identity/web5-go/dids/didcore" ) // Decode decodes the given JWS string into a [Decoded] type @@ -121,10 +121,10 @@ type signOpts struct { typ string } -// SignOpt is a type that represents an option that can be passed to [github.com/tbd54566975/web5-go/jws.Sign]. +// SignOpt is a type that represents an option that can be passed to [github.com/decentralized-identity/web5-go/jws.Sign]. type SignOpt func(opts *signOpts) -// Purpose is an option that can be passed to [github.com/tbd54566975/web5-go/jws.Sign]. +// Purpose is an option that can be passed to [github.com/decentralized-identity/web5-go/jws.Sign]. // It is used to select the appropriate key to sign with func Purpose(p string) SignOpt { return func(opts *signOpts) { @@ -132,7 +132,7 @@ func Purpose(p string) SignOpt { } } -// VerificationMethod is an option that can be passed to [github.com/tbd54566975/web5-go/jws.Sign]. +// VerificationMethod is an option that can be passed to [github.com/decentralized-identity/web5-go/jws.Sign]. // It is used to select the appropriate key to sign with func VerificationMethod(id string) SignOpt { return func(opts *signOpts) { @@ -140,7 +140,7 @@ func VerificationMethod(id string) SignOpt { } } -// VMSelector is an option that can be passed to [github.com/tbd54566975/web5-go/jws.Sign]. +// VMSelector is an option that can be passed to [github.com/decentralized-identity/web5-go/jws.Sign]. // It is used to select the appropriate key to sign with func VMSelector(selector didcore.VMSelector) SignOpt { return func(opts *signOpts) { @@ -148,7 +148,7 @@ func VMSelector(selector didcore.VMSelector) SignOpt { } } -// DetachedPayload is an option that can be passed to [github.com/tbd54566975/web5-go/jws.Sign]. +// DetachedPayload is an option that can be passed to [github.com/decentralized-identity/web5-go/jws.Sign]. // It is used to indicate whether the payload should be included in the signature. // More details can be found [here]. // @@ -159,7 +159,7 @@ func DetachedPayload(detached bool) SignOpt { } } -// Type is an option that can be passed to [github.com/tbd54566975/web5-go/jws.Sign]. +// Type is an option that can be passed to [github.com/decentralized-identity/web5-go/jws.Sign]. // It is used to set the `typ` JWS header value func Type(typ string) SignOpt { return func(opts *signOpts) { diff --git a/jws/jws_test.go b/jws/jws_test.go index 9d51e58..a829f26 100644 --- a/jws/jws_test.go +++ b/jws/jws_test.go @@ -8,9 +8,9 @@ import ( "testing" "github.com/alecthomas/assert/v2" - "github.com/tbd54566975/web5-go/dids/didjwk" - "github.com/tbd54566975/web5-go/dids/didweb" - "github.com/tbd54566975/web5-go/jws" + "github.com/decentralized-identity/web5-go/dids/didjwk" + "github.com/decentralized-identity/web5-go/dids/didweb" + "github.com/decentralized-identity/web5-go/jws" ) func TestDecode(t *testing.T) { diff --git a/jwt/README.md b/jwt/README.md index 6b42723..e8a069c 100644 --- a/jwt/README.md +++ b/jwt/README.md @@ -19,8 +19,8 @@ package main import ( "fmt" - "github.com/tbd54566975/web5-go/didjwk" - "github.com/tbd54566975/web5-go/jwt" + "github.com/decentralized-identity/web5-go/didjwk" + "github.com/decentralized-identity/web5-go/jwt" ) func main() { @@ -48,8 +48,8 @@ package main import ( "fmt" - "github.com/tbd54566975/web5-go/dids" - "github.com/tbd54566975/web5-go/jwt" + "github.com/decentralized-identity/web5-go/dids" + "github.com/decentralized-identity/web5-go/jwt" ) func main() { diff --git a/jwt/jwt.go b/jwt/jwt.go index 5c34f76..2383f8d 100644 --- a/jwt/jwt.go +++ b/jwt/jwt.go @@ -8,9 +8,9 @@ import ( "strings" "time" - "github.com/tbd54566975/web5-go/dids/did" - "github.com/tbd54566975/web5-go/dids/didcore" - "github.com/tbd54566975/web5-go/jws" + "github.com/decentralized-identity/web5-go/dids/did" + "github.com/decentralized-identity/web5-go/dids/didcore" + "github.com/decentralized-identity/web5-go/jws" ) // Decode decodes the 3-part base64url encoded jwt into it's relevant parts @@ -66,7 +66,7 @@ type SignOpt func(opts *signOpts) // Purpose is an option that can be provided to Sign to specify that a key from // a given DID Document Verification Relationship should be used (e.g. authentication) -// Purpose is an option that can be passed to [github.com/tbd54566975/web5-go/jws.Sign]. +// Purpose is an option that can be passed to [github.com/decentralized-identity/web5-go/jws.Sign]. // It is used to select the appropriate key to sign with func Purpose(p string) SignOpt { return func(opts *signOpts) { diff --git a/jwt/jwt_test.go b/jwt/jwt_test.go index da8cbf8..0293e76 100644 --- a/jwt/jwt_test.go +++ b/jwt/jwt_test.go @@ -6,9 +6,9 @@ import ( "testing" "github.com/alecthomas/assert/v2" - "github.com/tbd54566975/web5-go/dids/didjwk" - "github.com/tbd54566975/web5-go/jws" - "github.com/tbd54566975/web5-go/jwt" + "github.com/decentralized-identity/web5-go/dids/didjwk" + "github.com/decentralized-identity/web5-go/jws" + "github.com/decentralized-identity/web5-go/jwt" ) func TestClaims_MarshalJSON(t *testing.T) { @@ -140,4 +140,4 @@ func Test_Decode_HeaderKID_InvalidDID(t *testing.T) { vcJwt := `eyJhbGciOiJFZERTQSIsImtpZCI6Imtha2EiLCJ0eXAiOiJKV1QifQ.eyJleHAiOjE3MjQ1MzQwNTAsImlzcyI6ImRpZDpqd2s6ZXlKcmRIa2lPaUpQUzFBaUxDSmpjbllpT2lKRlpESTFOVEU1SWl3aWVDSTZJbkY0VjFGS2F6RTJSbWhCZWtOQlRsRktaR1F5UTFkRldrcE9lbXBSYjNGSmRYWk5SbUpVWjFKTVNFRWlmUSIsImp0aSI6InVybjp2Yzp1dWlkOjlkMzdmMzY3LWE4ZDctNDY4Zi05NGYwLTk1NzAxNzBkNzZhNCIsIm5iZiI6MTcyMTk0MjA1MCwidmMiOnsiQGNvbnRleHQiOlsiaHR0cHM6Ly93d3cudzMub3JnLzIwMTgvY3JlZGVudGlhbHMvdjEiXSwidHlwZSI6WyJWZXJpZmlhYmxlQ3JlZGVudGlhbCJdLCJpc3N1ZXIiOiJkaWQ6andrOmV5SnJkSGtpT2lKUFMxQWlMQ0pqY25ZaU9pSkZaREkxTlRFNUlpd2llQ0k2SW5GNFYxRkthekUyUm1oQmVrTkJUbEZLWkdReVExZEZXa3BPZW1wUmIzRkpkWFpOUm1KVVoxSk1TRUVpZlEiLCJjcmVkZW50aWFsU3ViamVjdCI6eyJpc3N1ZXIiOiJkaWQ6andrOmV5SnJkSGtpT2lKUFMxQWlMQ0pqY25ZaU9pSkZaREkxTlRFNUlpd2llQ0k2SW5GNFYxRkthekUyUm1oQmVrTkJUbEZLWkdReVExZEZXa3BPZW1wUmIzRkpkWFpOUm1KVVoxSk1TRUVpZlEifSwiaWQiOiJ1cm46dmM6dXVpZDo5ZDM3ZjM2Ny1hOGQ3LTQ2OGYtOTRmMC05NTcwMTcwZDc2YTQiLCJpc3N1YW5jZURhdGUiOiIyMDI0LTA3LTI1VDIxOjE0OjEwWiIsImV4cGlyYXRpb25EYXRlIjoiMjAyNC0wOC0yNFQyMToxNDoxMFoiLCJjcmVkZW50aWFsU2NoZW1hIjpbeyJ0eXBlIjoiSnNvblNjaGVtYSIsImlkIjoiaHR0cHM6Ly92Yy5zY2hlbWFzLmhvc3Qva2JjLnNjaGVtYS5qc29uIn1dfX0.VwvrU5Lmv3rn9rzXB0OCxe-MtE5R0876pXsXNLRuQjoqSNB5tBv_12NqrobwA-LkMzFwzdQ5-LWJni6grGdXCQ` _, err := jwt.Decode(vcJwt) assert.Error(t, err) -} \ No newline at end of file +} diff --git a/pexv2/pd.go b/pexv2/pd.go index 26d20c4..63fc8ea 100644 --- a/pexv2/pd.go +++ b/pexv2/pd.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" "github.com/PaesslerAG/jsonpath" + "github.com/decentralized-identity/web5-go/vc" "github.com/santhosh-tekuri/jsonschema/v5" - "github.com/tbd54566975/web5-go/vc" "math/rand" "strconv" ) diff --git a/pexv2/pexv2_test.go b/pexv2/pexv2_test.go index eb94f7a..def9e27 100644 --- a/pexv2/pexv2_test.go +++ b/pexv2/pexv2_test.go @@ -5,9 +5,9 @@ import ( "testing" "github.com/alecthomas/assert/v2" + "github.com/decentralized-identity/web5-go" + "github.com/decentralized-identity/web5-go/pexv2" testify "github.com/stretchr/testify/assert" - "github.com/tbd54566975/web5-go" - "github.com/tbd54566975/web5-go/pexv2" ) type PresentationInput struct { diff --git a/vc/examples_test.go b/vc/examples_test.go index e5a0795..85db3f6 100644 --- a/vc/examples_test.go +++ b/vc/examples_test.go @@ -5,8 +5,8 @@ import ( "fmt" "time" - "github.com/tbd54566975/web5-go/dids/didjwk" - "github.com/tbd54566975/web5-go/vc" + "github.com/decentralized-identity/web5-go/dids/didjwk" + "github.com/decentralized-identity/web5-go/vc" ) // Demonstrates how to create, sign, and verify a Verifiable Credential using the vc package. diff --git a/vc/vc.go b/vc/vc.go index 575b992..424a516 100644 --- a/vc/vc.go +++ b/vc/vc.go @@ -4,9 +4,9 @@ import ( "fmt" "time" + "github.com/decentralized-identity/web5-go/dids/did" + "github.com/decentralized-identity/web5-go/jwt" "github.com/google/uuid" - "github.com/tbd54566975/web5-go/dids/did" - "github.com/tbd54566975/web5-go/jwt" ) // these constants are defined in the W3C Verifiable Credential Data Model specification for: diff --git a/vc/vc_test.go b/vc/vc_test.go index d7f6d3f..c1c7f91 100644 --- a/vc/vc_test.go +++ b/vc/vc_test.go @@ -6,8 +6,8 @@ import ( "time" "github.com/alecthomas/assert/v2" - "github.com/tbd54566975/web5-go/dids/didjwk" - "github.com/tbd54566975/web5-go/vc" + "github.com/decentralized-identity/web5-go/dids/didjwk" + "github.com/decentralized-identity/web5-go/vc" ) func TestCreate_Defaults(t *testing.T) { diff --git a/vc/vcjwt.go b/vc/vcjwt.go index 141c981..66fcf13 100644 --- a/vc/vcjwt.go +++ b/vc/vcjwt.go @@ -7,7 +7,7 @@ import ( "slices" "time" - "github.com/tbd54566975/web5-go/jwt" + "github.com/decentralized-identity/web5-go/jwt" ) // Verify decodes and verifies the vc-jwt. It checks for the presence of required fields and verifies the jwt. diff --git a/vc/vcjwt_test.go b/vc/vcjwt_test.go index 5e61793..b87874c 100644 --- a/vc/vcjwt_test.go +++ b/vc/vcjwt_test.go @@ -6,10 +6,10 @@ import ( "time" "github.com/alecthomas/assert/v2" - "github.com/tbd54566975/web5-go" - "github.com/tbd54566975/web5-go/dids/didjwk" - "github.com/tbd54566975/web5-go/jwt" - "github.com/tbd54566975/web5-go/vc" + "github.com/decentralized-identity/web5-go" + "github.com/decentralized-identity/web5-go/dids/didjwk" + "github.com/decentralized-identity/web5-go/jwt" + "github.com/decentralized-identity/web5-go/vc" ) type vector struct {