diff --git a/resources/go-did concepts.png b/.github/concepts.png
similarity index 100%
rename from resources/go-did concepts.png
rename to .github/concepts.png
diff --git a/Readme.md b/Readme.md
index 99816f0..a18abd6 100644
--- a/Readme.md
+++ b/Readme.md
@@ -1,20 +1,20 @@
-
go-did
+
go-did-it
-
-
+
+
-
-
+
+
-
+
-
+
-
+
@@ -27,10 +27,8 @@ This is an implementation of Decentralized Identifiers (DIDs) in go. It differs
- **support producing and using DIDs**: unlike some others, this all-in-one implementation is meant to create, manipulate and handle DIDs
- **extensible**: you can easily register your custom DID method
-DID spec concepts:
+Built with ❤️ by [Consensys](https://consensys.io/).
-
+## Concepts
-`go-did` concepts:
-
-
\ No newline at end of file
+
diff --git a/crypto/_allkeys/allkeys.go b/crypto/_allkeys/allkeys.go
index 1f6d31e..7bf3267 100644
--- a/crypto/_allkeys/allkeys.go
+++ b/crypto/_allkeys/allkeys.go
@@ -3,15 +3,15 @@ package allkeys
import (
"fmt"
- "github.com/INFURA/go-did/crypto"
- "github.com/INFURA/go-did/crypto/ed25519"
- helpers "github.com/INFURA/go-did/crypto/internal"
- "github.com/INFURA/go-did/crypto/p256"
- "github.com/INFURA/go-did/crypto/p384"
- "github.com/INFURA/go-did/crypto/p521"
- "github.com/INFURA/go-did/crypto/rsa"
- "github.com/INFURA/go-did/crypto/secp256k1"
- "github.com/INFURA/go-did/crypto/x25519"
+ "github.com/ucan-wg/go-did-it/crypto"
+ "github.com/ucan-wg/go-did-it/crypto/ed25519"
+ helpers "github.com/ucan-wg/go-did-it/crypto/internal"
+ "github.com/ucan-wg/go-did-it/crypto/p256"
+ "github.com/ucan-wg/go-did-it/crypto/p384"
+ "github.com/ucan-wg/go-did-it/crypto/p521"
+ "github.com/ucan-wg/go-did-it/crypto/rsa"
+ "github.com/ucan-wg/go-did-it/crypto/secp256k1"
+ "github.com/ucan-wg/go-did-it/crypto/x25519"
)
var decoders = map[uint64]func(b []byte) (crypto.PublicKey, error){
diff --git a/crypto/_testsuite/testsuite.go b/crypto/_testsuite/testsuite.go
index 0ecdb38..df78bab 100644
--- a/crypto/_testsuite/testsuite.go
+++ b/crypto/_testsuite/testsuite.go
@@ -10,7 +10,7 @@ import (
"github.com/multiformats/go-varint"
"github.com/stretchr/testify/require"
- "github.com/INFURA/go-did/crypto"
+ "github.com/ucan-wg/go-did-it/crypto"
)
type TestHarness[PubT crypto.PublicKey, PrivT crypto.PrivateKey] struct {
diff --git a/crypto/ed25519/key_test.go b/crypto/ed25519/key_test.go
index 2b962a8..51c3d6b 100644
--- a/crypto/ed25519/key_test.go
+++ b/crypto/ed25519/key_test.go
@@ -3,8 +3,8 @@ package ed25519
import (
"testing"
- "github.com/INFURA/go-did/crypto"
- "github.com/INFURA/go-did/crypto/_testsuite"
+ "github.com/ucan-wg/go-did-it/crypto"
+ "github.com/ucan-wg/go-did-it/crypto/_testsuite"
)
var harness = testsuite.TestHarness[PublicKey, PrivateKey]{
diff --git a/crypto/ed25519/private.go b/crypto/ed25519/private.go
index 12b462b..d0e23aa 100644
--- a/crypto/ed25519/private.go
+++ b/crypto/ed25519/private.go
@@ -8,7 +8,7 @@ import (
"golang.org/x/crypto/cryptobyte"
- "github.com/INFURA/go-did/crypto"
+ "github.com/ucan-wg/go-did-it/crypto"
)
var _ crypto.PrivateKeySigningBytes = &PrivateKey{}
diff --git a/crypto/ed25519/public.go b/crypto/ed25519/public.go
index e9824e6..6a43ee1 100644
--- a/crypto/ed25519/public.go
+++ b/crypto/ed25519/public.go
@@ -9,8 +9,8 @@ import (
"golang.org/x/crypto/cryptobyte"
- "github.com/INFURA/go-did/crypto"
- "github.com/INFURA/go-did/crypto/internal"
+ "github.com/ucan-wg/go-did-it/crypto"
+ "github.com/ucan-wg/go-did-it/crypto/internal"
)
var _ crypto.PublicKeySigningBytes = PublicKey{}
diff --git a/crypto/jwk/private.go b/crypto/jwk/private.go
index 227412e..cb76a66 100644
--- a/crypto/jwk/private.go
+++ b/crypto/jwk/private.go
@@ -5,14 +5,14 @@ import (
"encoding/json"
"fmt"
- "github.com/INFURA/go-did/crypto"
- "github.com/INFURA/go-did/crypto/ed25519"
- "github.com/INFURA/go-did/crypto/p256"
- "github.com/INFURA/go-did/crypto/p384"
- "github.com/INFURA/go-did/crypto/p521"
- "github.com/INFURA/go-did/crypto/rsa"
- "github.com/INFURA/go-did/crypto/secp256k1"
- "github.com/INFURA/go-did/crypto/x25519"
+ "github.com/ucan-wg/go-did-it/crypto"
+ "github.com/ucan-wg/go-did-it/crypto/ed25519"
+ "github.com/ucan-wg/go-did-it/crypto/p256"
+ "github.com/ucan-wg/go-did-it/crypto/p384"
+ "github.com/ucan-wg/go-did-it/crypto/p521"
+ "github.com/ucan-wg/go-did-it/crypto/rsa"
+ "github.com/ucan-wg/go-did-it/crypto/secp256k1"
+ "github.com/ucan-wg/go-did-it/crypto/x25519"
)
type PrivateJwk struct {
diff --git a/crypto/jwk/public.go b/crypto/jwk/public.go
index da76d7b..41a92c5 100644
--- a/crypto/jwk/public.go
+++ b/crypto/jwk/public.go
@@ -5,14 +5,14 @@ import (
"encoding/json"
"fmt"
- "github.com/INFURA/go-did/crypto"
- "github.com/INFURA/go-did/crypto/ed25519"
- "github.com/INFURA/go-did/crypto/p256"
- "github.com/INFURA/go-did/crypto/p384"
- "github.com/INFURA/go-did/crypto/p521"
- "github.com/INFURA/go-did/crypto/rsa"
- "github.com/INFURA/go-did/crypto/secp256k1"
- "github.com/INFURA/go-did/crypto/x25519"
+ "github.com/ucan-wg/go-did-it/crypto"
+ "github.com/ucan-wg/go-did-it/crypto/ed25519"
+ "github.com/ucan-wg/go-did-it/crypto/p256"
+ "github.com/ucan-wg/go-did-it/crypto/p384"
+ "github.com/ucan-wg/go-did-it/crypto/p521"
+ "github.com/ucan-wg/go-did-it/crypto/rsa"
+ "github.com/ucan-wg/go-did-it/crypto/secp256k1"
+ "github.com/ucan-wg/go-did-it/crypto/x25519"
)
// Specification:
diff --git a/crypto/p256/key_test.go b/crypto/p256/key_test.go
index cd48c4d..6ee10de 100644
--- a/crypto/p256/key_test.go
+++ b/crypto/p256/key_test.go
@@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/require"
- "github.com/INFURA/go-did/crypto"
- "github.com/INFURA/go-did/crypto/_testsuite"
+ "github.com/ucan-wg/go-did-it/crypto"
+ "github.com/ucan-wg/go-did-it/crypto/_testsuite"
)
var harness = testsuite.TestHarness[*PublicKey, *PrivateKey]{
diff --git a/crypto/p256/private.go b/crypto/p256/private.go
index b921fec..dc36d07 100644
--- a/crypto/p256/private.go
+++ b/crypto/p256/private.go
@@ -9,7 +9,7 @@ import (
"fmt"
"math/big"
- "github.com/INFURA/go-did/crypto"
+ "github.com/ucan-wg/go-did-it/crypto"
)
var _ crypto.PrivateKeySigningBytes = &PrivateKey{}
diff --git a/crypto/p256/public.go b/crypto/p256/public.go
index 38403fd..7625427 100644
--- a/crypto/p256/public.go
+++ b/crypto/p256/public.go
@@ -8,8 +8,8 @@ import (
"fmt"
"math/big"
- "github.com/INFURA/go-did/crypto"
- helpers "github.com/INFURA/go-did/crypto/internal"
+ "github.com/ucan-wg/go-did-it/crypto"
+ helpers "github.com/ucan-wg/go-did-it/crypto/internal"
)
var _ crypto.PublicKeySigningBytes = &PublicKey{}
diff --git a/crypto/p384/key_test.go b/crypto/p384/key_test.go
index 50613b5..5c131d5 100644
--- a/crypto/p384/key_test.go
+++ b/crypto/p384/key_test.go
@@ -3,8 +3,8 @@ package p384
import (
"testing"
- "github.com/INFURA/go-did/crypto"
- "github.com/INFURA/go-did/crypto/_testsuite"
+ "github.com/ucan-wg/go-did-it/crypto"
+ "github.com/ucan-wg/go-did-it/crypto/_testsuite"
)
var harness = testsuite.TestHarness[*PublicKey, *PrivateKey]{
diff --git a/crypto/p384/private.go b/crypto/p384/private.go
index ddbd255..dd30a1c 100644
--- a/crypto/p384/private.go
+++ b/crypto/p384/private.go
@@ -9,7 +9,7 @@ import (
"fmt"
"math/big"
- "github.com/INFURA/go-did/crypto"
+ "github.com/ucan-wg/go-did-it/crypto"
)
var _ crypto.PrivateKeySigningBytes = &PrivateKey{}
diff --git a/crypto/p384/public.go b/crypto/p384/public.go
index 646e120..2b3a03f 100644
--- a/crypto/p384/public.go
+++ b/crypto/p384/public.go
@@ -8,8 +8,8 @@ import (
"fmt"
"math/big"
- "github.com/INFURA/go-did/crypto"
- helpers "github.com/INFURA/go-did/crypto/internal"
+ "github.com/ucan-wg/go-did-it/crypto"
+ helpers "github.com/ucan-wg/go-did-it/crypto/internal"
)
var _ crypto.PublicKeySigningBytes = &PublicKey{}
diff --git a/crypto/p521/key_test.go b/crypto/p521/key_test.go
index 5e65c6e..15e6f26 100644
--- a/crypto/p521/key_test.go
+++ b/crypto/p521/key_test.go
@@ -3,8 +3,8 @@ package p521
import (
"testing"
- "github.com/INFURA/go-did/crypto"
- "github.com/INFURA/go-did/crypto/_testsuite"
+ "github.com/ucan-wg/go-did-it/crypto"
+ "github.com/ucan-wg/go-did-it/crypto/_testsuite"
)
var harness = testsuite.TestHarness[*PublicKey, *PrivateKey]{
diff --git a/crypto/p521/private.go b/crypto/p521/private.go
index b8e8621..f4ceb1d 100644
--- a/crypto/p521/private.go
+++ b/crypto/p521/private.go
@@ -9,7 +9,7 @@ import (
"fmt"
"math/big"
- "github.com/INFURA/go-did/crypto"
+ "github.com/ucan-wg/go-did-it/crypto"
)
var _ crypto.PrivateKeySigningBytes = &PrivateKey{}
diff --git a/crypto/p521/public.go b/crypto/p521/public.go
index 36d1235..0f6d933 100644
--- a/crypto/p521/public.go
+++ b/crypto/p521/public.go
@@ -8,8 +8,8 @@ import (
"fmt"
"math/big"
- "github.com/INFURA/go-did/crypto"
- helpers "github.com/INFURA/go-did/crypto/internal"
+ "github.com/ucan-wg/go-did-it/crypto"
+ helpers "github.com/ucan-wg/go-did-it/crypto/internal"
)
var _ crypto.PublicKeySigningBytes = &PublicKey{}
diff --git a/crypto/rsa/key.go b/crypto/rsa/key.go
index c60a88b..6c66fd6 100644
--- a/crypto/rsa/key.go
+++ b/crypto/rsa/key.go
@@ -5,7 +5,7 @@ import (
"crypto/rsa"
"fmt"
- "github.com/INFURA/go-did/crypto"
+ "github.com/ucan-wg/go-did-it/crypto"
)
const (
diff --git a/crypto/rsa/key_test.go b/crypto/rsa/key_test.go
index afa5a3f..fe249d6 100644
--- a/crypto/rsa/key_test.go
+++ b/crypto/rsa/key_test.go
@@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/require"
- "github.com/INFURA/go-did/crypto"
- "github.com/INFURA/go-did/crypto/_testsuite"
+ "github.com/ucan-wg/go-did-it/crypto"
+ "github.com/ucan-wg/go-did-it/crypto/_testsuite"
)
var harness2048 = testsuite.TestHarness[*PublicKey, *PrivateKey]{
diff --git a/crypto/rsa/private.go b/crypto/rsa/private.go
index 7346bb9..0560fe8 100644
--- a/crypto/rsa/private.go
+++ b/crypto/rsa/private.go
@@ -9,7 +9,7 @@ import (
"fmt"
"math/big"
- "github.com/INFURA/go-did/crypto"
+ "github.com/ucan-wg/go-did-it/crypto"
)
var _ crypto.PrivateKeySigningASN1 = &PrivateKey{}
diff --git a/crypto/rsa/public.go b/crypto/rsa/public.go
index 6bd685d..b122226 100644
--- a/crypto/rsa/public.go
+++ b/crypto/rsa/public.go
@@ -8,8 +8,8 @@ import (
"fmt"
"math/big"
- "github.com/INFURA/go-did/crypto"
- helpers "github.com/INFURA/go-did/crypto/internal"
+ "github.com/ucan-wg/go-did-it/crypto"
+ helpers "github.com/ucan-wg/go-did-it/crypto/internal"
)
var _ crypto.PublicKeySigningASN1 = &PublicKey{}
diff --git a/crypto/secp256k1/key_test.go b/crypto/secp256k1/key_test.go
index 9e204f4..72edad8 100644
--- a/crypto/secp256k1/key_test.go
+++ b/crypto/secp256k1/key_test.go
@@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/require"
- "github.com/INFURA/go-did/crypto"
- "github.com/INFURA/go-did/crypto/_testsuite"
+ "github.com/ucan-wg/go-did-it/crypto"
+ "github.com/ucan-wg/go-did-it/crypto/_testsuite"
)
var harness = testsuite.TestHarness[*PublicKey, *PrivateKey]{
diff --git a/crypto/secp256k1/private.go b/crypto/secp256k1/private.go
index 64552df..a9f292a 100644
--- a/crypto/secp256k1/private.go
+++ b/crypto/secp256k1/private.go
@@ -9,7 +9,7 @@ import (
"github.com/decred/dcrd/dcrec/secp256k1/v4"
"github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa"
- "github.com/INFURA/go-did/crypto"
+ "github.com/ucan-wg/go-did-it/crypto"
)
var _ crypto.PrivateKeySigningBytes = &PrivateKey{}
diff --git a/crypto/secp256k1/public.go b/crypto/secp256k1/public.go
index b4b3927..97477a0 100644
--- a/crypto/secp256k1/public.go
+++ b/crypto/secp256k1/public.go
@@ -9,8 +9,8 @@ import (
"github.com/decred/dcrd/dcrec/secp256k1/v4"
"github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa"
- "github.com/INFURA/go-did/crypto"
- helpers "github.com/INFURA/go-did/crypto/internal"
+ "github.com/ucan-wg/go-did-it/crypto"
+ helpers "github.com/ucan-wg/go-did-it/crypto/internal"
)
var _ crypto.PublicKeySigningBytes = &PublicKey{}
diff --git a/crypto/x25519/key_test.go b/crypto/x25519/key_test.go
index 95ec9e8..a0de228 100644
--- a/crypto/x25519/key_test.go
+++ b/crypto/x25519/key_test.go
@@ -5,8 +5,8 @@ import (
"github.com/stretchr/testify/require"
- "github.com/INFURA/go-did/crypto/_testsuite"
- "github.com/INFURA/go-did/crypto/ed25519"
+ "github.com/ucan-wg/go-did-it/crypto/_testsuite"
+ "github.com/ucan-wg/go-did-it/crypto/ed25519"
)
var harness = testsuite.TestHarness[*PublicKey, *PrivateKey]{
diff --git a/crypto/x25519/private.go b/crypto/x25519/private.go
index 56291a7..f7a49ca 100644
--- a/crypto/x25519/private.go
+++ b/crypto/x25519/private.go
@@ -7,8 +7,8 @@ import (
"encoding/pem"
"fmt"
- "github.com/INFURA/go-did/crypto"
- "github.com/INFURA/go-did/crypto/ed25519"
+ "github.com/ucan-wg/go-did-it/crypto"
+ "github.com/ucan-wg/go-did-it/crypto/ed25519"
)
var _ crypto.PrivateKeyKeyExchange = (*PrivateKey)(nil)
diff --git a/crypto/x25519/public.go b/crypto/x25519/public.go
index 6abdcee..8b89e3c 100644
--- a/crypto/x25519/public.go
+++ b/crypto/x25519/public.go
@@ -7,9 +7,9 @@ import (
"fmt"
"math/big"
- "github.com/INFURA/go-did/crypto"
- "github.com/INFURA/go-did/crypto/ed25519"
- helpers "github.com/INFURA/go-did/crypto/internal"
+ "github.com/ucan-wg/go-did-it/crypto"
+ "github.com/ucan-wg/go-did-it/crypto/ed25519"
+ helpers "github.com/ucan-wg/go-did-it/crypto/internal"
)
var _ crypto.PublicKey = (*PublicKey)(nil)
diff --git a/design.md b/design.md
index e0cd3f3..ddf5b8b 100644
--- a/design.md
+++ b/design.md
@@ -6,7 +6,7 @@ General:
- coding style should be clean, straightforward and documented, in a similar fashion as go-ucan.
- keep the dependencies minimal, favor the standard go libraries
- code should be decently tested and profiled
-- specifications and test vectors used MUST be referenced in a comment
+- specifications and test vectors origins used MUST be referenced in a comment
- if something differs from a specification, it should be documented and explained
- consider how an average user will read and understand your code, rather than how you read it
@@ -17,16 +17,3 @@ DIDs:
Crypto:
- a user of the library shouldn't have to know or care about the underlying crypto to use it "server side" (signature verification, key agreement). Thus, it should be abstracted behind the VerificationMethod interfaces.
- for each, we should expose some generally useful functions to handle private keys (generation, marshalling...)
-
-## Minimal target features
-
-Methods:
-- did:key
-- did:pkh
-
-Verification Methods:
-- ed25519
-- x25519
-- secp256k1
-- p256
-- p384
\ No newline at end of file
diff --git a/did_test.go b/did_test.go
index 73ab8f1..685cfb7 100644
--- a/did_test.go
+++ b/did_test.go
@@ -7,9 +7,9 @@ import (
"github.com/stretchr/testify/require"
- "github.com/INFURA/go-did"
- "github.com/INFURA/go-did/crypto/x25519"
- _ "github.com/INFURA/go-did/methods/did-key"
+ "github.com/ucan-wg/go-did-it"
+ "github.com/ucan-wg/go-did-it/crypto/x25519"
+ _ "github.com/ucan-wg/go-did-it/methods/did-key"
)
func Example_signature() {
diff --git a/document/document.go b/document/document.go
index e6451f1..fdbb78e 100644
--- a/document/document.go
+++ b/document/document.go
@@ -7,8 +7,8 @@ import (
"io"
"net/url"
- "github.com/INFURA/go-did"
- "github.com/INFURA/go-did/verifications"
+ "github.com/ucan-wg/go-did-it"
+ "github.com/ucan-wg/go-did-it/verifications"
)
var _ did.Document = &Document{}
diff --git a/document/document_test.go b/document/document_test.go
index ff193f7..7f3d156 100644
--- a/document/document_test.go
+++ b/document/document_test.go
@@ -6,10 +6,10 @@ import (
"github.com/stretchr/testify/require"
- _ "github.com/INFURA/go-did/methods/did-key"
- "github.com/INFURA/go-did/verifications/ed25519"
- "github.com/INFURA/go-did/verifications/jsonwebkey"
- "github.com/INFURA/go-did/verifications/x25519"
+ _ "github.com/ucan-wg/go-did-it/methods/did-key"
+ "github.com/ucan-wg/go-did-it/verifications/ed25519"
+ "github.com/ucan-wg/go-did-it/verifications/jsonwebkey"
+ "github.com/ucan-wg/go-did-it/verifications/x25519"
)
func TestRoundTrip(t *testing.T) {
diff --git a/go.mod b/go.mod
index 28283bd..dadedf9 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/INFURA/go-did
+module github.com/ucan-wg/go-did-it
go 1.23.0
diff --git a/interfaces.go b/interfaces.go
index 4878f62..a4ec466 100644
--- a/interfaces.go
+++ b/interfaces.go
@@ -4,7 +4,7 @@ import (
"encoding/json"
"net/url"
- "github.com/INFURA/go-did/crypto"
+ "github.com/ucan-wg/go-did-it/crypto"
)
// DID is a decoded (i.e. from a string) Decentralized Identifier.
diff --git a/methods/did-key/document.go b/methods/did-key/document.go
index b592326..78703dc 100644
--- a/methods/did-key/document.go
+++ b/methods/did-key/document.go
@@ -4,7 +4,7 @@ import (
"encoding/json"
"net/url"
- "github.com/INFURA/go-did"
+ "github.com/ucan-wg/go-did-it"
)
var _ did.Document = &document{}
diff --git a/methods/did-key/document_test.go b/methods/did-key/document_test.go
index c11ffc1..e085bb7 100644
--- a/methods/did-key/document_test.go
+++ b/methods/did-key/document_test.go
@@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/require"
- "github.com/INFURA/go-did"
- "github.com/INFURA/go-did/methods/did-key/testvectors"
+ "github.com/ucan-wg/go-did-it"
+ "github.com/ucan-wg/go-did-it/methods/did-key/testvectors"
)
func TestDocument(t *testing.T) {
diff --git a/methods/did-key/key.go b/methods/did-key/key.go
index 9710b8e..ae92a5f 100644
--- a/methods/did-key/key.go
+++ b/methods/did-key/key.go
@@ -4,22 +4,22 @@ import (
"fmt"
"strings"
- "github.com/INFURA/go-did"
- "github.com/INFURA/go-did/crypto"
- allkeys "github.com/INFURA/go-did/crypto/_allkeys"
- "github.com/INFURA/go-did/crypto/ed25519"
- "github.com/INFURA/go-did/crypto/p256"
- "github.com/INFURA/go-did/crypto/p384"
- "github.com/INFURA/go-did/crypto/p521"
- "github.com/INFURA/go-did/crypto/rsa"
- "github.com/INFURA/go-did/crypto/secp256k1"
- "github.com/INFURA/go-did/crypto/x25519"
- "github.com/INFURA/go-did/verifications/ed25519"
- "github.com/INFURA/go-did/verifications/jsonwebkey"
- "github.com/INFURA/go-did/verifications/multikey"
- p256vm "github.com/INFURA/go-did/verifications/p256"
- secp256k1vm "github.com/INFURA/go-did/verifications/secp256k1"
- "github.com/INFURA/go-did/verifications/x25519"
+ "github.com/ucan-wg/go-did-it"
+ "github.com/ucan-wg/go-did-it/crypto"
+ allkeys "github.com/ucan-wg/go-did-it/crypto/_allkeys"
+ "github.com/ucan-wg/go-did-it/crypto/ed25519"
+ "github.com/ucan-wg/go-did-it/crypto/p256"
+ "github.com/ucan-wg/go-did-it/crypto/p384"
+ "github.com/ucan-wg/go-did-it/crypto/p521"
+ "github.com/ucan-wg/go-did-it/crypto/rsa"
+ "github.com/ucan-wg/go-did-it/crypto/secp256k1"
+ "github.com/ucan-wg/go-did-it/crypto/x25519"
+ "github.com/ucan-wg/go-did-it/verifications/ed25519"
+ "github.com/ucan-wg/go-did-it/verifications/jsonwebkey"
+ "github.com/ucan-wg/go-did-it/verifications/multikey"
+ p256vm "github.com/ucan-wg/go-did-it/verifications/p256"
+ secp256k1vm "github.com/ucan-wg/go-did-it/verifications/secp256k1"
+ "github.com/ucan-wg/go-did-it/verifications/x25519"
)
// Specification: https://w3c-ccg.github.io/did-method-key/
diff --git a/methods/did-key/key_test.go b/methods/did-key/key_test.go
index b39574f..1431834 100644
--- a/methods/did-key/key_test.go
+++ b/methods/did-key/key_test.go
@@ -7,9 +7,9 @@ import (
"github.com/stretchr/testify/require"
- "github.com/INFURA/go-did"
- "github.com/INFURA/go-did/crypto/ed25519"
- didkey "github.com/INFURA/go-did/methods/did-key"
+ "github.com/ucan-wg/go-did-it"
+ "github.com/ucan-wg/go-did-it/crypto/ed25519"
+ didkey "github.com/ucan-wg/go-did-it/methods/did-key"
)
func ExampleGenerateKeyPair() {
diff --git a/methods/did-key/testvectors/vectors.go b/methods/did-key/testvectors/vectors.go
index a10f0e0..1958d16 100644
--- a/methods/did-key/testvectors/vectors.go
+++ b/methods/did-key/testvectors/vectors.go
@@ -8,15 +8,15 @@ import (
"github.com/mr-tron/base58"
- "github.com/INFURA/go-did/crypto"
- "github.com/INFURA/go-did/crypto/ed25519"
- "github.com/INFURA/go-did/crypto/jwk"
- "github.com/INFURA/go-did/crypto/p256"
- "github.com/INFURA/go-did/crypto/secp256k1"
- ed25519vm "github.com/INFURA/go-did/verifications/ed25519"
- "github.com/INFURA/go-did/verifications/jsonwebkey"
- p256vm "github.com/INFURA/go-did/verifications/p256"
- secp256k1vm "github.com/INFURA/go-did/verifications/secp256k1"
+ "github.com/ucan-wg/go-did-it/crypto"
+ "github.com/ucan-wg/go-did-it/crypto/ed25519"
+ "github.com/ucan-wg/go-did-it/crypto/jwk"
+ "github.com/ucan-wg/go-did-it/crypto/p256"
+ "github.com/ucan-wg/go-did-it/crypto/secp256k1"
+ ed25519vm "github.com/ucan-wg/go-did-it/verifications/ed25519"
+ "github.com/ucan-wg/go-did-it/verifications/jsonwebkey"
+ p256vm "github.com/ucan-wg/go-did-it/verifications/p256"
+ secp256k1vm "github.com/ucan-wg/go-did-it/verifications/secp256k1"
)
// Origin: https://github.com/w3c-ccg/did-key-spec/tree/main/test-vectors
diff --git a/resources/did_brief_architecture_overview.svg b/resources/did_brief_architecture_overview.svg
deleted file mode 100644
index 90d095f..0000000
--- a/resources/did_brief_architecture_overview.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/utilities.go b/utilities.go
index 020ace1..1883e93 100644
--- a/utilities.go
+++ b/utilities.go
@@ -3,7 +3,7 @@ package did
import (
"fmt"
- "github.com/INFURA/go-did/crypto"
+ "github.com/ucan-wg/go-did-it/crypto"
)
// TryAllVerify tries to verify the signature with all the methods in the slice.
diff --git a/verifications/ed25519/VerificationKey2018.go b/verifications/ed25519/VerificationKey2018.go
index e7e9c1c..edb87d9 100644
--- a/verifications/ed25519/VerificationKey2018.go
+++ b/verifications/ed25519/VerificationKey2018.go
@@ -7,8 +7,8 @@ import (
"github.com/mr-tron/base58"
- "github.com/INFURA/go-did"
- "github.com/INFURA/go-did/crypto/ed25519"
+ "github.com/ucan-wg/go-did-it"
+ "github.com/ucan-wg/go-did-it/crypto/ed25519"
)
// Specification: https://w3c-ccg.github.io/lds-ed25519-2018/
diff --git a/verifications/ed25519/VerificationKey2018_test.go b/verifications/ed25519/VerificationKey2018_test.go
index 0ed276d..bb41f37 100644
--- a/verifications/ed25519/VerificationKey2018_test.go
+++ b/verifications/ed25519/VerificationKey2018_test.go
@@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require"
- ed25519vm "github.com/INFURA/go-did/verifications/ed25519"
+ ed25519vm "github.com/ucan-wg/go-did-it/verifications/ed25519"
)
func TestJsonRoundTrip2018(t *testing.T) {
diff --git a/verifications/ed25519/VerificationKey2020.go b/verifications/ed25519/VerificationKey2020.go
index e524e3b..50eb2fc 100644
--- a/verifications/ed25519/VerificationKey2020.go
+++ b/verifications/ed25519/VerificationKey2020.go
@@ -5,8 +5,8 @@ import (
"errors"
"fmt"
- "github.com/INFURA/go-did"
- "github.com/INFURA/go-did/crypto/ed25519"
+ "github.com/ucan-wg/go-did-it"
+ "github.com/ucan-wg/go-did-it/crypto/ed25519"
)
// Specification: https://w3c.github.io/cg-reports/credentials/CG-FINAL-di-eddsa-2020-20220724/
diff --git a/verifications/ed25519/VerificationKey2020_test.go b/verifications/ed25519/VerificationKey2020_test.go
index 47ba3e9..2ca2da2 100644
--- a/verifications/ed25519/VerificationKey2020_test.go
+++ b/verifications/ed25519/VerificationKey2020_test.go
@@ -7,10 +7,10 @@ import (
"github.com/stretchr/testify/require"
- "github.com/INFURA/go-did"
- "github.com/INFURA/go-did/crypto/ed25519"
- _ "github.com/INFURA/go-did/methods/did-key"
- "github.com/INFURA/go-did/verifications/ed25519"
+ "github.com/ucan-wg/go-did-it"
+ "github.com/ucan-wg/go-did-it/crypto/ed25519"
+ _ "github.com/ucan-wg/go-did-it/methods/did-key"
+ "github.com/ucan-wg/go-did-it/verifications/ed25519"
)
func TestJsonRoundTrip2020(t *testing.T) {
diff --git a/verifications/json.go b/verifications/json.go
index 43a0f2c..c4ef030 100644
--- a/verifications/json.go
+++ b/verifications/json.go
@@ -4,13 +4,13 @@ import (
"encoding/json"
"fmt"
- "github.com/INFURA/go-did"
- "github.com/INFURA/go-did/verifications/ed25519"
- "github.com/INFURA/go-did/verifications/jsonwebkey"
- "github.com/INFURA/go-did/verifications/multikey"
- p256vm "github.com/INFURA/go-did/verifications/p256"
- secp256k1vm "github.com/INFURA/go-did/verifications/secp256k1"
- "github.com/INFURA/go-did/verifications/x25519"
+ "github.com/ucan-wg/go-did-it"
+ "github.com/ucan-wg/go-did-it/verifications/ed25519"
+ "github.com/ucan-wg/go-did-it/verifications/jsonwebkey"
+ "github.com/ucan-wg/go-did-it/verifications/multikey"
+ p256vm "github.com/ucan-wg/go-did-it/verifications/p256"
+ secp256k1vm "github.com/ucan-wg/go-did-it/verifications/secp256k1"
+ "github.com/ucan-wg/go-did-it/verifications/x25519"
)
func UnmarshalJSON(data []byte) (did.VerificationMethod, error) {
diff --git a/verifications/jsonwebkey/JsonWebKey2020.go b/verifications/jsonwebkey/JsonWebKey2020.go
index ddc1c7f..3c6454d 100644
--- a/verifications/jsonwebkey/JsonWebKey2020.go
+++ b/verifications/jsonwebkey/JsonWebKey2020.go
@@ -4,9 +4,9 @@ import (
"encoding/json"
"errors"
- "github.com/INFURA/go-did"
- "github.com/INFURA/go-did/crypto"
- "github.com/INFURA/go-did/crypto/jwk"
+ "github.com/ucan-wg/go-did-it"
+ "github.com/ucan-wg/go-did-it/crypto"
+ "github.com/ucan-wg/go-did-it/crypto/jwk"
)
// Specification:
diff --git a/verifications/multikey/multikey.go b/verifications/multikey/multikey.go
index 1ef1207..bb5b1ec 100644
--- a/verifications/multikey/multikey.go
+++ b/verifications/multikey/multikey.go
@@ -5,9 +5,9 @@ import (
"errors"
"fmt"
- "github.com/INFURA/go-did"
- "github.com/INFURA/go-did/crypto"
- allkeys "github.com/INFURA/go-did/crypto/_allkeys"
+ "github.com/ucan-wg/go-did-it"
+ "github.com/ucan-wg/go-did-it/crypto"
+ allkeys "github.com/ucan-wg/go-did-it/crypto/_allkeys"
)
// Specification: https://www.w3.org/TR/cid-1.0/#Multikey
diff --git a/verifications/multikey/multikey_test.go b/verifications/multikey/multikey_test.go
index 84383a3..14bb77c 100644
--- a/verifications/multikey/multikey_test.go
+++ b/verifications/multikey/multikey_test.go
@@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/require"
- _ "github.com/INFURA/go-did/methods/did-key"
- "github.com/INFURA/go-did/verifications/multikey"
+ _ "github.com/ucan-wg/go-did-it/methods/did-key"
+ "github.com/ucan-wg/go-did-it/verifications/multikey"
)
func TestJsonRoundTrip(t *testing.T) {
diff --git a/verifications/p256/key2021.go b/verifications/p256/key2021.go
index ed13b24..f8453c4 100644
--- a/verifications/p256/key2021.go
+++ b/verifications/p256/key2021.go
@@ -7,9 +7,9 @@ import (
"github.com/mr-tron/base58"
- "github.com/INFURA/go-did"
- "github.com/INFURA/go-did/crypto"
- "github.com/INFURA/go-did/crypto/p256"
+ "github.com/ucan-wg/go-did-it"
+ "github.com/ucan-wg/go-did-it/crypto"
+ "github.com/ucan-wg/go-did-it/crypto/p256"
)
// Specification: missing
diff --git a/verifications/p256/key2021_test.go b/verifications/p256/key2021_test.go
index f82a9a1..6dacd0c 100644
--- a/verifications/p256/key2021_test.go
+++ b/verifications/p256/key2021_test.go
@@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require"
- p256vm "github.com/INFURA/go-did/verifications/p256"
+ p256vm "github.com/ucan-wg/go-did-it/verifications/p256"
)
func TestJsonRoundTrip(t *testing.T) {
diff --git a/verifications/secp256k1/VerificationKey2019.go b/verifications/secp256k1/VerificationKey2019.go
index dc3b3fd..beaae30 100644
--- a/verifications/secp256k1/VerificationKey2019.go
+++ b/verifications/secp256k1/VerificationKey2019.go
@@ -7,9 +7,9 @@ import (
"github.com/mr-tron/base58"
- "github.com/INFURA/go-did"
- "github.com/INFURA/go-did/crypto"
- "github.com/INFURA/go-did/crypto/secp256k1"
+ "github.com/ucan-wg/go-did-it"
+ "github.com/ucan-wg/go-did-it/crypto"
+ "github.com/ucan-wg/go-did-it/crypto/secp256k1"
)
// Specification: https://w3c-ccg.github.io/lds-ecdsa-secp256k1-2019/
diff --git a/verifications/secp256k1/VerificationKey2019_test.go b/verifications/secp256k1/VerificationKey2019_test.go
index 19515e0..2ecca83 100644
--- a/verifications/secp256k1/VerificationKey2019_test.go
+++ b/verifications/secp256k1/VerificationKey2019_test.go
@@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require"
- secp256k1vm "github.com/INFURA/go-did/verifications/secp256k1"
+ secp256k1vm "github.com/ucan-wg/go-did-it/verifications/secp256k1"
)
func TestJsonRoundTrip(t *testing.T) {
diff --git a/verifications/x25519/KeyAgreementKey2019.go b/verifications/x25519/KeyAgreementKey2019.go
index 3988c06..0ed89ca 100644
--- a/verifications/x25519/KeyAgreementKey2019.go
+++ b/verifications/x25519/KeyAgreementKey2019.go
@@ -7,9 +7,9 @@ import (
"github.com/mr-tron/base58"
- "github.com/INFURA/go-did"
- "github.com/INFURA/go-did/crypto"
- "github.com/INFURA/go-did/crypto/x25519"
+ "github.com/ucan-wg/go-did-it"
+ "github.com/ucan-wg/go-did-it/crypto"
+ "github.com/ucan-wg/go-did-it/crypto/x25519"
)
// Specification: https://github.com/digitalbazaar/x25519-key-agreement-key-2019
diff --git a/verifications/x25519/KeyAgreementKey2019_test.go b/verifications/x25519/KeyAgreementKey2019_test.go
index a5a6088..1baf13f 100644
--- a/verifications/x25519/KeyAgreementKey2019_test.go
+++ b/verifications/x25519/KeyAgreementKey2019_test.go
@@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require"
- x25519vm "github.com/INFURA/go-did/verifications/x25519"
+ x25519vm "github.com/ucan-wg/go-did-it/verifications/x25519"
)
func TestJsonRoundTrip2019(t *testing.T) {
diff --git a/verifications/x25519/KeyAgreementKey2020.go b/verifications/x25519/KeyAgreementKey2020.go
index eedf1f0..faaf18a 100644
--- a/verifications/x25519/KeyAgreementKey2020.go
+++ b/verifications/x25519/KeyAgreementKey2020.go
@@ -5,9 +5,9 @@ import (
"errors"
"fmt"
- "github.com/INFURA/go-did"
- "github.com/INFURA/go-did/crypto"
- "github.com/INFURA/go-did/crypto/x25519"
+ "github.com/ucan-wg/go-did-it"
+ "github.com/ucan-wg/go-did-it/crypto"
+ "github.com/ucan-wg/go-did-it/crypto/x25519"
)
// Specification: https://w3c-ccg.github.io/did-method-key/#ed25519-x25519
diff --git a/verifications/x25519/KeyAgreementKey2020_test.go b/verifications/x25519/KeyAgreementKey2020_test.go
index e03dac2..f366ee8 100644
--- a/verifications/x25519/KeyAgreementKey2020_test.go
+++ b/verifications/x25519/KeyAgreementKey2020_test.go
@@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require"
- x25519vm "github.com/INFURA/go-did/verifications/x25519"
+ x25519vm "github.com/ucan-wg/go-did-it/verifications/x25519"
)
func TestJsonRoundTrip2020(t *testing.T) {