Skip to content

Commit 837ffff

Browse files
committed
fixed bug
1 parent 5969fd5 commit 837ffff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/keri/core/coring.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3407,8 +3407,8 @@ def _derive(clas, sad: dict, *,
34073407
ignore (list): fields to ignore when generating SAID
34083408
34093409
"""
3410-
if code not in DigDex or code not in clas.Digests:
3411-
raise ValueError("Unsupported digest code = {}.".format(code))
3410+
if code not in DigDex:
3411+
raise ValueError(f"Unsupported digest {code = }.")
34123412

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

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

34293429

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

0 commit comments

Comments
 (0)