Skip to content

Commit

Permalink
fix: correct package name (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas authored Dec 16, 2024
1 parent 75c0585 commit 473f33e
Show file tree
Hide file tree
Showing 59 changed files with 169 additions and 169 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: TBD54566975/web5-go
slug: decentralized-identity/web5-go
lint:
name: Lint
timeout-minutes: 10
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "web5-spec"]
path = web5-spec
url = [email protected]:TBD54566975/web5-spec.git
url = [email protected]:decentralized-identity/web5-spec.git
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 [email protected]:TBD54566975/web5-go.git
git clone --recurse-submodules [email protected]:decentralized-identity/web5-go.git
```

If you've already cloned, add submodules:
Expand Down
8 changes: 4 additions & 4 deletions cmd/web5/cmd_did_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion cmd/web5/cmd_did_resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"

"github.com/tbd54566975/web5-go/dids"
"github.com/decentralized-identity/web5-go/dids"
)

type didResolveCMD struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/web5/cmd_jwt_decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"

"github.com/tbd54566975/web5-go/jwt"
"github.com/decentralized-identity/web5-go/jwt"
)

type jwtDecodeCMD struct {
Expand Down
4 changes: 2 additions & 2 deletions cmd/web5/cmd_jwt_sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion cmd/web5/cmd_jwt_verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"

"github.com/tbd54566975/web5-go/jwt"
"github.com/decentralized-identity/web5-go/jwt"
)

type jwtVerifyCMD struct {
Expand Down
4 changes: 2 additions & 2 deletions cmd/web5/cmd_vc_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions cmd/web5/cmd_vc_sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion cmd/web5/cmd_vcjwt_decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"

"github.com/tbd54566975/web5-go/vc"
"github.com/decentralized-identity/web5-go/vc"
)

type vcjwtDecodeCMD struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/web5/cmd_vcjwt_verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"

"github.com/tbd54566975/web5-go/vc"
"github.com/decentralized-identity/web5-go/vc"
)

type vcjwtVerifyCMD struct {
Expand Down
8 changes: 4 additions & 4 deletions crypto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ 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

import (
"fmt"

"github.com/tbd54566975/web5-go/crypto/dsa"
"github.com/decentralized-identity/web5-go/crypto/dsa"
)

func main() {
Expand All @@ -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() {
Expand Down Expand Up @@ -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() {
Expand Down
6 changes: 3 additions & 3 deletions crypto/dsa/dsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
10 changes: 5 additions & 5 deletions crypto/dsa/dsa_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/dsa/ecdsa/ecdsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"fmt"

"github.com/tbd54566975/web5-go/jwk"
"github.com/decentralized-identity/web5-go/jwk"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion crypto/dsa/ecdsa/secp256k1.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
8 changes: 4 additions & 4 deletions crypto/dsa/ecdsa/secp256k1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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)
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion crypto/dsa/eddsa/ed25519.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"errors"
"fmt"

"github.com/tbd54566975/web5-go/jwk"
"github.com/decentralized-identity/web5-go/jwk"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions crypto/dsa/eddsa/ed25519_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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)
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion crypto/dsa/eddsa/eddsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"errors"
"fmt"

"github.com/tbd54566975/web5-go/jwk"
"github.com/decentralized-identity/web5-go/jwk"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion crypto/entropy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions crypto/keymanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions crypto/keymanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
18 changes: 9 additions & 9 deletions dids/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ package main

import (
"fmt"
"github.com/tbd54566975/web5-go/didjwk"
"github.com/decentralized-identity/web5-go/didjwk"
)

func main() {
Expand All @@ -81,7 +81,7 @@ package main

import (
"fmt"
"github.com/tbd54566975/web5-go/didjwk"
"github.com/decentralized-identity/web5-go/didjwk"
)

func main() {
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -213,7 +213,7 @@ package main

import (
"fmt"
"github.com/tbd54566975/web5-go/did"
"github.com/decentralized-identity/web5-go/did"
)

func main() {
Expand Down
Loading

0 comments on commit 473f33e

Please sign in to comment.