forked from WebOfTrust/keripy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Superseding Delegated Rotation and misfit escrow (WebOfTrust#680)
* renamed tests * created test to test supersedeing logic. Just setting up for now not done. * setting up superseding delegation tests * more work on superseding test * add more to supersede test work, plus some cleanup * added detailed doc string on acceptance rules for delegated events added cleanup of cue triggers * more details in doc string * fixed clarification * added additional doc string language * fixed typo * updated superseding logic to include virtual delegating event when local delegator is processing delegated event acceptance into its local copy of delegatees KEL so as not to corrupt its copy. * updated doc string * more doc string goodness * some refactoring. remaned Kever.delegator to .delpre to follow convention and the uses renamed. * added event source record Komer .esrs subdb to Baser so we can track source of event local or remote * Passing event source to processEvent from all escrow processing routines. Signed-off-by: pfeairheller <[email protected]> * updated doc string for Baser for .esrs subdb * rebasing misfit Signed-off-by: pfeairheller <[email protected]> * Add local persistence to escrowing methods. Signed-off-by: pfeairheller <[email protected]> * added code in Kever to update event source record * changed parser logic to support local * Fix processEscrow events to use correct key for esr Signed-off-by: pfeairheller <[email protected]> * updated keys for .esrs usage * clean up fix merge fail * added misfit event escrow database .mfes as CesrIoSetSuber instance. * habery .__init__ creates its default .psr parser with local = True * added method to Kevery.escrowMFEvent for escrowing misfit events into .mfes * rebasing misfit Signed-off-by: pfeairheller <[email protected]> * fixed unit test and logic for misfit processing * some clean up refactor in Kever. Added local parameter to process receipt methods in Kevery. * some cleanup on doc strings and comments * updated locallyWitnessed to return boolean * Fix tests that parse events with a lax Kevery to now use `local=true` in the call to parse. Signed-off-by: pfeairheller <[email protected]> * removed redundant misfit checks refactored .locallWitnessed method other clean up * removed potentially buggy redundant inject of db.prefixes into Kever.prefixes as attribute and replaced with property that uses .db.prefixes instead * added Baser.gids as oset of Group Hab pres (hids) * changed Baser.mfes to .misfits since CesrIoSetSuber attribute name does not need to match subkey .mfes x * added test for prefix in locallyOwned to not be in db.groups. Changes db.gids to .groups * some refactor of methos names to distinquish processing of the attached equivalent of receipt versus the actual rct messages enabled the new local pass in from parser for rct messages. * added code to filter out local signatures for group messages received remotely (nonlocal not protected) * refactor Kever.locallyOwned to default to self.prefixer.qb64 if no prefix passed in * updated code comment * added cue for remoteMemberedSig to notify when recieving own signature on group multisig event from unprotected source * refactor logic to set stage for delegation escrow to do the approval of delegation by delegator and any sandboxing needed or cues to business logic for approval. * added db Baser.delegables subkey .dees for delegable escrowed events awaiting delegator approval. Still needs processDelegableEscrows but now Kever escrows them * updated comments * rebasing misfit Signed-off-by: pfeairheller <[email protected]> * started changing Number class * more unit texts for Number * added .validate method to Number to validate if number is ordinal * added more tests. Replaced some Seqner usages * cleanup Seqner and tests Added .seqner property to Number and tests * removed validateSN function. replaced with Number.validate * Fix delegator escrow test to match new expectation that delegate have delegator's pre in kevers. Signed-off-by: pfeairheller <[email protected]> * Comment delegation script until kli delegation commands can be fixed. Signed-off-by: pfeairheller <[email protected]> --------- Signed-off-by: pfeairheller <[email protected]> Co-authored-by: Samuel M Smith <[email protected]>
- Loading branch information
1 parent
3e43619
commit 82a202d
Showing
44 changed files
with
2,628 additions
and
873 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.