nuts-foundation/nuts-node

View on GitHub
vcr/holder/sql_wallet.go

Summary

Maintainability
A
1 hr
Test Coverage
B
85%

Function NewSQLWallet has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    keyResolver resolver.KeyResolver, keyStore crypto.KeyStore, verifier verifier.Verifier, jsonldManager jsonld.JSONLD,
    storageEngine storage.Engine) Wallet {
Severity: Minor
Found in vcr/holder/sql_wallet.go - About 35 mins to fix

    Method sqlWallet.BuildPresentation has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func (h sqlWallet) BuildPresentation(ctx context.Context, credentials []vc.VerifiableCredential, options PresentationOptions, signerDID *did.DID, validateVC bool) (*vc.VerifiablePresentation, error) {
    Severity: Minor
    Found in vcr/holder/sql_wallet.go - About 35 mins to fix

      Method sqlWallet.BuildSubmission has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      func (h sqlWallet) BuildSubmission(ctx context.Context, walletDID did.DID, presentationDefinition pe.PresentationDefinition, acceptedFormats map[string]map[string][]string, params BuildParams) (*vc.VerifiablePresentation, *pe.PresentationSubmission, error) {
      Severity: Minor
      Found in vcr/holder/sql_wallet.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status