mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-11 17:43:12 +00:00
16 lines
414 B
Python
16 lines
414 B
Python
"""
|
|
This module defines the Constraint interface.
|
|
|
|
Constraints are the predicates that must be satisfied in order to destroy or create a note.
|
|
|
|
The logic of a constraint is implemented in a ZK Circuit, and then wrapped in a python interface
|
|
for interacting with the rest of the the system.
|
|
"""
|
|
|
|
from dataclasses import dataclass
|
|
|
|
|
|
class Constraint:
|
|
def hash(self) -> bytes:
|
|
raise NotImplementedError()
|