Deterministic default resolution for XLS-66 lending vaults on the XRP Ledger
Project description
Ward Protocol
ward_signed = False — always.Ward constructs unsigned transactions. Institutions sign. XRPL settles. Ward is never a counterparty, never a custodian, never a signatory.
Overview
Ward Protocol is the open specification for deterministic default resolution for institutional lending vaults on the XRP Ledger (XLS-66 amendment in validator voting). When a borrower defaults, nine on-chain checks run automatically against live ledger state — no oracle, no human judgment, no Ward signature. The outcome is the same every time, for every institution.
wardprotocol.org | wardprotocol.org/assurance | wardprotocol.org/demo
Live Status
| Metric | Value |
|---|---|
| SDK Version | v0.2.9 |
| Hosted API | api.wardprotocol.org — live |
| Python Tests | 634/634 passing (3.10 · 3.11 · 3.12) |
| Rust Tests | 22/22 passing |
| TypeScript Tests | 53/53 passing |
| Critical Path Coverage | 92% |
| Formal Invariants | 32 (TLA+ verified) |
| Open CVEs | 0 |
| XRPLF Standard | Discussion #474 — active |
The Nine Checks
| Step | Check |
|---|---|
| 1 | NFT existence + taxon 281 (XLS-20) |
| 2 | Policy validity — ledger close_time + on-chain premium payment |
| 3 | Vault address binding — NFT metadata vault == defaulted vault |
| 4 | LSF_LOAN_DEFAULT flag on LedgerEntry(index=loan_id) |
| 5 | Vault loss > 0 drops |
| 6 | Pool usable balance >= vault loss (balance - XRPL reserve) |
| 7 | Replay protection — NFT still live (burn-on-settlement) |
| 8 | Claimant holds NFT — AccountNFTs(account=claimant) |
| 9 | Pool solvency + rate limit (<=3/NFT/300s, ratio >=1.5x) |
Install
pip install ward-protocol # Python SDK
npm install @wardprotocol/sdk # TypeScript SDK
Hosted API: https://api.wardprotocol.org
Quick Start
import asyncio
from ward import WardClient, ClaimValidator
# Validate a default claim — 9 steps, all on-chain
validator = ClaimValidator(url="https://s.altnet.rippletest.net:51234/")
claim = await validator.validate_claim(
claimant_address="rClaimantXXX...",
nft_token_id="A" * 64,
defaulted_vault="rVaultXXX...",
loan_id="B" * 64,
pool_address="rPoolXXX...",
)
print(claim.approved) # True
print(claim.steps_passed) # 9
print(claim.ward_signed) # False — always
Multi-Chain
| Chain | Status | Notes |
|---|---|---|
| XRPL | Live | Altnet confirmed, mainnet at XLS-66 activation |
| Solana | In development | Devnet environment provisioned |
| Stellar | Roadmap | Soroban scoped, Q3 2026 |
| Flare | Roadmap | FDC integration scoped |
| XDC | Roadmap | Compatibility assessment underway |
| Polygon | Roadmap | EVM adapter scoped |
| Algorand | Roadmap | SDK provisioned |
| XRPL EVM | Roadmap | EVM sidechain scoped |
Running Tests
# Python (634 tests)
pip install -r requirements.txt
python3 -m pytest tests/ -v
# Rust (22 tests)
cd ward && cargo test
# TypeScript (53 tests)
cd sdk/typescript && npm install && npm test
Assurance
Full pre-mainnet security report, TLA+ formal spec, and continuous scanning results: wardprotocol.org/assurance
- 634 automated tests, 92% critical path coverage
- 32 formal invariants verified in TLA+
- 0 open CVEs (Aikido continuous SAST/SCA scanning)
- Git history scrubbed and verified clean
- ward_signed = False enforced at 4 independent layers
Community
- Discord: discord.gg/j45hnRP3HW
- XRPLF Discussion #474: github.com/XRPLF/XRPL-Standards/discussions/474
- Website: wardprotocol.org
- X: x.com/wardprotocol
Commercial
The SDK and specification are MIT licensed — free forever. Mainnet API, Ward-conformant certification, and enterprise support require a commercial license. See COMMERCIAL.md.
Contact: team@wardprotocol.org
License
MIT — see LICENSE file.
ward_signed = False — always.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ward_protocol-0.2.10.tar.gz.
File metadata
- Download URL: ward_protocol-0.2.10.tar.gz
- Upload date:
- Size: 69.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fadf6e12f73ca409cf3d8f407486fe1b330d1a8b537422702b885930b5e07af0
|
|
| MD5 |
85ca637cfdf858dd5b011d8f0f65a75d
|
|
| BLAKE2b-256 |
4539c227b88b0a25f2267aa45c147677e8f1ab7e357478fe50588d3b6d99d371
|
Provenance
The following attestation bundles were made for ward_protocol-0.2.10.tar.gz:
Publisher:
publish.yml on wflores9/ward-protocol
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ward_protocol-0.2.10.tar.gz -
Subject digest:
fadf6e12f73ca409cf3d8f407486fe1b330d1a8b537422702b885930b5e07af0 - Sigstore transparency entry: 1807186910
- Sigstore integration time:
-
Permalink:
wflores9/ward-protocol@48d3d3c6b0a6be6f115b8ee3bd8a4666e1fe16e3 -
Branch / Tag:
refs/tags/v0.2.10-1 - Owner: https://github.com/wflores9
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@48d3d3c6b0a6be6f115b8ee3bd8a4666e1fe16e3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ward_protocol-0.2.10-py3-none-any.whl.
File metadata
- Download URL: ward_protocol-0.2.10-py3-none-any.whl
- Upload date:
- Size: 80.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06d59cc7b8fe534141a69cfdb614c0b050d59266526254cc3125602ac4fffe31
|
|
| MD5 |
23011e54523b3db92494e51bef34fe9f
|
|
| BLAKE2b-256 |
4451a074ecba45d66d37a7d6c1db771b43490ef4f6c003308c80c69520ff867a
|
Provenance
The following attestation bundles were made for ward_protocol-0.2.10-py3-none-any.whl:
Publisher:
publish.yml on wflores9/ward-protocol
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ward_protocol-0.2.10-py3-none-any.whl -
Subject digest:
06d59cc7b8fe534141a69cfdb614c0b050d59266526254cc3125602ac4fffe31 - Sigstore transparency entry: 1807187164
- Sigstore integration time:
-
Permalink:
wflores9/ward-protocol@48d3d3c6b0a6be6f115b8ee3bd8a4666e1fe16e3 -
Branch / Tag:
refs/tags/v0.2.10-1 - Owner: https://github.com/wflores9
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@48d3d3c6b0a6be6f115b8ee3bd8a4666e1fe16e3 -
Trigger Event:
push
-
Statement type: