Source code for archivist.proof_mechanism

"""Archivist Proof Mechanism

   Enumerated type that allows user to select the proof_mechanism option when
   creating an asset.

"""

# pylint: disable=unused-private-member

from enum import Enum


[docs] class ProofMechanism(Enum): """Enumerate proof mechanism options""" # previously used but now removed __RESERVED = 1 #: Assets and events are proven using a hash of the originator's evidence SIMPLE_HASH = 2 #: Assets and events are proven using a merkle log hash of the originator's evidence MERKLE_LOG = 3