Skip to content

Commit

Permalink
reverted back to SealRoot merkle tree root digest seal
Browse files Browse the repository at this point in the history
  • Loading branch information
SmithSamuelM committed Dec 16, 2023
1 parent 959505a commit 578af32
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, SealBacker,
from keri.core.eventing import (SealDigest, SealRoot, 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 578af32

Please sign in to comment.