WebOfTrust / keripy

Key Event Receipt Infrastructure - the spec and implementation of the KERI protocol
https://keripy.readthedocs.io/en/latest/
Apache License 2.0
59 stars 55 forks source link

Replace single Matter value (not couple triple etc) sub abs in Baser with MatterSuber for MatterDupSuber instances #51

Open SmithSamuelM opened 3 years ago

SmithSamuelM commented 3 years ago

Currently Baser as several databases whose value is a single qb64 encoded value of a Matter subclass instance. These databases can be replaced with an instance of either MatterSuber or MatterDupSuber as appropriate. This should clean up the associated code because the Suber instances handle the conversion to from Matter automatically and also simplify the logic for catching missing entries in the DB with None returned versus a memoryview.

SmithSamuelM commented 3 years ago

Likewise the sub dbs that store a Serder serialization can be replaced with SerderSuber instance