refactor(client): migrate from MetaMask/go-did-it to code.sonr.org/go/did-it

This commit is contained in:
2026-01-08 15:45:49 -05:00
parent 33841ea261
commit 6b9698c1e8
7 changed files with 30 additions and 30 deletions

View File

@@ -5,15 +5,15 @@ import (
"fmt"
"iter"
"github.com/MetaMask/go-did-it"
"github.com/MetaMask/go-did-it/crypto"
"code.sonr.org/go/did-it"
"code.sonr.org/go/did-it/crypto"
"github.com/ipfs/go-cid"
"github.com/ucan-wg/go-ucan/pkg/command"
"github.com/ucan-wg/go-ucan/pkg/container"
"github.com/ucan-wg/go-ucan/pkg/policy"
"github.com/ucan-wg/go-ucan/token/delegation"
"github.com/ucan-wg/go-ucan/token/invocation"
"code.sonr.org/go/ucan/pkg/command"
"code.sonr.org/go/ucan/pkg/container"
"code.sonr.org/go/ucan/pkg/policy"
"code.sonr.org/go/ucan/token/delegation"
"code.sonr.org/go/ucan/token/invocation"
)
type Client struct {

View File

@@ -6,13 +6,13 @@ import (
"iter"
"time"
"github.com/MetaMask/go-did-it"
"github.com/MetaMask/go-did-it/didtest"
"code.sonr.org/go/did-it"
"code.sonr.org/go/did-it/didtest"
"github.com/ucan-wg/go-ucan/pkg/command"
"github.com/ucan-wg/go-ucan/pkg/policy"
"github.com/ucan-wg/go-ucan/token/delegation"
"github.com/ucan-wg/go-ucan/token/invocation"
"code.sonr.org/go/ucan/pkg/command"
"code.sonr.org/go/ucan/pkg/policy"
"code.sonr.org/go/ucan/token/delegation"
"code.sonr.org/go/ucan/token/invocation"
)
func ExampleNewClient() {

View File

@@ -5,12 +5,12 @@ import (
"fmt"
"iter"
"github.com/MetaMask/go-did-it"
"github.com/MetaMask/go-did-it/crypto"
"code.sonr.org/go/did-it"
"code.sonr.org/go/did-it/crypto"
"github.com/ipfs/go-cid"
"github.com/ucan-wg/go-ucan/pkg/command"
"github.com/ucan-wg/go-ucan/token/delegation"
"code.sonr.org/go/ucan/pkg/command"
"code.sonr.org/go/ucan/token/delegation"
)
// DlgIssuingLogic is a function that decides what powers are given to a client.

View File

@@ -6,11 +6,11 @@ import (
"sync"
"time"
"github.com/MetaMask/go-did-it"
"code.sonr.org/go/did-it"
"github.com/ipfs/go-cid"
"github.com/ucan-wg/go-ucan/pkg/command"
"github.com/ucan-wg/go-ucan/token/delegation"
"code.sonr.org/go/ucan/pkg/command"
"code.sonr.org/go/ucan/token/delegation"
)
type Pool struct {

View File

@@ -4,11 +4,11 @@ import (
"iter"
"math"
"github.com/MetaMask/go-did-it"
"code.sonr.org/go/did-it"
"github.com/ipfs/go-cid"
"github.com/ucan-wg/go-ucan/pkg/command"
"github.com/ucan-wg/go-ucan/token/delegation"
"code.sonr.org/go/ucan/pkg/command"
"code.sonr.org/go/ucan/token/delegation"
)
// FindProof find in the pool the best (shortest, smallest in bytes) chain of delegation(s) matching the given invocation parameters.

View File

@@ -4,12 +4,12 @@ import (
"iter"
"testing"
"github.com/MetaMask/go-did-it/didtest"
"code.sonr.org/go/did-it/didtest"
"github.com/stretchr/testify/require"
"github.com/ucan-wg/go-ucan/pkg/command"
"github.com/ucan-wg/go-ucan/token/delegation"
"github.com/ucan-wg/go-ucan/token/delegation/delegationtest"
"code.sonr.org/go/ucan/pkg/command"
"code.sonr.org/go/ucan/token/delegation"
"code.sonr.org/go/ucan/token/delegation/delegationtest"
)
func TestFindProof(t *testing.T) {

View File

@@ -5,11 +5,11 @@ import (
"iter"
"time"
"github.com/MetaMask/go-did-it"
"code.sonr.org/go/did-it"
"github.com/avast/retry-go/v4"
"github.com/ucan-wg/go-ucan/pkg/command"
"github.com/ucan-wg/go-ucan/token/delegation"
"code.sonr.org/go/ucan/pkg/command"
"code.sonr.org/go/ucan/token/delegation"
)
type DelegationRequester interface {