Skip to content

Commit

Permalink
remove SealRoot in hindsight its redundant to plain SealDigest becaus…
Browse files Browse the repository at this point in the history
…e they are both digests and one does not know what they are a digest of without extra information. So

differentiating the type of digest at the seal level is unneccessary.
  • Loading branch information
SmithSamuelM committed Dec 14, 2023
1 parent 22a6327 commit 959505a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/keri/core/eventing.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __iter__(self):

# Root Seal: uniple (rd,)
# rd = Merkle tree root digest qb64 digest of anchored (sealed) data in Merkle tree
SealRoot = namedtuple("SealRoot", 'rd')
#SealRoot = namedtuple("SealRoot", 'rd')

# Backer Seal: couple (bi, d)
# bi = pre qb64 backer nontrans identifier prefix
Expand Down
14 changes: 7 additions & 7 deletions tests/core/test_eventing.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Seqner, Verfer, Signer, Prefixer,
generateSigners, IdxSigDex, DigDex)
from keri.core.eventing import Kever, Kevery
from keri.core.eventing import (SealDigest, SealRoot, SealBacker,
from keri.core.eventing import (SealDigest, SealBacker,
SealEvent, SealLast, StateEvent, StateEstEvent)
from keri.core.eventing import (TraitDex, LastEstLoc, Serials, versify,
simple, ample)
Expand Down Expand Up @@ -615,12 +615,12 @@ def test_seals_states():
assert seal._asdict() == dict(d='E12345')
assert seal._fields == ('d',)

seal = SealRoot(rd='EABCDE')
assert isinstance(seal, SealRoot)
assert 'EABCDE' in seal
assert seal.rd == 'EABCDE'
assert seal._asdict() == dict(rd='EABCDE')
assert seal._fields == ('rd',)
#seal = SealRoot(rd='EABCDE')
#assert isinstance(seal, SealRoot)
#assert 'EABCDE' in seal
#assert seal.rd == 'EABCDE'
#assert seal._asdict() == dict(rd='EABCDE')
#assert seal._fields == ('rd',)

seal = SealBacker(bi='B4321', d='EABCDE')
assert isinstance(seal, SealBacker)
Expand Down

0 comments on commit 959505a

Please sign in to comment.