From 7afa4320bc29b23c6d7120878e768f29cfee7570 Mon Sep 17 00:00:00 2001 From: Philip Feairheller Date: Sun, 25 Feb 2024 18:36:06 -0800 Subject: [PATCH] Hot fixing cloneCreds fix into main. (#691) * Hot fixing cloneCreds fix into main. Signed-off-by: pfeairheller * Rev version number. Signed-off-by: pfeairheller --------- Signed-off-by: pfeairheller --- Makefile | 4 ++-- setup.py | 2 +- src/keri/__init__.py | 2 +- src/keri/vdr/viring.py | 2 +- tests/vdr/test_verifying.py | 6 ++++++ 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index ddc8f7555..72788cab5 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,11 @@ .PHONY: build-keri build-keri: - @docker buildx build --platform=linux/amd64 -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.1 . .PHONY: build-witness-demo build-witness-demo: - @@docker buildx build --platform=linux/amd64 -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.1 . .PHONY: publish-keri publish-keri: diff --git a/setup.py b/setup.py index 7341c6bff..5835cf928 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ from setuptools import find_packages, setup setup( name='keri', - version='1.1.0', # also change in src/keri/__init__.py + version='1.1.1', # also change in src/keri/__init__.py license='Apache Software License 2.0', description='Key Event Receipt Infrastructure', long_description="KERI Decentralized Key Management Infrastructure", diff --git a/src/keri/__init__.py b/src/keri/__init__.py index b2781c6ee..7cc5ea7a4 100644 --- a/src/keri/__init__.py +++ b/src/keri/__init__.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -__version__ = '1.1.0' # also change in setup.py +__version__ = '1.1.1' # also change in setup.py diff --git a/src/keri/vdr/viring.py b/src/keri/vdr/viring.py index 01a1ce676..96eec603a 100644 --- a/src/keri/vdr/viring.py +++ b/src/keri/vdr/viring.py @@ -402,7 +402,7 @@ def cloneCreds(self, saids, db): atc = bytearray(signing.serialize(creder, prefixer, seqner, saider)) del atc[0:creder.size] - iss = bytearray(self.cloneTvtAt(pre=prefixer.qb64, sn=seqner.sn)) + iss = bytearray(self.cloneTvtAt(creder.said)) iserder = serdering.SerderKERI(raw=iss) issatc = bytes(iss[iserder.size:]) diff --git a/tests/vdr/test_verifying.py b/tests/vdr/test_verifying.py index 9a5fbb578..a0e8bbf3c 100644 --- a/tests/vdr/test_verifying.py +++ b/tests/vdr/test_verifying.py @@ -109,6 +109,12 @@ def test_verifier(seeder): saider = regery.reger.schms.get("EMQWEcCnVRk1hatTNyK3sIykYSrrFvafX3bHQ9Gkk1kC") assert saider[0].qb64 == creder.said + # also try it via the cloneCreds function + creds = regery.reger.cloneCreds(saids=saider, db=hab.db) + + for idx, cred in enumerate(creds): + assert dcre.sad == cred["sad"] + """End Test"""