refactor(did): migrate from github.com/MetaMask/go-did-it to code.sonr.org/go/did-it
This commit is contained in:
10
did_test.go
10
did_test.go
@@ -7,9 +7,9 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/MetaMask/go-did-it"
|
||||
"github.com/MetaMask/go-did-it/crypto/x25519"
|
||||
_ "github.com/MetaMask/go-did-it/verifiers/did-key"
|
||||
"code.sonr.org/go/did-it"
|
||||
"code.sonr.org/go/did-it/crypto/x25519"
|
||||
_ "code.sonr.org/go/did-it/verifiers/did-key"
|
||||
)
|
||||
|
||||
func Example_signature() {
|
||||
@@ -92,7 +92,7 @@ func TestHasValidDIDSyntax(t *testing.T) {
|
||||
|
||||
func BenchmarkHasValidDIDSyntax(b *testing.B) {
|
||||
b.ReportAllocs()
|
||||
for i := 0; i < b.N; i++ {
|
||||
for b.Loop() {
|
||||
did.HasValidDIDSyntax("did:example:abc:def:ghi:jkl%20mno%3Apqr%3Astuv")
|
||||
}
|
||||
}
|
||||
@@ -132,7 +132,7 @@ func TestHasValidDidUrlSyntax(t *testing.T) {
|
||||
|
||||
func BenchmarkHasValidDidUrlSyntax(b *testing.B) {
|
||||
b.ReportAllocs()
|
||||
for i := 0; i < b.N; i++ {
|
||||
for b.Loop() {
|
||||
did.HasValidDidUrlSyntax("did:example:123456789abcdefghi/path/to/resource?key=value#section1")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"net/url"
|
||||
|
||||
"github.com/MetaMask/go-did-it/crypto"
|
||||
"code.sonr.org/go/did-it/crypto"
|
||||
)
|
||||
|
||||
// DID is a decoded (i.e. from a string) Decentralized Identifier.
|
||||
|
||||
@@ -3,7 +3,7 @@ package did
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/MetaMask/go-did-it/crypto"
|
||||
"code.sonr.org/go/did-it/crypto"
|
||||
)
|
||||
|
||||
// TryAllVerifyBytes tries to verify the signature as bytes with all the methods in the slice.
|
||||
|
||||
Reference in New Issue
Block a user