Skip to content

Commit

Permalink
Enable did:jwk resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
reinkrul committed Aug 11, 2023
1 parent e167fd3 commit c26bcc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vdr/didjwk/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ import (
"github.com/lestrrat-go/jwx/jwk"
)

// MethodName is the name of this DID method.
const MethodName = "jwk"

var _ types.DIDResolver = (*Resolver)(nil)

// Resolver is a DID resolver for the did:jwk method.
Expand Down
2 changes: 2 additions & 0 deletions vdr/vdr.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (
"fmt"
"github.com/nuts-foundation/nuts-node/crypto/hash"
"github.com/nuts-foundation/nuts-node/storage"
"github.com/nuts-foundation/nuts-node/vdr/didjwk"
"github.com/nuts-foundation/nuts-node/vdr/didnuts"
didnutsStore "github.com/nuts-foundation/nuts-node/vdr/didnuts/didstore"
"github.com/nuts-foundation/nuts-node/vdr/didservice"
Expand Down Expand Up @@ -99,6 +100,7 @@ func (r *VDR) Configure(_ core.ServerConfig) error {
// Register DID methods
r.didResolver.Register(didnuts.MethodName, &didnuts.Resolver{Store: r.store})
r.didResolver.Register(didweb.MethodName, didweb.NewResolver())
r.didResolver.Register(didjwk.MethodName, didjwk.NewResolver())

// Initiate the routines for auto-updating the data.
r.networkAmbassador.Configure()
Expand Down

0 comments on commit c26bcc3

Please sign in to comment.