Metadata-Version: 2.4
Name: xrpl-x402-core
Version: 0.2.0
Summary: XRPL exact-payment mechanisms and helpers for x402 v2
Project-URL: Homepage, https://github.com/lgcarrier/xrpl-x402-stack
Project-URL: Documentation, https://lgcarrier.github.io/xrpl-x402-stack/packages/core/
Project-URL: Repository, https://github.com/lgcarrier/xrpl-x402-stack
Project-URL: Issues, https://github.com/lgcarrier/xrpl-x402-stack/issues
Project-URL: Changelog, https://github.com/lgcarrier/xrpl-x402-stack/blob/main/CHANGELOG.md
Author-email: Louis-Guillaume Carrier-Bedard <lgcarrier@gmail.com>
License-Expression: MIT
Keywords: payments,x402,xrp,xrpl
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Software Development :: Libraries
Classifier: Typing :: Typed
Requires-Python: >=3.12
Requires-Dist: pydantic<3,>=2
Requires-Dist: x402==2.21.0
Requires-Dist: xrpl-py==4.5.0
Description-Content-Type: text/markdown

# xrpl-x402-core

Shared XRPL support for the x402 v2 stack. Version 0.2.0 pins `x402==2.21.0`.

This package re-exports official x402 schemas such as `PaymentRequired`,
`PaymentRequirements`, `PaymentPayload`, `VerifyRequest`, `VerifyResponse`,
`SettleRequest`, `SettleResponse`, and supported-kind models. It does not define
parallel wire schemas.

Local public types are XRPL-specific:

- `ExactXRPLPayload` with `signedTxBlob`
- `ExactXRPLExtra`
- `XRPLSettlementState`
- default asset, network, invoice hashing, transaction hash, and fingerprint helpers

XRPL assets are represented canonically: XRP is `XRP` with drops, while IOUs
use the currency code plus `extra.issuer`. `find_default_asset(asset, network)`
recognizes the official RLUSD entries.
