Skip to content

Commit

Permalink
cleans up some usage of coring.serder (WebOfTrust#790)
Browse files Browse the repository at this point in the history
* cleans up some usage of coring.serder

Signed-off-by: Kevin Griffin <[email protected]>

* cleans up some usage of coring.serder

Signed-off-by: Kevin Griffin <[email protected]>

---------

Signed-off-by: Kevin Griffin <[email protected]>
  • Loading branch information
m00sey authored and kentbull committed Jul 8, 2024
1 parent 7d24e8f commit e49c48b
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/keri/app/cli/commands/delegate/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def requestDo(self, tymth, tock=0.0):
exn, atc = delegating.delegateRequestExn(hab.mhab, delpre=delpre, evt=bytes(evt), aids=hab.smids)

# delegate AID ICP and exn of delegation request EXN
srdr = serdering.SerderKERI(raw=evt) # coring.Serder(raw=evt)
srdr = serdering.SerderKERI(raw=evt)
del evt[:srdr.size]
self.postman.send(src=phab.pre, dest=delpre, topic="delegate", serder=srdr, attachment=evt)
self.postman.send(src=phab.pre, dest=hab.kever.delpre, topic="delegate", serder=exn, attachment=atc)
Expand Down
2 changes: 1 addition & 1 deletion src/keri/app/cli/commands/ipex/grant.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def grantDo(self, tymth, tock=0.0):

iss = self.rgy.reger.cloneTvtAt(creder.said)

iserder = serdering.SerderKERI(raw=bytes(iss)) # coring.Serder(raw=bytes(iss))
iserder = serdering.SerderKERI(raw=bytes(iss))
seqner = coring.Seqner(sn=iserder.sn)

serder = self.hby.db.findAnchoringSealEvent(creder.sad['i'],
Expand Down
2 changes: 1 addition & 1 deletion src/keri/app/cli/commands/vc/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def createDo(self, tymth, tock=0.0):
else:
anc = hab.interact(data=[rseal])

aserder = serdering.SerderKERI(raw=anc) # coring.Serder(raw=anc)
aserder = serdering.SerderKERI(raw=anc)
self.credentialer.issue(self.creder, iserder)
self.registrar.issue(self.creder, iserder, aserder)

Expand Down
2 changes: 1 addition & 1 deletion src/keri/app/cli/commands/vc/registry/incept.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def inceptDo(self, tymth, tock=0.0, **kwa):
else:
anc = hab.interact(data=[rseal])

aserder = serdering.SerderKERI(raw=bytes(anc)) # coring.Serder(raw=bytes(anc))
aserder = serdering.SerderKERI(raw=bytes(anc))
self.registrar.incept(iserder=registry.vcp, anc=aserder)

if isinstance(hab, GroupHab):
Expand Down
4 changes: 2 additions & 2 deletions src/keri/app/grouping.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def multisigInceptExn(hab, smids, rmids, icp, delegator=None):
"""
rmids = rmids if rmids is not None else smids
serder = serdering.SerderKERI(raw=icp) # coring.Serder(raw=icp)
serder = serdering.SerderKERI(raw=icp)
data = dict(
gid=serder.pre,
smids=smids,
Expand Down Expand Up @@ -585,7 +585,7 @@ def add(self, serder):
events so that any addition signatures can be processed.
Parameters:
serder (coring.Serder): peer-to-peer exn "/multisig" message to coordinate from other participants
serder (serdering.SerderKERI): peer-to-peer exn "/multisig" message to coordinate from other participants
Returns:
Expand Down
2 changes: 1 addition & 1 deletion src/keri/app/habbing.py
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ class BaseHab:
kevers (dict): of eventing.Kever instances from KELs in local db
keyed by qb64 prefix. Read through cache of of kevers of states for
KELs in db.states
iserder (coring.Serder): own inception event
iserder (serdering.SerderKERI): own inception event
prefixes (OrderedSet): local prefixes for .db
accepted (bool): True means accepted into local KEL.
False otherwise
Expand Down
2 changes: 1 addition & 1 deletion src/keri/app/notifying.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def getItemIter(self, keys: Union[str, Iterable] = b""):
keys (tuple): of key strs to be combined in order to form key
Returns:
iterator: of tuples of keys tuple and val coring.Serder for
iterator: of tuples of keys tuple and val serdering.SerderKERI for
each entry in db
"""
Expand Down
8 changes: 4 additions & 4 deletions src/keri/vdr/credentialing.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ def sendArtifacts(hby, reger, postman, creder, recp):
postman.send(serder=serder, attachment=atc)

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

Expand All @@ -999,16 +999,16 @@ def sendRegistry(hby, reger, postman, creder, sender, recp):

ikever = hby.db.kevers[issr]
for msg in hby.db.cloneDelegation(ikever):
serder = serdering.SerderKERI(raw=msg) # coring.Serder(raw=msg)
serder = serdering.SerderKERI(raw=msg)
atc = msg[serder.size:]
postman.send(serder=serder, attachment=atc)

for msg in hby.db.clonePreIter(pre=issr):
serder = serdering.SerderKERI(raw=msg) # coring.Serder(raw=msg)
serder = serdering.SerderKERI(raw=msg)
atc = msg[serder.size:]
postman.send(serder=serder, attachment=atc)

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

0 comments on commit e49c48b

Please sign in to comment.