Skip to content

Commit

Permalink
fixes for latest keripy development branch (WebOfTrust#196)
Browse files Browse the repository at this point in the history
* fixes for latest keripy development branch

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

* uses development KERI

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

---------

Signed-off-by: Kevin Griffin <[email protected]>
  • Loading branch information
m00sey authored Feb 23, 2024
1 parent eddf7bf commit 79af2b8
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
python_requires='>=3.12.1',
install_requires=[
'hio>=0.6.9',
'keri>=1.1.0',
'keri @ git+https://[email protected]/weboftrust/keripy.git@development',
'mnemonic>=0.20',
'multicommand>=1.0.0',
'falcon>=3.1.0',
Expand Down
4 changes: 2 additions & 2 deletions src/keria/app/aiding.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def on_post(req, rep):
# create Hab and incept the key store (if any)
# Generate response, either the serder or a long running operaton indicator for the type
rep.content_type = "application/json"
if hab.kever.delegator:
if hab.kever.delpre:
agent.anchors.append(dict(pre=hab.pre, sn=0))
op = agent.monitor.submit(hab.kever.prefixer.qb64, longrunning.OpTypes.delegation,
metadata=dict(pre=hab.pre, sn=0))
Expand Down Expand Up @@ -537,7 +537,7 @@ def rotate(agent, name, body):

return op

if hab.kever.delegator:
if hab.kever.delpre:
agent.anchors.append(dict(alias=name, pre=hab.pre, sn=serder.sn))
op = agent.monitor.submit(hab.kever.prefixer.qb64, longrunning.OpTypes.delegation,
metadata=dict(pre=hab.pre, sn=serder.sn))
Expand Down
4 changes: 2 additions & 2 deletions src/keria/app/delegating.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def delegation(self, pre, sn=None, proxy=None):

# load the hab of the delegated identifier to anchor
hab = self.hby.habs[pre]
delpre = hab.kever.delegator # get the delegator identifier
delpre = hab.kever.delpre # get the delegator identifier
if delpre not in hab.kevers:
raise kering.ValidationError(f"delegator {delpre} not found, unable to process delegation")

Expand Down Expand Up @@ -126,7 +126,7 @@ def processUnanchoredEscrow(self):
"""
for (pre, said), serder in self.hby.db.dune.getItemIter(): # group partial witness escrow
kever = self.hby.kevers[pre]
dkever = self.hby.kevers[kever.delegator]
dkever = self.hby.kevers[kever.delpre]

seal = dict(i=serder.pre, s=serder.snh, d=serder.said)
if dserder := self.hby.db.findAnchoringSealEvent(dkever.prefixer.qb64, seal=seal):
Expand Down
2 changes: 1 addition & 1 deletion src/keria/testing/testing_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def createRegistry(client, agent, salt, doist, deeds):
baks=[],
toad="0",
nonce=nonce,
cnfg=[eventing.TraitCodex.NoBackers],
cnfg=[eventing.TraitCodex.NoRegistrarBackers],
code=coring.MtrDex.Blake3_256)
anchor = dict(i=regser.ked['i'], s=regser.ked["s"], d=regser.said)
serder, sigers = Helpers.interact(pre=pre, bran=salt, pidx=0, ridx=0, dig=aid['d'], sn='1', data=[anchor])
Expand Down
2 changes: 1 addition & 1 deletion tests/app/test_credentialing.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def test_registry_end(helpers, seeder):
baks=[],
toad="0",
nonce=nonce,
cnfg=[TraitCodex.NoBackers],
cnfg=[TraitCodex.NoRegistrarBackers],
code=coring.MtrDex.Blake3_256)
anchor = dict(i=regser.ked['i'], s=regser.ked["s"], d=regser.said)
serder, sigers = helpers.interact(pre=pre, bran=salt, pidx=0, ridx=0, dig=aid['d'], sn='1', data=[anchor])
Expand Down
2 changes: 1 addition & 1 deletion tests/app/test_ipexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ def test_multisig_grant_admit(seeder, helpers):
baks=[],
toad="0",
nonce=nonce,
cnfg=[eventing.TraitCodex.NoBackers],
cnfg=[eventing.TraitCodex.NoRegistrarBackers],
code=coring.MtrDex.Blake3_256)

anchor = dict(i=regser.ked['i'], s=regser.ked["s"], d=regser.said)
Expand Down

0 comments on commit 79af2b8

Please sign in to comment.