@kaspacom/mpp-core
v0.1.1
Published
Shared Kaspa MPP API payment schemas, digests, and credential helpers.
Readme
@kaspacom/mpp-core
Shared Kaspa MPP API payment primitives.
This package owns the stable credential bytes:
- canonical request hashes
- channel voucher signing digests
- payer-signed channel close request digests
- settlement authorization metadata digests
- settlement authorization/artifact validation
Paymentauthorization header encoding/parsing
It does not open channels or submit settlement transactions. Payer and provider packages build on these helpers so their contracts do not drift.
The current ApiPaymentChannel covenant settles from a payer signature on the
actual settlement transaction/PSKT, not from the JSON request voucher alone.
Use the settlement authorization helpers to validate that enforceable metadata
before storing it or selecting a channel for provider settlement.
