mirror of
https://github.com/zap-proto/spec.git
synced 2026-10-30 15:04:03 +00:00
ZAP is brand-neutral; did:lux was a leftover from the Lux/Hanzo extraction. Rename DidMethod::Lux -> Zap / DIDMethod.LUX -> ZAP, the 'lux' method string, from_mldsa_key_lux -> _zap, the blockchain_account_id chain prefix lux: -> zap:, and all did:lux: URIs + tests. No cross-language KAT pins the method string (rns uses a separate DID scheme), so this is safe in lockstep. Rust 19 identity tests + Python 68 identity/consensus tests pass.
25 lines
599 B
Python
25 lines
599 B
Python
"""Pytest configuration and fixtures for ZAP tests."""
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture
|
|
def sample_did():
|
|
"""Create a sample DID for testing."""
|
|
from zap_schema.identity import Did
|
|
return Did(method="zap", id="z6MkTest123")
|
|
|
|
|
|
@pytest.fixture
|
|
def sample_did_key():
|
|
"""Create a sample did:key DID."""
|
|
from zap_schema.identity import Did
|
|
return Did(method="key", id="z6MkTestKey456")
|
|
|
|
|
|
@pytest.fixture
|
|
def sample_query(sample_did):
|
|
"""Create a sample query for testing."""
|
|
from zap_schema.agent_consensus import Query
|
|
return Query.create("What is 2+2?", sample_did)
|