refactor(did): migrate from github.com/MetaMask/go-did-it to code.sonr.org/go/did-it
Some checks failed
Go Test / ubuntu (go 1.22.x) (push) Has been cancelled
Go Test / ubuntu (go 1.23.x) (push) Has been cancelled

This commit is contained in:
2026-01-08 15:36:21 -05:00
parent 1be1c0ed97
commit 45133e955f
3 changed files with 7 additions and 7 deletions

View File

@@ -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")
}
}