mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
feat(integrations): add opt-in AURA trust adapter (#2026)
Adds a read-only opt-in AURA trust-check adapter. Synthetic merge passed validators and 22 AURA offline tests via uvx pytest.
This commit is contained in:
parent
c2b3899685
commit
1d72dfb2d5
7 changed files with 650 additions and 0 deletions
36
integrations/aura/__init__.py
Normal file
36
integrations/aura/__init__.py
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
"""
|
||||
AURA trust-check adapter — opt-in, read-only counterparty reputation.
|
||||
|
||||
from aura import before_settle, AuraUntrusted
|
||||
|
||||
try:
|
||||
before_settle(counterparty_did)
|
||||
settle_payment(counterparty_did, amount)
|
||||
except AuraUntrusted as e:
|
||||
abort(str(e))
|
||||
|
||||
Zero dependencies (pure stdlib). Does not sign, hold keys, or move funds.
|
||||
See README.md for the enable section and THREAT_MODEL.md for the boundary.
|
||||
"""
|
||||
|
||||
from .adapter import (
|
||||
DEFAULT_ALLOW,
|
||||
DEFAULT_BASE_URL,
|
||||
AuraUntrusted,
|
||||
AuraVerdict,
|
||||
aura_verdict,
|
||||
before_settle,
|
||||
require_trust,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"aura_verdict",
|
||||
"before_settle",
|
||||
"require_trust",
|
||||
"AuraVerdict",
|
||||
"AuraUntrusted",
|
||||
"DEFAULT_BASE_URL",
|
||||
"DEFAULT_ALLOW",
|
||||
]
|
||||
|
||||
__version__ = "0.1.0"
|
||||
Loading…
Add table
Add a link
Reference in a new issue