Skip to content

Commit

Permalink
Transform stored file to did:web
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Sabadello <[email protected]>
  • Loading branch information
peacekeeper committed Oct 6, 2023
1 parent 8f221f2 commit 3b7349a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dkr/app/cli/commands/did/webs/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def generate(self, tymth, tock=0.0, **opts):

dd_file_path = os.path.join(dd_dir_path, f"{webbing.DID_JSON}")
ddf = open(dd_file_path, "w")
json.dump(diddoc, ddf)
json.dump(didding.toDidWeb(diddoc), ddf)

kever = self.hby.kevers[aid]

Expand Down
2 changes: 1 addition & 1 deletion src/dkr/app/cli/commands/did/webs/resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def resolve(self, tymth, tock=0.0, **opts):
# Load the did doc
dd_url = f"{base_url}/{webbing.DID_JSON}"
print(f"Loading DID Doc from {dd_url}")
dd_actual = json.loads(self.loadUrl(dd_url).decode("utf-8"))
dd_actual = didding.fromDidWeb(json.loads(self.loadUrl(dd_url).decode("utf-8")))

# Load the KERI CESR
kc_url = f"{base_url}/{webbing.KERI_CESR}"
Expand Down

0 comments on commit 3b7349a

Please sign in to comment.