Skip to content

Commit

Permalink
shell.Shell replaced with schemaloaders.IPFSClient interface
Browse files Browse the repository at this point in the history
  • Loading branch information
demonsh committed Oct 4, 2024
1 parent f812590 commit 75523f6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import (
"github.com/iden3/iden3comm/v2"
"github.com/iden3/iden3comm/v2/packers"
"github.com/iden3/iden3comm/v2/protocol"
shell "github.com/ipfs/go-ipfs-api"
"github.com/piprate/json-gold/ld"
"github.com/pkg/errors"
)
Expand Down Expand Up @@ -117,7 +116,7 @@ func WithDocumentLoader(docLoader ld.DocumentLoader) VerifierOption {
// WithIPFSClient sets the IPFS client for document loader of Verifier instance.
// If document loader is set with WithDocumentLoader function, this option is
// ignored.
func WithIPFSClient(ipfsCli *shell.Shell) VerifierOption {
func WithIPFSClient(ipfsCli schemaloaders.IPFSClient) VerifierOption {
return func(opts *verifierOpts) {
opts.ipfsCli = ipfsCli
}
Expand All @@ -142,7 +141,7 @@ func WithDIDResolver(resolver packers.DIDResolverHandlerFunc) VerifierOption {

type verifierOpts struct {
docLoader ld.DocumentLoader
ipfsCli *shell.Shell
ipfsCli schemaloaders.IPFSClient
ipfsGW string
didResolver packers.DIDResolverHandlerFunc
}
Expand Down Expand Up @@ -639,7 +638,7 @@ func findProofByRequestID(arr []protocol.ZeroKnowledgeProofResponse, id uint32)
return nil
}

func getDocumentLoader(docLoader ld.DocumentLoader, ipfsCli *shell.Shell,
func getDocumentLoader(docLoader ld.DocumentLoader, ipfsCli schemaloaders.IPFSClient,
ipfsGW string) ld.DocumentLoader {

if docLoader != nil {
Expand Down

0 comments on commit 75523f6

Please sign in to comment.