- Rename `par` to `pred` (predecessor) in types, serialization, tests - Remove `pol`, `pol_decision` from core payload; move to `ect_ext` - Remove `sub` from payload (not part of ECT spec) - Update `typ` from `wimse-exec+jwt` to `exec+jwt` (accept both) - Rename MaxParLength to MaxPredLength everywhere - Update testdata, demos, READMEs with migration table - All Go tests pass, all 56 Python tests pass (90% coverage)
56 lines
1.2 KiB
Python
56 lines
1.2 KiB
Python
# WIMSE Execution Context Tokens (ECT) — Python reference implementation
|
|
# draft-nennemann-wimse-execution-context-01
|
|
|
|
from ect.types import (
|
|
ECT_TYPE,
|
|
ECT_TYPE_LEGACY,
|
|
Payload,
|
|
)
|
|
from ect.create import create, generate_key, CreateOptions, default_create_options
|
|
from ect.verify import (
|
|
ParsedECT,
|
|
parse,
|
|
verify,
|
|
VerifyOptions,
|
|
default_verify_options,
|
|
KeyResolver,
|
|
)
|
|
from ect.dag import (
|
|
ECTStore,
|
|
DAGConfig,
|
|
default_dag_config,
|
|
validate_dag,
|
|
)
|
|
from ect.ledger import Ledger, MemoryLedger, LedgerEntry, ErrTaskIDExists
|
|
from ect.config import Config, default_config, load_config_from_env
|
|
from ect.jti_cache import JTICache, new_jti_cache
|
|
|
|
__all__ = [
|
|
"ECT_TYPE",
|
|
"ECT_TYPE_LEGACY",
|
|
"Payload",
|
|
"create",
|
|
"generate_key",
|
|
"CreateOptions",
|
|
"default_create_options",
|
|
"ParsedECT",
|
|
"parse",
|
|
"verify",
|
|
"VerifyOptions",
|
|
"default_verify_options",
|
|
"KeyResolver",
|
|
"ECTStore",
|
|
"DAGConfig",
|
|
"default_dag_config",
|
|
"validate_dag",
|
|
"Ledger",
|
|
"MemoryLedger",
|
|
"LedgerEntry",
|
|
"ErrTaskIDExists",
|
|
"Config",
|
|
"default_config",
|
|
"load_config_from_env",
|
|
"JTICache",
|
|
"new_jti_cache",
|
|
]
|