-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Merkle log support Confirmation status is now an enumerated type. Confirmation logic tests for both CONFIRMED(simple_hash) or COMMITTED (merkle_log). Added suitable unit ahd func tests. Fixes AB#9103
- Loading branch information
Showing
14 changed files
with
401 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"""Archivist Confirmation Status | ||
Enumerated type that allows user to select the confirmation status option when | ||
creating an asset. | ||
""" | ||
|
||
# pylint: disable=unused-private-member | ||
|
||
from enum import Enum | ||
|
||
|
||
class ConfirmationStatus(Enum): | ||
"""Enumerate confirmation status options""" | ||
|
||
UNSPECIFIED = 0 | ||
# not yet committed | ||
PENDING = 1 | ||
CONFIRMED = 2 | ||
# permanent failure | ||
FAILED = 3 | ||
# forestrie, "its in the db" | ||
STORED = 4 | ||
# forestrie, "you can know if its changed" | ||
COMMITTED = 5 | ||
# forestrie, "You easily prove it was publicly available to all" | ||
UNEQUIVOCAL = 6 |
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.