Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sendArtifacts method to use the correct Serder subclass for TEL events. #656

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/keri/core/serdering.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def __init__(self, *, raw=b'', sad=None, strip=False, version=Version,
logger.error("Invalid raw for Serder %s\n%s",
self.pretty(), ex.args[0])
raise ValidationError(f"Invalid raw for Serder = "
f"{self._sad}.") from ex
f"{self._sad}. {ex.args[0]}") from ex

elif sad or makify: # serialize sad into raw or make sad
if makify: # recompute properties and said(s) and reset sad
Expand Down
4 changes: 2 additions & 2 deletions src/keri/peer/exchanging.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def processEvent(self, serder, tsgs=None, cigars=None, **kwargs):
if tsgs is not None:
for prefixer, seqner, ssaider, sigers in tsgs: # iterate over each tsg
if sender != prefixer.qb64: # sig not by aid
raise MissingSignatureError("Exchange process: skipped signature not from aid="
"%s on exn msg=\n%s\n", sender, serder.pretty())
raise MissingSignatureError(f"Exchange process: skipped signature not from aid="
f"{sender}, from {prefixer.qb64} on exn msg=\n{serder.pretty()}\n")

if prefixer.qb64 not in self.kevers or self.kevers[prefixer.qb64].sn < seqner.sn:
if self.escrowPSEvent(serder=serder, tsgs=tsgs, pathed=pathed):
Expand Down
2 changes: 1 addition & 1 deletion src/keri/vdr/credentialing.py
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ def sendArtifacts(hby, reger, postman, creder, recp):
postman.send(serder=serder, attachment=atc)

for msg in reger.clonePreIter(pre=creder.said):
serder = serdering.SerderACDC(raw=msg) # coring.Serder(raw=msg)
serder = serdering.SerderKERI(raw=msg) # coring.Serder(raw=msg)
atc = msg[serder.size:]
postman.send(serder=serder, attachment=atc)

Expand Down
Loading