Skip to content

Commit

Permalink
Fix reference to .saider in delegation
Browse files Browse the repository at this point in the history
Signed-off-by: pfeairheller <[email protected]>
  • Loading branch information
pfeairheller committed Dec 7, 2023
1 parent b0e65d4 commit 243b578
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

.PHONY: build-keri
build-keri:
@docker buildx build --platform=linux/amd64 --no-cache -f images/keripy.dockerfile --tag weboftrust/keri:1.1.0 .
@docker buildx build --platform=linux/amd64 -f images/keripy.dockerfile --tag weboftrust/keri:1.1.0 .

.PHONY: build-witness-demo
build-witness-demo:
@@docker buildx build --platform=linux/amd64 --no-cache -f images/witness.demo.dockerfile --tag weboftrust/keri-witness-demo:1.1.0 .
@@docker buildx build --platform=linux/amd64 -f images/witness.demo.dockerfile --tag weboftrust/keri-witness-demo:1.1.0 .

.PHONY: publish-keri
publish-keri:
Expand Down
2 changes: 1 addition & 1 deletion src/keri/app/cli/commands/multisig/join.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def rotate(self, attrs):
prefixer = coring.Prefixer(qb64=ghab.pre)
seqner = coring.Seqner(sn=serder.sn)

yield from self.startCounselor(ghab, prefixer, seqner, serder.saider)
yield from self.startCounselor(ghab, prefixer, seqner, coring.Saider(qb64=serder.said))

print()
displaying.printIdentifier(self.hby, ghab.pre)
Expand Down
2 changes: 1 addition & 1 deletion src/keri/app/cli/commands/multisig/rotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def rotateDo(self, tymth, tock=0.0, **opts):
serder=exn,
attachment=bytearray(ims))

self.counselor.start(ghab=ghab, prefixer=prefixer, seqner=seqner, saider=rserder.saider)
self.counselor.start(ghab=ghab, prefixer=prefixer, seqner=seqner, saider=coring.Saider(qb64=rserder.said))

while True:
saider = self.hby.db.cgms.get(keys=(ghab.pre, seqner.qb64))
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 @@ -225,7 +225,7 @@ def createDo(self, tymth, tock=0.0):
self.registrar.issue(self.creder, iserder, aserder)

acdc = signing.serialize(self.creder, coring.Prefixer(qb64=iserder.pre), coring.Seqner(sn=iserder.sn),
iserder.saider)
coring.Saider(qb64=iserder.said))

if isinstance(self.hab, habbing.GroupHab):
smids = self.hab.db.signingMembers(pre=self.hab.pre)
Expand Down
2 changes: 1 addition & 1 deletion src/keri/app/delegating.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def processPartialWitnessEscrow(self):
continue
print(f"Witness receipts complete, {pre} confirmed.")
self.hby.db.dpwe.rem(keys=(pre, said))
self.hby.db.cdel.put(keys=(pre, seqner.qb64), val=serder.saider)
self.hby.db.cdel.put(keys=(pre, seqner.qb64), val=coring.Saider(qb64=serder.said))


def loadHandlers(hby, exc, notifier):
Expand Down
2 changes: 1 addition & 1 deletion src/keri/core/eventing.py
Original file line number Diff line number Diff line change
Expand Up @@ -4494,7 +4494,7 @@ def processEscrowPartialSigs(self):
srdr = self.db.findAnchoringEvent(pre=delpre, anchor=anchor)
if srdr is not None:
delseqner = coring.Seqner(sn=srdr.sn)
delsaider = srdr.saider
delsaider = coring.Saider(qb64=srdr.said)
couple = delseqner.qb64b + delsaider.qb64b
self.db.putPde(dgkey, couple)

Expand Down
7 changes: 4 additions & 3 deletions src/keri/vdr/credentialing.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def issue(self, said, dt=None):
if self.noBackers:
serder = eventing.issue(vcdig=said, regk=self.regk, dt=dt)
else:
serder = eventing.backerIssue(vcdig=said, regk=self.regk, regsn=self.regi, regd=self.regser.saider.qb64,
serder = eventing.backerIssue(vcdig=said, regk=self.regk, regsn=self.regi, regd=self.regser.said,
dt=dt)

self.processEvent(serder=serder)
Expand Down Expand Up @@ -473,7 +473,7 @@ def revoke(self, said, dt=None):
if self.noBackers:
serder = eventing.revoke(vcdig=vci, regk=self.regk, dig=iserder.said, dt=dt)
else:
serder = eventing.backerRevoke(vcdig=vci, regk=self.regk, regsn=self.regi, regd=self.regser.saider.qb64,
serder = eventing.backerRevoke(vcdig=vci, regk=self.regk, regsn=self.regi, regd=self.regser.said,
dig=iserder.said, dt=dt)

self.processEvent(serder=serder)
Expand Down Expand Up @@ -831,7 +831,8 @@ def issue(self, creder, serder):
self.rgy.reger.cmse.put(keys=(creder.said, seqner.qb64), val=creder)

try:
self.verifier.processCredential(creder=creder, prefixer=prefixer, seqner=seqner, saider=serder.saider)
self.verifier.processCredential(creder=creder, prefixer=prefixer, seqner=seqner,
saider=coring.Saider(qb64=serder.said))
except kering.MissingRegistryError:
pass

Expand Down

0 comments on commit 243b578

Please sign in to comment.