From 45133e955f138f3acf17bca4c514025da536a928 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Thu, 8 Jan 2026 15:36:21 -0500 Subject: [PATCH] refactor(did): migrate from github.com/MetaMask/go-did-it to code.sonr.org/go/did-it --- did_test.go | 10 +++++----- interfaces.go | 2 +- utilities.go | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/did_test.go b/did_test.go index e4fa1c1..9f987c0 100644 --- a/did_test.go +++ b/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") } } diff --git a/interfaces.go b/interfaces.go index 6c5d6c5..308c5e0 100644 --- a/interfaces.go +++ b/interfaces.go @@ -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. diff --git a/utilities.go b/utilities.go index d3a2474..34c3651 100644 --- a/utilities.go +++ b/utilities.go @@ -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.