Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SmithSamuelM committed Aug 9, 2024
1 parent 5969fd5 commit 837ffff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/keri/core/coring.py
Original file line number Diff line number Diff line change
Expand Up @@ -3407,8 +3407,8 @@ def _derive(clas, sad: dict, *,
ignore (list): fields to ignore when generating SAID
"""
if code not in DigDex or code not in clas.Digests:
raise ValueError("Unsupported digest code = {}.".format(code))
if code not in DigDex:
raise ValueError(f"Unsupported digest {code = }.")

sad = dict(sad) # make shallow copy so don't clobber original sad
# fill id field denoted by label with dummy chars to get size correct
Expand All @@ -3423,8 +3423,8 @@ def _derive(clas, sad: dict, *,

# string now has correct size
# sad as 'v' verision string then use its kind otherwise passed in kind
cpa = [clas._serialize(ser, kind=kind)] # raw pos arg class
return (Diger._digest(ser=cpa[0], code=code), sad) # raw digest and sad
cpa = clas._serialize(ser, kind=kind) # raw pos arg class
return (Diger._digest(ser=cpa, code=code), sad) # raw digest and sad


def derive(self, sad, code=None, **kwa):
Expand Down

0 comments on commit 837ffff

Please sign in to comment.